/* ============================================================
   XE — Night Watch
   Core system: layout, type, navigation, film scenes, components.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  letter-spacing: var(--track-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: var(--track-snug);
  line-height: 1.04;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--lime);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.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: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: #000;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* ---------- Type helpers -------------------------------- */

.display {
  font-size: var(--step-6);
  line-height: 0.9;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}

.headline {
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: var(--track-tight);
}

.title {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: var(--track-snug);
}

/* Arrow art inside a heading carries no width of its own and would
   otherwise render at the SVG default of 300x150, dragging the row. */
.title > svg {
  width: 0.66em;
  height: 0.66em;
  display: inline-block;
  vertical-align: 0.06em;
  margin-left: 0.18em;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--paper-2);
  letter-spacing: var(--track-snug);
  max-width: 46ch;
  /* A lead is three to five lines, so balance is the right tool: it evens the
     line lengths and a lone word cannot be left hanging. Measured, pretty
     alone still orphaned eight leads. Long body copy keeps pretty instead,
     because balance stops being useful past about six lines. */
  text-wrap: balance;
}

.body {
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--paper-2);
  max-width: 64ch;
  text-wrap: pretty;
}

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-3);
}

.label--lime { color: var(--lime); }
.label--paper { color: var(--paper-2); }

/* A claim that is still being proven says so next to its name. */
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.6em;
  padding: 3px 7px 4px;
  border: 1px solid var(--lime);
  color: var(--lime);
  font: 400 9px/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transform: translateY(-0.18em);
  white-space: nowrap;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--paper-3);
}

.accent { color: var(--lime); }
.muted { color: var(--paper-3); }

.prose p + p { margin-top: 1em; }
.prose a {
  color: var(--paper);
  box-shadow: inset 0 -1px 0 var(--lime);
  transition: color var(--dur-1) var(--ease-out);
}
.prose a:hover { color: var(--lime); }

/* ---------- Layout -------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1200px) {
  .shell { padding-inline: clamp(40px, 4vw, 72px) clamp(40px, 4vw, 72px); }
}

.band {
  position: relative;
  padding-block: var(--band-y);
  border-top: 1px solid var(--line);
}

.band--flush { padding-block: 0; }
.band--surface { background: var(--surface-1); }

/* ---------- Band header --------------------------------- */

/* A band that opens on evidence needs to say what the evidence is.
   The rule under the meta line is the same weight as a band border, so
   the header reads as structure, not as another box. */

.bandhead {
  margin-bottom: clamp(30px, 4vw, 52px);
}

/* The band head used to open on a rule carrying a short lime note above the
   heading. That row is gone from shell.mjs, so the heading is now the first
   thing in the band and must not keep the offset it had under the note. */
.bandhead h2 {
  margin-top: 0;
  max-width: 22ch;
}

.bandhead .lead {
  margin-top: clamp(14px, 1.8vw, 20px);
  max-width: 54ch;
  color: var(--paper-2);
  text-wrap: balance;
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}

.split {
  display: grid;
  gap: clamp(32px, 5vw, 96px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hairline {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Chapter rail -------------------------------- */

.rail {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--rail);
  z-index: var(--z-rail);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
@media (min-width: 1240px) {
  .rail { display: flex; }
  .shell { padding-left: calc(var(--gutter) + 8px); }
}

.rail__track {
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  top: 0;
  bottom: 0;
  background: var(--line);
  opacity: 0.55;
}
/* `.rail__fill` was a scroll meter drawn on the chapter rail. The rail marks
   which section you are in, which is wayfinding; the fill measured progress
   through the document, which is the thing DESIGN.md bans. */

.rail__list {
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.rail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  font: 400 10px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--paper-3);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}
/* The rail used to print a chapter number (01..08) beside every tick. Those
   numbers are the scene notation removed from the film itself, so the rail now
   marks position with a dot and names the chapter on hover. */
.rail__num { display: none; }
.rail__item::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper-3);
  opacity: 0.6;
  transition: opacity var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.rail__item:hover::before,
.rail__item:focus-visible::before { opacity: 1; background: var(--paper); }
.rail__item.is-active::before { opacity: 1; background: var(--lime); }
.rail__item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 11px);
  width: 12px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease-out);
}
.rail__item:hover,
.rail__item:focus-visible { color: var(--paper); }
.rail__item.is-active { color: var(--paper); }
.rail__item.is-active::after { transform: scaleX(1); }
.rail__item:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}

.rail__label {
  position: absolute;
  top: 50%;
  left: calc(50% + 26px);
  padding: var(--space-2) var(--space-3);
  background: var(--void);
  border: 1px solid var(--line-strong);
  color: var(--paper-2);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 1;
  transform: translate(0, -50%);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out),
    color var(--dur-1) var(--ease-out);
}
html.js .rail__label {
  opacity: 0;
  transform: translate(-6px, -50%);
}
.rail__item:hover .rail__label,
.rail__item:focus-visible .rail__label {
  opacity: 1;
  color: var(--paper);
  transform: translate(0, -50%);
}

/* ---------- Navigation ---------------------------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  opacity: 1;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.site-nav.is-solid {
  /* Near-opaque on purpose: at 92% the headline of the previous section stayed
     legible through the bar, so scrolled-under copy read as ghost text behind
     the logo and links. */
  background: rgba(0, 0, 0, 0.985);
  border-bottom-color: var(--line);
}
.site-nav.is-solid::before { opacity: 0; }

.site-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
/* The mark is the real logo file, not a CSS drawing. Sized here explicitly
   because the site's global img rule sets height:auto, which would otherwise
   leave the box taller than the nav. */
.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand:hover .brand__mark img {
  filter: brightness(1.25) saturate(0);
  transition: filter var(--dur-2) var(--ease-out);
}
.brand__word {
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--paper-2);
  padding-block: 6px;
  transition: color var(--dur-1) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
@media (min-width: 1000px) {
  /* The two nav groups were sitting 24px apart by accident and 12px apart
     inside, so the header read as three unrelated gaps. Pin both: 32px between
     the link group and the actions, 20px between Sign in and Download. */
  .nav-actions { margin-left: 32px; }
}

/* Portal entry sits beside Download; below 640px the menu carries it instead. */
.nav-link--signin { display: none; }
@media (min-width: 640px) {
  .nav-link--signin { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 22px;
}
.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

/* ---------- Buttons ------------------------------------- */

.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.btn svg { width: 13px; height: 13px; }

.btn--primary {
  background: var(--lime);
  color: #000;
}
.btn--primary:hover { background: #b9f24f; }
/* Pressed state. The site had hover and focus but nothing on :active, so a
   click felt unacknowledged on a page whose whole job is to feel immediate. */
.btn:active { transform: translateY(1px); }
.btn--primary:active { background: color-mix(in oklab, var(--lime) 88%, #000); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(0, 0, 0, 0.25);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--quiet {
  height: auto;
  padding: 8px 0;
  color: var(--paper-2);
  border: 0;
  background: none;
}
.btn--quiet:hover { color: var(--lime); }
.btn--quiet:active { color: var(--paper); }

.btn--sm { --btn-h: 38px; padding-inline: 16px; font-size: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { color: var(--lime); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Film (hero) --------------------------------- */

.film {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.film__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-media);
  overflow: hidden;
}
.film__media video,
.film__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  will-change: transform;
}
.film__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #000 2%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.24) 62%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(120% 90% at 18% 90%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 62%);
  z-index: var(--z-scrim);
}

.film__inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  padding-bottom: clamp(28px, 4vw, 56px);
  padding-top: calc(var(--nav-h) + 40px);
}

.film__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: clamp(28px, 6vh, 72px);
}

