/* IRONLINE — ironlinegame.com
   Palette is the game's own :root (src/ui/style.css): paper, ink, rust accent.
   Type is the game's: Archivo for the name and headings, JetBrains Mono for labels. */
:root {
  --paper: #ece6da;
  --paper-2: #e2dbcc;
  --paper-3: #f5f0e5;
  --ink: #1c1c1a;
  --ink-2: #4a4740;
  --ink-3: #6e695e;
  --hair: rgba(28, 28, 26, .16);
  --rust: #c4552e;
  --rust-btn: #b54d28;
  --rust-ink: #9c3d1f;
  --gold: #b98a1e;
  --night: #121d26;
  --night-2: #1b2a36;
  --cream: #f3ecdd;
  --gutter: clamp(16px, 4.2vw, 72px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) url(/img/paper.webp) repeat;
  background-size: 640px;
  color: var(--ink);
  font: 400 18px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- shared pieces ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--rust-ink);
  margin-bottom: clamp(16px, 2vw, 24px);
}
.kicker::before { content: ""; width: 28px; height: 6px; background:
  linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat,
  linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat,
  repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5px) 0 50% / 100% 100% no-repeat; opacity: .9; }
h2 {
  font: 800 clamp(38px, 5.4vw, 92px)/.96 var(--display); font-stretch: 112%;
  letter-spacing: -.025em; max-width: 15ch; text-wrap: balance;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--display); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-rust { background: var(--rust-btn); color: #fffaf0; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -10px rgba(120, 40, 10, .7); }
.btn-rust:hover { background: #a3431f; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper-3); }
.btn-ink:hover { background: #33312c; transform: translateY(-1px); }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper-3);
  color: var(--ink); font: 400 20px/1 var(--display); cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s, transform .2s var(--ease);
}
.round:hover { background: #fff; transform: translateY(-1px); }

/* reveal on scroll: only once JS is running, and never for reduced motion */
.js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal]:not(.in) { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background-color .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(236, 230, 218, .88); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--hair); }
.nav.dark { background: rgba(18, 29, 38, .86); box-shadow: 0 1px 0 rgba(243, 236, 221, .12); }
.nav.dark .nav-brand, .nav.dark .nav-links a { color: var(--cream); }
.nav.dark .nav-menu summary span { background: var(--cream); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.nav-brand .mark { width: 26px; height: 26px; }
.nav-word { font: 800 17px/1 var(--display); letter-spacing: .1em; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 8px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-menu-panel { position: absolute; right: 0; top: 52px; min-width: 220px; padding: 10px; border-radius: 14px; background: var(--paper-3); box-shadow: 0 20px 50px -20px rgba(28, 22, 12, .5), 0 0 0 1px var(--hair); display: grid; }
.nav-menu-panel a { padding: 12px 14px; text-decoration: none; font: 700 15px/1 var(--display); border-radius: 8px; }
.nav-menu-panel a:hover { background: var(--paper-2); }
.nav-rail { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-rail i { display: block; height: 100%; width: calc(var(--sp, 0) * 100%); background: var(--rust); }
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav { gap: 8px; }
}
@media (max-width: 380px) { .nav-word { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.hero-stage {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--paper) url(/img/paper.webp) repeat; background-size: 640px;
}
.js .hero { height: 300svh; margin-bottom: -100svh; }
.js .hero-stage { position: sticky; top: 0; }
.hero-art {
  position: absolute; left: 0; right: 0; margin: 0;
  top: max(calc(100svh - 100vw * 0.3229), calc(var(--nav-h) + 300px));
  height: calc(100vw * 0.3229);
  transform-origin: 50% 50%;
  transform: translateY(calc(var(--p, 0) * var(--dy, 0) * 1px)) scale(calc(1 + var(--p, 0) * (var(--S, 1) - 1)));
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
}
.hero-art { background: var(--paper) url(/img/paper.webp) repeat; background-size: 640px; }
.hero-art picture { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-ink img { mix-blend-mode: multiply; }
.hero-ink { display: none; }
.js .hero-ink { display: block; }

@property --rv { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
.js .hero-colour {
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--rv) - 18%), transparent var(--rv));
  mask-image: linear-gradient(100deg, #000 calc(var(--rv) - 18%), transparent var(--rv));
  animation: reveal 3s cubic-bezier(.55, .05, .3, 1) 1.7s both;
}
@keyframes reveal { from { --rv: 0%; } to { --rv: 130%; } }
.hero-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.js .hero-line { display: block; }
.hero-line path { fill: none; vector-effect: non-scaling-stroke; }
.hero-line .rails { stroke: var(--rust); stroke-width: 3px; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6, .1, .3, 1) .35s forwards, fadeout .8s ease 3.6s forwards; }
.hero-line .sleepers { stroke: var(--rust); stroke-width: 9px; stroke-dasharray: 2 12; opacity: 0; animation: fadein .6s ease 1.5s forwards, fadeout .8s ease 3.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: .8; } }
@keyframes fadeout { to { opacity: 0; } }

.hero-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to top, rgba(16, 12, 8, .62), rgba(16, 12, 8, 0) 46%); }
.hero-copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(12px, 4.5vh, 64px));
  display: grid; justify-items: center; text-align: center; padding: 0 var(--gutter);
  transform: translateY(calc(var(--p, 0) * -12vh)); opacity: calc(1 - var(--p, 0) * 2.4);
}
.hero-kicker { margin-bottom: clamp(10px, 2vh, 22px); }
.hero-kicker::after { content: ""; width: 28px; height: 6px; background: inherit; }
.lockup { display: flex; align-items: center; gap: .26em; font-size: clamp(46px, min(7.4vw, 11.5vh), 132px); line-height: 1; color: var(--ink); }
.lockup .mark { width: 1.08em; height: 1.08em; flex: none; margin-top: -.06em; }
.lockup .word { font: 800 1em/1 var(--display); letter-spacing: .05em; margin-right: -.05em; }
.hero-sub { margin-top: clamp(14px, 2.4vh, 26px); font: 500 clamp(18px, 1.6vw, 24px)/1.35 var(--display); color: var(--ink-2); max-width: 34ch; text-wrap: balance; }
.hero-cta { margin-top: clamp(18px, 3.4vh, 36px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.steam-tag { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.steam-tag svg { width: 12px; height: 12px; color: var(--rust); }
.hero-card {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 8vh, 88px); max-width: 17ch;
  font: 800 clamp(26px, 3.2vw, 52px)/1.04 var(--display); font-stretch: 108%; letter-spacing: -.02em; color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); display: none; opacity: 0;
}
.hero-card .mono { display: block; font-size: 13px; letter-spacing: .24em; font-weight: 700; margin-bottom: 14px; color: #f6c48a; }
.js .hero-card { display: block; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border-radius: 13px; border: 1.5px solid rgba(28, 28, 26, .55); opacity: calc(1 - var(--p, 0) * 5); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 810px) {
  .hero-art { inset: 0; top: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { object-position: 50% 52%; }
  .hero-stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(236, 230, 218, .95) 0, rgba(236, 230, 218, .8) 45%, rgba(236, 230, 218, 0)); opacity: calc(1 - var(--p, 0) * 1.8); }
  .hero-copy { z-index: 2; }
  .js .hero-colour {
    -webkit-mask-image: linear-gradient(to top, #000 calc(var(--rv) - 18%), transparent var(--rv));
    mask-image: linear-gradient(to top, #000 calc(var(--rv) - 18%), transparent var(--rv));
    animation-delay: .9s;
  }
  .js .hero-line { display: none; }
  .js .hero { height: 280svh; margin-bottom: -100svh; }
  .lockup { font-size: clamp(40px, 13vw, 76px); }
  .hero-cta { gap: 12px; flex-direction: column; }
  .steam-tag { background: rgba(245, 240, 229, .9); padding: 8px 12px; border-radius: 999px; }
  .hero-card { z-index: 2; }
  .hero-shade { z-index: 1; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero { height: 100svh; margin-bottom: 0; }
  .js .hero-stage { position: relative; }
  .js .hero-colour { -webkit-mask-image: none; mask-image: none; animation: none; }
  .js .hero-ink, .js .hero-line, .js .hero-card { display: none; }
  .hero-art, .hero-copy { transform: none !important; opacity: 1 !important; }
  .hero-scroll span { animation: none; }
}

/* ---------- the paper sheet that slides over the hero ---------- */
.sheet { position: relative; z-index: 2; background: var(--paper) url(/img/paper.webp) repeat; background-size: 640px; }
.sheet::before {
  content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px;
  background: inherit; background-position: 0 -22px;
  -webkit-mask: url(/img/deckle.svg) 0 0 / 1200px 22px repeat-x; mask: url(/img/deckle.svg) 0 0 / 1200px 22px repeat-x;
}
.sheet::after { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; pointer-events: none; z-index: -1; background: linear-gradient(to top, rgba(20, 14, 6, .38), transparent); }

/* ---------- intro ---------- */
.intro { padding: clamp(96px, 16vh, 200px) 0 clamp(80px, 12vh, 160px); }
.intro { overflow-x: clip; }
.intro-loco { display: none; }
@media (min-width: 1100px) {
  .intro-loco { display: block; position: absolute; right: calc(var(--gutter) * -1); top: clamp(140px, 22vh, 260px); width: clamp(360px, 30vw, 560px); height: auto;
    transform: translateX(calc((1 - var(--ip, 0)) * 34vw)); filter: drop-shadow(0 26px 24px rgba(40, 26, 8, .35)); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .intro-loco { transform: none; } }
.statement {
  font: 700 clamp(30px, 4.1vw, 68px)/1.12 var(--display); font-stretch: 104%; letter-spacing: -.02em;
  max-width: 24ch; text-wrap: pretty;
}
.statement .w { transition: opacity .25s linear; }
.statement .inl { display: inline-block; height: 1.05em; width: auto; vertical-align: -.2em; margin: 0 .08em 0 .18em; filter: drop-shadow(0 6px 8px rgba(40, 28, 10, .25)); }
.facts { margin: clamp(56px, 9vh, 112px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.facts > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.facts dt { font: 800 clamp(22px, 1.9vw, 30px)/1.1 var(--display); font-stretch: 108%; letter-spacing: -.01em; }
.facts dt .mono { display: block; font-size: 12px; letter-spacing: .2em; color: var(--rust-ink); margin-bottom: 14px; font-weight: 700; }
.facts dd { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; max-width: 34ch; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { position: relative; z-index: 2; padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 14vh, 180px); }
.sec-head { margin-bottom: clamp(48px, 8vh, 110px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.sec-aside { max-width: 34ch; color: var(--ink-2); font-size: 17px; }
.feat {
  display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(28px, 5vw, 96px); align-items: center;
  padding: clamp(36px, 7vh, 96px) 0; border-top: 1px solid var(--hair);
}
.feat:nth-of-type(even) { grid-template-columns: minmax(0, 7.8fr) minmax(0, 4.2fr); }
.feat:nth-of-type(even) .feat-text { order: 2; }
.feat-no { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust-ink); margin-bottom: 18px; }
.feat h3 { font: 800 clamp(30px, 3.3vw, 54px)/1 var(--display); font-stretch: 110%; letter-spacing: -.022em; margin-bottom: 20px; text-wrap: balance; }
.feat-text p:not(.feat-no) { color: var(--ink-2); font-size: clamp(17px, 1.25vw, 19px); max-width: 40ch; }
.feat-media { margin: 0; position: relative; }
.feat-media picture { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -36px rgba(40, 26, 8, .55), 0 0 0 1px rgba(28, 28, 26, .08); }
.feat-media img { object-fit: cover; transform: translateY(calc(var(--py, 0) * 1px)) scale(1.1); will-change: transform; }
.feat-media figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.js .feat[data-reveal] { opacity: 1; transform: none; }
.js .feat .feat-media picture { transition: clip-path 1.2s var(--ease); }
.js .feat:not(.in) .feat-media picture { clip-path: inset(6% 6% 6% 6% round 6px); }
.js .feat .feat-text { transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.js .feat:not(.in) .feat-text { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js .feat:not(.in) .feat-media picture { clip-path: none; }
  .js .feat:not(.in) .feat-text { opacity: 1; transform: none; }
  .feat-media img { transform: none; }
}
@media (max-width: 900px) {
  .feat, .feat:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; }
  .feat:nth-of-type(even) .feat-text { order: 0; }
  .feat-media { order: -1; }
}

/* the features read as stations on one line */
@media (min-width: 1000px) {
  .features .wrap { position: relative; }
  .features .wrap::before { content: ""; position: absolute; left: calc(var(--gutter) * .42); top: 0; bottom: 0; width: 2px;
    background: linear-gradient(var(--rust) 0 0) 0 0 / 100% calc(var(--fp, 0) * 100%) no-repeat, repeating-linear-gradient(var(--ink-3) 0 6px, transparent 6px 12px); opacity: .7; }
  .feat { position: relative; }
  .feat::before { content: ""; position: absolute; left: calc(var(--gutter) * -.58 + 1px); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper-3); border: 2px solid var(--ink-3); transition: background-color .4s, border-color .4s, transform .4s var(--ease); }
  .feat.in::before { background: var(--rust); border-color: var(--rust); transform: scale(1.15); }
}

/* ---------- eras ---------- */
.eras { position: relative; z-index: 2; color: var(--cream); background: var(--night) url(/img/paper-dark.webp) repeat; background-size: 640px; }
.eras-stage { padding: clamp(80px, 12vh, 140px) 0 clamp(64px, 10vh, 120px); }
.eras-head { padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vh, 56px); max-width: 1640px; margin-inline: auto; }
.eras .kicker { color: #e9a77f; }
.eras h2 { color: var(--cream); }
.eras-note { margin-top: 16px; color: rgba(243, 236, 221, .66); font-size: 16px; max-width: 52ch; }
.eras-track { display: grid; gap: clamp(56px, 9vh, 96px); padding: 0 var(--gutter); max-width: 1640px; margin: 0 auto; }
.era { margin: 0; }
.era picture { aspect-ratio: 2160 / 728; overflow: hidden; border-radius: 6px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.era picture img { object-fit: cover; }
.era-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(18px, 3vh, 30px); }
.era-year { grid-row: span 4; font: 800 clamp(56px, 7.4vw, 128px)/.84 var(--display); font-stretch: 118%; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px #e9b77f; }
.era h3 { font: 800 clamp(22px, 2vw, 32px)/1.1 var(--display); font-stretch: 108%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.era h3 .mono { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: #e9a77f; text-transform: uppercase; }
.era-text > p:not(.era-year) { color: rgba(243, 236, 221, .78); font-size: 16px; margin-top: 10px; max-width: 62ch; }
.era-text > .era-q { color: var(--cream); font: 600 clamp(17px, 1.3vw, 20px)/1.35 var(--display); font-style: italic; }
.era-text > .era-stock { font-size: 11.5px; letter-spacing: .08em; color: rgba(243, 236, 221, .55); }
.eras-rail { display: none; }
@media (max-width: 899px) {
  .era-text { grid-template-columns: 1fr; }
  .era-year { grid-row: auto; font-size: clamp(56px, 18vw, 96px); margin-bottom: 10px; }
}

@media (min-width: 900px) {
  .js .eras { height: var(--eras-h, auto); }
  .js .eras-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: calc(var(--nav-h) + clamp(16px, 4vh, 48px)) 0 0; display: flex; flex-direction: column; }
  .js .eras-head { margin: 0 0 clamp(16px, 3vh, 32px); width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; gap: 24px; }
  .js .eras-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .js .eras h2 { font-size: clamp(34px, min(4vw, 6.4vh), 72px); max-width: 20ch; }
  .js .eras-note { margin: 0 0 6px; }
  .js .eras-track {
    display: flex; gap: clamp(32px, 4vw, 72px); max-width: none; margin: 0; width: max-content;
    transform: translateX(calc(var(--p, 0) * var(--tx, 0) * -1px)); will-change: transform;
  }
  .js .era { width: min(72vw, calc((100svh - 420px) * 2.97), 1200px); flex: none; }
  .js .era-year { font-size: clamp(56px, min(6.4vw, 10vh), 116px); }
  .js .era-text { grid-template-columns: auto minmax(0, 1fr); }
  .js .era-text > p:not(.era-year) { font-size: 15px; margin-top: 6px; }
  .js .eras-rail { display: block; margin-top: auto; padding: 0 var(--gutter) clamp(18px, 3.5vh, 36px); }
  .eras-rail-track { position: relative; height: 10px; margin-bottom: 10px;
    background: linear-gradient(rgba(243,236,221,.35), rgba(243,236,221,.35)) 0 0 / 100% 1px no-repeat,
                linear-gradient(rgba(243,236,221,.35), rgba(243,236,221,.35)) 0 100% / 100% 1px no-repeat,
                repeating-linear-gradient(90deg, rgba(243,236,221,.3) 0 2px, transparent 2px 12px); }
  .eras-rail-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(#e9a77f, #e9a77f) 0 0 / 100% 2px no-repeat, linear-gradient(#e9a77f, #e9a77f) 0 100% / 100% 2px no-repeat; }
  .eras-rail-mark { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--cream); }
  .eras-rail-years { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: rgba(243, 236, 221, .7); }
  .eras-rail-years li:last-child { display: none; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .js .eras { height: auto; }
  .js .eras-stage { position: relative; height: auto; overflow: visible; display: block; padding-bottom: 120px; }
  .js .eras-track { display: grid; transform: none; width: auto; max-width: 1640px; margin: 0 auto; }
  .js .era { width: auto; }
  .js .eras-rail { display: none; }
@media (max-width: 899px) {
  .era-text { grid-template-columns: 1fr; }
  .era-year { grid-row: auto; font-size: clamp(56px, 18vw, 96px); margin-bottom: 10px; }
}
}

/* ---------- screenshots ---------- */
.screens { position: relative; z-index: 2; padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 12vh, 140px); }
.shots {
  list-style: none; margin: 0; padding: 0 var(--gutter) 12px; display: flex; gap: clamp(12px, 1.4vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(28, 28, 26, .35) transparent;
}
.shots li { flex: 0 0 min(56vw, 960px); scroll-snap-align: start; }
.shots a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -32px rgba(40, 26, 8, .6), 0 0 0 1px rgba(28, 28, 26, .08); cursor: zoom-in; }
.shots picture { aspect-ratio: 16 / 9; }
.shots img { object-fit: cover; transition: transform .8s var(--ease); }
.shots a:hover img { transform: scale(1.025); }
.shots-ctrl { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 900px) { .shots li { flex-basis: 86vw; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 10, 8, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(94vw, 1920px); max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.lightbox .round { position: fixed; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* ---------- notify ---------- */
.notify { position: relative; z-index: 2; min-height: clamp(600px, 92vh, 900px); display: grid; place-items: center; overflow: hidden; padding: 120px var(--gutter); }
.notify-bg { position: absolute; inset: 0; }
.notify-bg img { object-fit: cover; }
.notify-inner { position: relative; max-width: 600px; text-align: center; display: grid; justify-items: center; }
.notify h2 { max-width: 13ch; font-size: clamp(36px, 4.4vw, 72px); }
.notify-lede { margin-top: 20px; color: var(--ink-2); font-size: 19px; max-width: 38ch; }
.notify-inner > p .btn { margin-top: 24px; }
.notify-form { margin-top: 32px; width: 100%; max-width: 520px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 252, 244, .86); box-shadow: 0 0 0 1px rgba(28, 28, 26, .14), 0 24px 50px -30px rgba(60, 36, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.notify-form input[type=email] { min-width: 0; height: 54px; border: 0; background: transparent; padding: 0 18px; font: 500 17px/1 var(--display); color: var(--ink); border-radius: 999px; }
.notify-form input[type=email]:focus { outline: none; }
.notify-form:focus-within { box-shadow: 0 0 0 2px var(--rust), 0 24px 50px -30px rgba(60, 36, 10, .55); }
.notify-status { grid-column: 1 / -1; font: 600 15px/1.4 var(--display); padding: 0 18px; min-height: 0; }
.notify-status:empty { display: none; }
.notify-status.ok { color: #3f5d2c; padding-bottom: 8px; }
.notify-status.err { color: #9c2f1f; padding-bottom: 8px; }
.notify-small { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  .notify-form { grid-template-columns: 1fr; border-radius: 22px; }
  .notify-form .btn { width: 100%; }
}

/* ---------- press ---------- */
.press { position: relative; z-index: 2; padding: clamp(96px, 14vh, 180px) 0; border-top: 1px solid var(--hair); }
.press-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.press-facts dl { margin: 0 0 28px; display: grid; }
.press-facts dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.press-facts dt { font: 700 12px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.press-facts dd { margin: 0; font-weight: 600; }
.press-about { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; max-width: 52ch; }
.press-about strong { color: var(--ink); }
.press-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.press-files a { display: grid; gap: 12px; text-decoration: none; font: 700 15px/1.25 var(--display); }
.press-files em { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-3); font-style: normal; margin-top: 4px; letter-spacing: .02em; }
.pf-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(28, 28, 26, .1); transition: transform .4s var(--ease), box-shadow .4s; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-light { background: var(--paper-3); padding: 0 12%; }
.pf-dark { background: var(--night); padding: 0 12%; }
.pf-light img, .pf-dark img { height: auto; object-fit: contain; }
.pf-light .pf-mark { width: 40%; }
.press-files a:hover .pf-thumb { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(28, 28, 26, .14), 0 18px 34px -20px rgba(40, 26, 8, .6); }
@media (max-width: 1000px) { .press-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .press-files { grid-template-columns: repeat(2, minmax(0, 1fr)); } .press-facts dl > div { grid-template-columns: 7rem 1fr; } }

/* ---------- faq ---------- */
.faq { position: relative; z-index: 2; padding: clamp(64px, 10vh, 140px) 0 clamp(96px, 14vh, 180px); border-top: 1px solid var(--hair); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); margin: 0; }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list details:first-child { border-top: 1px solid var(--hair); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font: 700 clamp(19px, 1.5vw, 23px)/1.3 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq .sec-head { position: static; } }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; min-height: clamp(460px, 62vh, 640px); overflow: hidden; border-top: 1px solid var(--hair); display: flex; }
.foot-bg { position: absolute; inset: auto 0 0 0; height: 100%; }
.foot-bg img { object-fit: cover; object-position: 50% 100%; }
.foot-inner { position: relative; padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(140px, 24vh, 260px); display: grid; align-content: start; gap: 32px; }
.foot-lockup { display: flex; align-items: center; gap: .26em; font-size: clamp(44px, 8vw, 140px); line-height: 1; text-decoration: none; color: var(--ink); }
.foot-lockup .mark { width: 1.08em; height: 1.08em; }
.foot-lockup .word { font: 800 1em/1 var(--display); letter-spacing: .05em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.foot-links a:hover { color: var(--rust-ink); }
.foot-legal { font-size: 13px; color: var(--ink-3); max-width: 70ch; }

/* ---------- video: the hero loop, the trailer section, the player ---------- */
.btn-ghost { background: rgba(245, 240, 229, .55); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 28, 26, .55); }
.btn-ghost:hover { background: rgba(245, 240, 229, .9); transform: translateY(-1px); }
.play-ico { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.play-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -5px 0 0 -2.5px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--paper-3); }
.play-ico-lg { width: 76px; height: 76px; background: var(--rust-btn); box-shadow: 0 14px 34px -12px rgba(90, 30, 8, .8); transition: transform .35s var(--ease); }
.play-ico-lg::after { margin: -13px 0 0 -7px; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fffaf0; }

.hero-loop { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.js .hero-loop { display: block; }
.hero-card-tag { display: none !important; }
.hero.has-video .hero-card-tag { display: block !important; }
@media (prefers-reduced-motion: reduce) { .js .hero-loop { display: none; } }

.trailer { position: relative; z-index: 2; padding: clamp(40px, 6vh, 80px) 0 clamp(72px, 12vh, 150px); }
.tr-tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(28, 28, 26, .07); box-shadow: inset 0 0 0 1px var(--hair); }
.tr-tab { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 700 14px/1 var(--display); color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; transition: background-color .25s, color .25s; }
.tr-tab .mono { font-size: 11px; letter-spacing: .1em; opacity: .7; }
.tr-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper-3); }
.tr-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #14110d; box-shadow: 0 40px 80px -40px rgba(40, 26, 8, .7), 0 0 0 1px rgba(28, 28, 26, .1); }
.tr-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.tr-poster, .tr-play { display: none; }
.js .tr-poster { display: block; position: absolute; inset: 0; }
.js .tr-poster img { object-fit: cover; transition: transform 1.2s var(--ease); }
.js .tr-play { display: grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 22px; position: absolute; inset: 0; border: 0; cursor: pointer; background: linear-gradient(to top, rgba(16, 12, 8, .55), rgba(16, 12, 8, .08) 55%); color: #fffaf0; text-align: left; }
.tr-play-text { font: 800 clamp(22px, 2.4vw, 38px)/1.05 var(--display); font-stretch: 108%; letter-spacing: -.015em; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.tr-play-text em { display: block; font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-top: 10px; color: #f6c48a; }
.tr-play:hover .play-ico-lg { transform: scale(1.08); }
.tr-frame:hover .tr-poster img { transform: scale(1.02); }
.js .tr-frame:not(.playing) .tr-video { visibility: hidden; }
.tr-frame.playing .tr-poster, .tr-frame.playing .tr-play { display: none; }
.tr-note { margin-top: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) {
  .js .tr-play { grid-auto-flow: row; justify-items: center; text-align: center; gap: 14px; }
  .play-ico-lg { width: 60px; height: 60px; }
  .play-ico-lg::after { margin: -10px 0 0 -5px; border-width: 10px 0 10px 16px; }
  .tr-tabs { width: 100%; }
  .tr-tab { flex: 1; justify-content: center; padding: 0 10px; }
}
.player { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.player::backdrop { background: rgba(10, 8, 6, .94); }
.player[open] { display: grid; place-items: center; }
.player video { width: min(94vw, calc(86vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.pl-close { position: fixed; top: 16px; right: 16px; }
.pf-video { position: relative; }
.pf-video .play-ico { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--rust-btn); }
.pf-video .play-ico::after { margin: -7px 0 0 -4px; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fffaf0; }
@media (max-width: 810px) { .hero-cta .btn { min-width: 220px; } }
