/* ============================================================
   ATRA PLAGA — studio site
   Load order: style.css only. Dark only: the night is the brand.
   ============================================================ */

:root {
  --bg: #070708;
  --bg-2: #0e0e10;
  --bg-3: #151517;
  --ink: #ede7da;          /* bone, same family as the game's #E8E0CE */
  --ink-2: #a9a395;
  --ink-3: #6f6b62;
  --amber: #e8a23b;        /* the game's accent, rgb(224,160,64) nudged warmer */
  --amber-2: #f4bd62;
  --amber-deep: #8a5a17;
  --red: #d0503f;          /* stamp red */
  --line: rgba(237, 231, 218, .10);
  --line-2: rgba(237, 231, 218, .22);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: #120c03; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--amber); color: #120c03; padding: 10px 14px; font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── type roles ─────────────────────────────────────────── */
.mono, .label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.label { color: var(--ink-2); display: inline-flex; align-items: center; gap: 12px; }
.label__num { color: var(--amber); }
.label::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5;
}

.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0;
}
.lede { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-2); max-width: 46ch; }

/* screen-reader-only copy of split text */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* split text helpers */
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.char, .word { display: inline-block; }
.word { white-space: nowrap; }

/* ── grain + vignette over everything ───────────────────── */
.grain {
  pointer-events: none; position: fixed; inset: -8%; z-index: 90;
  width: 116%; height: 116%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07;
  animation: grain 1.2s steps(6) infinite;
}
/* the noise tile is 220px, so a jump of a few percent is a completely new pattern: the layer only
   needs a small margin, not 4x the viewport (that was ~50 MB of GPU memory on its own) */
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2.5%, -3.5%); }
  60% { transform: translate(-1.5%, 4%); } 80% { transform: translate(3.5%, 1%); } 100% { transform: translate(0, 0); }
}

/* ── scroll progress ────────────────────────────────────── */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ── custom cursor (fine pointers only, enabled by JS) ──── */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--amber); }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(237, 231, 218, .45);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.cursor__label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #120c03; opacity: 0; transition: opacity .2s;
  white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; border-color: var(--amber); background: rgba(232, 162, 59, .08); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; background: var(--amber); border-color: var(--amber); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-burn .cursor__ring { width: 120px; height: 120px; border-color: rgba(255, 140, 40, .6); background: radial-gradient(circle, rgba(255, 150, 40, .18), transparent 70%); }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }

