/*
 * Nation Bridge landing page.
 * Colours, type and spacing come from the Nation Bridge design system
 * (nation-bridge-website, docs/design-system/tokens.json), using its dark-theme
 * values. The scroll-craft engine reads the --sc-* tokens below; nothing in
 * vendor/ is edited.
 */

:root {
  /* Design-system tokens (dark theme) */
  --nb-black: #121821;
  --nb-red: #e31300;
  --nb-red-deep: #cc0000;
  --surface-page: #0c1016;
  --surface-card: #161d26;
  --text-heading: #f4f5f6;
  --text-body: #c8d2da;
  --text-muted: #8a95a0;
  --text-brand: #ff6b5e;
  --border-subtle: #232d38;
  --border-default: #2f3a46;
  --focus-ring: #7fb0c8;
  --focus-ring-inverse: #ffffff;
  --action-primary: #f4f5f6;
  --action-primary-hover: #c8d2da;
  --on-action-primary: #121821;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", sans-serif;

  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);

  /* The engine's theme hooks, mapped to the design system */
  --sc-canvas: var(--surface-page);
  --sc-surface: var(--surface-card);
  --sc-ink: var(--text-heading);
  --sc-ink-soft: var(--text-body);
  --sc-accent: var(--nb-red);
  --sc-accent-ink: #ffffff;
  --sc-font-display: var(--font-heading);
  --sc-font-text: var(--font-body);
  --sc-maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--nb-black); color-scheme: dark; }
body {
  margin: 0;
  background: var(--nb-black);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--focus-ring-inverse); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--action-primary); color: var(--on-action-primary);
  padding: 12px 16px; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Type: design-system faces and the approved display scale ---------- */