.film__live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.film__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.6s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

.film__title {
  font-size: var(--step-6);
  line-height: 0.88;
  letter-spacing: var(--track-tight);
  font-weight: 400;
  max-width: 16ch;
}

.film__bottom {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .film__bottom { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr); }
}

.film__lead {
  font-size: var(--step-1);
  line-height: 1.4;
  color: #d6d6d6;
  max-width: 34ch;
  letter-spacing: var(--track-snug);
}
.film__lead strong { color: var(--paper); font-weight: 400; }

.film__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.film__channels {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.film__channels li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.film__channels li span:last-child { color: var(--paper-3); }

.film__scroll {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-3);
  align-self: end;
}
.film__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  position: relative;
  overflow: hidden;
}
.film__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: drop 2.4s var(--ease-in-out) infinite;
}
@keyframes drop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-width: 899px) {
  .film__scroll { display: none; }
}

/* ---------- Scene (full-bleed chapter) ------------------ */

.scene {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.scene--tall { min-height: 108svh; }
.scene--cinema {
  min-height: 158svh;
  display: block;
  /* overflow:hidden on the section would make it the scroll container for its
     own sticky child, so the stage would sit at the top of the band and scroll
     away with it instead of pinning. The reader then sees straight through to
     the black body for the rest of the shot - the dead band this section exists
     to remove. The stage clips its own bleed, so the band can be visible. */
  overflow: visible;
}
.scene__stage {
  position: sticky;
  width: 100%;
  top: 0;
  height: 100svh;
  overflow: hidden;
  perspective: 1400px;
  background: var(--void);
}
.scene--cinema .scene__media {
  transform-origin: 50% 52%;
  backface-visibility: hidden;
}

.scene__media {
  position: absolute;
  /* Oversized on both axes. The scene camera turns up to 7deg on Y, and a
     rotation foreshortens the far edge by roughly sin(7deg) of half the
     width - about 116px at 1440. Without horizontal bleed that edge pulls
     inside the frame and the reader sees the black stage, which is the exact
     dead corner this section is meant to remove. */
  inset: -8% -12%;
  z-index: var(--z-media);
  overflow: hidden;
}
.scene__media video,
.scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 55%);
}
.scene--right .scene__media::after {
  background:
    linear-gradient(268deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 55%);
}

.scene__slate {
  position: absolute;
  top: calc(var(--nav-h) + 18px);
  right: var(--gutter);
  z-index: var(--z-content);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.scene__num {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--paper-2);
}
@media (max-width: 899px) {
  .scene__slate { display: none; }
}

.scene__inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  padding-block: clamp(80px, 12vh, 140px);
}
.scene--cinema .scene__inner {
  display: flex;
  align-items: center;
  min-height: 100svh;
}

.scene__body { max-width: 34rem; }
.scene--right .scene__body { margin-left: auto; }

.scene__index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.scene__index .num { font-size: 11px; color: var(--lime); }
.scene__index .label { color: var(--paper-3); }

.scene__title {
  font-size: var(--step-5);
  line-height: 0.94;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}

.scene__copy {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: var(--step-1);
  line-height: 1.5;
  color: #cfcfcf;
  max-width: 36ch;
  letter-spacing: var(--track-snug);
}

.scene__points {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 30rem;
}
.scene__points li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper-2);
}
.scene__points li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 8px;
  background: var(--lime);
}

.scene__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* The handover. This started as a 140px gradient, which on a near-black page
   read as a vignette and nobody noticed it. It is now a panel that slides up
   from the bottom edge until it stands the full height of the stage, with the
   next section waiting underneath.

   It slides rather than stretches. The first version scaled the panel on Y,
   which wiped correctly but also squashed the 1px brand rule on its leading
   edge to a third of a pixel, so the one mark that was meant to announce the
   handover vanished. A translate keeps that edge a real pixel at any point on
   the track. Motion writes --seam from 0 to 1 across the last third. */
.scene__seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  z-index: var(--z-content);
  pointer-events: none;
  background: var(--surface-1);
  transform: translate3d(0, calc((1 - var(--seam, 0)) * 100%), 0);
  will-change: transform;
}
/* The leading edge carries the brand colour across the full width. It is the
   one mark on the page that says handover rather than the film running out,
   so it is a rule, not a dash, it fades to nothing on the right instead of
   stopping dead, and the glow underneath keeps the cut from feeling brutal. */
.scene__seam::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    rgba(163, 230, 53, 0.5) 30%,
    rgba(163, 230, 53, 0.06) 100%
  );
  box-shadow: 0 0 26px rgba(163, 230, 53, 0.16);
}

.scene__stage > .scene__inner {
  z-index: var(--z-content);
  /* Motion drains this ahead of the rising panel. Without it the panel edge
     sliced through the lead paragraph mid-wipe, which read as a rendering
     fault rather than a handover. */
  opacity: var(--inner-fade, 1);
}

@media (prefers-reduced-motion: reduce) {
  .scene--cinema { min-height: 100svh; }
  .scene__stage { position: relative; }
}

/* ---------- Hero depth stage ----------------------------- */

/* One real film inside a sticky 3D camera. The extra scroll distance is the
   shot: the screen pushes toward the viewer while the copy lifts away. The
   poster remains painted until decoded frames replace it. */
.depth {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: var(--void);
  border-bottom: 1px solid var(--line);
}
.depth--cinema { min-height: 158svh; }
.depth__stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: end;
  height: 100svh;
  padding-top: calc(var(--nav-h) + 16px);
  overflow: hidden;
  perspective: 1400px;
  background: var(--void);
}
.depth__camera {
  position: absolute;
  inset: 0;
  z-index: var(--z-media);
  transform-origin: 50% 58%;
  transform-style: preserve-3d;
  will-change: transform;
}
.depth__screen {
  position: absolute;
  /* Same bleed rule as the scenes: the hero camera rotates too, so an
     inset:0 screen would uncover the stage at its far edge. */
  inset: -6% -8%;
  overflow: hidden;
  background: var(--surface-2);
  transform: scale(1.08);
  will-change: transform;
}
.depth__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08) brightness(0.88);
}
.depth__flare {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  transform: translateZ(120px);
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.1) 49%, transparent 62%);
  mix-blend-mode: screen;
}

/* The scrim is what keeps white type legible over a busy street. It is darker
   at the foot of the frame, where the copy sits, and clear at the top, where
   the photograph has to be seen. */
.depth__veil {
  position: absolute;
  inset: 0;
  z-index: var(--z-scrim);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(0, 0, 0, 0.16) 24%,
      rgba(0, 0, 0, 0.52) 56%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    radial-gradient(120% 82% at 16% 92%, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0) 62%);
}
.depth__vignette {
  position: absolute;
  inset: 0;
  z-index: var(--z-scrim);
  pointer-events: none;
  background: radial-gradient(118% 88% at 50% 42%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
}
.depth__grain {
  position: absolute;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.depth__copy {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  justify-items: start;
  gap: clamp(12px, 1.5vw, 20px);
  padding-block: clamp(88px, 22vh, 240px) clamp(32px, 6vh, 68px);
}
.depth__title {
  max-width: 19ch;
  text-wrap: balance;
}
.depth__lead { max-width: 42ch; }
.depth__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 6px;
}
/* One filled primary per screen: the second hero action is typographic, so it
   needs its own tap height rather than inheriting an 11px line box. */
.depth__alt {
  min-height: 44px;
  padding: 4px 2px;
}

/* The frame readout ("Frame / Lagos, Nigeria") that used to sit in the corner
   of the hero has been removed. It annotated the photograph rather than saying
   anything about the product, so its rules went with it. */

.depth__cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: var(--z-content);
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  transition: opacity var(--dur-3) var(--ease-out);
}
.depth__cue i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  display: block;
  background: var(--lime);
  animation: depth-cue 2.6s var(--ease-in-out) infinite;
}
@keyframes depth-cue {
  0% { transform: translateY(-20px); }
  55% { transform: translateY(52px); }
  100% { transform: translateY(52px); }
}
.depth.is-travelling .depth__cue { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .depth--cinema { min-height: 100svh; }
  .depth__stage { position: relative; }
  .depth__cue i { animation: none; height: 20px; }
  .depth__grain { display: none; }
}

