/* OVERBUILT · elentropy.dev
   A folding road map of Milepost 17. One road crosses every fold; real captures are the only
   pictures; the type is the game's own Barlow. Palette is the Steam identity manifest. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); }
/* Metric-tuned fallback so text does not jump when Barlow arrives. */
@font-face { font-family: "Barlow Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 93%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #143b37;
  --deep: #102c2a;
  --shadow: #092220;
  --mint: #8dc6ae;
  --mint-dark: #427f70;
  --cream: #f2e8cb;
  --paper: #ddd4b6;
  --canyon: #cd7650;
  --rust: #92523d;
  --amber: #e9b65f;
  --night: #1e2b3a;

  --fg: var(--cream);
  --fg-2: color-mix(in oklab, var(--cream) 72%, var(--ink));
  --bg: var(--deep);

  --font: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-plate: "Barlow Condensed", "Barlow", "Barlow Fallback", system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --dur: 500ms;
  --clock: 3.6s;                      /* one clock for every crawling dash */

  --radius: 12px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --wide: 1440px;
  --section: clamp(140px, 80px + 7vw, 180px);
  --measure: 62ch;

  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.7rem + 3vw, 4.6rem);
  --step-4: clamp(3.4rem, 2rem + 5.2vw, 6rem);
  --step-hero: clamp(4.2rem, 1rem + 12.5vw, 11.5rem);

  color-scheme: dark;
  accent-color: var(--amber);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--shadow); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--shadow); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
html { scrollbar-color: var(--mint-dark) var(--shadow); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--shadow); }
::-webkit-scrollbar-thumb { background: var(--mint-dark); border-radius: 999px; border: 2px solid var(--shadow); }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 14px; background: var(--amber); color: var(--shadow); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.measure { max-width: var(--measure); text-wrap: pretty; }

h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.08; }
/* the road is the only rule: a 5px ribbon (ink asphalt, amber dashes) wherever a hairline would go; ::after so it never collides with counters */
.rule { position: relative; }
.rule::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 3px; background: repeating-linear-gradient(to right, var(--amber) 0 9px, transparent 9px 20px) center / 20px 1.5px repeat-x, var(--ink); }
.section--rust .rule::after { background: repeating-linear-gradient(to right, var(--amber) 0 9px, transparent 9px 20px) center / 20px 1.5px repeat-x, var(--shadow); }
.site-foot .rule::after { background: repeating-linear-gradient(to right, var(--amber) 0 9px, transparent 9px 20px) center / 20px 1.5px repeat-x, color-mix(in oklab, var(--ink) 55%, var(--mint-dark)); }
.lede { font-size: var(--step-1); line-height: 1.45; font-weight: 400; }
.muted { color: var(--fg-2); }

/* ------------------------------------------------------------------ sign plates */
.plate {
  display: inline-flex; align-items: center; gap: 0.6em;
  position: relative;
  padding: 0.42em 0.9em 0.38em;
  border-radius: 6px;
  background: var(--mint);
  color: var(--shadow);
  font-family: var(--font-plate);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(9, 34, 32, 0.6), inset 0 0 0 1px rgba(9, 34, 32, 0.12);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--shadow); opacity: 0.55;
}
.plate::before { left: 5px; } .plate::after { right: 5px; }
.plate--cream { background: var(--cream); }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px; padding: 0 1.75rem;
  border-radius: 10px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.005em; text-decoration: none;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--cream); color: var(--shadow); box-shadow: 0 14px 34px -14px rgba(242, 232, 203, 0.45); }
