/* ==========================================================================
   TRIGA GAMES
   One continuous dark ground from the first pixel to the last. No colour
   bands, no cards, no boxes: sections are separated by rhythm and hairlines,
   and the atmosphere behind them never breaks.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sometype-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sometype-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  --ground: #0C0A12;
  --ground-2: #14111E;
  --surface: #1B1728;
  --cream: #EFECE6;
  --muted: #A29BB0;
  /* 4.91:1 against the brightest part of the gradient ground, measured from
     the render rather than from the base token — the atmosphere lifts the
     background where the indigo wash peaks, and #7D7590 fell to 4.14 there. */
  --dim: #8981A0;
  --accent: #FF5237;
  --accent-deep: #D93A21;
  --amber: #FFB020;

  --rule: rgba(239, 236, 230, 0.13);
  --rule-strong: rgba(239, 236, 230, 0.28);
  --rule-hair: rgba(239, 236, 230, 0.07);

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Sometype Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --step-1: 1.08rem;
  --step-2: clamp(1.2rem, 0.9rem + 1.1vw, 1.55rem);
  --step-3: clamp(1.6rem, 1.05rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.2rem + 3.8vw, 3.7rem);
  --step-5: clamp(3rem, 1rem + 8vw, 7rem);

  --ease: cubic-bezier(0.2, 0.75, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--accent);
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--ground);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* THE continuous ground. One fixed atmosphere behind the whole document, so
   scrolling moves through a single space instead of across stacked panels. */
body {
  background-color: var(--ground);
  background-image:
    radial-gradient(120% 70% at 78% -6%, rgba(255, 82, 55, 0.13), transparent 62%),
    radial-gradient(90% 55% at 6% 34%, rgba(96, 82, 214, 0.14), transparent 60%),
    radial-gradient(110% 60% at 88% 82%, rgba(255, 176, 32, 0.08), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--ground); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border: 3px solid var(--ground); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

html[data-locale='en'] [lang='tr'] { display: none; }
html[data-locale='tr'] [lang='en'] { display: none; }

[id] { scroll-margin-top: 6.5rem; }

/* --- Type --------------------------------------------------------------- */

.display {
  font-size: var(--step-5);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 86%;
  line-height: 0.96;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  font-size: var(--step-3);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h4 { font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; }
.lede { font-size: var(--step-2); line-height: 1.45; color: var(--cream); max-width: 40ch; }
.prose { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--cream); font-weight: 700; }
.dim { color: var(--muted); }

.meta {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.meta--accent { color: var(--accent); }

/* --- Shell -------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Rhythm, not colour, is what separates one part of the page from the next. */
.sec { padding-block: clamp(2.75rem, 5.5vw, 5rem); }
.sec--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.sec + .sec > .wrap > .h2:first-child,
.hairline { border-top: 1px solid var(--rule-hair); }

/* --- Rail --------------------------------------------------------------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--rule-hair);
}
.rail__in { display: flex; align-items: center; gap: 1.4rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-inline-end: auto; }
.mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand__name {
  font-size: 1rem; font-weight: 800; font-stretch: 82%;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.85rem); }
.nav a {
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.nav a:hover { color: var(--cream); border-bottom-color: var(--accent); }
.nav a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); }

.lang { display: flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; flex: none; }
.lang button {
  font-family: var(--mono); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.32rem 0.62rem; color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang button:hover { color: var(--cream); }
.lang button[aria-pressed='true'] { background: var(--accent); color: var(--ground); }

@media (max-width: 860px) {
  .rail__in { flex-wrap: wrap; gap: 0.85rem; min-height: 0; padding-block: 0.75rem 0; }
  .nav {
    order: 3; width: 100%; border-top: 1px solid var(--rule-hair);
    overflow-x: auto; scrollbar-width: none; gap: 1.2rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding-block: 0.65rem 0.5rem; }
}

/* --- Actions ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.4rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  cursor: pointer; transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--fill {
  background: var(--accent); color: var(--ground); border-color: var(--accent);
  box-shadow: 0 6px 24px -8px rgba(255, 82, 55, 0.55);
}
.btn--fill:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 8px 30px -8px rgba(255, 82, 55, 0.7); }
.btn--line:hover { border-color: var(--cream); background: rgba(239, 236, 230, 0.06); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* --- Hero --------------------------------------------------------------- */
/* The category convention, and it is the right one: art fills the opening and
   the headline sits over it. Graded hard so it reads as atmosphere behind the
   studio's line rather than as one game's key art. */

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: min(88svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-stage__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  object-position: 50% 42%;
  opacity: 0.66;
}
/* On a narrow screen the art is height-limited, so `cover` crops width only
   and object-position cannot move the frame vertically. Scale past the game's
   HUD instead, anchored low so the architecture fills the opening. */
@media (max-width: 700px) {
  .hero-stage__art { transform: scale(1.55); transform-origin: 50% 64%; opacity: 0.55; }
}
.hero-stage::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ground) 3%, rgba(12,10,18,0.5) 44%, rgba(12,10,18,0.3) 100%),
    linear-gradient(to right, var(--ground) 1%, rgba(12,10,18,0.78) 38%, rgba(12,10,18,0.18) 100%);
}
.hero { padding-block: clamp(3rem, 7vw, 5rem); width: 100%; }
.hero__say { max-width: 15ch; }
.hero__say em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 1.9rem; max-width: 46ch; }
.hero__actions { margin-top: 2.4rem; }
.hero__meta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
/* This row sits over the hero art, which is lighter than the flat ground:
   --dim measured 3.91:1 there, so the hero's copy of it steps up. */
