/* ============================================================================
   SLYNNPACK — "Diagnostic workstation"
   A dark, data-dense art direction built around one motif: the 36-view
   radiograph study. Mobile-first. No framework, no webfont downloads.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  --film:      #0B0C0E;
  --charcoal:  #14171A;
  --panel:     #191D21;
  --panel-2:   #1F242A;
  --rule:      #2A3037;
  --rule-soft: #21262b;

  --bone:      #F2EFE9;
  --dim:       #8D959D;
  --dimmer:    #616970;

  --phosphor:  #7DF9C4;
  --phosphor-d:#3FD69B;
  --amber:     #F2B441;
  --oxblood:   #C4485C;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gut: 1.25rem;
  --max: 1240px;
  --rad: 3px;

  --step--1: clamp(.75rem, .72rem + .15vw, .8125rem);
  --step-0:  clamp(.9375rem, .9rem + .2vw, 1rem);
  --step-1:  clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  --step-2:  clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);
  --step-4:  clamp(2.125rem, 1.5rem + 3.1vw, 4.25rem);
}

@media (min-width: 48rem) { :root { --gut: 2rem; } }
@media (min-width: 64rem) { :root { --gut: 3rem; } }

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--charcoal);
  color: var(--bone);
  font: 400 var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Faint engineering grid. The paper this company writes on. */
  background-image:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 200;
  background: var(--phosphor); color: var(--film);
  padding: .75rem 1rem; font: 600 var(--step--1)/1 var(--mono);
  text-transform: uppercase; letter-spacing: .08em;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* --- 3. Type ------------------------------------------------------------- */

h1, h2, h3, h4 { font-weight: 600; line-height: 1.06; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }

p { text-wrap: pretty; }
.lede { font-size: var(--step-1); color: #D6D2CB; max-width: 56ch; }
.muted { color: var(--dim); }
.tight { max-width: 62ch; }
strong { font-weight: 600; color: #FFFDF8; }

/* Monospace section marker:  § 01 ──── PROBLEM */
.marker {
  display: flex; align-items: center; gap: .6rem;
  font: 500 var(--step--1)/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim); margin-bottom: 1.5rem;
}
.marker__sig { color: var(--phosphor); }
.marker__n { color: var(--bone); }
.marker__rule { flex: 0 0 2rem; height: 1px; background: var(--rule); }
.marker__label { color: var(--dim); }

.eyebrow {
  font: 500 var(--step--1)/1 var(--mono);
  text-transform: uppercase; letter-spacing: .16em; color: var(--phosphor);
}

/* --- 4. Header ----------------------------------------------------------- */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--charcoal) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.hdr__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.lockup { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; flex: 1 1 auto; min-width: 0; min-height: 44px; }
.lockup__mark { width: 30px; height: 30px; flex: none; }
.mk-frame { fill: none; stroke: var(--rule); stroke-width: 1.5; transition: stroke .18s; }
.mk-shaft { fill: none; stroke: var(--bone); stroke-width: 3.3; stroke-linecap: round; }
.mk-end   { fill: var(--bone); }
.mk-scan  { stroke: var(--phosphor); stroke-width: 1.6; stroke-linecap: round; }
.lockup:hover .mk-frame { stroke: var(--phosphor-d); }

.lockup__text { display: flex; flex-direction: column; min-width: 0; }
.lockup__name {
  font: 600 1rem/1.1 var(--sans); letter-spacing: -.02em;
  text-transform: lowercase;
}
.lockup__desc {
  font: 500 .625rem/1.3 var(--mono); text-transform: uppercase;
  letter-spacing: .13em; color: var(--dimmer);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hdr__toggle {
  flex: none; width: 44px; height: 44px; margin-right: -.5rem;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--rule); border-radius: var(--rad);
  cursor: pointer;
}
.hdr__toggle-bars { display: grid; gap: 4px; width: 17px; }
.hdr__toggle-bars i { display: block; height: 1.5px; background: var(--bone); transition: transform .22s, opacity .18s; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-bars i:nth-child(2) { opacity: 0; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.hdr__nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--film); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}
.hdr__nav > ul { overflow: hidden; list-style: none; padding: 0; margin: 0; }
.hdr__nav.is-open { grid-template-rows: 1fr; }
.hdr__nav li { border-top: 1px solid var(--rule-soft); }
.hdr__nav li:first-child { border-top: 0; }
.hdr__nav a {
  display: block; padding: 1rem var(--gut);
  font: 500 var(--step-0)/1 var(--sans); text-decoration: none;
}
.hdr__nav a[aria-current="page"] { color: var(--phosphor); }
.hdr__cta-li { padding: 1rem var(--gut) 1.25rem; }
.hdr__cta-li a { display: inline-flex; padding: .7rem 1.1rem; }

