@font-face {
  font-family: Outfit;
  src: url("../portfolio/outfit-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f6ef;
  --bg-start: var(--bg);
  --ink: #192721;
  --muted: #536059;
  --line: #ccd0c5;
  --wash: #e7ece4;
  --surface: #fffef8;
  --pine: #142e27;
  --cream: #faf6e7;
  --peach: #ffb37c;
  --action: #ffb37c;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bar: 78px;
  --gutter: clamp(28px, 5.3vw, 88px);
  font-family: Outfit, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171e1b; --ink: #f4f3e9; --muted: #b7c4ba; --line: #3e4b43; --wash: #202d27; --surface: #233129;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #171e1b; --ink: #f4f3e9; --muted: #b7c4ba; --line: #3e4b43; --wash: #202d27; --surface: #233129;
  }
}
* { box-sizing: border-box }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased }
img { display: block; max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
button, input { font: inherit }
button, label { -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
button[hidden] { display: none }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { text-wrap: balance }
h2 { font-size: clamp(2.65rem, 4.8vw, 4.7rem); line-height: .99; font-weight: 470; letter-spacing: -.059em }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #d56d31; outline-offset: 5px }
.hero :focus-visible, footer :focus-visible { outline-color: var(--peach) }
::selection { color: #142e27; background: #ffc99c }
.wrap { width: min(100% - var(--gutter) * 2, 1344px); margin-inline: auto }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 18px; background: var(--bg); transform: translateY(-170%) }
.skip-link:focus { transform: none }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .65em; font: 600 .76rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase }
.eyebrow span { opacity: .67 }
.eyebrow i { display: inline-block; width: 22px; height: 2px; background: currentColor }
.mast { position: relative; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line) }
.mast-inner { min-height: var(--bar); display: flex; align-items: center; gap: clamp(18px, 3vw, 48px) }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 1.55rem; line-height: 1; letter-spacing: -.055em; font-weight: 650; margin-right: auto }
.wordmark img { width: 40px; height: 40px }
.mast-nav, .mast-actions { display: flex; align-items: center }
.mast-nav { gap: clamp(22px, 2.7vw, 42px) }
.mast-actions { gap: 16px }
.mast-nav a, .footer-bottom a, .subtle-link, .underlink, .footer-phone { display: inline-flex; align-items: center; min-height: 44px; width: fit-content }
.mast-nav a { font-weight: 450; font-size: 1rem }
.mast-nav a:hover, .footer-bottom a:hover, .footer-phone:hover { text-decoration: underline; text-underline-offset: .36em }
.mast-nav .mobile-contact { display: none }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 4px; font-weight: 550; min-height: 46px; padding: .7rem 1.2rem; line-height: 1.2 }
.contact-btn { background: var(--ink); color: var(--bg); font-size: .96rem }
.contact-btn span { font-size: 1.15rem }
.theme-toggle, #menu-toggle { border: 1px solid var(--line); color: var(--ink); background: transparent; min-height: 44px }
.theme-toggle { width: 44px; padding: 10px; border-radius: 50%; display: grid; place-items: center }
.theme-toggle .icon { width: 20px; height: 20px; display: none }
.theme-toggle[data-theme="system"] .icon-system, .theme-toggle[data-theme="light"] .icon-light, .theme-toggle[data-theme="dark"] .icon-dark { display: block }
.theme-toggle span { display: none }
#menu-toggle { padding: .5rem 1rem; border-radius: 4px; font-weight: 550 }
.subtle-link, .underlink { gap: 9px; font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb,currentColor 52%,transparent); text-underline-offset: 5px }
.subtle-link:hover, .underlink:hover { text-decoration-color: currentColor }
.section { padding-block: clamp(56px, 7vw, 108px) }
.fieldwork { background: var(--wash); border-block: 1px solid var(--line) }
.lab-grid { display: grid; align-items: center; grid-template-columns: .85fr 1.35fr; gap: clamp(25px,5vw,86px); min-height: min(56svh,560px) }
.lab-copy .eyebrow { color: var(--muted) }
.lab-copy h2 { margin: 24px 0 16px; font-size: clamp(3.6rem,6vw,6rem) }
.lab-copy .lab-subhead { color: var(--ink); margin-bottom: 14px; font-family: var(--serif); font-size: clamp(1.55rem,2.4vw,2.45rem); line-height: 1.18; max-width: 20ch }
.lab-copy > p:not(.eyebrow,.lab-subhead) { max-width: 39ch; color: var(--muted) }
.lab-copy .underlink { margin-top: 18px }
.workbench { display: flex; gap: 3%; align-items: center; justify-content: center; aspect-ratio: 1.52; background: #cbd7dd; border-radius: 4px; padding: 5%; overflow: hidden }
.workbench img { border: 1px solid #40506244; border-radius: 3px; box-shadow: 0 8px 22px #42576c1f }
.workbench .wide-app { width: 76% }
.workbench .phone-app { width: 21% }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(24px,7vw,110px) }
.studio-grid h2 { margin-top: 24px; font-size: clamp(3.2rem,5.8vw,5.75rem) }
.story { max-width: 50ch }
.story > p:first-child { font-size: clamp(1.25rem,1.7vw,1.65rem); line-height: 1.37; letter-spacing: -.02em }
.story > p + p { color: var(--muted); margin-top: 18px }
.archive { display: grid; grid-template-columns: minmax(110px,17%) 1fr auto; align-items: center; gap: clamp(18px,3.4vw,52px); border-top: 1px solid var(--line); padding-top: clamp(24px,4vw,56px); margin-top: clamp(40px,6vw,96px) }
.archive-art { display: grid; place-items: center; border-radius: 3px; background: #1c322c; aspect-ratio: 1.3 }
.archive-art img { width: 62%; border-radius: 50% }
.archive h3 { font-size: clamp(1.9rem,3.1vw,3rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 460; margin: 6px 0 }
.archive p:last-child { color: var(--muted); max-width: 44ch }
.journal { border-top: 1px solid var(--line); background: var(--surface) }
.journal-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6% }
.journal h2 { margin: 15px 0 20px; font-size: clamp(2.65rem,4.5vw,4.3rem) }
.journal-links a { min-height: 100px; display: grid; grid-template-columns: 1fr auto; align-content: center; border-top: 1px solid var(--line); row-gap: 4px; padding: 14px 0 }
.journal-links a:last-child { border-bottom: 1px solid var(--line) }
.journal-links strong { grid-column: 1; font-size: clamp(1.25rem,2vw,1.85rem); font-weight: 460; letter-spacing: -.03em }
.end-arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 1.5rem }
.journal-links a:hover strong { text-decoration: underline; text-underline-offset: 5px }
footer { color: var(--cream); background: #142c25 }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 16px 32px }
.footer-top { padding: clamp(44px,6vw,90px) 0 clamp(26px,3.8vw,60px) }
.footer-top .eyebrow { color: #becbbf }
.email { display: inline-block; font-size: clamp(1.75rem,4.2vw,4.1rem); letter-spacing: -.055em; margin-top: 12px; overflow-wrap: anywhere }
.email span { color: var(--peach); font-size: .7em; white-space: nowrap }
.footer-bottom { align-items: center; border-top: 1px solid #b7c8b848; padding-block: 15px; color: #ccd8cc; font-size: .91rem }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 5px 24px }
@media (max-width: 760px) {
  :root { --bar: 65px; --gutter: clamp(18px,5vw,36px) }
  .mast-inner { gap: 12px; flex-wrap: wrap }
  .wordmark { font-size: 1.35rem }
  .wordmark img { width: 34px; height: 34px }
  .mast-actions { margin-left: auto; gap: 8px; min-height: var(--bar) }
  .mast-nav { order: 3; width: 100%; flex-wrap: wrap; padding-bottom: 10px; gap: 0 22px }
  .mast-nav .mobile-contact { display: inline-flex }
  .mast-nav[hidden] { display: none }
  .mast-actions .contact-btn { display: none }
  .lab-grid, .studio-grid, .journal-inner { grid-template-columns: 1fr; gap: 28px }
  .lab-grid { min-height: 0 }
  .lab-copy h2 { margin-top: 12px }
  .workbench { max-width: 600px }
  .studio-grid h2 { margin-top: 12px; font-size: clamp(2.6rem,9.6vw,4.3rem) }
  .archive { grid-template-columns: 90px 1fr; align-items: start; gap: 12px 18px }
  .archive .underlink { grid-column: 2 }
}
@media (max-width: 600px) {
  .archive { grid-template-columns: 72px 1fr }
  .archive-art { aspect-ratio: 1 }
  .journal-links a { min-height: 86px }
  .footer-bottom { gap: 4px }
}

/* The replay is one continuous instrument, from the route to the timeline. */
.drive-hero {
  background: radial-gradient(ellipse at 45% 63%, #19323d, transparent 65%), #101e27;
  color: #f4f5ea;
  min-height: min(calc(100svh - var(--bar) - 1px), 900px);
  align-content: center;
  padding-block: clamp(32px, 4.2vw, 70px) 14px;
}
.drive-intro, .watch-intro {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 5%; align-items: end; padding-bottom: clamp(22px, 3.3vw, 50px);
}
.platform-line { font: 500 .76rem/1.45 var(--mono); letter-spacing: .09em; text-transform: uppercase }
.platform-line span { margin-inline: .5em; opacity: .6 }
.drive-hero .platform-line { color: #c6db98 }
.drive-hero h1 { margin: .09em 0 0; font-size: clamp(5.5rem, 10.3vw, 10rem); font-weight: 460; letter-spacing: -.08em; line-height: .93 }
.drive-deck { justify-self: start; max-width: 34ch; font-size: clamp(1.06rem,1.55vw,1.4rem); line-height: 1.36 }
.drive-deck .underlink { margin-top: 4px; font-size: .94rem; color: #c8dc9f }
.replay { border-top: 1px solid #53636a }
.run-header, .run-credit { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.run-header { padding-top: 17px; justify-content: flex-start; gap: 16px }
.run-header strong { font-weight: 500; font-size: 1.3rem; letter-spacing: -.025em }
.run-header span, .meters dt, .time, .rate { font: .82rem/1.4 var(--mono); color: #c0cecf }
.run-header span { border-left: 1px solid #53636a; padding-left: 16px }
.plot-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px,16%); align-items: center; column-gap: 2% }
.plot { position: relative; aspect-ratio: 1040/350; width: 100% }
.plot canvas, .plot-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.plot canvas { visibility: hidden }
.ready .plot canvas { visibility: visible }
.ready .plot-still { display: none }
.meters { margin: 0; border-left: 1px solid #53636a; padding-left: clamp(13px,2.7vw,48px); display: grid; gap: 1.2rem; font-variant-numeric: tabular-nums }
.meters dt { margin-bottom: 3px }
.meters dd { margin: 0; display: flex; align-items: baseline; gap: .42em }
.meters b { font-size: clamp(2.4rem,4.2vw,4.6rem); font-weight: 420; line-height: 1; letter-spacing: -.07em }
.meters small { color: #c7d3d5; font: .86rem var(--mono) }
.transport { display: none; align-items: center; gap: clamp(10px,1.5vw,24px); border-top: 1px solid #53636a; padding-block: 16px }
.ready .transport { display: flex }
.transport button { min-width: 8.7rem; min-height: 44px; color: #182319; background: #d3f1a0; border: 0; border-radius: 3px; font-weight: 550 }
.transport button::before { content: '▶'; display: inline-block; margin-right: .55rem; font-size: .73em }
.transport button[aria-pressed="true"]::before { content: 'Ⅱ' }
.transport button:hover { background: #e1ffac }
.transport input { flex: 1; min-width: 0; height: 32px; accent-color: #d1e8a3; cursor: pointer }
.time { white-space: nowrap; font-variant-numeric: tabular-nums }
.run-credit { border-top: 1px solid #42515b; font-size: .81rem; color: #beccce; min-height: 44px }
.run-credit a:hover { text-decoration: underline }
.watch-intro h2, .race-heading h2 { margin-top: .18em }
.watch-intro > div:last-child { max-width: 36ch; justify-self: start }
.watch-intro .underlink { margin-top: 4px }
.race-room { background: #25292a; color: #f6f0e2 }
.race-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 30px }
.race-panorama { display: block; width: 100%; overflow: hidden }
.race-panorama img { width: 100%; aspect-ratio: 2.55; object-fit: cover; object-position: center 56% }
.studio-grid h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.067em }
@media (max-width: 760px) {
  .drive-intro, .watch-intro { grid-template-columns: 1fr; gap: 16px }
  .drive-deck, .watch-intro > div:last-child { justify-self: start; max-width: 45ch }
  .drive-deck .underlink { margin-top: 0 }
  .drive-hero h1 { font-size: clamp(4.8rem,15vw,6.8rem) }
  .plot-layout { grid-template-columns: 1fr }
  .plot { aspect-ratio: 2.75 }
  .meters { border: 0; padding: 0 0 15px; display: flex; gap: clamp(28px,8vw,60px) }
  .meters dt { font-size: .73rem }
  .meters b { font-size: 2.2rem }
  .transport { gap: 9px; flex-wrap: wrap; padding-block: 10px }
  .transport button { min-width: 7.4rem; font-size: .93rem }
  .run-credit { align-items: flex-start; padding-top: 10px; gap: 8px }
  .run-credit span, .run-credit > a { max-width: 60% }
  .watch-pair article { padding: 20px 12px }
  roko-watch { width: min(95%,260px) }
  .race-panorama img { aspect-ratio: 1.6 }
}
@media (max-width: 480px) {
  .plot { aspect-ratio: 2 }
  .transport { display: none; grid-template-columns: auto auto 1fr; gap: 0 10px }
  .ready .transport { display: grid }
  .transport input { grid-column: 1/-1; grid-row: 2; width: 100%; margin: 0 }
  .transport .time { justify-self: end }
  .watch-pair { grid-template-columns: 1fr }
  .watch-pair article { padding: 24px }
  .watch-pair roko-watch { width: 75% }
  .race-heading { flex-wrap: wrap }
}
@media (min-width: 761px) and (max-height: 820px) {
  .drive-hero { padding-top: clamp(25px,4vh,36px) }
  .drive-intro { padding-bottom: 22px }
  .plot { aspect-ratio: auto; height: clamp(205px,36vh,300px) }
}
.transport input { appearance: none; background: transparent; padding: 0; margin-inline: 0; height: 44px }
.transport input::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: linear-gradient(to right, #d1e8a3 var(--progress), #52646c var(--progress));
}
.transport input::-webkit-slider-thumb {
  appearance: none; width: 14px; height: 14px; border-radius: 50%; margin-top: -5.5px; background: #d1e8a3;
}
.transport input::-moz-range-track { height: 3px; background: #52646c }
.transport input::-moz-range-progress { height: 3px; background: #d1e8a3 }
.transport input::-moz-range-thumb { width: 14px; height: 14px; background: #d1e8a3; border: 0; border-radius: 50% }
@media (forced-colors: active) { .transport input { appearance: auto; forced-color-adjust: auto } }