/* ── preloader ──────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-items: center;
}
html:not(.js) .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__mark { width: 92px; height: 92px; color: var(--ink); }
.preloader__mark .ring, .preloader__mark .a { fill: none; stroke: currentColor; stroke-width: 3; }
.preloader__mark .dot { fill: var(--amber); }
.preloader__word {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(34px, 6vw, 64px); letter-spacing: .32em; text-transform: uppercase;
  padding-left: .32em; line-height: 1;
}
.preloader__meta { display: flex; gap: 22px; color: var(--ink-3); }
.preloader__count { color: var(--amber); min-width: 4ch; text-align: right; }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease);
}
/* The frosted bar is a pseudo-element whose blur radius never changes; only its opacity fades.
   Animating backdrop-filter itself re-created the blur every frame over the WebGL hero (measured: 3 long frames). */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(7, 7, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: .001; transition: opacity .4s;   /* never 0: keeps the blur layer warm, so showing it costs nothing */
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.brand__word { font-family: var(--f-display); font-weight: 900; font-stretch: 72%; font-size: 19px; letter-spacing: .2em; text-transform: uppercase; }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__link { position: relative; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; color: var(--ink-3);
  transition: color .25s, background-color .25s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: 11px; }
.btn__fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover .btn__fill { transform: translateY(0); }
.btn__arrow { width: 14px; height: 14px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.btn--primary { background: var(--amber); color: #120c03; }
.btn--primary .btn__fill { background: var(--ink); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost .btn__fill { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; }
.btn--steam .btn__icon { width: 20px; height: 20px; flex: none; }

/* toast (steam not live yet) */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, calc(100% + 60px)); visibility: hidden;
  background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .6s var(--ease), visibility 0s .6s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }

/* ── mobile menu overlay ────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__link {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(48px, 13vw, 96px); line-height: .98; display: flex; align-items: baseline; gap: 14px;
}
.menu__link small { font-family: var(--f-mono); font-size: 12px; color: var(--amber); font-weight: 500; letter-spacing: .14em; }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 62% 45%, rgba(232, 162, 59, .16), transparent 70%), var(--bg);
}
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,7,8,.55) 0%, transparent 22%, transparent 55%, rgba(7,7,8,.9) 100%); }

.hero__top {
  position: absolute; top: calc(var(--nav-h) + 26px); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2);
}
.hero__top span { display: inline-flex; gap: 10px; align-items: center; }
.hero__top .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(88px, 13vh, 150px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px;
  pointer-events: none;
}
.hero__title {
  font-size: clamp(76px, 17.5vw, 330px);
  line-height: .8;
  letter-spacing: -.02em;
}
.hero__title .line-mask { padding-bottom: .02em; }
.hero__title .row2 { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero__sub { max-width: 30ch; font-size: clamp(17px, 1.5vw, 22px); color: var(--ink); margin: 0 0 .6em; pointer-events: auto; }

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.now {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(7, 7, 8, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, background-color .3s;
}
.now:hover { border-color: var(--amber); }
.now__tag { background: var(--amber); color: #120c03; padding: 5px 10px; border-radius: 999px; }
.now__text { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.scrollcue { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); }
.scrollcue__line { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.scrollcue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amber); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* ── studio ─────────────────────────────────────────────── */
.section { position: relative; padding: clamp(110px, 16vh, 200px) 0; }
.studio__grid { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 40px; }
.manifesto {
  font-family: var(--f-display); font-weight: 600; font-stretch: 92%;
  font-size: clamp(28px, 3.7vw, 62px); line-height: 1.08; letter-spacing: -.012em; margin: 0;
}
.manifesto .word { color: var(--ink); opacity: .16; transition: none; }

.stats { margin-top: clamp(80px, 12vh, 150px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(54px, 6.6vw, 112px); line-height: .9; display: block; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; color: var(--amber); }
.stat__label { display: block; margin-top: 14px; color: var(--ink-2); }

.origin { margin-top: 70px; display: flex; gap: 18px; align-items: center; color: var(--ink-2); flex-wrap: wrap; }
.origin a { color: var(--ink); border-bottom: 1px solid var(--amber); padding-bottom: 2px; transition: color .25s; }
.origin a:hover { color: var(--amber); }

/* ── marquee ────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg); }
.marquee--amber { background: var(--amber); color: #120c03; border: 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 92px); line-height: 1; padding: 0 .35em; white-space: nowrap;
}
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1.2px currentColor; }
.marquee:not(.marquee--amber) .marquee__item.is-outline { -webkit-text-stroke-color: var(--ink); }
/* currentColor is transparent on outline text, so the stroke needs an explicit colour on amber too */
.marquee--amber .marquee__item.is-outline { -webkit-text-stroke-color: #120c03; }
.marquee__star { width: clamp(26px, 3vw, 44px); height: auto; flex: none; color: var(--amber); }
.marquee--amber .marquee__star { color: #120c03; }

/* ── game intro (pinned video reveal) ───────────────────── */
.game { position: relative; }
.gintro { position: relative; height: 100svh; overflow: hidden; }
.gintro__media {
  position: absolute; inset: 0; clip-path: inset(18% 22% 18% 22% round 28px);
  will-change: clip-path;
}
.gintro__media video, .gintro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gintro__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,8,.28) 0%, rgba(7,7,8,0) 22%, rgba(7,7,8,0) 45%, rgba(7,7,8,.82) 100%); }
.gintro__rec {
  position: absolute; top: calc(var(--nav-h) + 20px); right: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.gintro__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(48px, 9vh, 110px); }
.gintro__label { margin-bottom: 26px; }
.tcb-title { line-height: .82; }
.tcb-title .t1 { display: block; font-size: clamp(30px, 5.2vw, 92px); letter-spacing: .14em; font-weight: 800; color: var(--ink); }
.tcb-title .t2 { display: block; font-size: clamp(70px, 15.5vw, 290px); color: var(--amber); letter-spacing: -.01em; }
.gintro__rule { width: min(560px, 70%); height: 2px; background: rgba(237, 231, 218, .28); margin: 22px 0 18px; transform-origin: 0 50%; }
.gintro__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.gintro__tagline { font-family: var(--f-mono); font-size: clamp(12px, 1vw, 14px); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0; max-width: 52ch; }
.gintro__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-demo { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(232, 162, 59, .5); background: rgba(232, 162, 59, .1); padding: 4px 10px 4px 13px; margin-bottom: 16px; }

/* ── dossier ────────────────────────────────────────────── */
.dossier { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.file {
  position: relative; border: 1px solid var(--line-2); background: rgba(8, 9, 11, .86);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.file__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #1c1c1c; color: var(--amber); letter-spacing: .2em; }
.stamp {
  display: inline-block; color: var(--red); border: 2px solid rgba(208, 80, 63, .85); padding: 3px 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-3deg);
}
.stamp--big { font-size: clamp(22px, 2.6vw, 38px); border-width: 3px; padding: 6px 16px; letter-spacing: .14em; }
.file__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.file__row span:first-child { color: var(--ink-3); }
.file__row span:last-child { color: var(--ink); text-align: right; }
.file__row .is-amber { color: var(--amber); }
.file { margin-bottom: 100px; }
.file__stamp { position: absolute; right: 24px; bottom: -84px; pointer-events: none; }

.report__head { margin-bottom: 26px; }
.report__body {
  font-family: var(--f-display); font-weight: 500; font-stretch: 95%;
  font-size: clamp(22px, 2.2vw, 36px); line-height: 1.25; margin: 0; color: var(--ink);
}
.report__body .redact { position: relative; }
.report__body .redact::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: .12em; bottom: .02em; background: var(--ink);
  transform-origin: 100% 50%; transform: scaleX(var(--r, 1));
}
.report__sign { margin-top: 34px; display: flex; align-items: center; gap: 18px; color: var(--ink-3); }
.report__sign svg { width: 120px; height: 40px; color: var(--ink-2); }

/* ── horizontal gallery ─────────────────────────────────── */
.gallery { position: relative; height: 100svh; overflow: hidden; }
.gallery__head { position: absolute; top: calc(var(--nav-h) + 24px); left: var(--gutter); right: var(--gutter); z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; pointer-events: none; }
.gallery__title { font-size: clamp(36px, 4.6vw, 76px); }
.gallery__track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); padding: calc(var(--nav-h) + 110px) var(--gutter) 60px; }
.shot { position: relative; flex: none; width: clamp(300px, 58vw, 1040px); }
.shot--tall { width: clamp(260px, 36vw, 640px); }
.shot__frame { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; background: var(--bg-3); }
.shot--tall .shot__frame { aspect-ratio: 4 / 5; }
.shot__frame img, .shot__frame video { position: absolute; inset: -6% -10%; width: 120%; max-width: none; height: 112%; object-fit: cover; }
.shot__live { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(7,7,8,.7); color: var(--ink); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.shot__cap { display: flex; gap: 16px; margin-top: 16px; align-items: baseline; }
.shot__cap .mono { color: var(--amber); flex: none; }
.shot__cap p { margin: 0; color: var(--ink-2); font-size: 15px; }
.gallery__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 1px; background: var(--line); }
.gallery__bar span { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ── features ───────────────────────────────────────────── */
.feats { border-top: 1px solid var(--line); margin-top: 60px; }
.feat {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: 30px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.feat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(232,162,59,.10), transparent 70%); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.feat:hover::before { transform: scaleX(1); }
.feat__n { color: var(--amber); position: relative; }
.feat__t { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 56px); line-height: .95; margin: 0; position: relative; transition: transform .6s var(--ease); }
.feat:hover .feat__t { transform: translateX(14px); }
.feat__d { margin: 0; color: var(--ink-2); position: relative; max-width: 44ch; }