.btn--primary:hover { background: #fff7dc; transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(242, 232, 203, 0.55); }
.btn--primary:active { transform: translateY(0); transition-duration: 120ms; }
.btn--ghost { color: var(--cream); border: 1px solid color-mix(in oklab, var(--cream) 28%, transparent); background: color-mix(in oklab, var(--deep) 40%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: color-mix(in oklab, var(--cream) 65%, transparent); background: color-mix(in oklab, var(--cream) 10%, transparent); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--shadow); transform: translateY(-2px); }
.btn::after { content: ""; position: absolute; inset: -4px 0 -6px; }   /* hit area survives the hover lift */
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.btn--play .icon { transition: transform var(--dur) var(--ease); }
.btn--play:hover .icon { transform: translateX(2px) scale(1.08); }

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 18px;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-head.is-stuck { background: color-mix(in oklab, var(--deep) 78%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 color-mix(in oklab, var(--cream) 8%, transparent); padding-block: 12px; }
.site-head .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.brand { display: inline-flex; align-items: center; color: var(--cream); text-decoration: none; }
.brand img, .brand svg { height: 17px; width: auto; }
.site-nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-inline-start: auto; }
.site-nav a { font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 6px 0; position: relative; color: color-mix(in oklab, var(--cream) 82%, transparent); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--cream); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.head-plate { margin-inline-start: 4px; }
@media (max-width: 860px) {
  .site-nav a:not(.site-nav__play) { display: none; }
  .head-plate { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-block: clamp(120px, 14vh, 180px) clamp(56px, 8vh, 96px);
  background: var(--shadow);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 1400ms var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(9, 34, 32, 0.96) 0%, rgba(9, 34, 32, 0.72) 28%, rgba(9, 34, 32, 0.18) 58%, rgba(9, 34, 32, 0.05) 100%),
  linear-gradient(to right, rgba(9, 34, 32, 0.45), rgba(9, 34, 32, 0) 60%); }
.hero .wrap { position: relative; }
.hero__title {
  font-size: var(--step-hero);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--cream);
  margin-inline-start: -0.04em;
  text-shadow: 0 2px 40px rgba(9, 34, 32, 0.35);
}
.hero__tag { margin-top: clamp(20px, 3vw, 32px); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.hero__sub { margin-top: 14px; max-width: 46ch; font-size: var(--step-1); line-height: 1.4; color: color-mix(in oklab, var(--cream) 84%, transparent); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(36px, 5vw, 64px); font-size: 0.86rem; letter-spacing: 0.02em; color: color-mix(in oklab, var(--cream) 62%, transparent); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--amber); opacity: 0.85; }

/* the one square that falls: scroll cue in the studio's grammar */
.hero__cue { position: absolute; right: var(--gutter); bottom: clamp(56px, 8vh, 96px); width: 14px; height: 60px; overflow: hidden; }
.hero__cue::before { content: ""; position: absolute; left: 4px; top: -8px; width: 6px; height: 6px; background: var(--cream); animation: fall 2.6s var(--ease) infinite; }
@keyframes fall { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }

/* ------------------------------------------------------------------ folds (the road) */
.fold {
  position: relative; height: 18px; z-index: 2;
  background:
    repeating-linear-gradient(to right, var(--amber) 0 26px, transparent 26px 64px) center / 64px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 10px no-repeat,
    var(--cream);
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-size: 64px 3px, 100% 10px, auto;
  animation: crawl var(--clock) linear infinite;
}
@keyframes crawl { to { background-position: -64px center, center, center; } }
.fold__plate { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); }
.fold--dark { background-color: var(--paper); }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding-block: var(--section); }
.section--cream { background: var(--cream); color: var(--ink); --fg: var(--ink); --fg-2: color-mix(in oklab, var(--ink) 74%, var(--cream)); }
.section--cream ::selection { background: var(--ink); color: var(--cream); }
.section--ink { background: var(--ink); }
.section--rust { background: linear-gradient(160deg, #874a36 0%, var(--rust) 55%, #96523c 100%); color: var(--cream); --fg-2: var(--cream); }
.section--deep { background: var(--deep); }
.section--rust ::selection { background: var(--cream); color: var(--rust); }
.section--rust .lede { color: var(--cream); }
.section-head { display: grid; gap: 22px; justify-items: start; }
.section-head h2 { max-width: 24ch; }
.section-head .lede { max-width: 56ch; }

/* district ------------------------------------------------------------ */
.district__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.district__statement { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 0.98; }
.district__copy { display: grid; gap: 20px; font-size: var(--step-1); line-height: 1.45; color: var(--fg-2); }
.district__copy strong { color: var(--ink); font-weight: 600; }
.district__figure { margin-top: clamp(64px, 9vw, 128px); position: relative; }
.district__figure .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8.5; background: #b9825d; box-shadow: 0 40px 80px -40px rgba(20, 59, 55, 0.55); }
.district__figure img { width: 100%; height: 100%; object-fit: cover; }
.district__figure figcaption { position: absolute; left: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); }
.loop-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(64px, 9vw, 120px); padding: 0; list-style: none; counter-reset: step; }
.loop-steps li { position: relative; padding-top: 30px; font-size: var(--step-1); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.loop-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--font-plate); font-size: 0.9rem; letter-spacing: 0.12em; color: var(--mint-dark); }
.loop-steps small { display: block; margin-top: 6px; font-size: 0.95rem; font-weight: 400; color: var(--fg-2); line-height: 1.4; }

