/* Layout: "The Archive" — one pitch-black building you descend file by file. The cursor is the
   searchlight; every file opened raises clearance and lifts the redaction bars. Single committed
   dark look. Paper bands are the dossier pages pulled out under the light. */
:root {
  --void: #070708;      /* the blackout */
  --coal: #0f0e11;      /* raised surface */
  --vault: #17151b;     /* deeper panel */
  --smoke: #2a2730;     /* rules and borders */
  --ash: #aaa396;       /* muted text on black */
  --paper: #f2ead8;     /* warm dossier white */
  --paper-2: #e6dcc4;   /* paper shadow */
  --ink: #17140f;       /* text on paper */
  --ink-mute: #5c5446;  /* muted text on paper */
  --gold: #d9b25f;      /* the light */
  --gold-hi: #f3d48a;   /* the light, full beam */
  --brass: #8a6d34;     /* gold in shadow */
  --signal: #e5484d;    /* live / stamp red, used sparingly */

  --f-display: "Big Shoulders Display", "BSD Fallback", "BSD Fallback R", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni Fallback", "Bodoni Fallback N", "Bodoni Fallback T", Georgia, serif;
  --f-type: "Courier Prime", "Courier New", ui-monospace, monospace;

  --t-hero: clamp(88px, 19.5vw, 288px);
  --t-h1: clamp(62px, 10.5vw, 160px);
  --t-h2: clamp(44px, 6.6vw, 96px);
  --t-h3: clamp(26px, 2.6vw, 34px);
  --t-lede: clamp(18px, 1.9vw, 21px);
  --t-body: 17px;
  --t-small: 15px;
  --t-label: 12.5px;

  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);

  /* The city behind every page (src/assets/js/sky.js) shows through the dark surfaces. Each one lays a
     scrim of its own colour over it: light where the sky is, deeper where text sits, so text keeps its
     contrast while the lights stay in view. Paper, gold, panels, cards and fields stay solid. */
  --glass: color-mix(in srgb, var(--void) 48%, transparent);
  --glass-coal: color-mix(in srgb, var(--coal) 62%, transparent);
  --glass-deep: color-mix(in srgb, var(--void) 74%, transparent);
  /* a dark halo for small type standing straight on the city (page heads), so it reads over a lit
     window or a beam; invisible on plain black */
  --halo: 0 0 1px var(--void), 0 0 3px var(--void), 0 0 6px var(--void), 0 0 10px var(--void), 0 0 16px var(--void), 0 0 26px var(--void);
  --halo-sm: 0 0 2px var(--void), 0 0 5px var(--void), 0 0 11px var(--void);

  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Metric-matched stand-ins while the web fonts load: the phone's own Arial, Helvetica, Roboto,
   Georgia, Noto Serif or Times, scaled to the same widths, so headlines and buttons wrap the same way and nothing jumps when the
   real fonts swap in. They are only ever seen for that first moment. */
@font-face { font-family: "BSD Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 100 849; size-adjust: 67.7%; ascent-override: 144.8%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "BSD Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 850 1000; size-adjust: 72.5%; ascent-override: 135.2%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "BSD Fallback R"; src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"); font-weight: 100 849; size-adjust: 72.2%; ascent-override: 135.7%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: "BSD Fallback R"; src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"); font-weight: 850 1000; size-adjust: 77.2%; ascent-override: 126.9%; descent-override: 27.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular"); font-weight: 100 549; size-adjust: 97.7%; ascent-override: 90.1%; descent-override: 21.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 550 1000; size-adjust: 101.4%; ascent-override: 86.8%; descent-override: 20.7%; line-gap-override: 0%; }
@font-face { font-family: "Bodoni Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); font-weight: 100 1000; size-adjust: 96.8%; ascent-override: 116.7%; descent-override: 41.3%; line-gap-override: 0%; }
@font-face { font-family: "Bodoni Fallback N"; font-style: italic; src: local("Noto Serif Italic"), local("NotoSerif-Italic"); font-weight: 100 1000; size-adjust: 93.8%; ascent-override: 120.5%; descent-override: 42.6%; line-gap-override: 0%; }
@font-face { font-family: "Bodoni Fallback T"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("LiberationSerif-Italic"); font-weight: 100 1000; size-adjust: 108.5%; ascent-override: 104.1%; descent-override: 36.9%; line-gap-override: 0%; }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--paper); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--void); }
.page[data-bare] { position: relative; isolation: isolate; background: var(--void); color: var(--paper); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6; overflow-x: clip; }
img, svg, canvas { max-width: 100%; }

/* The backdrop: one fixed canvas behind everything, as tall as the screen with the phone's address bar
   hidden, standing on the bottom edge so the skyline stays put while the bar slides. Its gradient is
   the whole backdrop without JavaScript; sky.js fades the city in over it. Never printed. */