@media (max-width: 760px) {
  .depth__screen video { object-position: 50% 50%; }
  .depth__flare { display: none; }
  .depth__copy { padding-block: clamp(140px, 34vh, 260px) clamp(28px, 5vh, 48px); }
  .depth__title { max-width: 14ch; }
}

/* ---------- Statement band ------------------------------ */

.statement {
  padding-block: clamp(80px, 12vw, 190px);
  border-top: 1px solid var(--line);
  position: relative;
}
.statement__text {
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: var(--track-tight);
  max-width: 22ch;
}
.statement__grid {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .statement__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

.signal-line {
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.signal-line > span {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  display: block;
}
html.motion .signal-line > span { will-change: transform; }

/* ---------- Dispatch console (pinned) ------------------- */

.dispatch {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--void);
}
.dispatch__pin {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
}
.dispatch__grid {
  display: grid;
  gap: clamp(36px, 6vw, 96px);
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 1000px) {
  .dispatch__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}

.dispatch__list { border-top: 1px solid var(--line-strong); }
.dispatch__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  opacity: 0.32;
  transition: opacity var(--dur-3) var(--ease-out);
}
.dispatch__row.is-live { opacity: 1; }
.dispatch__row::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out);
}
.dispatch__row.is-live::before { transform: scaleX(1); }

.dispatch__row .num { font-size: 10px; }
.dispatch__name {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.6rem);
  letter-spacing: var(--track-snug);
}
.dispatch__state {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
  text-align: right;
}
.dispatch__row.is-live .dispatch__state { color: var(--lime); }

.dispatch__note {
  margin-top: 26px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-3);
  max-width: 40ch;
}

.dispatch__hud {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.dispatch__hud div { display: grid; gap: 6px; }
.dispatch__hud dt {
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-4);
}
.dispatch__hud dd {
  margin: 0;
  font: 400 12px/1 var(--font-mono);
  color: var(--paper-2);
}

/* ---------- Feature index ------------------------------- */

.idx { border-top: 1px solid var(--line-strong); }

.idx__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left var(--dur-2) var(--ease-out);
}
.idx__row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(163, 230, 53, 0.06), rgba(163, 230, 53, 0));
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.idx__row:hover::after,
.idx__row:focus-within::after { opacity: 1; }

.idx__n {
  font: 400 10px/1 var(--font-mono);
  color: var(--paper-4);
  transition: color var(--dur-2);
}
.idx__row:hover .idx__n { color: var(--lime); }

.idx__name {
  font-size: clamp(1.15rem, 0.95rem + 1.1vw, 2rem);
  line-height: 1.15;
  letter-spacing: var(--track-snug);
  color: var(--paper);
}
.idx__claim {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-3);
  letter-spacing: var(--track-body);
}

.idx__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--paper-2);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.idx__go svg { width: 14px; height: 14px; }
.idx__row:hover .idx__go {
  background: var(--lime);
  border-color: var(--lime);
  color: #000;
  transform: rotate(-45deg);
}

.idx__row a { position: absolute; inset: 0; z-index: 2; }

/* The rows that ship but are not numbered. Same list, quieter. */
.also {
  margin-top: clamp(46px, 6vw, 76px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.also__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.also__note {
  font: 400 10px/1.4 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-4);
}
.also__list { margin-top: 6px; }
.also__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: baseline;
  gap: 12px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-out);
}
.also__name {
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  color: var(--paper-2);
  letter-spacing: var(--track-snug);
  transition: color var(--dur-2);
}
.also__claim {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--paper-4);
}
.also__go {
  color: var(--paper-4);
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.also__go svg { width: 13px; height: 13px; display: block; }
.also__row:hover { border-color: var(--line-strong); }
.also__row:hover .also__name { color: var(--paper); }
.also__row:hover .also__go { color: var(--lime); transform: rotate(-45deg); }
@media (max-width: 640px) {
  .also__row { grid-template-columns: minmax(0, 1fr) auto; }
  .also__claim { grid-column: 1 / -1; }
}

/* Cursor peek image */
.peek {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 200px;
  z-index: var(--z-cursor);
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(-50%, -50%, 0) scale(0.94);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  /* Hidden until the pointer is actually over a row. Without this it
     parks a stranded thumbnail in the top-left corner in the static
     and reduced-motion builds. */
  opacity: 0;
}
html.motion .peek { opacity: 0; }
.peek img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.peek.is-on { opacity: 1; }
@media (hover: none), (max-width: 1023px) { .peek { display: none; } }

/* ---------- Full-bleed video band ------------------------- */

.video-band {
  position: relative;
  min-height: 150svh;
  background: var(--void);
  border-block: 1px solid var(--line);
}
.video-band__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  perspective: 1400px;
  background: var(--surface-2);
}
.video-band__camera {
  position: absolute;
  inset: -10%;
  transform: scale(1.08);
  transform-origin: 50% 54%;
  will-change: transform;
}
.video-band__camera video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.86);
}
.video-band__scrim {
  position: absolute;
  inset: 0;
  z-index: var(--z-scrim);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 58%);
}
.video-band__copy {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 40px) 72px;
}
.video-band__copy .display { max-width: 15ch; color: var(--paper); }
.video-band__copy .lead { margin-top: 24px; max-width: 42ch; color: var(--paper-2); }
/* There used to be a slate in the bottom-right corner of every film reading
   "XE Limited / Lagos, Nigeria". It carried no link, closed no section and
   told the reader nothing about the picture above it, so it is gone along
   with the markup in shell.mjs. */
@media (max-width: 760px) {
  .video-band__scrim {
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.56) 62%, rgba(0, 0, 0, 0.14) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
  }
  .video-band__copy { align-content: center; padding-bottom: 72px; }
  .video-band__copy .display { font-size: clamp(2.7rem, 13vw, 4rem); }
  .video-band__copy .lead { margin-top: 16px; font-size: 1rem; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .video-band { min-height: 100svh; }
  .video-band__stage { position: relative; }
}

/* ---------- Facts / proof ------------------------------- */

.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 780px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fact {
  padding-block: clamp(22px, 2.6vw, 34px) clamp(26px, 3vw, 40px);
  padding-inline: clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
@media (max-width: 779px) {
  .fact { border-right: 0; padding-inline: 0; }
}
.fact__k {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: var(--track-tight);
}
.fact__k small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-left: 6px;
  vertical-align: 4px;
}
.fact__d {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper-3);
  max-width: 26ch;
}

/* ---------- Tiers --------------------------------------- */