/* features (bento) ---------------------------------------------------- */
.features { overflow: hidden; }
.features__art { position: absolute; inset: 14% 0 -6%; z-index: 0; pointer-events: none; mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%); }
.features__art svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .features__art { display: none; } }
.features__art .dashes { animation: dash-crawl calc(var(--clock) * 2) linear infinite; }
.features .wrap { position: relative; z-index: 1; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(56px, 7vw, 96px); }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--cream) 9%, transparent);
  background: color-mix(in oklab, var(--deep) 58%, transparent);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(9, 34, 32, 0.9);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  text-align: left;
}
.card:hover, .card:focus-within { border-color: color-mix(in oklab, var(--cream) 24%, transparent); box-shadow: 0 44px 80px -40px rgba(9, 34, 32, 1); background: color-mix(in oklab, var(--deep) 70%, transparent); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--shadow); }
.card__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card__media > *, .card:focus-within .card__media > * { transform: scale(1.035); }
.card__media video { opacity: 0; transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.card__media video.is-playing { opacity: 1; }
.card__body { display: grid; gap: 12px; padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px) clamp(24px, 2.6vw, 34px); }
.card__body p { color: var(--fg-2); line-height: 1.5; text-wrap: pretty; max-width: 52ch; }
.card__body h3 { color: var(--cream); }
.card--wide { grid-column: span 8; grid-row: span 2; }
.card--wide .card__media { aspect-ratio: 16 / 9; flex: 1; }
.card--tall { grid-column: span 4; grid-row: span 2; }
.card--tall .card__media { aspect-ratio: 3 / 4; flex: 1; }
.card--third { grid-column: span 4; }
.card--third .card__media { aspect-ratio: 16 / 10; }
.card__expand { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__expand:focus-visible { outline-offset: -3px; }
.card .plate { position: absolute; z-index: 3; top: 14px; left: 14px; }
/* day → night: two real renders of the same shelter from the same camera, crossfaded */
.daynight picture:last-child img { animation: daynight 14s ease-in-out infinite; }
@keyframes daynight { 0%, 30% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1080px) {
  .card--wide, .card--tall, .card--third { grid-column: span 6; }
  .card--wide { grid-row: auto; } .card--tall { grid-row: auto; }
  .card--tall .card__media { aspect-ratio: 16 / 12; }
}
@media (max-width: 640px) {
  .card--wide, .card--tall, .card--third { grid-column: span 12; }
  .card--tall .card__media { aspect-ratio: 4 / 3; }
}

/* road: contracts + locals ------------------------------------------- */
.road .section-head h2 { max-width: 20ch; }
.contracts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: clamp(56px, 7vw, 96px); }
.contracts > div { padding-top: 26px; }
.contracts dt { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.contracts dd { margin: 10px 0 0; color: var(--cream); line-height: 1.45; text-wrap: pretty; }
.locals { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(96px, 12vw, 160px); }
.locals__figure { position: relative; border-radius: var(--radius); overflow: hidden; background: #b6714f; aspect-ratio: 21 / 19; box-shadow: 0 40px 80px -40px rgba(9, 34, 32, 0.8); }
.locals__figure img { width: 100%; height: 100%; object-fit: cover; }
.locals__figure figcaption { position: absolute; left: 16px; bottom: 16px; }
.locals__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px) clamp(24px, 3vw, 44px); padding: 0; margin: 0; list-style: none; }
.locals__list li { padding-top: 24px; }
.locals__list h3 { font-size: var(--step-1); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.locals__list h3 small { font-family: var(--font-plate); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); font-weight: 600; }
.locals__list p { margin-top: 8px; color: var(--cream); line-height: 1.45; text-wrap: pretty; }
.locals__head { grid-column: 1 / -1; margin-bottom: 8px; }
@media (max-width: 1080px) { .contracts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .locals { grid-template-columns: 1fr; } .locals__figure { aspect-ratio: 16 / 11; } }
@media (max-width: 560px) { .contracts { grid-template-columns: 1fr; } .locals__list { grid-template-columns: 1fr; } }