.sky { position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; display: block; width: 100%; max-width: none; height: 100vh; height: 100lvh; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(130% 55% at 50% 100%, rgba(217,178,95,.075), rgba(217,178,95,.02) 55%, transparent 80%), linear-gradient(to top, var(--coal), var(--void) 45%); }
.sky.is-lit, .no-js .sky { opacity: 1; }
@media print { .sky, .grain { display: none !important; } }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, .lede, .file__tag, .nextfile__teaser { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--void); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.band--paper :focus-visible, .classified :focus-visible { outline-color: var(--ink); }
.band--gold :focus-visible { outline-color: var(--void); }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gut-l); top: -60px; z-index: 100; background: var(--gold); color: var(--void); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.wrap--narrow { max-width: 860px; }

/* film grain over everything */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ── Type ─────────────────────────────────────────────────────────────── */
.label { font-family: var(--f-type); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.label--dim { color: var(--ash); }
.label--red { color: var(--signal); }
.display { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.h1 { font-family: var(--f-display); font-weight: 900; font-size: var(--t-h1); line-height: .84; text-transform: uppercase; letter-spacing: -.01em; }
.h2 { font-family: var(--f-display); font-weight: 900; font-size: var(--t-h2); line-height: .88; text-transform: uppercase; }
.h3 { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.whisper { font-family: var(--f-serif); font-style: italic; font-weight: 500; text-transform: none; color: var(--gold); letter-spacing: 0; }
.h1 .whisper, .h2 .whisper { font-size: .62em; line-height: 1; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 58ch; color: var(--paper); }
.lede strong { color: var(--gold-hi); font-weight: 600; }
.muted { color: var(--ash); }
.small { font-size: var(--t-small); }
.prose { display: grid; gap: 1em; max-width: 66ch; }
.prose p, .prose li { color: var(--paper); }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 44px); line-height: .95; margin-top: .8em; }
.prose h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .4em; }
.prose strong { color: var(--gold-hi); }

/* ── Topbar ───────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .3s; }
/* The blur lives on ::before: backdrop-filter on .topbar itself would become the containing block
   of the fixed phone menu and clip it to the bar's height. */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--void) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }
.topbar.is-scrolled { border-bottom-color: var(--smoke); }
.topbar__in { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; flex: none; color: var(--gold); text-decoration: none; line-height: 0; }
.brand svg { display: block; width: auto; max-width: none; }
.brand__logo { height: 38px; aspect-ratio: 769.54 / 230.82; }
.brand__mark { height: 34px; aspect-ratio: 1; }
.brand .bs-void { fill: var(--void); }
.brand .bs-grin { fill: var(--paper); }
.brand .bs-paper { fill: var(--paper); transition: fill .45s var(--ease); }
.brand:hover .bs-paper, .brand:focus-visible .bs-paper { fill: var(--gold-hi); }
.brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.brand--compact { display: none; }
.brand--lg .brand__logo { height: 64px; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu ul { list-style: none; display: flex; gap: 2px; }
.menu a:not(.btn) { display: block; padding: 8px 11px; text-decoration: none; font-size: 15px; color: var(--ash); transition: color .2s; position: relative; }
.menu a:not(.btn):hover { color: var(--paper); }
.menu a[aria-current="page"] { color: var(--gold); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); }
.menu .menu__cta, .menu .menu__line { display: none; }
.topbar__end { display: flex; align-items: center; gap: 10px; }

/* clearance HUD */
.hud { display: none; align-items: center; gap: 9px; background: var(--coal); border: 1px solid var(--smoke); padding: 7px 11px; cursor: pointer; font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); transition: border-color .2s, color .2s; }
.js .hud { display: inline-flex; }
.hud:hover, .hud[aria-expanded="true"] { border-color: var(--gold); color: var(--paper); }
.hud__lv { color: var(--gold); white-space: nowrap; }
.hud__lv b { font-weight: 700; }
.hud__name { white-space: nowrap; }
.hud__bar { width: 46px; height: 4px; background: var(--smoke); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--gold); transition: width .8s var(--ease); }
.hud.is-pulse { animation: hudPulse 1.2s var(--ease); }
@keyframes hudPulse { 0% { box-shadow: 0 0 0 0 rgba(243,212,138,.7); } 100% { box-shadow: 0 0 0 16px rgba(243,212,138,0); } }