/* ── arsenal teaser ─────────────────────────────────────── */
.arsenal__title { font-size: clamp(40px, 5.2vw, 88px); }
.arsenal__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.locks { border-top: 1px solid var(--line); }
.lock {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
}
.lock__n { color: var(--ink-3); font-size: 12px; }
.lock__name { font-size: clamp(16px, 1.6vw, 22px); color: var(--ink); letter-spacing: .08em; }
.lock__name .bar { display: inline-block; height: .9em; vertical-align: -.1em; background: var(--ink); width: var(--w, 10ch); }
.lock__name .scramble { color: var(--amber); }
.lock__state { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--red); }
.lock__state svg { width: 14px; height: 14px; }
.lock--more .lock__name { color: var(--ink-3); }

/* ── hold-the-line mini game ────────────────────────────── */
.horde { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0d10; touch-action: pan-y; }
.horde__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.horde__ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) var(--gutter) 34px; }
.horde__title { font-size: clamp(44px, 7vw, 120px); max-width: 12ch; }
.horde__sub { color: var(--ink-2); margin: 16px 0 0; max-width: 40ch; }
.horde__hud { display: flex; gap: 14px; flex-wrap: wrap; }
.hud { border: 1px solid var(--line-2); background: rgba(8, 9, 11, .8); padding: 12px 18px; min-width: 170px; }
.hud__k { display: block; color: var(--ink-3); }
.hud__v { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 44px; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hud--amber .hud__v { color: var(--amber); }
.hud--red .hud__v { color: var(--red); }

/* ── steam CTA ──────────────────────────────────────────── */
.steam { text-align: center; overflow: hidden; isolation: isolate; }
.steam__bg { position: absolute; inset: 0; z-index: -1; }
.steam__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .32; }   /* desaturation is baked into the clip: no per-frame filter */
.steam__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(7,7,8,.55), var(--bg) 92%); }
.steam__title { font-size: clamp(50px, 9vw, 168px); margin: 22px auto 26px; max-width: 14ch; }
.steam__sub { margin: 0 auto 40px; color: var(--ink-2); max-width: 46ch; }
.steam__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── work list ──────────────────────────────────────────── */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.wlist { border-top: 1px solid var(--line); }
.wlist__h, .wrow { display: grid; grid-template-columns: 2.2fr 1.2fr 1.3fr 1fr 40px; gap: 20px; align-items: center; }
.wlist__h { padding: 16px 0; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.wrow { position: relative; padding: 30px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.wrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.wrow:hover::before { transform: scaleY(1); }
.wrow:hover { color: var(--bg); }
.wrow:hover .wrow__meta, .wrow:hover .wrow__arrow { color: var(--bg); }
.wrow__name { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(26px, 3.2vw, 54px); line-height: .95; transition: transform .55s var(--ease); padding-left: 0; }
.wrow:hover .wrow__name { transform: translateX(16px); }
.wrow__meta { color: var(--ink-2); font-size: 15px; transition: color .3s; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { color: #7fd17f; }
.status--soon { color: var(--amber); }
.status--test { color: #77b7ff; }
.status--dev { color: var(--ink-2); }
.wrow:hover .status { color: var(--bg); }
.wrow__arrow { width: 22px; height: 22px; color: var(--ink-2); transition: transform .5s var(--ease), color .3s; justify-self: end; }
.wrow:hover .wrow__arrow { transform: rotate(45deg); }
.wrow__thumb { display: none; }

.wpreview {
  position: fixed; left: 0; top: 0; z-index: 80; width: 360px; aspect-ratio: 16 / 10; pointer-events: none;
  border-radius: 14px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.7);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  background: var(--bg-3);
}
.wpreview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wpreview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.wpreview img.is-on { opacity: 1; }
.wpreview__ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: repeating-linear-gradient(135deg, #141416 0 12px, #101012 12px 24px); }
.wpreview__ph.is-on { opacity: 1; }
.wpreview__ph span { color: var(--amber); }

/* assets callout */
.assets {
  position: relative; margin-top: 90px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
  padding: clamp(30px, 4vw, 60px); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden;
}
.assets__bg { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.assets__title { font-size: clamp(40px, 5.6vw, 96px); margin: 18px 0 20px; }
.assets__sub { color: var(--ink-2); margin: 0; max-width: 54ch; }
.assets__right { display: grid; gap: 22px; justify-items: start; }
.assets__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: color .25s, border-color .25s; }
.chip:hover { color: var(--amber); border-color: var(--amber); }

/* ── roadmap ────────────────────────────────────────────── */
.road { position: relative; margin-top: 70px; padding-left: 64px; }
.road__line { position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.road__line span { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--amber); transform-origin: 50% 0; transform: scaleY(0); }
.ritem { position: relative; display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 30px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.ritem::before { content: ""; position: absolute; left: -54px; top: 46px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ink-3); background: var(--bg); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.ritem.is-lit::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px rgba(232, 162, 59, .7); }
.ritem__t { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(26px, 3vw, 48px); line-height: .95; margin: 0; }
.ritem__d { margin: 0; color: var(--ink-2); }
.ritem--secret .ritem__t { color: var(--ink-3); }
.ritem--secret .ritem__t .glitch { color: var(--red); }

/* ── community ──────────────────────────────────────────── */
.comm__title { font-size: clamp(64px, 13vw, 240px); margin: 26px 0 0; }
.comm__title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.comm__sub { color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; }
.socials { margin-top: 70px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.social { position: relative; min-height: clamp(220px, 26vw, 360px); padding: clamp(22px, 3vw, 40px); background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.social::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--amber); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .8s var(--ease); }
.social:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.social:hover { color: #120c03; }
.social__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.social__icon { width: clamp(34px, 3.4vw, 52px); height: clamp(34px, 3.4vw, 52px); }
.social__arrow { width: 28px; height: 28px; transition: transform .6s var(--ease); }
.social:hover .social__arrow { transform: rotate(45deg) scale(1.15); }
.social__name { font-family: var(--f-display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(46px, 6.4vw, 118px); line-height: .85; margin: 0; }
.social__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.social__handle { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.social__desc { color: var(--ink-2); font-size: 14px; transition: color .3s; }
.social:hover .social__desc { color: rgba(18, 12, 3, .7); }

/* ── footer ─────────────────────────────────────────────── */
.footer { position: relative; padding: 100px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer__tag { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; margin: 0; max-width: 18ch; }
.footer__col h4 { margin: 0 0 16px; color: var(--ink-3); font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--ink-2); transition: color .25s; }
.footer__col a:hover { color: var(--amber); }
.footer__word {
  margin: 90px 0 0; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: 20vw; line-height: .78; letter-spacing: -.02em; white-space: nowrap; display: inline-block;
  color: var(--ink); overflow: hidden; padding-top: .04em;
}
.footer__word .char { transform-origin: 50% 100%; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-3); }
.footer__bottom button { color: var(--ink-2); transition: color .25s; }
.footer__bottom button:hover { color: var(--amber); }

/* ── reveal defaults (JS sets the hidden state; no-JS stays visible) ── */
html.js [data-reveal] { opacity: 0; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: inline-block; }
  .wlist__h { display: none; }
  .wrow { grid-template-columns: 1fr auto; row-gap: 8px; }
  .wrow__name { grid-column: 1 / -1; }
  .wrow__meta--type { display: none; }
  .wrow__arrow { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .studio__grid, .dossier, .arsenal__grid, .assets { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 30px; }
  .feat { grid-template-columns: 50px 1fr; }
  .feat__d { grid-column: 2; }
  .ritem { grid-template-columns: 1fr; gap: 10px; }
  .hero__content { grid-template-columns: 1fr; }
  .file__stamp { right: 10px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav__right .btn { display: none; }
  .brand__word { font-size: 16px; }
  .hero__top { flex-direction: column; gap: 6px; }
  .hero__bottom .scrollcue { display: none; }
  .now__text { font-size: 10px; }
  .gintro__media { clip-path: inset(22% 6% 22% 6% round 18px); }
  .socials { grid-template-columns: 1fr; }
  .road { padding-left: 40px; }
  .road__line { left: 6px; }
  .ritem::before { left: -40px; }
  .hud { min-width: 0; flex: 1; }
  .hud__v { font-size: 34px; }
  .lock { grid-template-columns: 44px 1fr; }
  .lock__state { grid-column: 2; }
  .wrow__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-top: 8px; }
  .wrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .footer__cols { grid-template-columns: 1fr; }
}

html.reduce-motion .grain,
html.reduce-motion .scrollcue__line::after,
html.reduce-motion .rec-dot { animation: none; }