.hero__meta .meta { color: #B4AEC2; }

/* --- Games -------------------------------------------------------------- */
/* Full-bleed rows, not cards: no panel, no border, no background of their own.
   The art sits directly on the page's own ground. */

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--rule-hair);
}
.game:first-of-type { border-top: 1px solid var(--rule); }
.game__body { min-width: 0; }
.game__name {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800; font-stretch: 82%; line-height: 0.92;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.game__name a { text-decoration: none; transition: color 0.18s var(--ease); }
.game__name a:hover { color: var(--accent); }
.game__line { margin-top: 1rem; max-width: 48ch; color: var(--muted); font-size: 1.02rem; }
.game__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.2rem; }
.game__art {
  position: relative;
  display: block;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  border-radius: 6px;
}
.game__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.5s var(--ease);
}
.game__art:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .game__art img { transition: none; } .game__art:hover img { transform: none; } }
/* The art fades into the ground rather than sitting in a frame on top of it. */
.game__art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 18, 0.85) 0%, transparent 34%);
  pointer-events: none;
}
.game--soon { grid-template-columns: 1fr; }
.game--soon .game__name { color: var(--dim); font-stretch: 92%; }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--soon { color: var(--dim); }

@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; gap: 1.75rem; }
  .game__art { aspect-ratio: 1024 / 500; }
}

/* --- Platform chips ----------------------------------------------------- */

.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.platform {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--cream); text-decoration: none;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}
a.platform:hover { border-color: var(--accent); background: rgba(255,82,55,0.1); color: var(--accent); }
.platform--pending { color: var(--dim); border-style: dashed; border-color: var(--rule); }

/* --- Stats / facts ------------------------------------------------------ */

.facts { display: grid; gap: 0; }
.facts__row {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: clamp(0.6rem, 2vw, 2rem);
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule-hair);
  align-items: baseline;
}
.facts__row:first-child { border-top: 1px solid var(--rule-hair); }
.facts__row dt {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}
.facts__row dd { font-size: 0.98rem; }
.facts__row dd a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 560px) { .facts__row { grid-template-columns: 1fr; row-gap: 0.2rem; } }

/* --- Stages ------------------------------------------------------------- */

.stages { counter-reset: stage; }
.stage {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--rule-hair);
}
.stage:first-child { border-top: 1px solid var(--rule-hair); }
.stage::before {
  content: counter(stage, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stage h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; }
.stage p { margin-top: 0.5rem; color: var(--muted); font-size: 0.96rem; max-width: 58ch; }
@media (max-width: 560px) { .stage { grid-template-columns: 1fr; gap: 0.35rem; } }

/* --- Media -------------------------------------------------------------- */

.plate { border-radius: 6px; overflow: hidden; }
.plate img { width: 100%; image-rendering: pixelated; }

.shot { width: clamp(180px, 24vw, 250px); flex: none; }
.shot img { width: 100%; aspect-ratio: 9 / 16; image-rendering: pixelated; border-radius: 4px; border: 1px solid var(--rule); }
.shot figcaption { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); line-height: 1.6; }