.tiers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tier {
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  background: var(--void);
  transition: background var(--dur-2) var(--ease-out);
}
.tier:hover { background: var(--surface-1); }
.tier--feature { background: var(--surface-1); }
.tier--feature::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: 0;
  height: 1px;
  background: var(--lime);
}
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier__name { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-mono); }
.tier__price { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1; letter-spacing: var(--track-tight); }
.tier__price span { font-size: 13px; color: var(--paper-3); letter-spacing: 0; font-family: var(--font-mono); }
.tier__note { font-size: 1rem; color: var(--paper-3); }
.tier__list { display: grid; gap: 0; margin-top: auto; }
.tier__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--paper-2);
}
.tier__list li::before {
  content: "";
  width: 4px; height: 4px;
  margin-top: 7px;
  flex: none;
  background: var(--lime);
}
.tier__list li.is-off { color: var(--paper-4); }
.tier__list li.is-off::before { background: var(--paper-4); }

/* ---------- Accordion ----------------------------------- */

.acc { border-top: 1px solid var(--line-strong); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  padding: clamp(20px, 2.2vw, 28px) 0;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: var(--track-snug);
  color: var(--paper);
  transition: color var(--dur-1);
}
.acc__btn:hover { color: var(--lime); }
.acc__ico {
  position: relative;
  width: 15px; height: 15px;
  flex: none;
}
.acc__ico::before,
.acc__ico::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.acc__ico::before { left: 0; right: 0; top: 7px; height: 1px; }
.acc__ico::after { top: 0; bottom: 0; left: 7px; width: 1px; }
.acc__btn[aria-expanded="true"] .acc__ico::after { transform: scaleY(0); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-3) var(--ease-out);
}
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p {
  padding-bottom: clamp(20px, 2.2vw, 28px);
  max-width: 68ch;
  color: var(--paper-2);
  line-height: 1.65;
}

/* ---------- CTA band ------------------------------------ */

.cta {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62));
}
.cta__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(72px, 10vw, 150px);
  display: grid;
  gap: 32px;
  justify-items: start;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; justify-items: initial; }
}
.cta__title {
  font-size: var(--step-5);
  line-height: 0.94;
  letter-spacing: var(--track-tight);
  max-width: 18ch;
}
.cta__aside { display: grid; gap: 16px; align-content: end; justify-items: start; }
.cta__aside p { font-size: 1rem; color: var(--paper-2); line-height: 1.6; max-width: 32ch; }

/* ---------- Mobile menu -------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--void);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-3) var(--ease-out);
  visibility: hidden;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.menu__list { display: grid; gap: 4px; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  letter-spacing: var(--track-snug);
  transition: color var(--dur-1);
}
.menu__list a:hover { color: var(--lime); }
.menu__list a span {
  font: 400 10px/1 var(--font-mono);
  color: var(--paper-4);
  letter-spacing: 0.1em;
}
.menu__foot { display: grid; gap: 16px; }
.menu__foot .btn { width: 100%; }
.menu__foot p {
  font: 400 10px/1.8 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-4);
}

/* ---------- Route veil ---------------------------------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--void);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms linear;
}
.veil.is-on { opacity: 1; }

/* ---------- Footer -------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--void);
  position: relative;
  overflow: hidden;
}
.footer__top {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
}
.footer__cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer__col h3 {
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-4);
  margin-bottom: 16px;
}
.footer__col li + li { margin-top: 0; }
/* A footer link is a tap target on a phone, so the hit area is 44px tall even
   though the label is 14px. Padding, not line-height, so the text stays a
   comfortable two-line rhythm when a label wraps. */
.footer__col a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  color: var(--paper-2);
  transition: color var(--dur-1);
}
.footer__col a:hover { color: var(--lime); }

.footer__statement {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-3);
  max-width: 34ch;
}

/* The two asks live with the brand statement rather than as a fifth link
   column, because they are the reason to be at the bottom of a page. */
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* The portal entry is not a page in either group, so it is not in the index.
   It sits under the asks, where someone who already has an account looks. */
.footer__signin {
  margin: 4px 0 0;
  font-size: 14px;
}
.footer__signin a {
  display: inline-block;
  padding: 14px 0;
  color: var(--paper-3);
  transition: color var(--dur-1);
}
.footer__signin a:hover { color: var(--lime); }

/* No oversized footer wordmark. A page-wide "XE" painted at 17rem behind the
   legal strip was decoration that every other product page also had, which is
   the tell DESIGN.md bans. The brand already appears above, as the real mark. */

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font: 400 10px/1.6 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-4);
}

/* The colophon is three stacked lines held apart by a hairline, not a
   middle-dot meta string — a dot-separated "Name · Place · Year" row is the
   single most reliable tell of a generated page. */
.footer__colophon {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ---------- Page head (interior pages) ------------------ */

.pagehead {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px));
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.pagehead__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pagehead__media img { width: 100%; height: 106%; margin-top: -3%; object-fit: cover; opacity: 0.42; }
.pagehead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 40%);
}
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 {
  font-size: var(--step-5);
  line-height: 0.94;
  letter-spacing: var(--track-tight);
  max-width: 20ch;
  margin-top: clamp(16px, 2vw, 26px);
}
.pagehead__lead {
  margin-top: 24px;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 52ch;
  letter-spacing: var(--track-snug);
  text-wrap: balance;
}
.pagehead__badge { margin-bottom: 18px; }
.pagehead__note {
  margin-top: 18px;
  max-width: 46ch;
  font: 400 11px/1.7 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--paper-4);
}
.pagehead__rule {
  width: 56px;
  height: 1px;
  background: var(--lime);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.pagehead__meta {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
  max-width: 56ch;
  color: var(--paper-2);
  font-size: var(--step-0);
  line-height: 1.5;
}
.pagehead__meta li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}
.pagehead__meta li:last-child { border-bottom: 0; }
.pagehead__meta-k {
  color: var(--paper-4);
}
/* The first row used to get the top hairline twice, once from the list and
   once from the row itself. */
.pagehead__meta li:first-child { padding-top: 14px; }

/* ---------- Generic content blocks ---------------------- */

.block { display: grid; gap: clamp(24px, 3vw, 40px); }

.rows { border-top: 1px solid var(--line); }
.rows__row {
  display: grid;
  gap: 8px 32px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .rows__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}
/* News entries sit directly under the page title, so they are h2 and not h3.
   Both are styled the same: the heading level follows the document, the type
   does not have to change with it. */
.rows__row :is(h2, h3) {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: var(--track-snug);
}
/* The beat copy is the substance of a feature page, so it is body size. A
   smaller grey sentence used to be the tell of a generated page. */
.rows__row p { color: var(--paper-2); font-size: 1rem; line-height: 1.62; max-width: 62ch; }
.rows__row p + p { margin-top: 12px; }

.note {
  border-left: 1px solid var(--lime);
  padding: 4px 0 4px 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-2);
  max-width: 62ch;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-2);
  border: 1px solid var(--line-strong);
  padding: 9px 12px;
  border-radius: var(--radius-xs);
}

/* ---------- Forms --------------------------------------- */

.form { display: grid; gap: 22px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field label {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 15px;
  color: var(--paper);
  transition: border-color var(--dur-2) var(--ease-out);
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--lime);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--paper-4); }
.field--row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }

.form__note { font-size: 1rem; color: var(--paper-3); line-height: 1.6; max-width: 44ch; }
.form__status { font: 400 10px/1.6 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }

/* ---------- Texture ------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* ---------- Reveal / motion states ---------------------- */

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html.motion [data-intro] { opacity: 0; }
html.motion [data-mask] { visibility: hidden; }
html.motion [data-mask][data-masked] { visibility: visible; }
html.motion .mask-line > span {
  display: block;
  transform: translateY(112%);
}
.mask-line { display: block; overflow: hidden; padding-bottom: 0.06em; }

/* ---------- Responsive tuning --------------------------- */