.display-hero, .display-section {
  margin: 0; color: var(--text-heading); font-family: var(--font-heading);
  font-weight: 600; letter-spacing: 0.01em; text-wrap: balance;
}
.display-hero { font-size: 38px; line-height: 1.12; max-width: 14ch; }
.display-section { font-size: 28px; line-height: 1.2; max-width: 20ch; }
@media (min-width: 768px) {
  .display-hero { font-size: 51px; }
  .display-section { font-size: 37px; }
}
@media (min-width: 1024px) {
  .display-hero { font-size: 68px; line-height: 1.08; }
  .display-section { font-size: 50px; line-height: 1.12; }
}
.lead { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.kicker {
  margin: 0 0 8px; color: var(--text-body); font-family: var(--font-heading);
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
/* The design system's signature: a 3px x 32px red rule at each section opening. */
.rule { display: block; width: 32px; height: 3px; background: var(--nb-red); margin: 0 0 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms var(--ease-standard), border-color 120ms var(--ease-standard), color 120ms var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--nb-red); color: #fff; }
.btn--brand:hover { background: var(--nb-red-deep); }
.btn--light { background: var(--action-primary); color: var(--on-action-primary); }
.btn--light:hover { background: var(--action-primary-hover); }
.btn--outline { border-color: var(--text-body); color: var(--text-heading); }
.btn--outline:hover { border-color: var(--text-heading); background: rgba(255, 255, 255, 0.06); }

/* ---------- Header bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
}
/* The blur lives on a layer behind the bar, not on the bar itself: a
   backdrop-filter on the bar would trap the fixed menu panel inside it. */
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--nb-black) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bar__home { display: block; border-radius: 4px; }
.bar__mark { width: 40px; }
.bar__lockup { display: none; width: 240px; }
.bar .btn { min-height: 44px; padding: 10px 16px; }
@media (min-width: 768px) {
  .bar { height: 94px; padding: 0 24px; }
  .bar__mark { display: none; }
  .bar__lockup { display: block; }
}
@media (min-width: 1024px) { .bar { padding: 0 max(40px, calc((100vw - 1120px) / 2)); } }

/* ---------- Section navigation ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bar__end { display: flex; align-items: center; gap: 8px; }
.bar__nav { display: none; }
.bar__nav ul, .menu__panel ul { list-style: none; margin: 0; padding: 0; }
.bar__nav ul { display: flex; gap: 28px; }
.bar__nav a {
  display: block; padding: 8px 0; color: var(--text-body); text-decoration: none;
  font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent;
  transition: color 120ms var(--ease-standard), border-color 120ms var(--ease-standard);
}
.bar__nav a:hover { color: var(--text-heading); }
.bar__nav a[aria-current] { color: var(--text-heading); border-bottom-color: var(--nb-red); }

.menu__toggle {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 4px; cursor: pointer; list-style: none; color: var(--text-heading);
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:hover { background: rgba(255, 255, 255, 0.08); }
.menu__toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu .menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu[open] span.menu__close { display: inline; }
/* The panel fills the screen below the bar, so the bar (with Request a
   walkthrough and the close control) stays in view. */
.menu__panel {
  position: fixed; inset: 72px 0 0; z-index: 49; overflow-y: auto;
  background: var(--nb-black); padding: 16px 16px 40px;
}
.menu__panel a {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-heading); text-decoration: none;
  font-family: var(--font-heading); font-weight: 500; font-size: 28px; line-height: 1.2;
}
.menu__panel a[aria-current] { color: var(--text-brand); }
html:has(.menu[open]) { overflow: hidden; }
@media (min-width: 768px) { .menu__panel { top: 94px; padding: 24px 24px 40px; } }
/* Wide screens: the links sit in the bar and the menu button goes away. */
@media (min-width: 1180px) {
  .bar__nav { display: block; }
  .menu { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Hero ---------- */
/* Positioning belongs to the engine (it pins the stage); only paint it here. */
.hero__stage {
  overflow: hidden;
  background: var(--nb-black);
  --p: var(--sc-p, 0);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Mid plane: the halo behind the mark. Moves least. */
.hero__halo {
  position: absolute; pointer-events: none;
  width: 70vmin; height: 70vmin; right: -8vmin; top: 50%;
  background: radial-gradient(closest-side, rgba(227, 19, 0, 0.34), rgba(227, 19, 0, 0.1) 55%, transparent 72%);
  transform: translate3d(0, calc(-50% - var(--p) * 6vh), 0) scale(calc(1 + var(--p) * 0.15));
  opacity: calc(1 - var(--p) * 0.6);
}

/* Near plane: the mark. Holds nearly still while the copy eases away, so it
   stays in view until the next section arrives.
   Scroll moves this wrapper; the pointer tilt lives on the inner element,
   because the engine writes the tilt as an inline transform. */
.hero__mark {
  position: absolute; right: 12vw; top: 50%; width: clamp(150px, 19vw, 260px);
  transform: translate3d(0, calc(-50% - var(--p) * 4vh), 0) scale(calc(1 + var(--p) * 0.12));
  will-change: transform;
}

/* Copy plane: readable from the first frame, eases away last. */
.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  height: 100%; max-width: 1120px; margin: 0 auto; padding: 120px 16px 48px;
  transform: translate3d(0, calc(var(--p) * -10vh), 0);
  opacity: clamp(0, calc(1.45 - var(--p) * 1.6), 1);
}
.hero__copy .rule { margin-bottom: -8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; padding-top: 8px; }

@media (min-width: 768px) { .hero__copy { padding: 140px 24px 64px; } }
/* Tablet: the mark sits beside the copy, so keep the paragraph clear of it. */
@media (min-width: 768px) and (max-width: 1023px) { .hero__copy > p { max-width: calc(69vw - 72px); } }
@media (min-width: 1024px) { .hero__copy { padding: 140px 40px 64px; box-sizing: content-box; } }

/* Phone composition: the mark sits in the flow above the headline, so the two
   can never overlap however short the screen. A phone hero is too tall to pin
   on most screens with the browser bars showing, so it scrolls like the rest
   of the page, and its scroll-driven motion is held still. */
@media (max-width: 767px) {
  .hero.sc-act--pinned { height: auto !important; }
  .hero .hero__stage {
    position: relative; height: auto; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 96px 0 48px; --p: 0;
  }
  .hero__mark { position: relative; top: auto; right: auto; align-self: flex-end; margin-right: 16px; width: 88px; transform: none; }
  .hero__halo { width: 120vw; height: 120vw; right: calc(60px - 60vw); top: 140px; }
  .hero__copy { height: auto; justify-content: flex-start; padding: 16px 16px 0; }
  .sc-ready .band.band--problem { margin-top: 0; }
}


/* ---------- Reduced motion: the composed still, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__stage { --p: 0; }
  .hero__copy { opacity: 1; transform: none; }
}

/* ======================================================================
   Sections after the hero
   ====================================================================== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 40px; box-sizing: content-box; } }

.band { position: relative; z-index: 3; background: var(--nb-black); padding: 96px 0; }
@media (min-width: 1024px) { .band { padding: 144px 0; } }
.band--problem { padding-top: 120px; }
/* While the engine runs, the problem section slides up over the end of the
   pinned hero, so the mark holds its place until the new section covers it. */
.sc-ready .band--problem { margin-top: -50vh; border-top: 1px solid var(--border-subtle); }
.band--quiet { background: var(--surface-page); border-block: 1px solid var(--border-subtle); }
.opener { display: grid; gap: 16px; max-width: 760px; }
.opener .rule, .opener .kicker { margin-bottom: -8px; }
h3 { margin: 0; color: var(--text-heading); font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.01em; }

/* ---------- 2 · Problem ---------- */
.problems { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: 10px; overflow: hidden; }
@media (min-width: 768px) { .problems { grid-template-columns: 1fr 1fr; } }
.problem { background: var(--nb-black); padding: 32px; transition: background-color 200ms var(--ease-standard); }
.problem:hover { background: var(--surface-card); }
.problem h3 { font-size: 21px; line-height: 1.25; }
.problem p { margin: 12px 0 0; font-size: 16px; color: var(--text-body); max-width: 48ch; }

/* ---------- 3 · Lifecycle (peak, signature move) ---------- */
.life { position: relative; z-index: 3; }
.life__stage { background: var(--surface-page); }
.life__inner {
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 120px 16px 32px;
  display: grid; grid-template-rows: auto 1fr; gap: 24px;
}
.display-life { margin: 0; color: var(--text-heading); font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.01em; font-size: 24px; line-height: 1.2; max-width: 22ch; text-wrap: balance; }
.life__text .rule, .life__text .kicker { margin-bottom: 8px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 8px; }
.step__node {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--border-default);
  color: var(--text-muted); background: var(--nb-black);
  font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  transition: border-color 200ms var(--ease-standard), color 200ms var(--ease-standard), background-color 200ms var(--ease-standard);
}
.step.is-done .step__node { border-color: var(--nb-red); color: var(--text-body); }
.step.is-active .step__node { border-color: var(--nb-red); background: var(--nb-red); color: #fff; }
.step__copy { display: none; }
.step h3 { font-size: 28px; line-height: 1.2; }
.step p { margin: 8px 0 0; font-size: 16px; color: var(--text-body); max-width: 44ch; }
/* Phone: a row of numbered nodes, the active stage's words beneath them. */
@media (max-width: 1023px) {
  .steps { flex-wrap: wrap; position: relative; padding-bottom: 132px; }
  .step.is-active .step__copy { display: block; position: absolute; left: 0; right: 0; top: 56px; animation: stepIn 340ms var(--ease-entrance); }
}
.life__window { min-height: 0; display: flex; align-items: center; perspective: 1600px; }
.window {
  margin: 0; width: 100%; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border-default); background: var(--surface-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: rotateX(4deg) rotateY(-8deg); transform-origin: 50% 50%;
}
.window__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); background: var(--nb-black); }
.window__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-default); }
.window__screens { position: relative; aspect-ratio: 1600 / 1000; background: #f4f5f6; }
.window__screens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 340ms var(--ease-entrance), transform 340ms var(--ease-entrance);
}
.window__screens img.is-active { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .life__inner { grid-template-rows: none; grid-template-columns: 5fr 7fr; align-items: center; gap: 56px; padding: 120px 40px 40px; }
  .display-life { font-size: 37px; }
  .steps { flex-direction: column; gap: 4px; margin-top: 28px; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 6px 0; }
  .step h3 { font-size: 21px; line-height: 40px; color: var(--text-muted); transition: color 200ms var(--ease-standard); }
  .step.is-active h3 { color: var(--text-heading); }
  .step__copy { display: block; }
  .step p { display: none; }
  .step.is-active p { display: block; animation: stepIn 340ms var(--ease-entrance); }
}
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 4 · Capabilities rail ---------- */
.caps { position: relative; z-index: 3; }
.caps__stage { background: var(--nb-black); display: flex; align-items: center; }
.caps__rail { display: flex; align-items: stretch; gap: 20px; padding: 0 16px; width: max-content; }
@media (min-width: 1024px) { .caps__rail { gap: 24px; padding: 0 max(40px, calc((100vw - 1120px) / 2)); } }
.caps__lead { width: min(80vw, 420px); flex: none; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-right: 24px; }
.caps__lead .rule { margin-bottom: -8px; }
.cap {
  flex: none; width: min(72vw, 300px); padding: 28px; border-radius: 10px;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; align-self: center;
  transition: border-color 120ms var(--ease-standard), transform 200ms var(--ease-standard);
}
/* The brand rule opens each card, so a short card reads as finished. */
.cap::before { content: ""; width: 32px; height: 3px; background: var(--nb-red); margin-bottom: 20px; }
.cap:hover { border-color: var(--border-default); transform: translateY(-4px); }
.cap h3 { font-size: 21px; line-height: 1.2; }
.cap p { margin: 10px 0 0; font-size: 15px; color: var(--text-body); }
.shot { flex: none; margin: 0; width: min(86vw, 560px); align-self: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-default); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