.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--smoke); cursor: pointer; position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), opacity .2s; }
.burger__lines { top: 50%; margin-top: -1px; }
.burger__lines::before, .burger__lines::after { content: ""; left: 0; right: 0; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }
[data-topbar][data-open] .burger__lines { background: transparent; }
[data-topbar][data-open] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
[data-topbar][data-open] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hud__name { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .topbar__end { margin-left: auto; }
  .menu { position: fixed; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top, 0px)); bottom: 0; background: var(--void); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 28px var(--gut-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gut-l); margin: 0; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; border-top: 1px solid var(--smoke); }
  [data-topbar][data-open] .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a:not(.btn) { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 11vw, 64px); line-height: 1.05; color: var(--paper); padding: 6px 0; border-bottom: 1px solid var(--smoke); }
  .menu a[aria-current="page"]::after { display: none; }
  .menu a[aria-current="page"] { color: var(--gold); }
  .menu .menu__cta { display: inline-flex; align-self: flex-start; }
  .menu .menu__line { display: grid; gap: 10px; justify-items: start; padding-top: 8px; border-top: 1px solid var(--smoke); }
  .menu .menu__line a.menu__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 9vw, 48px); line-height: 1; letter-spacing: .01em; color: var(--gold); border: 0; padding: 0; text-transform: none; font-variant-numeric: tabular-nums; }
  .menu__acts { display: flex; gap: 10px; }
  .hud, .topbar__cta { min-height: 44px; }
  .no-js .menu { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; background: none; }
  .no-js .burger { display: none; }
  .no-js .topbar { position: static; }
  .no-js .topbar__in { flex-wrap: wrap; }
  .no-js .menu { order: 3; width: 100%; gap: 4px; }
  .no-js .menu a:not(.btn) { font-family: var(--f-body); font-weight: 400; text-transform: none; font-size: 15px; line-height: 1.4; padding: 6px 10px 6px 0; border: 0; color: var(--ash); }
  .no-js .menu .menu__cta, .no-js .menu .menu__line { display: none; }
}
@media (max-width: 440px) {
  .topbar__in { gap: 10px; }
  .topbar__end { gap: 6px; }
  .topbar .brand__logo { height: 30px; }
  .hud { padding: 7px 8px; }
  .hud__bar { display: none; }
  .topbar .topbar__cta { padding-inline: 11px; }
}
@media (max-width: 350px) { .topbar .topbar__cta { display: none; } .topbar .brand:not(.brand--compact) { display: none; } .topbar .brand--compact { display: inline-flex; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { --bg: var(--gold); --fg: var(--void); --bd: var(--gold); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1; padding: 15px 24px 14px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,250,235,.55), transparent); transform: skewX(-18deg); z-index: -1; transition: left .55s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn .arw { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--gold); }
.btn--ghost:hover { --bg: var(--gold); --fg: var(--void); }
.btn--paper { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--paper:hover { --bg: var(--void); }
.btn--paper.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--paper.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--sm { font-size: 16px; padding: 10px 15px 9px; }
.btn--lg { font-size: 24px; padding: 19px 30px 18px; }
/* a long label never pushes its column wider than the screen: it wraps instead */
.btn { max-width: 100%; }
@media (max-width: 380px) { .btn--lg { white-space: normal; padding-inline: 18px; text-align: center; } }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* phones: stacked buttons share one full width; plain text links stay their own size */
@media (max-width: 560px) {
  .ctas { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .ctas > .btn { width: 100%; white-space: normal; text-align: center; }
  .ctas > :not(.btn) { justify-self: start; }
}
.textlink { position: relative; color: var(--gold); text-decoration: none; font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; width: fit-content; justify-self: start; align-self: start; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); padding: 0 0 2px; cursor: pointer; transition: border-color .2s, gap .2s; }
.textlink::before { content: ""; position: absolute; inset: -10px -4px; }
.textlink:hover { border-color: var(--gold); gap: 12px; }
.textlink .arw { width: 16px; height: 16px; }

/* ── Bands (sections) ─────────────────────────────────────────────────── */
.band { padding-block: clamp(76px, 10vw, 136px); position: relative; background: var(--glass); }
/* the first band after a page head fades in from clear, so its glass doesn't cut the skyline with a
   hard edge; the ramp ends before the band's text starts. Class-level weight: any band with its own
   background (paper, gold, a page's own) still wins. */
:where(main > header) + .band { background: linear-gradient(transparent, var(--glass) clamp(44px, 6vw, 72px)); }
.band--tight { padding-block: clamp(44px, 6vw, 72px); }
.band--flush-top { padding-top: 0; }
.band--coal { background: var(--glass-coal); border-block: 1px solid var(--smoke); }
:where(main > header) + .band--coal { background: linear-gradient(transparent, var(--glass-coal) clamp(44px, 6vw, 72px)); }
/* small type in the dark bands and the footer gets a lighter halo against a lit window behind the glass */
:is(.band:not(.band--paper, .band--gold), .foot) :is(p, dt, dd, label, small, .label, .copy, .textlink) { text-shadow: var(--halo-sm); }
/* paper never glows: the halo is only for type standing on the city, never for ink on a paper card or slip */
:is(.band--paper, .band--gold, .classified, .intake, .pk-result, .lg-slip, .bk__card, .stamp, .panel--paper) :is(*, *::before, *::after) { text-shadow: none !important; }
:is(.band, .foot) :is([class*="paper"], [class*="sheet"], .classified) :is(p, dt, dd, label, small, .label, .copy, .textlink), :is(.band, .foot) .copy:hover { text-shadow: none; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper .label { color: var(--ink-mute); }
.band--paper .label--dim, .band--paper .muted { color: var(--ink-mute); }
.band--paper .whisper { color: var(--brass); }
.band--paper .lede, .band--paper .prose p, .band--paper .prose li { color: var(--ink); }
.band--paper .prose a, .band--paper .textlink { color: var(--ink); border-color: var(--brass); }
.band--paper ::selection { background: var(--ink); color: var(--paper); }
.band--gold { background: var(--gold); color: var(--void); }
.band--gold .label { color: var(--void); }
.band__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 820px; }
.band__head p:not(.label) { color: var(--ash); max-width: 60ch; }
.band--paper .band__head p:not(.label) { color: var(--ink-mute); }
.band__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; max-width: none; }
.band__head--row > div { display: grid; gap: 16px; max-width: 760px; min-width: 0; }