@media (max-width: 899px) {
  .film { min-height: 94svh; }
  .film__title { font-size: clamp(2.3rem, 11.4vw, 4.2rem); }
  .film__top .label { display: none; }
  .film__media video,
  .film__media img { object-position: center 62%; }
  .scene { min-height: 88svh; }
  .scene__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .scene__copy { font-size: 1rem; }
  .scene__media::after,
  .scene--right .scene__media::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 8%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.55) 100%);
  }
  .idx__row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .idx__go { width: 32px; height: 32px; }
}

/* `.scene { min-height: 88svh }` above is a plain class selector and a media query
   adds no specificity, so on source order alone it also overrode
   `.scene--cinema { min-height: 158svh }` from earlier in this file. The sticky
   stage is 100svh, so the band collapsed to exactly one viewport - measured at
   390 and 768 wide: 1px of travel. Nothing looked broken and no black gap opened,
   but the scene camera scrubs `start: top top, end: bottom bottom` across that
   band, so with no extra height the shot had nowhere to play. The home page was a
   still slideshow on phones, which is most of the readers.

   Shorter than the desktop 158svh so the scroll stays survivable on a small
   screen, and gated on no-preference: the reduced-motion rule further up sets the
   stage to position:relative, and a 132svh band with a 100svh in-flow stage would
   paint 32svh of bare background under it. */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .scene--cinema { min-height: 132svh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.motion [data-reveal] { opacity: 1; transform: none; }
  html.motion .mask-line > span { transform: none; }
}

/* ---------- Still band + stills grid -------------------- */

.still {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #000;
}
.still__frame {
  position: relative;
  height: clamp(300px, 46vw, 620px);
  overflow: hidden;
}
.still__frame img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  opacity: 0.88;
  will-change: transform;
}
.still__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(96deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.18) 62%);
}
.still__copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 3.4vw, 48px);
  max-width: 46ch;
}
.still__copy .headline { font-size: var(--step-4); max-width: 20ch; }
.still__copy p { margin-top: 16px; color: var(--paper-2); max-width: 48ch; font-size: var(--step-0); line-height: 1.6; }
/* The slate that used to sit over the top-left of every still carried one lime
   label. Decoration laid across reportage is the tell, so the element and this
   rule are both gone. */

.stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stills figure { position: relative; margin: 0; overflow: hidden; background: #000; }
.stills figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.stills figure:hover img { opacity: 1; transform: scale(1.03); }
.stills figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 400 9px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
@media (max-width: 699px) { .stills { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ticker -------------------------------------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface-1);
  padding-block: 14px;
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline: 22px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-3);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--lime);
  opacity: 0.8;
}

/* ---------- Scan line on interior heads ---------------- */

.pagehead__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ---------- Document index (legal pages) ---------------- */

.doc {
  border-top: 1px solid var(--line);
  padding-block: var(--band-y);
}
.doc__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 960px) {
  .doc__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: clamp(48px, 7vw, 128px);
  }
}

.doc__rail { align-self: start; }
@media (min-width: 960px) {
  .doc__rail { position: sticky; top: calc(var(--nav-h) + 28px); }
}

.doc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.doc__count {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--paper-4);
}
.doc__count b { font-weight: 400; color: var(--lime); }

.doc__toc { list-style: none; margin: 0; padding: 0; }
.doc__toc li { border-bottom: 1px solid var(--line); }
.doc__toc a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--paper-3);
  transition: color var(--dur-2) var(--ease-out);
}
.doc__toc a span {
  font: 400 10px/1.7 var(--font-mono);
  color: var(--paper-4);
  transition: color var(--dur-2) var(--ease-out);
}
.doc__toc a em { font-style: normal; }
.doc__toc a:hover { color: var(--paper); }
.doc__toc a[aria-current="true"] { color: var(--paper); }
.doc__toc a[aria-current="true"] span { color: var(--lime); }

/* `.doc__prog` was a reading-progress meter and has been removed; the table of
   contents above it is the wayfinding. */
.doc__note {
  margin-top: 18px;
  font: 400 10px/1.7 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-4);
}

.doc__sec {
  padding-block: clamp(26px, 3.6vw, 42px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 36px);
}
.doc__sec:first-child { border-top: 0; padding-top: 0; }
/* Each clause used to open with a lime "01 / Scope" slate. The contents rail
   already numbers the clauses, so the slate repeated a number the reader can
   see two centimetres away. The heading is now first in the article. */
.doc__h {
  margin-top: 0;
  font-size: var(--step-2);
  line-height: 1.12;
  letter-spacing: var(--track-snug);
  max-width: 26ch;
}
.doc__prose { margin-top: 18px; max-width: 64ch; }
.doc__prose p { color: var(--paper-2); font-size: var(--step-0); line-height: 1.68; }
.doc__prose p + p { margin-top: 0.9em; }
.doc__prose .note { margin-top: 20px; }

@media (max-width: 959px) {
  .doc__toc { display: none; }
  .doc__rail {
    position: sticky;
    top: var(--nav-h);
    z-index: 6;
    padding-block: 14px 10px;
    background: var(--void);
  }
  .doc__head { border-bottom: 0; padding-bottom: 0; }
  .doc__note { display: none; }
}

/* ---------- Contact channels ---------------------------- */

.channels { display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 640px) {
  .channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 56px);
  }
}
@media (min-width: 1100px) {
  .channels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.channels__item {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-block: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}
.channels__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--lime);
  /* Scale, not width: animating width makes the browser re-lay-out the row on
     every frame of the hover. */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
}
.channels__item:hover::after { transform: scaleX(1); }
.channels__no {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--lime);
}
.channels__name {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: var(--track-snug);
}
.channels__desc {
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--paper-2);
  max-width: 34ch;
}
.channels__meta {
  margin-top: 6px;
  font: 400 9.5px/1.5 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-4);
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.clock i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.6s var(--ease-in-out) infinite;
}
.clock b {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

/* ---------- Response ladder ----------------------------- */

.ladder { position: relative; }
.ladder__rail,
.ladder__fill {
  position: absolute;
  left: 7px;
  top: 10px;
  width: 1px;
}
.ladder__rail { bottom: 10px; background: var(--line-strong); }
.ladder__fill {
  height: 0;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(163, 230, 53, 0.45);
}
.ladder__steps { list-style: none; margin: 0; padding: 0; }
.ladder__step {
  position: relative;
  padding: 0 0 clamp(32px, 4.4vw, 56px) 44px;
}
.ladder__step:last-child { padding-bottom: 0; }
.ladder__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: var(--void);
  transition: border-color var(--dur-2) var(--ease-out);
}
.ladder__dot i {
  width: 5px;
  height: 5px;
  background: var(--paper-4);
  transition: background var(--dur-2) var(--ease-out);
}
.ladder__step.is-on .ladder__dot { border-color: var(--lime); }
.ladder__step.is-on .ladder__dot i { background: var(--lime); }
.ladder__when {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.ladder__name {
  margin-top: 10px;
  font-size: var(--step-1);
  line-height: 1.25;
  letter-spacing: var(--track-snug);
}
.ladder__desc {
  margin-top: 8px;
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--paper-2);
  max-width: 46ch;
}

/* ---------- Storage ledger ------------------------------ */