/* captures ------------------------------------------------------------- */
.captures .section-head h2 { max-width: 18ch; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 880px); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(48px, 6vw, 80px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 12px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--shadow); aspect-ratio: 16 / 9; }
.strip figure > button { position: absolute; inset: 0; width: 100%; height: 100%; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter 900ms var(--ease); }
.strip figure:hover img { transform: scale(1.025); }
.strip figcaption { position: absolute; left: 16px; bottom: 16px; pointer-events: none; }
.strip__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.strip__nav button { width: 48px; height: 48px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--cream) 22%, transparent); display: grid; place-items: center; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.strip__nav button { position: relative; }
.strip__nav button::after { content: ""; position: absolute; inset: -4px 0 -6px; }
.strip__nav button:hover { background: color-mix(in oklab, var(--cream) 10%, transparent); border-color: color-mix(in oklab, var(--cream) 50%, transparent); transform: translateY(-2px); }
.strip__nav svg { width: 18px; height: 18px; }
.provenance { margin-top: 28px; max-width: 70ch; font-size: 0.95rem; color: var(--fg-2); }

/* play ----------------------------------------------------------------- */
.play { overflow: hidden; }
.play__art { position: absolute; inset: -20% -10% 0 -10%; z-index: 0; opacity: 0.6; pointer-events: none; mask-image: linear-gradient(to right, transparent 34%, #000 68%), linear-gradient(to bottom, #000 72%, transparent 100%); mask-composite: intersect; -webkit-mask-image: linear-gradient(to right, transparent 34%, #000 68%), linear-gradient(to bottom, #000 72%, transparent 100%); -webkit-mask-composite: source-in; }
.play__art svg { width: 100%; height: 100%; }
.play .wrap { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; }
.play h2 { font-size: var(--step-4); }
.play .lede { max-width: 52ch; }
.play__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.play__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--fg-2); max-width: 44rem; }
.play__facts li { display: inline-flex; align-items: center; gap: 8px; }
.play__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--amber); }

/* footer --------------------------------------------------------------- */
.site-foot { background: var(--shadow); padding-block: clamp(72px, 8vw, 120px) 40px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.studio { display: grid; gap: 14px; }
.studio__mark { width: 84px; color: var(--cream); }
.studio__name { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.studio__tag { color: var(--fg-2); font-size: var(--step-1); }
.foot-links { display: grid; gap: 10px; text-align: right; font-size: 0.95rem; }
.smallprint { margin-top: 56px; padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 0.82rem; color: color-mix(in oklab, var(--cream) 52%, transparent); }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } .foot-links { text-align: left; } }
/* the star comes apart; one particle goes the wrong way */
.studio__mark rect { transform-box: fill-box; transform-origin: center; animation: drift 9s var(--ease) infinite; }
.studio__mark rect:nth-of-type(2) { animation-delay: -1.5s; } .studio__mark rect:nth-of-type(3) { animation-delay: -3s; }
.studio__mark rect:nth-of-type(4) { animation-delay: -4.5s; } .studio__mark rect:nth-of-type(5) { animation-delay: -6s; } .studio__mark rect:nth-of-type(6) { animation-delay: -7.5s; }
.studio__mark rect.wrong { animation: wrong 9s var(--ease) infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.5px, 2.5px); } }
@keyframes wrong { 0%, 100% { transform: translate(0, 0); opacity: 1; } 45% { transform: translate(-3px, -9px); opacity: 1; } 60% { transform: translate(-3px, -11px); opacity: 0; } 70% { transform: translate(0, 4px); opacity: 0; } }