.sheet {
  display: flex; gap: 0.9rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.sheet figure { flex: none; width: clamp(140px, 17vw, 195px); scroll-snap-align: center; }
.sheet img { width: 100%; aspect-ratio: 9 / 16; image-rendering: pixelated; border-radius: 4px; border: 1px solid var(--rule); }
.sheet figcaption { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 0.55rem; line-height: 1.6; }
.sheet figcaption b { color: var(--accent); font-weight: 700; display: block; }

/* --- Surfaces (side-by-side evidence) ----------------------------------- */

.surfaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  max-width: 48rem;
}
.surface { display: flex; flex-direction: column; gap: 0.7rem; }
.surface img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  image-rendering: pixelated; border-radius: 4px; border: 1px solid var(--rule);
}
.surface figcaption { font-size: 0.88rem; color: var(--muted); }
.surface figcaption b { display: block; color: var(--cream); font-weight: 700; margin-bottom: 0.2rem; }

/* --- Table -------------------------------------------------------------- */

.record { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.record caption {
  text-align: start; font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--dim); padding-bottom: 0.85rem;
}
.record th, .record td { text-align: start; padding: 0.68rem 0.85rem 0.68rem 0; border-bottom: 1px solid var(--rule-hair); font-size: 0.92rem; }
.record thead th { font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); border-bottom-color: var(--rule); }
.record tbody th { font-weight: 500; color: var(--cream); }
.record td:last-child, .record th:last-child { padding-inline-end: 0; }
.record .num { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.record .note { color: var(--muted); font-size: 0.86rem; }
.table-scroll { overflow-x: auto; }

/* --- Q & A -------------------------------------------------------------- */
/* Answers are visible, not hidden behind a click. A support page whose
   content is all collapsed reads as an empty page, and a reader scanning for
   their problem cannot use Ctrl+F on text that is not rendered. */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 4vw, 4rem);
  margin-top: 2.5rem;
}
.faq__item { border-top: 1px solid var(--rule-hair); padding-top: 1.15rem; }
.faq__q {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--cream);
}
.faq__a { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.faq__a p + p { margin-top: 0.7rem; }
.faq__a a { color: var(--accent); text-underline-offset: 3px; }
.faq__a strong { color: var(--cream); font-weight: 700; }
.faq__a em { font-style: italic; }

/* --- Legal document ----------------------------------------------------- */

.doc { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.doc__head { border-bottom: 1px solid var(--rule); padding-bottom: 1.75rem; }
.doc__body { max-width: 68ch; margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }
.doc__body h2 {
  font-size: var(--step-2); font-weight: 700; line-height: 1.18; letter-spacing: -0.012em;
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-hair);
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; align-items: baseline;
}
.doc__body h2 > i { font-family: var(--mono); font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.doc__body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc__body p { margin-top: 1rem; color: var(--muted); }
.doc__body ul { margin-top: 1rem; padding-inline-start: 1.1rem; color: var(--muted); }
.doc__body li { margin-top: 0.45rem; }
.doc__body li::marker { color: var(--accent); }
.doc__body strong { color: var(--cream); font-weight: 700; }
.doc__body a { color: var(--accent); text-underline-offset: 3px; }
.doc__toc { display: none; }
.doc__toc ol { list-style: none; padding: 0; margin: 0; }
.doc__toc li { border-bottom: 1px solid var(--rule-hair); }
.doc__toc a { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.4rem; padding-block: 0.5rem; font-size: 0.78rem; text-decoration: none; color: var(--muted); line-height: 1.4; transition: color 0.15s; }
.doc__toc a:hover { color: var(--cream); }
.doc__toc a > i { font-family: var(--mono); font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--accent); }
.doc__grid { display: block; }
@media (min-width: 1080px) {
  .doc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 3.5rem; align-items: start; }
  .doc__toc { display: block; order: 2; position: sticky; top: 5.5rem; }
  .doc__body { order: 1; }
}

/* --- Footer ------------------------------------------------------------- */

.foot { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.25rem; }
.foot h2 { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.9rem; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.foot a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color 0.15s; }
.foot a:hover { color: var(--accent); }
.foot__base { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-hair); display: flex; flex-wrap: wrap; gap: 0.7rem 1.75rem; align-items: center; }

/* --- Utility ------------------------------------------------------------ */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4.5vw, 4rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; padding: 0.7rem 1.1rem; background: var(--accent); color: var(--ground); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 999px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Reveal ------------------------------------------------------------- */
/* One authored moment, used once per section: content rises into the ground
   as it arrives. Visible by default, so it can never hide content. */
/* Guarded: without scroll-driven timeline support the rule never applies at
   all, so content can never be left sitting at opacity 0. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}