.ledger__wrap { overflow-x: auto; margin-top: 26px; }
.ledger {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}
.ledger thead th {
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--line-strong);
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-4);
}
.ledger tbody th,
.ledger td {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
  /* Legal tables are read, not scanned: 13.5px failed the Phase 6 gate. A flat
     1rem keeps a four-column table inside its wrapper on a phone. */
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper-2);
  vertical-align: top;
}
.ledger tbody th {
  font: 400 11.5px/1.5 var(--font-mono);
  color: var(--paper);
  white-space: nowrap;
}
.ledger .tag {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.ledger .tag--lime { border-color: rgba(163, 230, 53, 0.45); color: var(--lime); }

/* ---------- FAQ index ----------------------------------- */

.acc--num .acc__btn { gap: 18px; }
.acc__no {
  flex: none;
  width: 26px;
  padding-top: 3px;
  font: 400 10px/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--paper-4);
  transition: color var(--dur-2) var(--ease-out);
}
.acc__q { flex: 1 1 auto; }
.acc__item.is-open .acc__no { color: var(--lime); }

button.chip {
  background: none;
  cursor: pointer;
  transition: color var(--dur-1), border-color var(--dur-1);
}
button.chip:hover { color: var(--paper); border-color: var(--line-bright); }
button.chip.is-on { color: var(--lime); border-color: rgba(163, 230, 53, 0.45); }

.faqaside { align-self: start; }
@media (min-width: 900px) {
  .faqaside { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.faqcount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-4);
}
.faqcount b {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ---------- Scroll world (Home hero) ----------------------
   The engine positions its layers fixed to the viewport, which is
   right when the world is the whole page and wrong when it is the
   first screen. motion.js moves those layers into .world__pin and
   these rules detach them from the viewport: the pin is sticky, so
   the flight holds still while its own track supplies the scroll. */
.world {
  position: relative;
  background: var(--void);
}
.world .sw-root {
  --sw-bg: #000000;
  --sw-ink: #ffffff;
  --sw-ink-soft: #b3b3b3;
  --sw-accent: var(--lime);
  --sw-font-display: var(--font-sans);
  --sw-font-body: var(--font-sans);
}
.world__root { position: relative; }
.world__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
  background: #000;
}
.world__pin > .sw-sky,
.world__pin > .sw-stage,
.world__pin > .sw-copylayer { position: absolute; inset: 0; }
/* The engine sizes its media inside @layer sw, which the site's global
   `img { height: auto }` (unlayered) beats — the poster then renders at its
   intrinsic ratio and leaves a black band until the clip loads. Restate the
   fill here, unlayered, where it wins. */
.world .sw-scene__still,
.world .sw-scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world__pin > .sw-route {
  position: absolute;
  top: 50%;
  right: clamp(10px, 2vw, 28px);
  transform: translateY(-50%);
}
.world__pin > .sw-hint {
  position: absolute;
  bottom: clamp(16px, 3vh, 30px);
  left: 50%;
}
/* The site already has a nav and a rail; the engine's own chrome is
   redundant here and would sit on top of them. */
.world__pin > .sw-topbar,
.world__pin > .sw-scrollbar { display: none; }

/* The plates are busy at every altitude, so the copy sits on its own
   graded lane rather than on whatever happens to be under it. */
.world .sw-copylayer::before {
  width: min(66vw, 900px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.86) 32%,
    rgba(0, 0, 0, 0.58) 62%,
    rgba(0, 0, 0, 0.16) 86%,
    transparent 100%
  );
}
/* That rule is unlayered and more specific than the engine's own
   @media (max-width:860px) scrim, and a media query adds no specificity, so on a
   phone it won: a 66vw slab 60% tall painted left-to-right, which reads as a
   black board over the plate. The copy moves to the bottom on small screens, so
   the grade has to rise from the bottom and span the full width instead. Same
   breakpoint the engine uses, and lighter than desktop because the type already
   carries a shadow and the night plate is dark on its own. */
@media (max-width: 860px) {
  .world .sw-copylayer::before {
    width: 100%;
    height: 58%;
    top: auto;
    bottom: 0;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 34%,
      rgba(0, 0, 0, 0.18) 66%,
      transparent 100%
    );
  }
}

/* Type follows Night Watch, not the engine's rounded default. */
.world .sw-copy__num,
.world .sw-copy__eyebrow,
.world .sw-copy__tags li { font-family: var(--font-mono); }
.world .sw-copy__num { font-size: 10px; letter-spacing: var(--track-label); }
/* The eyebrow is the shout of the beat — altitude in lime mono — while
   the title stays a whisper in light Inter. One family, two volumes. */
.world .sw-copy__eyebrow {
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: var(--track-label);
  color: var(--lime);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.world .sw-copy__title {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: var(--track-tight);
  line-height: 1.02;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.world .sw-copy__body { letter-spacing: var(--track-body); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65); }
/* The engine ships a 0.98rem floor for phones, which is below the site's body
   floor. These two lines are the only place the vendored type is corrected,
   and they win on specificity rather than on source order, because the engine
   injects its stylesheet at mount - after this file has been parsed. */
.world .sw-copy__body { font-size: var(--step-0); }
.world .sw-route__dot {
  width: 30px;
  height: 44px;
}
.world .sw-copy__tags li {
  font-size: 10px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  border-radius: 0;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper-2);
}
.world .sw-btn { border-radius: 0; font-weight: 400; font-size: 13px; letter-spacing: var(--track-body); }
.world .sw-btn--primary { background: var(--lime); color: #000; }
.world .sw-btn--ghost { color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.34); }
/* The engine labels each route dot with a white blurred pill. On a
   black site that is the brightest object in the frame; make it a
   hairline plate in the house style instead. */
.world .sw-route__label {
  border-radius: 0;
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 5px 8px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.world .sw-route__dot i { background: rgba(255, 255, 255, 0.22); }
.world .sw-route__dot.is-active i {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.16);
}
.world .sw-hint { color: var(--paper-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: var(--track-label); }
/* On a phone the copy block owns the bottom of the screen and a swipe is the
   native gesture; the desktop mouse hint only crowds the tags there. */
@media (max-width: 860px) {
  .world .sw-hint { display: none; }
}

/* ---------- The flight instrument --------------------------
   A vignette and one film grain fuse four heterogeneous plates
   into a single descent film. Both pseudo-elements sit above the
   stage (z 10) and below the copy layer (z 20) and never take
   pointer events — they grade the film, not the UI. */
.world__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
/* The vignette is tuned for a wide frame. On a phone the 55% clear centre is
   small enough that most of the plate ends up inside the darkened ring, which
   is the same "black over the artwork" complaint the copy scrim caused.

   This block sits here, after the rule above, on purpose. Both selectors are
   `.world__pin::before` with identical specificity and a media query adds none,
   so the only thing that decides the winner is source order. An override placed
   earlier in the file - which is where it looks natural next to the other
   mobile rules - is silently ignored. */
@media (max-width: 860px) {
  .world__pin::before {
    background: radial-gradient(ellipse at center, transparent 68%, rgba(0, 0, 0, 0.3) 100%);
  }
}
.world__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.055;
  mix-blend-mode: overlay;
  animation: world-grain 0.6s linear infinite;
}
/* Eight held positions per loop: the grain is alive, not a static
   smudge. Keyframes are paired so each position holds for a full
   eighth of the cycle and then jumps. */
@keyframes world-grain {
  0%, 12.49% { background-position: 0 0; }
  12.5%, 24.99% { background-position: -31px 17px; }
  25%, 37.49% { background-position: 19px -41px; }
  37.5%, 49.99% { background-position: -53px -37px; }
  50%, 62.49% { background-position: 37px 29px; }
  62.5%, 74.99% { background-position: -19px 43px; }
  75%, 87.49% { background-position: 47px -13px; }
  87.5%, 100% { background-position: -29px -47px; }
}

/* The odometer: the one number that makes four scenes read as one
   flight. It lives inside the engine mount, so the static/no-JS
   paths never see it. */