@media (min-width: 60rem) {
  .hdr__toggle { display: none; }
  .hdr__nav {
    position: static; background: none; border: 0;
    display: block; flex: none;
  }
  .hdr__nav > ul { display: flex; align-items: center; gap: .25rem; overflow: visible; }
  .hdr__nav li { border: 0; }
  .hdr__nav a {
    padding: .5rem .75rem; font-size: var(--step--1); border-radius: var(--rad);
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
    color: var(--dim);
  }
  .hdr__nav a:hover { color: var(--bone); background: var(--panel); }
  .hdr__cta-li { padding: 0 0 0 .5rem; }
}

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  --btn-bg: var(--phosphor);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.35rem;
  background: var(--btn-bg); color: var(--film);
  font: 600 var(--step--1)/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  border: 1px solid var(--btn-bg); border-radius: var(--rad); cursor: pointer;
  transition: background .16s, transform .12s, box-shadow .16s;
}
.btn::after { content: "\2192"; font-family: var(--sans); font-size: 1em; }
.btn:hover { background: #9CFFD6; box-shadow: 0 0 0 3px rgba(125,249,196,.14); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .6rem .9rem; font-size: .6875rem; }
.btn--ghost {
  --btn-bg: transparent; color: var(--bone); border-color: var(--rule);
}
.btn--ghost:hover { background: var(--panel); border-color: var(--dimmer); box-shadow: none; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 6. Sections --------------------------------------------------------- */

section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec--film { background: var(--film); }
.sec--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.grid2 { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 60rem) { .grid2 { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 60rem) { .grid2--wide-l { grid-template-columns: 1.15fr .85fr; } }
@media (min-width: 60rem) { .grid2--wide-r { grid-template-columns: .85fr 1.15fr; } }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* --- 7. Hero ------------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3rem, 1.5rem + 8vw, 6.5rem) clamp(3rem, 2rem + 5vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 70%;
  background: radial-gradient(60% 60% at 70% 0%, rgba(125,249,196,.07), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(2.5rem, 1rem + 6vw, 4rem); }
@media (min-width: 64rem) { .hero__inner { grid-template-columns: 1.02fr .98fr; align-items: center; } }

.hero h1 { margin-block: .75rem 1.25rem; }
.hero h1 .h-accent { color: var(--phosphor); }
.hero__sub { max-width: 46ch; color: #CFCBC4; font-size: var(--step-1); }
.hero__cta { margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; font: 400 var(--step--1)/1.5 var(--mono); color: var(--dimmer); max-width: 40ch; }

/* --- 8. THE MOTIF: 36-view study grid ------------------------------------ */

.studybox { display: grid; gap: 0; }

.vgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
}
.vgrid__cell {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: linear-gradient(148deg, #101317 0%, #171C21 48%, #0D1013 100%);
  overflow: hidden;
}
/* Each cell carries a faint bone-like form so the grid reads as radiographs. */
.vgrid__cell::before {
  content: ""; position: absolute; inset: 14% 32%;
  border-radius: 46% 46% 40% 40% / 30% 30% 60% 60%;
  background: radial-gradient(ellipse at 50% 32%, rgba(242,239,233,.19), rgba(242,239,233,.05) 58%, transparent 76%);
}
.vgrid__cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.16) 50%);
  background-size: 100% 3px; opacity: .5;
}
.vgrid__code {
  position: relative; z-index: 1;
  font: 500 .375rem/1 var(--mono); letter-spacing: .04em;
  color: rgba(242,239,233,.42); text-transform: uppercase;
  text-align: center; padding: 1px;
}
@media (min-width: 30rem) { .vgrid__code { font-size: .5rem; } }
@media (min-width: 64rem) { .vgrid { gap: 4px; padding: 4px; } .vgrid__code { font-size: .5625rem; } }

.vgrid--compact { max-width: 200px; }
.vgrid--compact .vgrid__code { display: none; }

/* Sweep: a reading head passing over the study. */
.vgrid--sweep .vgrid__cell { animation: cellwake 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * 42ms); }
@keyframes cellwake {
  0%, 62%, 100% { box-shadow: inset 0 0 0 0 rgba(125,249,196,0); }
  70%           { box-shadow: inset 0 0 0 1px rgba(125,249,196,.55); }
  84%           { box-shadow: inset 0 0 0 1px rgba(125,249,196,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .vgrid--sweep .vgrid__cell { animation: none; }
}

/* Readout strip beneath the grid, styled as a DICOM header. */
.studybox .readout { border-top: 0; border-radius: 0 0 var(--rad) var(--rad); }
.studybox .vgrid { border-radius: var(--rad) var(--rad) 0 0; }

.readout {
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  background: var(--panel);
  font-family: var(--mono);
  font-size: var(--step--1);
}
.readout__row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .6rem .85rem;
  border-top: 1px solid var(--rule-soft);
}
.readout__row:first-child { border-top: 0; }
.readout dt { color: var(--dimmer); text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; align-self: center; }
.readout dd { margin: 0; color: var(--bone); text-align: right; font-variant-numeric: tabular-nums; }
/* Specificity must beat `.readout dd` above, hence the element qualifier. */
.readout dd.readout__v--ok    { color: var(--phosphor); }
.readout dd.readout__v--warn  { color: var(--amber); }
.readout dd.readout__v--alert { color: var(--oxblood); }

/* --- 9. Panels ----------------------------------------------------------- */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(1.25rem, .9rem + 1.4vw, 2rem);
}
.panel--flush { background: none; }
.panel__br { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--phosphor-d); opacity: .55; }
.panel__br--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel__br--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.panel__br--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.panel__br--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --- 10. Cards & lists --------------------------------------------------- */