/* page header used by inner pages */
.pagehead { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--smoke); }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(clamp(260px, 40vw, 560px) circle at var(--x, 78%) var(--y, 10%), rgba(217,178,95,.14), transparent 70%); transition: background-position .2s; }
.pagehead__in { display: grid; gap: 22px; }
.pagehead .lede { color: var(--paper); }
/* Page heads (the home hero, .pagehead and each page's own <header>) stand straight on the city.
   Small type gets the halo, ghost buttons a smoked fill; paper sheets, panels and cards inside a head
   keep their own surface. */
main > header :is(p, li, dd, dt, label, small, .label, .crumbs, .textlink, .whisper) { text-shadow: var(--halo); }
/* red is the hardest colour to read over light: red labels in a head also sit on a smoked strip */
main > header .label--red { width: fit-content; max-width: 100%; background: color-mix(in srgb, var(--void) 60%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--void) 60%, transparent); }
main > header :is([class*="paper"], [class*="sheet"], .classified, .panel, .form, aside, nav:not(.crumbs)) :is(p, li, dd, dt, label, small, .label, .textlink, .whisper) { text-shadow: none; }
main > header .btn--ghost:not(:hover) { --bg: color-mix(in srgb, var(--void) 55%, transparent); }

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--f-type); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.crumbs li { display: flex; gap: 10px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--brass); }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }

/* ── Ticker ───────────────────────────────────────────────────────────── */
.ticker { overflow: hidden; background: var(--gold); color: var(--void); border-block: 1px solid var(--brass); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track > span { display: flex; align-items: center; gap: 36px; padding: 13px 18px; font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ticker__track > span::after { content: ""; width: 14px; height: 14px; background: var(--void); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Grids ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ── File cards (packages) ────────────────────────────────────────────── */
.file { --x: 50%; --y: 0%; position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 30px 24px 22px; margin-top: 28px; background: var(--coal); border: 1px solid var(--smoke); color: var(--paper); text-decoration: none; min-width: 0; isolation: isolate; transition: transform .3s var(--ease), border-color .3s; }
.file::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(260px circle at var(--x) var(--y), rgba(217,178,95,.16), transparent 70%); transition: opacity .3s; }
.file:hover, .file:focus-visible { transform: translateY(-4px); border-color: var(--brass); }
.file:hover::before, .file:focus-visible::before { opacity: 1; }
.file__tab { position: absolute; left: -1px; top: -26px; height: 27px; padding: 6px 16px 0 12px; background: var(--coal); border: 1px solid var(--smoke); border-bottom: 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); font-family: var(--f-type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); transition: border-color .3s, color .3s; }
.file:hover .file__tab { color: var(--gold); border-color: var(--brass); }
.file__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.file__name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 5vw, 64px); line-height: .84; letter-spacing: 0; transition: letter-spacing .4s var(--ease), color .3s; overflow-wrap: anywhere; }
.file:hover .file__name { letter-spacing: .025em; color: var(--gold-hi); }
.file__tag { color: var(--ash); font-size: 15.5px; line-height: 1.5; }
.file__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--smoke); }
.file__open { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-type); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.file__open .arw { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.file:hover .file__open .arw { transform: translateX(5px); }
.file__note { font-size: 13.5px; color: var(--ash); }
.file--flag { border-color: var(--gold); background: linear-gradient(165deg, #231c0f 0%, var(--coal) 58%); }
.file--flag .file__tab { border-color: var(--gold); color: var(--gold); background: #231c0f; }
.file--flag::after { content: "Flagship"; position: absolute; top: -26px; right: -1px; height: 26px; display: flex; align-items: center; background: var(--gold); color: var(--void); font-family: var(--f-type); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 0 10px; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 42px; line-height: .9; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price small { font-family: var(--f-body); font-weight: 400; font-size: 15px; color: var(--ash); margin-left: 3px; letter-spacing: 0; }
/* showPrices false: every price spot reads "ASK US" in the price face with a small typed "FOR PRICING" (c.priceTag) */
.price--ask { text-transform: uppercase; }
.price--ask small { font-family: var(--f-type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.drawer-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--smoke); }
.drawer-label .h3 { color: var(--paper); }

/* ── Ledger (label / value rows with leader dots) ─────────────────────── */
.ledger { display: grid; gap: 0; margin: 0; font-family: var(--f-type); font-size: 14.5px; }
.ledger > div { display: flex; align-items: baseline; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--smoke); }
.ledger dt { color: var(--ash); text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; flex: none; }
.ledger dd { margin: 0 0 0 auto; text-align: right; color: var(--paper); font-variant-numeric: tabular-nums; min-width: 0; }
.ledger > div::after { content: none; }
.band--paper .ledger > div { border-color: rgba(23,20,15,.16); }
.band--paper .ledger dt { color: var(--ink-mute); }
.band--paper .ledger dd { color: var(--ink); }

/* ── Steps (a real sequence) ──────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1px; background: var(--smoke); border: 1px solid var(--smoke); counter-reset: s; }
.steps > li { counter-increment: s; background: var(--void); padding: 28px 24px 30px; display: grid; gap: 12px; align-content: start; min-width: 0; transition: background .3s; }
.steps > li:hover { background: var(--coal); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-weight: 900; font-size: 68px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--gold); transition: color .3s; }
.steps > li:hover::before { color: var(--gold); }
.steps h3 { font-family: var(--f-display); font-weight: 800; font-size: 27px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.steps p { color: var(--ash); font-size: 15.5px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Lists ────────────────────────────────────────────────────────────── */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 14px; height: 4px; margin-top: 11px; background: var(--gold); }
.ticks--no li::before { background: var(--signal); width: 10px; height: 10px; margin-top: 8px; clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.band--paper .ticks li::before { background: var(--brass); }

/* ── Q&A ──────────────────────────────────────────────────────────────── */
.qa { border-top: 1px solid var(--smoke); }
.qa:last-child { border-bottom: 1px solid var(--smoke); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--smoke); font-family: var(--f-body); font-weight: 400; font-size: 22px; color: var(--gold); transition: background .2s, color .2s; }
.qa[open] summary::after { content: "\00d7"; background: var(--gold); color: var(--void); border-color: var(--gold); }
.qa summary:hover { color: var(--gold-hi); }
.qa > div { padding: 0 0 24px; color: var(--ash); max-width: 66ch; display: grid; gap: .8em; }
.qa > div a { color: var(--gold); }
.band--paper .qa, .band--paper .qa:last-child { border-color: rgba(23,20,15,.18); }
.band--paper .qa summary:hover { color: var(--brass); }
.band--paper .qa > div { color: var(--ink-mute); }

/* ── Stamp ────────────────────────────────────────────────────────────── */
.stamp { display: inline-grid; place-items: center; text-align: center; width: 148px; aspect-ratio: 1; max-width: 100%; border: 2.5px solid var(--signal); border-radius: 50%; color: var(--signal); transform: rotate(-13deg); font-family: var(--f-display); font-weight: 900; font-size: 23px; line-height: .95; letter-spacing: .04em; text-transform: uppercase; padding: 14px; box-shadow: inset 0 0 0 5px var(--void), inset 0 0 0 6.5px var(--signal); }
.stamp small { display: block; font-family: var(--f-type); font-weight: 400; font-size: 9px; letter-spacing: .14em; margin-top: 6px; line-height: 1.25; max-width: 9em; }
.stamp--gold { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 5px var(--void), inset 0 0 0 6.5px var(--gold); }
.stamp.is-slam { animation: slam .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slam { from { transform: rotate(-13deg) scale(1.6); opacity: .35; } to { transform: rotate(-13deg) scale(1); opacity: 1; } }

/* ── Classified (redacted dossier block) ──────────────────────────────── */
.classified { position: relative; }
.classified__sheet { position: relative; background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.classified__sheet::before { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(225deg, var(--void) 50%, var(--paper-2) 50%); }
.classified__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-right: 40px; }
.classified__head .label { color: var(--ink-mute); }
.classified__stamp { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); border: 2px solid var(--signal); padding: 3px 10px 2px; transform: rotate(-3deg); }
.classified.is-open .classified__stamp { color: var(--ink-mute); border-color: var(--ink-mute); }
.classified.is-open .classified__stamp::after { content: " · Opened"; }
.classified__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 44px); line-height: .92; }
/* Ruled paper: one rule per line of type (--lh is the line height), and a blank ruled line between
   paragraphs, so the text always sits on the rules. Locked sheets are typed in Courier; an opened
   sheet switches its reading text to the body face, with Courier kept for the labels and lead-ins. */
.classified__body { --lh: 1.7em; display: grid; gap: var(--lh); font-family: var(--f-type); font-size: 16px; line-height: var(--lh); max-width: 64ch; background-image: repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), rgba(23,20,15,.08) calc(var(--lh) - 1px) var(--lh)); }
.classified__body ol, .classified__body ul { padding-left: 1.3em; display: grid; gap: 0; }
.classified__body strong { font-weight: 700; }
.classified.is-open .classified__body { --lh: 1.6em; font-family: var(--f-body); font-size: 17px; }
.classified.is-open .classified__body .cl-lead { font-family: var(--f-type); font-size: .9em; letter-spacing: .02em; }
.classified__status { font-family: var(--f-type); font-size: 13.5px; color: var(--ink-mute); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.classified__status:empty { display: none; }
.classified__status button { min-height: 40px; background: none; border: 1px solid var(--ink-mute); color: var(--ink); padding: 9px 12px; font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.classified__status button:hover { background: var(--ink); color: var(--paper); }
.classified__status a { color: var(--ink); text-underline-offset: 3px; }
.rx { -webkit-box-decoration-break: clone; box-decoration-break: clone; background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 100% 0; background-size: 0% 100%; transition: background-size 1.1s var(--snap), color .3s .5s; padding: 0 .08em; }
.js .classified.is-locked .rx { background-size: 100% 100%; color: transparent; user-select: none; -webkit-user-select: none; transition: none; }
.js .classified.is-locked .classified__body a { pointer-events: none; }
/* A locked sheet shows its first lines of bars, then fades: never screens of black slabs. */
.js .classified.is-locked .classified__body { max-height: 11em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.classified.is-opening .classified__sheet { animation: sheetFlash 1.4s var(--ease); }
@keyframes sheetFlash { 0% { box-shadow: 0 0 0 0 rgba(243,212,138,.9); } 100% { box-shadow: 0 0 0 28px rgba(243,212,138,0); } }

/* ── Next file ────────────────────────────────────────────────────────── */
.nextfile { border-top: 1px solid var(--smoke); }
.nextfile__card { --x: 20%; --y: 50%; position: relative; display: grid; gap: 10px; padding: clamp(28px, 4vw, 48px); background: var(--coal); border: 1px solid var(--smoke); text-decoration: none; color: var(--paper); overflow: hidden; isolation: isolate; transition: border-color .3s; }
.nextfile__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(340px circle at var(--x) var(--y), rgba(217,178,95,.2), transparent 70%); opacity: .5; transition: opacity .3s; }
.nextfile__card:hover { border-color: var(--gold); }
.nextfile__card:hover::before { opacity: 1; }
.nextfile__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 9vw, 120px); line-height: .84; text-transform: uppercase; transition: color .3s, letter-spacing .5s var(--ease); overflow-wrap: anywhere; }
.nextfile__card:hover .nextfile__title { color: var(--gold-hi); letter-spacing: .015em; }
.nextfile__teaser { font-size: var(--t-lede); color: var(--ash); max-width: 60ch; }
.rx-word { background: var(--paper); color: transparent; padding: 0 .1em; border-radius: 1px; transition: background-color .5s var(--ease), color .3s .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nextfile__card:hover .rx-word, .nextfile__card:focus-visible .rx-word { background-color: transparent; color: var(--gold-hi); }
.nextfile__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 22px; color: var(--gold); margin-top: 8px; }
.nextfile__go .arw { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.nextfile__card:hover .nextfile__go .arw { transform: translateX(8px); }
/* the right side on wide screens: the next file's number, outlined, lit where the searchlight falls */
.nextfile__no { display: none; }
@media (min-width: 861px) {
  .nextfile__card--art { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 4vw, 64px); }
  .nextfile__card--art > :not(.nextfile__no) { grid-column: 1; }
  .nextfile__no { --x: 50%; --y: 50%; display: grid; grid-column: 2; grid-row: 1 / span 4; align-self: center; justify-items: end; font-family: var(--f-display); font-weight: 900; font-size: clamp(130px, 16vw, 240px); line-height: .76; letter-spacing: -.02em; font-variant-numeric: tabular-nums; pointer-events: none; user-select: none; -webkit-user-select: none; }
  .nextfile__no > span { grid-area: 1 / 1; }
  .nextfile__dark { color: transparent; -webkit-text-stroke: 1.5px var(--brass); opacity: .7; }
  .nextfile__lit { color: rgba(243,212,138,.06); -webkit-text-stroke: 2px var(--gold-hi); -webkit-mask-image: radial-gradient(clamp(130px, 15vw, 230px) circle at var(--x) var(--y), #000 0 30%, transparent 72%); mask-image: radial-gradient(clamp(130px, 15vw, 230px) circle at var(--x) var(--y), #000 0 30%, transparent 72%); opacity: .45; transition: opacity .3s; }
  .nextfile__card:hover .nextfile__lit, .nextfile__card:focus-visible .nextfile__lit { opacity: 1; }
  .nextfile__card:hover .nextfile__dark { opacity: 1; }
  .nextfile__no--bars > span { display: grid; gap: clamp(12px, 1.4vw, 18px); align-content: center; width: clamp(170px, 19vw, 270px); }
  .nextfile__no--bars i { display: block; height: clamp(20px, 2.3vw, 32px); }
  .nextfile__no--bars i:nth-child(2) { width: 78%; }
  .nextfile__no--bars i:nth-child(3) { width: 92%; }
  .nextfile__no--bars i:nth-child(4) { width: 54%; }
  .nextfile__no--bars .nextfile__dark i { background: var(--smoke); }
  .nextfile__no--bars .nextfile__lit i { background: var(--gold); }
}
[data-jump][hidden] { display: none; }
.nextfile__card--jump { margin-bottom: 12px; border-color: var(--gold); background: linear-gradient(120deg, #241d0e, var(--coal) 70%); }
.nextfile__card--jump .nextfile__title { font-size: clamp(34px, 5vw, 64px); line-height: .9; }

/* ── Contact lines & copy ─────────────────────────────────────────────── */
.lines { display: grid; gap: 12px; }
.lines__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lines__big { font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 4.6vw, 54px); line-height: 1; color: var(--gold); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.lines__big:hover { color: var(--gold-hi); }
.lines__mail { font-size: 19px; color: inherit; text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 4px; overflow-wrap: anywhere; }
.lines__mail:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }
.lines__note { color: var(--ash); font-size: var(--t-small); }
.copy { min-height: 40px; font-family: var(--f-type); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; background: none; color: var(--ash); border: 1px solid var(--smoke); padding: 10px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--paper); border-color: var(--ash); }
.copy.is-done { color: var(--gold); border-color: var(--gold); }
a.copy { display: inline-flex; align-items: center; text-decoration: none; }
.lines__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lines__act { color: var(--gold); border-color: var(--brass); }
.lines__act:hover { color: var(--void); background: var(--gold); border-color: var(--gold); }

/* ── Socials ──────────────────────────────────────────────────────────── */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--smoke); color: var(--ash); text-decoration: none; font-family: var(--f-type); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; transition: color .2s, background .2s, border-color .2s; }
.socials .ico { width: 18px; height: 18px; flex: none; }
.socials a:hover { color: var(--void); background: var(--gold); border-color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--smoke); background: var(--glass-deep); padding-block: 72px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 48px; }
.foot__brand { display: grid; gap: 18px; align-content: start; }
.foot__line { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--paper); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot__col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.foot__col ul { list-style: none; display: grid; gap: 9px; }
.foot__col a { color: var(--ash); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot__col a:hover { color: var(--gold); }
.foot__price { color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 4px; font-size: 13.5px; }
.foot__social { display: grid; gap: 14px; padding-block: 32px; border-top: 1px solid var(--smoke); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-top: 24px; border-top: 1px solid var(--smoke); color: var(--ash); font-size: 14px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot__legal a { color: var(--ash); }
.foot__legal a:hover { color: var(--gold); }
.foot__files { display: none; min-height: 40px; background: none; border: 1px solid var(--smoke); color: var(--ash); padding: 6px 10px; font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.js .foot__files { display: inline-block; }
.foot__files b { color: var(--gold); font-weight: 700; }
.foot__files:hover { border-color: var(--gold); color: var(--paper); }
.foot .lines__big { font-size: clamp(34px, 3.2vw, 44px); }
@media (max-width: 1000px) { .foot__top { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .foot__col ul { gap: 0; }
  .foot__col a { display: inline-block; padding-block: 8px; }
  .foot__legal a { display: inline-block; padding-block: 9px; }
}
@media (max-width: 720px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; background: var(--coal); border: 1px solid var(--smoke); padding: clamp(22px, 3.5vw, 36px); position: relative; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .field__label { font-family: var(--f-type); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.field > label b { color: var(--gold); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--paper); background: var(--void); border: 1px solid var(--smoke); border-radius: 0; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,95,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--ash); opacity: .8; }
.field [aria-invalid="true"] { border-color: var(--signal); }
.field__err { font-size: 14px; color: #ff8a8d; }
.field__err:empty { display: none; }
.field__hint { font-size: 13.5px; color: var(--ash); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--smoke); font-size: 15px; color: var(--ash); transition: all .2s; }
.chip input:checked + span { background: var(--gold); color: var(--void); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.form__alert { border-left: 3px solid var(--signal); background: var(--void); padding: 14px 16px; display: grid; gap: 10px; }
.form__alert[data-tone="ok"] { border-color: var(--gold); }
.form__alert:focus { outline: none; }
.form__alert a { color: var(--gold); text-underline-offset: 3px; }
.form__fine { font-size: 13.5px; color: var(--ash); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Callouts & misc ──────────────────────────────────────────────────── */
.note { display: grid; gap: 8px; padding: 18px 20px; border: 1px dashed var(--brass); color: var(--ash); font-size: var(--t-small); }
.note strong { color: var(--paper); }
.band--paper .note { border-color: var(--brass); color: var(--ink-mute); }
.band--paper .note strong { color: var(--ink); }
.panel { background: var(--coal); border: 1px solid var(--smoke); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.rule { height: 1px; background: var(--smoke); border: 0; margin: 0; }
.kicker { display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.badge { display: inline-block; font-family: var(--f-type); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; }
.badge--red { color: var(--signal); }
.badge--gold { color: var(--gold); }

/* hidden marks: three in the whole site */
.hidden-mark { display: none; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--gold); opacity: .16; cursor: pointer; transition: opacity .3s, transform .4s var(--ease), filter .3s; vertical-align: middle; }
.js .hidden-mark { display: inline-block; }
.hidden-mark svg { width: 100%; height: 100%; }
.hidden-mark:hover, .hidden-mark:focus-visible { opacity: 1; transform: rotate(-12deg) scale(1.25); filter: drop-shadow(0 0 10px rgba(243,212,138,.8)); }
.hidden-mark.is-found { opacity: .55; color: var(--brass); cursor: default; }

/* ── Reveal on scroll (only for elements that start below the fold) ───── */
.js .rv-wait { opacity: 0; transform: translateY(22px); }
.js .rv-in { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }

/* ── Drawer (clearance panel) ─────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(4,4,5,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .25s; }
.drawer {overscroll-behavior:contain; position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(460px, 100%); background: var(--coal); border-left: 1px solid var(--smoke); overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 22px; animation: slideIn .35s var(--ease); }
.drawer:focus { outline: none; }
.drawer__in { display: grid; gap: 22px; }
[data-drawer-body] { display: grid; gap: 22px; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__x { width: 40px; height: 40px; background: none; border: 1px solid var(--smoke); font-size: 26px; line-height: 1; cursor: pointer; color: var(--paper); }
.drawer__x:hover { border-color: var(--gold); color: var(--gold); }
.drawer__title { font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: .9; text-transform: uppercase; }
.dlv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; }
.dlv__num { grid-row: span 2; font-family: var(--f-display); font-weight: 900; font-size: 112px; line-height: .78; color: var(--gold); }
.dlv__name { font-family: var(--f-display); font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; }
.dlv__xp { font-family: var(--f-type); font-size: 13px; color: var(--ash); letter-spacing: .06em; }
.meter { height: 8px; background: var(--void); border: 1px solid var(--smoke); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--brass), var(--gold-hi)); transition: width 1s var(--ease); }
.dsec { display: grid; gap: 12px; }
.dsec h3 { font-family: var(--f-type); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.dlist { list-style: none; display: grid; gap: 0; }
.dlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--smoke); font-size: 15px; }
.dlist li > :first-child { font-family: var(--f-type); color: var(--ash); }
.dlist li.is-done > :first-child { color: var(--gold); }
.dlist li > :last-child { font-family: var(--f-type); font-size: 12.5px; color: var(--ash); white-space: nowrap; }
.dlist .is-locked-text { background: var(--smoke); color: transparent; user-select: none; }
.dlist a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.dlist a:hover { color: var(--gold-hi); }
.dfiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.dfiles a { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--smoke); text-decoration: none; color: var(--ash); font-size: 13px; line-height: 1.25; transition: border-color .2s; min-width: 0; }
.dfiles a small { font-family: var(--f-type); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.dfiles a.is-open { border-color: var(--brass); color: var(--paper); background: rgba(217,178,95,.06); }
.dfiles a.is-open small { color: var(--gold); }
.dfiles a:hover { border-color: var(--gold); }
.dfoot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--ash); }
.dfoot button { min-height: 40px; background: none; border: 1px solid var(--smoke); color: var(--ash); padding: 7px 11px; font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.dfoot button:hover { border-color: var(--signal); color: var(--paper); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Toasts ───────────────────────────────────────────────────────────── */
/* A toast never takes a tap: only its small link label does. Desktop: top right, under the clearance
   meter, at most two. Phones: one compact pill pinned under the top bar (site.js sets --toast-top). */
.toasts { position: fixed; z-index: 95; top: var(--toast-top, calc(72px + env(safe-area-inset-top, 0px))); right: var(--toast-right, var(--gut-r)); display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: none; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "big txt"; gap: 6px 12px; align-items: center; background: var(--coal); border: 1px solid var(--brass); padding: 11px 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.9); animation: toastIn .4s var(--ease); font-size: 14.5px; }
.toast--link { grid-template-areas: "big txt" "big go"; }
.toast--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt"; }
.toast--plain.toast--link { grid-template-areas: "txt" "go"; }
.toast__big { grid-area: big; font-family: var(--f-display); font-weight: 900; font-size: 26px; color: var(--gold); line-height: 1; }
.toast__txt { grid-area: txt; display: grid; gap: 3px; min-width: 0; }
.toast__main { color: var(--paper); line-height: 1.35; }
.toast__sub { color: var(--ash); font-family: var(--f-type); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.toast__note { color: var(--ash); font-size: 13.5px; line-height: 1.4; }
.toast__go { grid-area: go; justify-self: start; pointer-events: auto; font-family: var(--f-type); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent); text-underline-offset: 4px; padding: 3px 0 2px; }
.toast__go:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }
.toast--level { border-color: var(--gold); background: linear-gradient(120deg, #241d0e, var(--coal) 70%); }
.toast--level .toast__big { font-size: 40px; }
.toast.is-out { animation: toastOut .35s var(--ease) forwards; }
/* lights out: the one toast that shows sits back in the dark with the page */
.toasts.is-dark .toast { background: var(--void); border-color: var(--smoke); box-shadow: none; }
.toasts.is-dark .toast__main { color: var(--ash); }
@media (max-width: 600px) {
  .toasts { left: var(--gut-l); right: var(--gut-r); width: auto; }
  .toast { gap: 1px 10px; padding: 8px 12px; font-size: 14px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.9); }
  .toast__sub, .toast__note { display: none; }
  .toast__main { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.3; }
  .toast__big, .toast--level .toast__big { font-size: 24px; }
  .toast__go { justify-self: end; font-size: 11px; padding: 6px 0 4px; margin: -3px 0 -2px; }
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ── Lights out (say the name on the door) ────────────────────────────── */
.veil { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(circle clamp(120px, 16vw, 210px) at var(--mx, 50%) var(--my, 40%), transparent 0, rgba(3,3,4,.55) 45%, rgba(3,3,4,.97) 75%); animation: fadeIn .6s; }

/* ── Motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js .rv-wait { opacity: 1; transform: none; }
}