.world__alt {
  position: absolute;
  top: 84px;
  left: clamp(18px, 5vw, 64px);
  z-index: 16;
  pointer-events: none;
  font-family: var(--font-mono);
  color: var(--paper-3);
}
.world__alt__label {
  display: block;
  font-size: 10px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.world__alt__num {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.world__alt__unit {
  font-size: 10px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin-left: 6px;
}

/* Connector warp: the stage swells and softens through the fly-over
   segments, then re-resolves on arrival. The blur is a filmic media
   effect on the plate itself — not UI glass, so it stays. */
.world__pin > .sw-stage {
  transition: transform 0.35s ease, filter 0.35s ease;
}
.world__pin--warp > .sw-stage {
  transform: scale(1.05);
  filter: blur(3px);
}

@media (prefers-reduced-motion: reduce) {
  .world__pin::after { animation: none; }
  .world__alt { display: none; }
}

/* The rail is a left column from 1240 up. Give the flight's copy its
   own lane instead of letting the two sit on each other. */
@media (min-width: 1240px) {
  .world .sw-copy { left: 116px; }
  .world__alt { left: 116px; }
}

.world__fallback {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* The real app surface in a plain bezel: rounded frame, hairline edge, the
   screenshot at its own aspect. No fake device chrome. (DESIGN.md imagery
   rule: real screenshots, at least 2x the CSS size they are shown at.) */
.phone {
  margin: 0;
  display: block;
  width: min(340px, 78vw);
  padding: 10px;
  border-radius: 28px;
  background: #101010;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ---------- Grammar bands (.sig) ------------------------- */
/* One cinematic band per feature, each with its own signature. The
   primitives are server-rendered at their finished geometry; motion.js
   only writes one CSS var (--sig-progress, 0→1) and lights beats. The
   var defaults to 1, so with no JS the diagram is simply already drawn.
   (DESIGN.md: one signature per feature, no meters, no gradient type.) */
.sig {
  position: relative;
  min-height: 132vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--sig-field);
}
.sig__veil {
  position: absolute;
  inset: 0;
  background-image: var(--sig-poster);
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: saturate(0.5);
}
.sig__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sig-scrim);
}
.sig__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.sig__beats {
  margin-top: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 14px;
  max-width: 36rem;
}
.sig__beat {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--paper-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.sig__beat.is-on {
  color: var(--paper);
  border-color: var(--lime);
}
.sig__inner .note {
  margin-top: clamp(20px, 3vw, 34px);
}
.sig__stage {
  position: absolute;
  right: clamp(16px, 8vw, 130px);
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 360px);
  aspect-ratio: 1;
  z-index: 1;
  color: var(--lime);
}

/* ---------- Feature flights -------------------------------
   The cinematic row on a feature page is the vendored scroll-world
   engine, fed per-feature data from a JSON block in the page (see
   src/pages/features.mjs). The engine is not restyled from here: it
   is themed through its own --sw-* properties and the .world rules
   the home hero already established.

   Without motion the flight never mounts and the beats stay exactly
   where the build put them, which is the .sig layout above. That
   layout is deliberately scoped to :not(.is-live) - it carries
   overflow:hidden, and an overflow ancestor would stop the pinned
   flight from sticking to the viewport. */
.world--flight {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--sig-field);
}
.world--flight:not(.is-live) {
  min-height: 132vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.world--flight .sig__veil {
  opacity: 0.1;
}
.world__flight {
  position: relative;
  z-index: 1;
}
.world__static {
  position: relative;
  z-index: 2;
  width: 100%;
}
/* Once the engine is drawing the frames, the diagram rides inside the pin
   beside the copy instead of sitting in the middle of the band. */
.world--flight.is-live .world__sig {
  position: absolute;
  right: clamp(14px, 5vw, 84px);
  top: auto;
  bottom: clamp(52px, 12vh, 132px);
  transform: none;
  width: min(24vw, 240px);
  opacity: 0.78;
  z-index: 22;
}
@media (max-width: 860px) {
  .world--flight.is-live .world__sig {
    right: 14px;
    bottom: auto;
    top: 84px;
    width: 116px;
    opacity: 0.5;
  }
}

/* Spectrum: 24 bars, each with its own --i (order) and --wave (final
   height) from the build. Opacity carries the stagger; scaleY carries
   the draw. The microphone is the constant subject. */
.sig__wave {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 10%;
  height: 52%;
  display: flex;
  align-items: flex-end;
}
.sig__wave i {
  flex: 1;
  margin-inline: 2px;
  height: calc(18% + var(--wave, 1) * 82%);
  background: var(--lime);
  opacity: clamp(0.08, calc(var(--sig-progress, 1) * 26 - var(--i)), 1);
  transform-origin: bottom;
  transform: scaleY(clamp(0.05, var(--sig-progress, 1), 1));
}
.sig__mic {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36%;
  height: 36%;
  fill: currentColor;
  opacity: 0.85;
}

/* Pulse: two rings growing at different speeds, four threshold ticks
   lighting in order around them. */
.sig__pulse i {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
}
.sig__pulse i:nth-child(1) {
  opacity: clamp(0, calc(var(--sig-progress, 1) * 4 - 0.6), 0.85);
  transform: scale(clamp(0.6, calc(var(--sig-progress, 1) * 1.6), 1.15));
}
.sig__pulse i:nth-child(2) {
  opacity: clamp(0, calc(var(--sig-progress, 1) * 4 - 2.6), 0.5);
  transform: scale(clamp(0.6, calc(var(--sig-progress, 1) * 2.2 - 0.4), 1.4));
}
.sig__ticks {
  --r: min(140px, 24vw);
  position: absolute;
  inset: 0;
}
.sig__ticks b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 14px;
  margin: -7px 0 0 -1px;
  background: currentColor;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
  opacity: clamp(0, calc(var(--sig-progress, 1) * 4 - var(--k)), 1);
}
.sig__ticks b:nth-child(1) { --a: 0deg;   --k: 0; }
.sig__ticks b:nth-child(2) { --a: 90deg;  --k: 1; }
.sig__ticks b:nth-child(3) { --a: 180deg; --k: 2; }
.sig__ticks b:nth-child(4) { --a: 270deg; --k: 3; }

/* Plate: four frame corners closing in while the veil brightens —
   the evidence vault being assembled around its contents. */
.sig__frame {
  position: absolute;
  inset: 11%;
}
.sig__frame i {
  position: absolute;
  width: clamp(34px, 10%, 56px);
  aspect-ratio: 1;
  border: 0 solid var(--lime);
  opacity: clamp(0.2, calc(var(--sig-progress, 1) * 2.2), 1);
}
.sig__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.sig__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.sig__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.sig__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.sig[data-grammar="plate"] .sig__veil {
  opacity: calc(0.05 + var(--sig-progress, 1) * 0.1);
}

/* Orbit: two rings drawing clockwise, four confirmed nodes appearing
   along them once the ring under them is complete. */
.sig__orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sig__orbit circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.sig__orbit > circle:nth-child(1) {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * min(1, calc(var(--sig-progress, 1) * 1.25)));
}
.sig__orbit > circle:nth-child(2) {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * clamp(0, calc(var(--sig-progress, 1) * 2 - 0.9), 1));
}
.sig__orbit .sig__node {
  fill: currentColor;
  stroke: none;
  opacity: clamp(0, calc(var(--sig-progress, 1) * 3.2 - var(--n)), 1);
}
.sig__orbit .sig__node:nth-child(3) { --n: 1; }
.sig__orbit .sig__node:nth-child(4) { --n: 2; }
.sig__orbit .sig__node:nth-child(5) { --n: 3; }
.sig__orbit .sig__node:nth-child(6) { --n: 4; }