.cards { display: grid; gap: 1rem; list-style: none; padding: 0; }
@media (min-width: 44rem) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 44rem) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 76rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--rad);
  padding: clamp(1.15rem, .9rem + 1vw, 1.6rem);
}
.card__n {
  font: 500 .6875rem/1 var(--mono); letter-spacing: .14em;
  color: var(--phosphor); text-transform: uppercase; display: block; margin-bottom: .8rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.card p { color: var(--dim); font-size: var(--step-0); }
.card--lift { transition: border-color .18s, transform .18s; }
.card--lift:hover { border-color: var(--dimmer); transform: translateY(-2px); }

/* Numbered rule-list, like a protocol document. */
.protocol { list-style: none; padding: 0; counter-reset: p; }
.protocol > li {
  counter-increment: p;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.15rem 0; border-top: 1px solid var(--rule);
}
.protocol > li::before {
  content: counter(p, decimal-leading-zero);
  font: 500 var(--step--1)/1.5 var(--mono); color: var(--phosphor); letter-spacing: .08em;
}
.protocol h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.protocol p { color: var(--dim); }

/* Fact rows with a hairline between, tabular figures. */
.facts { list-style: none; padding: 0; }
.facts li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; padding: .95rem 0; border-top: 1px solid var(--rule);
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts__k { color: var(--dim); font-size: var(--step-0); max-width: 34ch; }
.facts__v {
  font: 600 var(--step-2)/1 var(--sans); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--bone);
}
.facts__v em { font-style: normal; font-size: .55em; color: var(--dim); letter-spacing: 0; margin-left: .25rem; }

/* Timeline */
.tl { list-style: none; padding: 0; }
.tl li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.tl time { font: 500 var(--step--1)/1.5 var(--mono); color: var(--dim); letter-spacing: .06em; }
.tl span { color: var(--bone); }
.tl li[data-state="done"] time { color: var(--phosphor); }
.tl li[data-state="active"] span::after {
  content: "in progress"; margin-left: .6rem;
  font: 500 .625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  padding: .25rem .4rem; border-radius: 2px; white-space: nowrap;
}
.tl li[data-state="next"] span { color: var(--dim); }

/* People */
.people { display: grid; gap: 1rem; list-style: none; padding: 0; }
@media (min-width: 44rem) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--rad); padding: 1.35rem; }
.person__name { font-size: var(--step-1); font-weight: 600; letter-spacing: -.015em; }
.person__role { font: 500 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--phosphor); margin-block: .5rem .75rem; }
.person p { color: var(--dim); font-size: var(--step-0); }

/* Landscape list of real institutions */
.orgs { list-style: none; padding: 0; }
.orgs li { padding: 1.05rem 0; border-top: 1px solid var(--rule); }
.orgs li:last-child { border-bottom: 1px solid var(--rule); }
.orgs__name { font-weight: 600; font-size: var(--step-1); letter-spacing: -.015em; }
.orgs__place { font: 500 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dimmer); margin-left: .6rem; }
.orgs p { color: var(--dim); margin-top: .35rem; }