/* dialogs -------------------------------------------------------------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--cream); max-width: min(96vw, 1600px); max-height: 96vh; overflow: visible; }
dialog::backdrop { background: rgba(9, 34, 32, 0.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog[open] { animation: dialog-in var(--dur) var(--ease); }
dialog[open]::backdrop { animation: fade-in var(--dur) var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dialog__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--shadow); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8); border: 1px solid color-mix(in oklab, var(--cream) 12%, transparent); }
.dialog__frame video, .dialog__frame img { width: min(96vw, 1600px); max-height: 84vh; height: auto; object-fit: contain; aspect-ratio: 16 / 9; background: var(--shadow); }
.dialog__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 14px 18px; font-size: 0.92rem; color: var(--fg-2); }
.dialog__caption span:first-child { color: var(--cream); font-weight: 500; white-space: nowrap; }
.dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--deep) 70%, transparent); border: 1px solid color-mix(in oklab, var(--cream) 18%, transparent); backdrop-filter: blur(10px); transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dialog__close:hover { background: var(--cream); color: var(--shadow); transform: rotate(90deg); }
.dialog__close svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ motion */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.parallax { will-change: transform; }
@supports (animation-timeline: view()) {
  html.js .parallax { animation: parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes parallax { from { transform: translateY(calc(var(--p, 8%) * -1)); } to { transform: translateY(var(--p, 8%)); } }
}
@media (max-width: 1080px) {
  .district__grid { grid-template-columns: 1fr; }
  .loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero__scrim { background: linear-gradient(to top, rgba(9, 34, 32, 0.97) 0%, rgba(9, 34, 32, 0.9) 34%, rgba(9, 34, 32, 0.62) 58%, rgba(9, 34, 32, 0.22) 78%, rgba(9, 34, 32, 0.08) 100%); }
}
@media (max-width: 560px) {
  .loop-steps { grid-template-columns: 1fr; }
  .hero__cue { display: none; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .fold, .hero__cue::before, .studio__mark rect, .daynight picture:last-child img, .features__art .dashes, dialog[open], dialog[open]::backdrop { animation: none !important; }
  .daynight picture:last-child img { opacity: 0; }
  html.js .parallax { animation: none; }
  .card:hover .card__media > * { transform: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
@media (min-width: 2200px) {
  :root { --gutter: clamp(72px, 6vw, 160px); }
  .hero__title { font-size: clamp(11.5rem, 8vw, 15rem); }
}
@media print { .site-head, .hero__media video, .fold, .hero__cue, dialog { display: none !important; } body { background: #fff; color: #000; } }

/* play-section road: the dashes share the crawl clock */
.play__art .dashes { animation: dash-crawl calc(var(--clock) * 2) linear infinite; }
@keyframes dash-crawl { to { stroke-dashoffset: -80; } }
@media (prefers-reduced-motion: reduce) { .play__art .dashes { animation: none; } }

@media (max-width: 1080px) {
  .play__art { inset: auto -20% 0 -20%; height: 46%; mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 78%, transparent 100%); }
  .play .wrap { padding-bottom: 32vw; }
}

/* ------------------------------------------------------------------ waitlist form */
.dialog__frame--form { width: min(94vw, 680px); padding: clamp(24px, 4vw, 44px); }
.waitlist__title { font-size: var(--step-3); letter-spacing: -0.035em; max-width: 14ch; }
.waitlist__lede { margin-top: 14px; max-width: 52ch; color: var(--fg-2); line-height: 1.5; text-wrap: pretty; }
.waitlist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 28px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 0.92rem; font-weight: 500; color: var(--cream); padding: 0; }
.field > span em, .field > legend em { font-style: normal; color: var(--fg-2); font-weight: 400; }
.field--wide { grid-column: 1 / -1; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px;
  font: inherit; color: var(--cream); caret-color: var(--amber);
  background: color-mix(in oklab, var(--shadow) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--cream) 16%, transparent);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field input:hover, .field textarea:hover { border-color: color-mix(in oklab, var(--cream) 30%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in oklab, var(--amber) 28%, transparent); }
.field input::placeholder { color: color-mix(in oklab, var(--cream) 45%, transparent); }
.field--choice { display: grid; grid-template-columns: 1fr; }
.field--choice legend { margin-bottom: 8px; }
.field--choice > label { display: inline-flex; }
.field--choice { grid-auto-flow: row; }
.field--choice > legend + label, .field--choice > label { }
.field--choice { position: relative; }
.field--choice > label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field--choice > label span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 8px; border: 1px solid color-mix(in oklab, var(--cream) 16%, transparent);
  background: color-mix(in oklab, var(--shadow) 70%, transparent); font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.field--choice > label:hover span { border-color: color-mix(in oklab, var(--cream) 34%, transparent); }
.field--choice > label input:checked + span { background: var(--mint); color: var(--shadow); border-color: var(--mint); }
.field--choice > label input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.field--choice { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.field--choice > legend { flex-basis: 100%; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.waitlist__status { min-height: 1.4em; margin-top: 18px; color: var(--amber); font-weight: 500; }
.waitlist__status:empty { display: none; }
.waitlist__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.waitlist__fine { font-size: 0.88rem; color: var(--fg-2); }
.waitlist.is-busy .btn { opacity: 0.6; pointer-events: none; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--canyon); }
@media (max-width: 560px) { .waitlist__grid { grid-template-columns: 1fr; } .dialog__frame--form .btn { width: auto; } }

/* Production refinement: readable first paint, comfortable forms and honest media. */
html.js .hero .reveal { opacity: 1; transform: none; }
.hero { min-height: 100svh; }
.hero__meta { color: var(--cream); }
.dialog__frame--form { max-height: 90svh; overflow-y: auto; }
.dialog__frame--form .dialog__close { position: sticky; float: right; top: 0; margin: -8px -8px 4px 12px; }
.waitlist__fine a { text-decoration: underline; text-underline-offset: .2em; }
.positions__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.positions h2 { margin-bottom: 24px; }
.positions p { max-width: 52ch; margin-bottom: 22px; line-height: 1.6; }
.positions dl { margin: 28px 0; }
.positions dt { font-size: 1.3rem; font-weight: 600; margin-top: 20px; }
.positions dd { margin: 8px 0 0; max-width: 48ch; line-height: 1.5; }
.positions figure { margin: 0; }
.positions img { border-radius: 12px; width: 100%; }
.positions figcaption { margin-top: 14px; }
.strip button { display: block; width: 100%; padding: 0; }
button:disabled { cursor: wait; opacity: .65; }
@media(max-width: 900px) { .positions__grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { html.js .reveal { opacity:1; transform:none; } }
.motion-toggle { position: absolute; right: var(--gutter); bottom: 20px; padding: 10px 14px; font-size: .8rem; color: var(--cream); background: var(--deep); border: 1px solid var(--mint-dark); border-radius: 8px; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .parallax { transform: none !important; }
.positions figure > button { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; }
.positions figure > button img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Current alpha: field journal, art studies and practical onboarding. */
.eyebrow { font-size: .78rem; letter-spacing: .14em; font-weight: 600; margin-bottom: 22px; }
.fieldwork h2, .concepts h2 { max-width: 20ch; }
.fieldwork__grid { display:grid; grid-template-columns: .8fr 1.2fr; align-items:center; gap:clamp(28px,6vw,88px); margin-top:64px; }
.fieldwork__grid--reverse { grid-template-columns:1.2fr .8fr; margin-top:100px; }
.fieldwork h3 { font-size:clamp(1.7rem,3vw,2.8rem); line-height:1.1; margin-bottom:22px; }
.fieldwork p { line-height:1.65; max-width:60ch; margin-top:16px; }
.fieldwork figure, .concepts figure { margin:0; min-width:0; }
.fieldwork figure button, .concepts figure button { display:block; padding:0; width:100%; background:transparent; }
.fieldwork img, .concepts img { display:block; width:100%; height:auto; border-radius:8px; }
.fieldwork figcaption, .concepts figcaption { font-size:.85rem; line-height:1.5; margin-top:14px; }
.research-note { margin-top:64px; padding-top:32px; border-top:1px solid #427f7066; display:flex; gap:32px; align-items:center; }
.research-note p { margin:0; }
.concept-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:32px; align-items:start; }
.concept-disclosure { max-width:72ch; margin-top:24px; border-left:3px solid var(--mint-dark); padding-left:18px; line-height:1.6; }
.text-link { display:inline-block; margin-top:32px; text-decoration:underline; text-underline-offset:5px; }
.faq .wrap { max-width:1040px; }
.faq h2 { margin-bottom:40px; }
.faq details { border-top:1px solid #427f7066; padding:24px 0; }
.faq summary { cursor:pointer; font-size:1.3rem; font-weight:600; padding-right:20px; }
.faq details p { max-width:70ch; line-height:1.7; margin-top:18px; }
.faq a { text-decoration:underline; }
@media(max-width:800px) { .fieldwork__grid, .fieldwork__grid--reverse, .concept-grid { grid-template-columns:1fr; gap:28px; } .research-note { display:block; } .research-note p { margin-top:24px; } .fieldwork__grid--reverse figure { order:2; } }
.concepts .section-head { margin-bottom:40px; }
/* Keep the whole current capture visible; do not crop away scene context. */
.locals__figure { aspect-ratio:16 / 9; }
.locals__figure picture { display:block; }

/* Platform preview: device pictograms are original; Tux is credited separately. */
.compatibility__intro { display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(28px,6vw,96px); align-items:end; }
.compatibility__intro > p { max-width:48ch; font-size:1.15rem; line-height:1.65; }
.platform-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; margin:56px 0 0; list-style:none; border-block:1px solid color-mix(in oklab,var(--ink) 24%,transparent); }
.platform-list > li { display:flex; align-items:center; gap:24px; padding:32px 24px; }
.platform-list > li + li { border-left:1px solid color-mix(in oklab,var(--ink) 24%,transparent); }
.platform-icon { flex:none; width:48px; height:48px; }
.platform-icon--tux { object-fit:contain; }
.platform-list h3 { font-size:1.7rem; line-height:1.1; }
.platform-list p { margin:6px 0 12px; }
.platform-status { font-size:.8rem; letter-spacing:.07em; text-transform:uppercase; font-weight:600; }
.dedicated-strip { display:grid; grid-template-columns:48px 1fr auto; gap:24px; align-items:center; padding:38px 24px; background:color-mix(in oklab,var(--mint) 22%,transparent); border-bottom:1px solid color-mix(in oklab,var(--ink) 24%,transparent); }
.dedicated-strip .eyebrow { margin-bottom:12px; font-size:.75rem; }
.dedicated-strip h3 { font-size:clamp(1.5rem,2.4vw,2rem); line-height:1.15; }
.dedicated-strip p:last-child { max-width:65ch; line-height:1.6; margin-top:12px; }
.dedicated-strip a { font-weight:600; text-underline-offset:5px; }
.compatibility__note { max-width:100ch; font-size:.9rem; line-height:1.6; margin-top:24px; }
.hero__meta a { text-decoration:underline; text-underline-offset:4px; }
.credits-page { max-width:850px; }
.credits-page h1 { font-size:clamp(2.5rem,6vw,4.5rem); margin:48px 0 32px; }
.credits-page h2 { margin:40px 0 16px; font-size:2rem; }
.credits-page p { margin:16px 0; line-height:1.7; }
@media(max-width:800px) {
 .compatibility__intro { grid-template-columns:1fr; }
 .platform-list > li { padding:24px 12px; gap:16px; flex-direction:column; align-items:flex-start; }
 .platform-list h3 { font-size:1.4rem; }
 .platform-status { font-size:.7rem; letter-spacing:.02em; }
 .dedicated-strip { grid-template-columns:40px 1fr; padding:28px 16px; gap:20px; }
 .dedicated-strip > a { grid-column:2; }
 .dedicated-strip > .platform-icon { width:40px; }
}
@media(max-width:420px) {
 .platform-list { grid-template-columns:1fr; }
 .platform-list > li { flex-direction:row; align-items:center; padding:22px 8px; gap:24px; }
 .platform-list > li + li { border-left:0; border-top:1px solid color-mix(in oklab,var(--ink) 16%,transparent); }
 .platform-list p { margin:5px 0; }
}