/* ---------- 5 · Both sides ---------- */
.sides { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 1024px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { padding: 36px; border-radius: 10px; background: var(--surface-card); border: 1px solid var(--border-subtle); }
.side h3 { font-size: 28px; line-height: 1.2; }
.side__lead { margin: 14px 0 24px; font-size: 18px; color: var(--text-body); }
.side ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border-subtle); }
.side li { padding: 14px 0 14px 28px; border-top: 1px solid var(--border-subtle); position: relative; font-size: 16px; }
.side li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 2px; background: var(--text-muted); }

/* ---------- 6 · Your data ---------- */
.data { display: grid; gap: 48px; }
@media (min-width: 1024px) { .data { grid-template-columns: 5fr 7fr; gap: 64px; } }
.points { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border-default); }
.points li { padding: 22px 0; border-top: 1px solid var(--border-default); font-size: 18px; max-width: 60ch; }
.points strong { color: var(--text-heading); font-weight: 600; }

/* ---------- 7 · Advisors ---------- */
.advisors { display: grid; gap: 32px; }
@media (min-width: 1024px) { .advisors { grid-template-columns: 5fr 7fr; gap: 64px; } }
.advisors__text { display: grid; gap: 32px; }
.statement { margin: 0; color: var(--text-heading); font-family: var(--font-heading); font-weight: 500; font-size: 28px; line-height: 1.25; max-width: 26ch; }
@media (min-width: 1024px) { .statement { font-size: 37px; } }

