/* Manrope (self-hosted, variable 200–800). OFL. Latin + Latin-ext subsets. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin.woff2?v=20260609") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin-ext.woff2?v=20260609") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f0eee8;
  --ink: #171814;
  --muted: #6a6b63;
  --line: #c7c5bd;
  --acid: #d7ff38;
  --blue: #3557ff;
  --dark: #1c1e19;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Keyboard accessibility: skip link + visible focus ring */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  height: 82px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: 36px;
  height: 36px;
  text-decoration: none;
  display: block;
}

.wordmark picture,
.wordmark img {
  display: block;
  width: 36px;
  height: 36px;
}

.home-label {
  display: none;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.75rem);
}

nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--blue);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.nav-resume {
  color: var(--blue);
}

.availability {
  justify-self: end;
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.availability span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #55b252;
  box-shadow: 0 0 0 4px rgb(85 178 82 / 12%);
}

.hero {
  min-height: calc(100vh - 82px);
  padding: 3rem var(--pad) 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1250px;
  margin: auto 0;
  font-size: clamp(4.2rem, 11.8vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
  font-weight: 800;
}

.scribble-wrap {
  position: relative;
  display: inline-block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.scribble {
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -7%;
  height: 10px;
  border-top: 3px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-1deg) scaleX(1);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

/* Hero underline "draws in" once the headline reveals. */
.reveal:not(.is-visible) .scribble {
  transform: rotate(-1deg) scaleX(0);
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-intro {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.02em;
}

.round-link {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.round-link:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-5deg);
}

.round-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero-rule {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-rule i {
  height: 1px;
  background: var(--line);
}

.section-pad {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}

.section-label {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--blue);
}

.section-label p {
  margin: 0;
}

.about {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) 2.4fr;
  gap: 3rem;
  border-top: 1px solid var(--line);
}

.about .section-label {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.about-copy {
  max-width: 1050px;
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 25vw, 320px);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.big-copy {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.portrait {
  margin: 0 0 0.5rem;
  transform: rotate(1.4deg);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  filter: saturate(0.88) contrast(1.03);
}

.portrait figcaption,
.car-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 780px;
  margin: 4rem 0 0 auto;
}

.bio-grid p {
  margin: 0;
  font-size: 1rem;
}

.wiring {
  color: var(--paper);
  background: var(--dark);
}

.section-label.light {
  color: var(--paper);
}

.section-label.light span {
  color: var(--acid);
}

.traits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #4f514b;
  border-bottom: 1px solid #4f514b;
}

.trait {
  min-height: 470px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #4f514b;
}

.trait:last-child {
  border-right: 0;
}

.trait-number,
.eyebrow {
  margin: 0;
  color: #a9aaa4;
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trait h2 {
  margin: 3.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.trait > p:not(.trait-number) {
  max-width: 260px;
  margin: 0;
  color: #c7c8c2;
  font-size: 0.88rem;
}

.trait-mark {
  position: relative;
  width: 130px;
  height: 130px;
  margin: auto auto 0;
}

.target-mark span {
  position: absolute;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.target-mark span:first-child {
  inset: 7px;
}

.target-mark span:nth-child(2) {
  inset: 32px;
}

.target-mark i {
  position: absolute;
  inset: 57px;
  border-radius: 50%;
  background: var(--acid);
}

.target-mark::before,
.target-mark::after {
  content: "";
  position: absolute;
  background: #4f514b;
}

.target-mark::before {
  width: 100%;
  height: 1px;
  top: 50%;
}

.target-mark::after {
  width: 1px;
  height: 100%;
  left: 50%;
}

.knot-mark span {
  position: absolute;
  width: 90px;
  height: 45px;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.knot-mark span:nth-child(1) {
  top: 19px;
  left: 0;
  transform: rotate(40deg);
}

.knot-mark span:nth-child(2) {
  top: 19px;
  right: 0;
  transform: rotate(-40deg);
}

.knot-mark span:nth-child(3) {
  bottom: 12px;
  left: 20px;
  transform: rotate(90deg);
}

.orbit-mark {
  border: 1px solid #4f514b;
  border-radius: 50%;
}

.orbit-mark span {
  position: absolute;
  inset: 31px;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.orbit-mark i,
.orbit-mark b {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--acid);
}

.orbit-mark i {
  top: 13px;
  left: 23px;
}

.orbit-mark b {
  right: 18px;
  bottom: 20px;
}

.path-mark {
  overflow: hidden;
}

.path-mark span {
  position: absolute;
  width: 170px;
  height: 85px;
  left: -20px;
  top: 20px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.path-mark::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 38px;
  width: 12px;
  height: 12px;
  background: var(--acid);
  transform: rotate(45deg);
}

.life {
  border-bottom: 1px solid var(--line);
}

.dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.dash-card {
  min-height: 360px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: var(--paper);
}

.dash-feature {
  grid-row: span 2;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
}

.dash-feature h2 {
  margin: auto 0 2rem;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.dash-note {
  max-width: 420px;
  color: #bfc0b9;
}

.rpm {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
}

.rpm-track {
  height: 5px;
  background: #474942;
}

.rpm-track i {
  display: block;
  width: 88%;
  height: 100%;
  background: var(--acid);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Curiosity meter sweeps up when the feature card scrolls into view. */
.dash-feature.reveal:not(.is-visible) .rpm-track i {
  width: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.large-stat {
  margin: 2.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.garage-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.garage-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.garage-card .eyebrow {
  color: white;
  text-shadow: 0 1px 12px rgb(0 0 0 / 45%);
}

.garage-card .large-stat {
  margin: 0;
  text-shadow: 0 2px 22px rgb(0 0 0 / 55%);
}

.car-photo {
  width: 100%;
  height: 100%;
  margin: 0;
}

.car-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 38%) 0%, transparent 42%, rgb(0 0 0 / 48%) 100%);
}

.car-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.garage-card:hover .car-photo img {
  transform: scale(1.025);
}

.car-photo figcaption {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.5rem);
  bottom: 1.15rem;
  z-index: 2;
  margin: 0;
  color: white;
  text-shadow: 0 1px 10px rgb(0 0 0 / 65%);
}

.accent {
  background: var(--blue);
  color: white;
}

.accent .eyebrow {
  color: #c8d0ff;
}

.tiny-note {
  max-width: 210px;
  margin: auto 0 0;
  font-size: 0.8rem;
}

.wide-card {
  grid-column: 2 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.role-list {
  margin: 1.8rem 0 0;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.role-list span {
  color: var(--blue);
  font-family: Georgia, serif;
  font-style: italic;
}

.wide-note {
  max-width: 390px;
  margin: 2rem 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.closing {
  padding: clamp(6rem, 14vw, 13rem) var(--pad);
  text-align: center;
}

.closing-label {
  margin: 0 0 3rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(3rem, 7.7vw, 8.5rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.closing em {
  color: var(--blue);
  font-family: Georgia, serif;
  font-weight: 400;
}

.contact {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) 2.4fr;
  gap: 3rem;
  color: var(--paper);
  background: var(--dark);
}

.contact-index {
  display: flex;
  gap: 1rem;
  color: #a9aaa4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-index span:first-child {
  color: var(--acid);
}

.contact-kicker {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  color: #a9aaa4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact h2 {
  max-width: 970px;
  margin: 0;
  font-size: clamp(3.8rem, 8.7vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.contact h2 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.contact-actions {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid #4f514b;
}

.email-link {
  flex: 0 1 auto;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 150px auto auto;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.email-link > span,
.contact-linkedin {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.email-link strong {
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.email-link svg {
  width: 32px;
  fill: none;
  stroke: var(--acid);
  stroke-width: 1.4;
  transition: transform 180ms ease;
}

.email-link:hover svg {
  transform: translate(4px, -4px);
}

.contact-linkedin {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  color: #a9aaa4;
  white-space: nowrap;
  text-decoration: none;
}

.contact-linkedin:hover {
  color: var(--acid);
}

footer {
  min-height: 120px;
  padding: 2rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
}

footer p {
  margin: 0;
}

footer > p:first-child {
  font-weight: 700;
}

footer > p:first-child span {
  margin-left: 0.5rem;
  color: #888a83;
  font-weight: 400;
}

.footer-note {
  color: #888a83;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  text-align: center;
  text-transform: uppercase;
}

.linkedin {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid #5d5f59;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.linkedin:hover {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

.linkedin svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr 1fr;
  }

  nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  nav a:not(.nav-resume) {
    display: none;
  }

  .wordmark {
    width: max-content;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .home-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .about .section-label {
    margin-bottom: 0;
  }

  .about-lead {
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.6fr);
  }

  .traits {
    grid-template-columns: 1fr 1fr;
  }

  .trait:nth-child(2) {
    border-right: 0;
  }

  .trait:nth-child(-n + 2) {
    border-bottom: 1px solid #4f514b;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .dash-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 600px;
  }

  .wide-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 68px;
  }

  .availability {
    font-size: 0.58rem;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding-top: 1.5rem;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero h1 {
    margin: auto 0 2rem;
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .hero-bottom {
    align-items: center;
  }

  .round-link {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    font-size: 0.58rem;
  }

  .hero-rule {
    gap: 0.5rem;
  }

  .big-copy {
    font-size: 2.8rem;
  }

  .about-lead {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: min(78vw, 330px);
    margin: 1rem 0 0 auto;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .traits {
    grid-template-columns: 1fr;
  }

  .trait,
  .trait:nth-child(2) {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid #4f514b;
  }

  .trait:last-child {
    border-bottom: 0;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dash-feature,
  .wide-card {
    grid-column: auto;
  }

  .dash-feature {
    min-height: 520px;
  }

  .dash-card {
    min-height: 330px;
  }

  .wide-card {
    min-height: 390px;
  }

  .role-list {
    display: flex;
    flex-direction: column;
  }

  .role-list span {
    display: none;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .email-link {
    grid-template-columns: 1fr auto;
  }

  .email-link > span {
    grid-column: 1 / -1;
  }

  .email-link strong {
    overflow-wrap: anywhere;
  }

  .contact-linkedin {
    border-top: 1px solid #4f514b;
    min-height: 68px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  .footer-note {
    display: none;
  }
}

@media (max-width: 340px) {
  /* Prevent the centered "Resume" link and the availability note from
     colliding on very narrow viewports (e.g. iPhone SE 1st-gen). */
  .availability {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scribble,
  .rpm-track i {
    transition: none;
  }

  * {
    animation: none !important;
  }
}

/* 404 page + Dodge game */
.error-main {
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(4rem, 9vw, 7rem);
}

.error-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.error-title {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(3.4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.error-lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: -0.01em;
}

.error-lead a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.error-lead a:hover {
  text-decoration: underline;
}

.game {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.game-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.game-head {
  text-align: center;
}

.game-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.game-head h2 em {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.game-controls {
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-controls span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #e7e5dd;
}

.game-stage {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

#dodge-canvas {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  background: var(--dark);
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

#dodge-canvas:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(53 87 255 / 25%);
}

.game-readout {
  display: grid;
  gap: 1.5rem;
  font-family: "Courier New", monospace;
  text-align: center;
}

.game-readout p {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.game-readout span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-readout strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.game-readout p:last-child strong {
  color: var(--blue);
}

@media (max-width: 600px) {
  .game-stage {
    flex-direction: column;
    align-items: center;
  }

  .game-readout {
    grid-auto-flow: column;
    justify-content: center;
    gap: 2rem;
  }
}