/* Trace: the fast road draws first, the scored alternative follows it.
   Tone recolors the pair — safe: dim road, lit route; danger: plain
   link, red verdict. */
.sig__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sig__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * min(1, calc(var(--sig-progress, 1) * 1.6)));
}
.sig__path--alt {
  opacity: 0.9;
  stroke-dashoffset: calc(100 - 100 * clamp(0, calc(var(--sig-progress, 1) * 1.6 - 1), 1));
}
.sig[data-sig-tone="safe"] .sig__path { stroke: var(--paper-3); }
.sig[data-sig-tone="safe"] .sig__path--alt { stroke-width: 2; }
.sig[data-sig-tone="danger"] .sig__path { stroke: var(--paper-2); }
.sig[data-sig-tone="danger"] .sig__path--alt {
  stroke: var(--sos);
  stroke-width: 2.25;
}

/* Stream: a conversation assembling in reading order. Each line grows to the
   width the build already decided, the asker's lines sit on the far side, and
   the caret only appears once the last line has landed. */
.sig__stream {
  position: absolute;
  inset: 14% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.sig__stream i {
  height: 10px;
  border-radius: var(--radius-xs);
  background: currentColor;
  align-self: flex-start;
  width: calc(var(--w, 0.5) * 100% * clamp(0, calc(var(--sig-progress, 1) * 6 - var(--i)), 1));
}
.sig__stream i:nth-child(even) {
  align-self: flex-end;
  opacity: 0.5;
}
.sig__caret {
  position: absolute;
  right: 0;
  bottom: 14%;
  width: 7px;
  height: 15px;
  background: currentColor;
  opacity: clamp(0, calc(var(--sig-progress, 1) * 6 - 5), 1);
}

/* Range: three proximity rings closing inward and a sweep turning with the
   scroll. The centre lights only after the inner ring has drawn, which is the
   moment a warning would already have fired. */
.sig__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sig__range circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.sig__range > circle:nth-child(1) {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * min(1, calc(var(--sig-progress, 1) * 2.4)));
}
.sig__range > circle:nth-child(2) {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * clamp(0, calc(var(--sig-progress, 1) * 2.4 - 0.7), 1));
}
.sig__range > circle:nth-child(3) {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * clamp(0, calc(var(--sig-progress, 1) * 2.4 - 1.4), 1));
}
.sig__range .sig__core {
  fill: currentColor;
  stroke: none;
  opacity: clamp(0, calc(var(--sig-progress, 1) * 3.2 - 2.2), 1);
}
.sig__sweep {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.45;
  transform-box: view-box;
  transform-origin: 100px 100px;
  transform: rotate(calc(var(--sig-progress, 1) * 540deg));
}

/* Descent: the frame tightening until one street is left. Four altitudes,
   widest first, each only clearing once progress reaches it. The pin lights
   last, because this is the one diagram that is only true at street level. */
.sig__descent {
  position: absolute;
  inset: 8%;
}
.sig__descent i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - var(--i) * 22%);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: clamp(0.1, calc(var(--sig-progress, 1) * 4 - var(--i)), 0.85);
}
.sig__descent b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: clamp(0, calc(var(--sig-progress, 1) * 3 - 1.7), 1);
  transform: scale(calc(0.6 + var(--sig-progress, 1) * 1.1));
}

/* Field: 48 dots on a loose grid; --on is the density verdict the
   build already decided (1 or 0.12), opacity is the draw-in. */
.sig__dots {
  position: absolute;
  inset: 6% 4%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
}
.sig__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  justify-self: center;
  align-self: center;
  opacity: clamp(0, calc(var(--sig-progress, 1) * 50 - var(--i)), var(--on, 1));
}

@media (min-width: 861px) {
  .sig__beats { padding-right: min(32vw, 400px); }
}
@media (max-width: 860px) {
  .sig {
    min-height: 112vh;
    flex-direction: column;
    justify-content: center;
    padding-block: 14vh;
  }
  .sig__stage {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(64vw, 300px);
    margin: 0 auto clamp(26px, 8vw, 44px);
  }
  .sig__ticks { --r: min(120px, 24vw); }
  .sig__dots {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
  }
}

/* ---------- Pricing --------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plan {
  position: relative;
  background: var(--surface-1);
  /* Top padding clears the corner flag: the flag is 29px tall, so the
     card content starts below it or the two collide at narrow widths. */
  padding: clamp(44px, 4.5vw, 58px) clamp(24px, 3.2vw, 44px) clamp(24px, 3.2vw, 44px);
}
.plan__flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--lime);
  color: var(--surface-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.plan__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.plan__price {
  margin-top: 16px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  font-weight: 600;
  color: var(--paper);
}
.plan__per {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--paper-3);
}
.plan__yearly {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
}
.plan ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.plan li {
  position: relative;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper-2);
}
.plan li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--lime);
}
.plan li.is-out {
  color: var(--paper-3);
}
.plan li.is-out::before {
  content: "–";
  color: var(--paper-4);
}
/* The marker belongs to the include list. The spec rows are key-value lines
   under the price, so the inherited "+" used to land on top of the first word
   and the 16px list indent pushed every line off the card's left edge. */
.plan__specs li {
  padding-left: 0;
}
.plan__specs li::before {
  content: none;
}
/* Limits are generated from the plan file, so they print as a spec line under
   the price instead of being folded into the feature list. */
.plan__sub {
  margin-top: 6px;
  color: var(--paper-3);
  font-size: 14px;
}
/* Specs are one per line, split by hairlines rather than middle dots. */
.plan__specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.plan__specs li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.plan__specs li:last-child { border-bottom: 1px solid var(--line); }
.plan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.plan__buy {
  display: inline-block;
  appearance: none;
  border: 1px solid var(--lime);
  background: var(--lime);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--surface-1);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.plan__buy:not(:disabled):active { transform: translateY(1px); }
.plan__buy--alt {
  background: transparent;
  color: var(--lime);
}
/* Three channels, not opacity alone: the fill drains, the ink drops to the
   disabled grey, and the cursor stops promising a click. */
.plan__buy:disabled {
  background: var(--surface-3);
  color: var(--paper-4);
  cursor: progress;
}
.plan__buy:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* One email covers every card, so the field sits above the grid, not inside
   each card. The status line is where a refused payment has to be visible. */
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.buy__field {
  flex: 1 1 260px;
}
.buy__label {
  display: block;
  color: var(--paper-3);
  font-size: 13px;
}
.buy__label input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
}
.buy__label input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}
.buy__status {
  flex: 1 1 100%;
  min-height: 1.3em;
  margin: 0;
  color: var(--paper-3);
  /* These lines carry whole sentences, so they are read at body size rather
     than at micro-type: the "welcome back" and "payment received" messages
     are the only place the page explains what happens next. */
  font-size: 1rem;
  line-height: 1.5;
}
.buy__status.is-ok {
  color: var(--lime);
}
.buy__status.is-bad {
  color: var(--buy-bad);
}
.buy__hint {
  margin: 7px 0 0;
  color: var(--paper-3);
  font-size: 1rem;
  line-height: 1.5;
}
.buy__opt {
  margin-left: 6px;
  color: var(--paper-3);
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* What replaces the form once the money has moved. One action, never a dead
   confirmation screen. */
.buy__done {
  margin: 0 0 30px;
  padding: 24px 22px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.buy__done[hidden] {
  display: none;
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .buy { padding: 16px; }
  .plan__buy { flex: 1 1 100%; text-align: center; }
}