/* ---------- 8 · Contact ---------- */
.band--contact { background: var(--surface-page); border-top: 1px solid var(--border-subtle); }
.contact { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact__intro { display: grid; gap: 16px; }
.contact__intro .rule { margin-bottom: -8px; }
.reach { display: grid; gap: 16px; margin-top: 16px; font-size: 17px; }
.reach__line { display: flex; gap: 12px; margin: 0; font-style: normal; color: var(--text-body); }
.reach svg { flex: none; margin-top: 3px; fill: none; stroke: var(--text-muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.reach a { color: var(--text-heading); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-default); text-underline-offset: 4px; word-break: break-all; }
.reach a:hover { text-decoration-color: var(--text-heading); }

.form-card { padding: 24px; border-radius: 10px; background: var(--surface-card); border: 1px solid var(--border-subtle); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.fields { display: grid; gap: 20px; }
@media (min-width: 768px) { .fields { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 8px; color: var(--text-heading); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: 12px; border-radius: 6px;
  border: 1px solid #6b7884; background: var(--surface-page); color: var(--text-heading);
  font: inherit; font-size: 15px; transition: border-color 120ms var(--ease-standard);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-body); }
.field textarea { resize: vertical; }
.field ::placeholder { color: #6b7884; }
.botcheck { display: none; }
.consent { margin: 20px 0; font-size: 13px; color: var(--text-muted); }
.form-error { display: flex; gap: 12px; margin-bottom: 20px; padding: 16px; border-radius: 6px; background: rgba(255, 107, 94, 0.14); color: var(--text-heading); font-size: 15px; }
.form-error[hidden] { display: none; }
.form-error a { color: var(--text-heading); font-weight: 600; }
.form-error svg { flex: none; margin-top: 2px; fill: none; stroke: var(--text-brand); stroke-width: 2; }
.notice--sent { display: none; margin: 0 0 24px; color: var(--text-heading); font-size: 18px; }
.notice--sent:target, .notice--sent.is-shown { display: block; }

/* ---------- Footer ---------- */
.foot { background: var(--nb-black); border-top: 1px solid var(--border-subtle); padding: 64px 0 40px; }
.foot__inner { display: grid; gap: 40px; }
.foot__lockup { width: 240px; }
.foot__descriptor { margin: 20px 0 0; color: var(--text-body); font-size: 15px; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-body); }
.foot__bottom p { margin: 0; }
.foot__bottom a { color: var(--text-body); text-underline-offset: 4px; }
.foot__bottom a:hover { color: var(--text-heading); }

/* ---------- Reduced motion: no travel, no tilt, no staged entrances ---------- */
@media (prefers-reduced-motion: reduce) {
  .window { transform: none; }
  .window__screens img, .step__node, .step h3 { transition: none; }
  .step.is-active p, .step.is-active .step__copy { animation: none; }
  .cap:hover { transform: none; }
}

/* ---------- Privacy policy page ---------- */
.legal { padding: 160px 0 120px; }
.legal .wrap { max-width: 68ch; }
.legal .display-hero { margin: 8px 0 24px; max-width: none; }
.legal__updated { margin: 48px 0 0; font-size: 13px; color: var(--text-muted); }
.legal h2 { margin: 48px 0 0; color: var(--text-heading); font-family: var(--font-heading); font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }
.legal section p, .legal li { font-size: 18px; color: var(--text-body); }
.legal section p { margin: 16px 0 0; }
.legal ul { margin: 16px 0 0; padding-left: 24px; }
.legal a { color: var(--text-heading); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Without JavaScript ----------
   The engine never runs, so nothing would fade in and the capabilities rail
   would run off the side of the page. Show everything and lay the rail out
   as a wrapping grid instead. */
@media (scripting: none) {
  [data-sc-in], [data-sc-stagger] > * { opacity: 1; transform: none; }
  .caps__stage { padding: 96px 0; }
  .caps__rail { flex-wrap: wrap; width: auto; justify-content: center; }
  .caps__lead { width: 100%; max-width: 1120px; padding-right: 0; margin-bottom: 16px; }
  .shot { width: min(100%, 560px); }
  /* The engine positions the stages when it runs; hold their layers here. */
  [data-sc-stage] { position: relative; }
}

/* ---------- Phones: more scroll for the two long acts ----------
   A phone swipe travels much further than a mouse wheel step, and the rail's
   cards are wide against a narrow screen. Give each lifecycle stage about one
   and a half screens, and slow the rail to less than the scroll. The engine
   reads each act's real height, so these override data-sc-span. */
@media (max-width: 767px) {
  .life.sc-act--pinned { height: 940vh !important; }
  .caps.sc-act--pinned { height: 750vh !important; }
}

/* ---------- Short laptop screens ----------
   Tighten the pinned compositions so every line and button fits on one
   screen, since a pinned stage cannot be scrolled within. */
@media (min-width: 768px) and (max-height: 820px) {
  .hero__copy { padding-top: 96px; padding-bottom: 24px; gap: 16px; }
  .display-hero { font-size: min(51px, 8vh); }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .display-hero { font-size: min(68px, 8vh); }
  .life__inner { padding-top: 88px; padding-bottom: 16px; }
  .display-life { font-size: min(37px, 4.6vh); }
  .steps { margin-top: 16px; gap: 0; }
  .step { padding: 2px 0; }
  .step p { margin-top: 2px; font-size: 15px; }
}

/* ---------- Very short screens: a phone held sideways, or a small phone ----------
   Too short to pin anything: the hero and the lifecycle scroll like the
   rest of the page. The capabilities rail still fits and keeps its motion. */
@media (max-height: 500px), (max-width: 1023px) and (max-height: 620px) {
  .hero.sc-act--pinned, .life.sc-act--pinned { height: auto !important; }
  .hero .sc-stage, .life .sc-stage { position: relative; height: auto; min-height: 100svh; }
  .hero .hero__stage { --p: 0; }
  .hero__copy { height: auto; min-height: 100svh; padding-bottom: 48px; }
  .life__inner { height: auto; padding-bottom: 64px; }
  .life__window { max-width: 640px; }
  .sc-ready .band--problem { margin-top: 0; }
}

/* The lifecycle as a plain list of all six stages: without JavaScript, and
   on screens too short to pin it. */
@media (scripting: none), (max-height: 500px), (max-width: 1023px) and (max-height: 620px) {
  .steps { flex-direction: column; gap: 20px; padding-bottom: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
  .step .step__node { border-color: var(--nb-red); color: var(--text-body); background: none; }
  .steps .step .step__copy, .steps .step p { display: block; position: static; animation: none; }
  .step h3 { font-size: 21px; line-height: 40px; color: var(--text-heading); }
}