/* Callout / quote */
.callout {
  border-left: 2px solid var(--phosphor);
  padding: .35rem 0 .35rem 1.25rem;
  color: #D6D2CB; font-size: var(--step-1); max-width: 54ch;
}

/* --- 11. Sample marking -------------------------------------------------- */

.demobar {
  background: repeating-linear-gradient(135deg, #241d06, #241d06 9px, #1e1905 9px, #1e1905 18px);
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: #F6DFA8; padding: .55rem var(--gut);
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  font-size: var(--step--1); text-align: center;
}
.demobar p { max-width: 90ch; }
.demobar code { font-family: var(--mono); color: var(--amber); font-size: .95em; }
.demobar strong { color: var(--amber); }
.demobar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

.sample-tag {
  display: inline-block; vertical-align: middle;
  font: 600 .5625rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  padding: .28rem .42rem; border-radius: 2px; margin-left: .5rem;
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.is-sample { position: relative; }
.is-sample::after {
  content: ""; position: absolute; inset: -.5rem; pointer-events: none;
  border: 1px dashed color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: var(--rad);
}

/* --- 12. Forms ----------------------------------------------------------- */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font: 500 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim);
}
.field label .req { color: var(--phosphor); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .85rem;
  background: var(--film); color: var(--bone);
  border: 1px solid var(--rule); border-radius: var(--rad);
  font-size: var(--step-0);
  transition: border-color .16s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #4E565D; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--dimmer); }
.field__hint { font-size: var(--step--1); color: var(--dimmer); }
@media (min-width: 44rem) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; } }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.formnote { font-size: var(--step--1); color: var(--dimmer); max-width: 58ch; }
.formmsg { padding: .9rem 1rem; border-radius: var(--rad); font-size: var(--step-0); border: 1px solid; }
.formmsg[data-kind="ok"]  { border-color: var(--phosphor-d); background: rgba(125,249,196,.07); color: #BFF7E0; }
.formmsg[data-kind="err"] { border-color: var(--oxblood); background: rgba(196,72,92,.08); color: #F0C3CB; }
.formmsg[hidden] { display: none; }

/* --- 13. Footer ---------------------------------------------------------- */

.ftr { background: var(--film); border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 2rem; }
.ftr__top { display: grid; gap: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .ftr__top { grid-template-columns: 1fr auto; align-items: start; gap: 3rem; } }
.ftr__tag { margin-top: .9rem; color: var(--dim); max-width: 34ch; font-size: var(--step-0); }
.ftr__nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 2rem; }
@media (min-width: 48rem) { .ftr__nav ul { grid-template-columns: repeat(3, auto); gap: .35rem 2rem; } }
.ftr__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 var(--step--1)/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim); text-decoration: none;
}
@media (min-width: 48rem) { .ftr__nav a { min-height: 32px; } }
.ftr__nav a:hover { color: var(--bone); }
.ftr__notice { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.ftr__notice p { font-size: var(--step--1); color: var(--dim); max-width: 88ch; line-height: 1.6; }
.ftr__notice strong { color: var(--bone); }
.ftr__legal { padding-top: 1.5rem; display: grid; gap: .4rem; font-size: var(--step--1); color: var(--dimmer); }
@media (min-width: 48rem) { .ftr__legal { grid-template-columns: 1fr auto; } .ftr__legal p:last-child { text-align: right; } }
.ftr__legal a { color: var(--dim); display: inline-block; min-height: 44px; line-height: 44px; }
@media (min-width: 48rem) { .ftr__legal a { min-height: 0; line-height: inherit; } }

/* --- 14. Prose (legal pages) --------------------------------------------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.prose h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: .5rem; }
.prose li { color: #CFCBC4; }
.prose a { color: var(--phosphor); }
.prose__meta { font: 500 var(--step--1)/1.5 var(--mono); color: var(--dimmer); text-transform: uppercase; letter-spacing: .1em; }

/* --- 15. Page head band -------------------------------------------------- */

.pagehead { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1rem + 3vw, 3rem); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.pagehead::after {
  content: ""; position: absolute; right: calc(var(--gut) * -1); bottom: -40%;
  width: 260px; height: 260px; opacity: .28; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
}
.pagehead h1 { font-size: var(--step-3); margin-block: .6rem .9rem; }
.pagehead .lede { position: relative; }

/* --- 16. CTA band -------------------------------------------------------- */

.ctaband { background: var(--film); border-top: 1px solid var(--rule); }
.ctaband__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .ctaband__inner { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.ctaband h2 { font-size: var(--step-3); }

/* --- 17. Utilities ------------------------------------------------------- */
/* Deliberately few. Inline style attributes are forbidden by our own CSP,
   so every spacing exception lives here as a named class. */

.mt-xs { margin-top: .5rem; }
.mt-s  { margin-top: .9rem; }
.mt-1  { margin-top: 1.1rem; }
.mt-2  { margin-top: 1.25rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 1.75rem; }
.mt-5  { margin-top: 2rem; }
.mt-6  { margin-top: 2.25rem; }
.mt-7  { margin-top: 2.5rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 1.25rem; }
.mb-5  { margin-bottom: 2rem; }
.mbk-a { margin-block: .9rem 1.1rem; }
.mw-46 { max-width: 46ch; }
.mw-48 { max-width: 48ch; }
.mw-70 { max-width: 70ch; }
.mw-74 { max-width: 74ch; }
.fs-xs { font-size: var(--step--1); }

/* Stagger the reading sweep across the 36 cells. Generated rather than set
   inline, so the strict Content-Security-Policy holds. */
.vgrid--sweep .vgrid__cell:nth-child(1) { animation-delay: 0ms; }
.vgrid--sweep .vgrid__cell:nth-child(2) { animation-delay: 42ms; }
.vgrid--sweep .vgrid__cell:nth-child(3) { animation-delay: 84ms; }
.vgrid--sweep .vgrid__cell:nth-child(4) { animation-delay: 126ms; }
.vgrid--sweep .vgrid__cell:nth-child(5) { animation-delay: 168ms; }
.vgrid--sweep .vgrid__cell:nth-child(6) { animation-delay: 210ms; }
.vgrid--sweep .vgrid__cell:nth-child(7) { animation-delay: 252ms; }
.vgrid--sweep .vgrid__cell:nth-child(8) { animation-delay: 294ms; }
.vgrid--sweep .vgrid__cell:nth-child(9) { animation-delay: 336ms; }
.vgrid--sweep .vgrid__cell:nth-child(10) { animation-delay: 378ms; }
.vgrid--sweep .vgrid__cell:nth-child(11) { animation-delay: 420ms; }
.vgrid--sweep .vgrid__cell:nth-child(12) { animation-delay: 462ms; }
.vgrid--sweep .vgrid__cell:nth-child(13) { animation-delay: 504ms; }
.vgrid--sweep .vgrid__cell:nth-child(14) { animation-delay: 546ms; }
.vgrid--sweep .vgrid__cell:nth-child(15) { animation-delay: 588ms; }
.vgrid--sweep .vgrid__cell:nth-child(16) { animation-delay: 630ms; }
.vgrid--sweep .vgrid__cell:nth-child(17) { animation-delay: 672ms; }
.vgrid--sweep .vgrid__cell:nth-child(18) { animation-delay: 714ms; }
.vgrid--sweep .vgrid__cell:nth-child(19) { animation-delay: 756ms; }
.vgrid--sweep .vgrid__cell:nth-child(20) { animation-delay: 798ms; }
.vgrid--sweep .vgrid__cell:nth-child(21) { animation-delay: 840ms; }
.vgrid--sweep .vgrid__cell:nth-child(22) { animation-delay: 882ms; }
.vgrid--sweep .vgrid__cell:nth-child(23) { animation-delay: 924ms; }
.vgrid--sweep .vgrid__cell:nth-child(24) { animation-delay: 966ms; }
.vgrid--sweep .vgrid__cell:nth-child(25) { animation-delay: 1008ms; }
.vgrid--sweep .vgrid__cell:nth-child(26) { animation-delay: 1050ms; }
.vgrid--sweep .vgrid__cell:nth-child(27) { animation-delay: 1092ms; }
.vgrid--sweep .vgrid__cell:nth-child(28) { animation-delay: 1134ms; }
.vgrid--sweep .vgrid__cell:nth-child(29) { animation-delay: 1176ms; }
.vgrid--sweep .vgrid__cell:nth-child(30) { animation-delay: 1218ms; }
.vgrid--sweep .vgrid__cell:nth-child(31) { animation-delay: 1260ms; }
.vgrid--sweep .vgrid__cell:nth-child(32) { animation-delay: 1302ms; }
.vgrid--sweep .vgrid__cell:nth-child(33) { animation-delay: 1344ms; }
.vgrid--sweep .vgrid__cell:nth-child(34) { animation-delay: 1386ms; }
.vgrid--sweep .vgrid__cell:nth-child(35) { animation-delay: 1428ms; }
.vgrid--sweep .vgrid__cell:nth-child(36) { animation-delay: 1470ms; }
