/* =====================================================================
   SCELTA — SITE STYLES · shared design system
   Homepage V1 (approved 2026-10-03) + supporting pages (Platform,
   Approach, Contact, Client access, Demonstrator shell).

   Near-black ground, warm off-white ink, Instrument Serif for display
   headlines only, a quiet system sans for everything else. The vehicle
   and the product carry the page; the interface recedes.

   Rules this file holds to (from the 2026-10-03 audit):
   - no customer-facing text below 12px; body text 16–17px
   - every text colour is --ink-4 (≈5.4:1 on --bg) or stronger
   - navigation never disappears: below 1100px it moves into a menu
   - motion is optional: everything respects prefers-reduced-motion

   Breakpoints (max-width): 1279 header CTA label shortens · 1099 nav → menu
   · 959 grids collapse to one column · 719 phone layout · 559 small phone.
   Phones held sideways: (orientation: landscape) and (max-height: 560px).

   Contents
     Tokens · Base · Wordmark · Buttons & links · Header · Menu
     Media & placeholders · Hero (home) · Chapters & journey strip
     Ledger · Triptych · Questions · Journey diagram · Pivot & thread (home)
     One digital vehicle · Close · Sections & page intro · Pillars
     Feature grid · Process · Statement · FAQ · Forms · Contact
     Client access · Demonstrator · Footer · Film dialog
     Development notice · Scroll reveal · Reduced motion · Forced colours
   ===================================================================== */

/* ============================== TOKENS ============================== */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #171717;

  /* ink — contrast ratios measured against --bg */
  --ink: #f2f0eb; /* ≈ 17.6:1 */
  --ink-2: rgba(242, 240, 235, 0.8); /* ≈ 11.5:1 — secondary copy */
  --ink-3: rgba(242, 240, 235, 0.66); /* ≈ 7.9:1  — captions, notes */
  --ink-4: rgba(242, 240, 235, 0.54); /* ≈ 5.4:1  — the floor for any text */

  /* hairlines (never used for text) */
  --line: rgba(242, 240, 235, 0.12);
  --line-2: rgba(242, 240, 235, 0.2);
  --line-3: rgba(242, 240, 235, 0.34);

  --focus: #f2f0eb;
  --error: #ec9f8d; /* ≈ 9:1 on --bg-2 — form errors only */

  /* type */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;

  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 6.25rem);
  --fs-display-l: clamp(2.25rem, 1.4rem + 3.4vw, 4.75rem);
  --fs-display-m: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --fs-display-s: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.5rem);
  --fs-body-l: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.9375rem; /* 15px */
  --fs-caption: 0.875rem; /* 14px */
  --fs-label: 0.8125rem; /* 13px — uppercase labels only */
  --fs-micro: 0.75rem; /* 12px — development placeholder tags only */

  --track-label: 0.14em;
  --track-button: 0.08em;
  --track-wordmark: 0.42em;

  /* layout */
  --gutter: clamp(20px, 4.5vw, 72px);
  --col-gap: clamp(20px, 2.6vw, 40px); /* column gap of every 12-column grid */
  --maxw: 1360px;
  --section-y: clamp(96px, 11vw, 176px);
  --header-h: 72px;
  --radius: 3px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 200ms;
  --t-med: 420ms;
}

@media (max-width: 719px) {
  :root {
    --header-h: 64px;
    --fs-body: 1rem;
  }
}

/* ============================== RESET / BASE ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(242, 240, 235, 0.24);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* no single-word last lines in running copy */
p,
li {
  text-wrap: pretty;
}

/* ============================== WORDMARK ============================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--track-wordmark);
  text-transform: uppercase;
  text-decoration: none;
  /* the trailing letter-spacing would otherwise offset the visual edge */
  margin-right: calc(-1 * var(--track-wordmark));
}

/* ============================== BUTTONS & LINKS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid:hover {
  background: #ffffff;
}

.btn--block {
  width: 100%;
}

.btn--text {
  padding: 0 4px 0 0;
  color: var(--ink);
}

.btn--text .btn__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.btn--text:hover .btn__label {
  text-decoration-color: currentColor;
}

.play-glyph {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  transition: border-color var(--t-fast) var(--ease);
}

.play-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -3px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

.btn--text:hover .play-glyph {
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ============================== HEADER ============================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

/* legibility scrim while the header floats over the hero */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0));
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.92);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header .wordmark {
  margin-right: auto;
}

.primary-nav ul {
  display: flex;
  gap: clamp(24px, 2.6vw, 44px);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.primary-nav a:hover {
  color: var(--ink);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

/* the page you are on */
.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  margin-left: clamp(28px, 3.4vw, 56px);
}

.client-access {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.client-access:hover,
.client-access[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.btn--header {
  min-height: 44px;
  padding: 0 18px;
}

.label-short {
  display: none;
}

.menu-button,
.menu-close,
.film-dialog__close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 2px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-button__icon {
  width: 22px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.menu-close__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.menu-close__icon::before,
.menu-close__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-close__icon::after {
  transform: rotate(-45deg);
}

/* laptops narrower than the full label */
@media (max-width: 1279px) {
  .btn--header .label-long {
    display: none;
  }
  .btn--header .label-short {
    display: inline;
  }
}

/* tablets and below: navigation moves into the menu */
@media (max-width: 1099px) {
  .primary-nav,
  .site-header__actions > .client-access {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .site-header__actions {
    margin-left: 24px;
  }
}

@media (min-width: 1100px) {
  .menu-button {
    display: none !important;
  }
}

/* phones (upright or sideways): the hero carries the primary action, the header keeps
   only the menu, so the same button never appears twice in one view */
@media (max-width: 719px), (orientation: landscape) and (max-height: 560px) {
  .btn--header {
    display: none;
  }
}

/* ============================== MENU (≤1099px) ============================== */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.site-menu.is-open {
  opacity: 1;
}

.site-menu__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-menu__nav {
  flex: 1;
  padding-top: clamp(24px, 6vh, 64px);
}

.site-menu__links li + li {
  border-top: 1px solid var(--line);
}

.site-menu__links a {
  display: block;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  line-height: 1.05;
  text-decoration: none;
}

.site-menu__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
}

.site-menu__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 32px;
}

@media (min-width: 720px) {
  .site-menu__foot .btn--block {
    width: auto;
  }
}

/* ============================== MEDIA & PLACEHOLDERS ============================== */
.media {
  position: relative;
  margin: 0;
}

.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 16 / 9);
  background: var(--bg-2);
  border-radius: var(--radius);
}

.media__frame > img,
.media__frame > video,
.media__frame > .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* final stills may arrive as <picture> (AVIF + JPEG): it fills the frame like a plain <img>
   (Docs/Website/MEDIA_REGISTER.md, "P0 drop-in specification") */
.media__frame > picture {
  position: absolute;
  inset: 0;
}

.media__frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media figcaption {
  margin-top: 14px;
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--ink-3);
}

.media--specify {
  --ar: 16 / 10;
}
.media--present {
  --ar: 16 / 9;
}
.media--tile {
  --ar: 4 / 3;
}
.media--portrait {
  --ar: 4 / 5;
}
.media--film {
  --ar: 16 / 9;
}

@media (max-width: 719px) {
  .media--specify {
    --ar: 4 / 3;
  }
  .media--present {
    --ar: 4 / 5;
  }
  .media--tile {
    --ar: 3 / 2;
  }
}

/* Generic ratio modifiers for every page: .media--16x9 etc. set the frame;
   .media--sm-* overrides it on phones (≤719px). */
.media--16x9 {
  --ar: 16 / 9;
}
.media--16x10 {
  --ar: 16 / 10;
}
.media--21x9 {
  --ar: 21 / 9;
}
.media--3x2 {
  --ar: 3 / 2;
}
.media--4x3 {
  --ar: 4 / 3;
}
.media--4x5 {
  --ar: 4 / 5;
}

@media (max-width: 719px) {
  .media--sm-16x9 {
    --ar: 16 / 9;
  }
  .media--sm-4x3 {
    --ar: 4 / 3;
  }
  .media--sm-3x2 {
    --ar: 3 / 2;
  }
  .media--sm-4x5 {
    --ar: 4 / 5;
  }
}

/* media laid out side by side; collapses on phones */
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.media-pair--wide {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
}

.media-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* a left-to-right sequence (Platform Follow Through): four across, 2 × 2 on tablets */
.media-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1099px) {
  .media-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .media-pair,
  .media-pair--wide,
  .media-grid,
  .media-grid--3,
  .media-grid--4 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Development placeholders: restrained tonal plates with a dashed, clearly
   labelled spec. They exist only until final media replaces them. */
.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
}

.placeholder::before,
.placeholder::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* studio: a soft light pool and a floor line */
.placeholder--studio::before {
  inset: 0;
  background: radial-gradient(52% 46% at 62% 40%, rgba(242, 240, 235, 0.1), transparent 70%),
    radial-gradient(38% 22% at 62% 76%, rgba(242, 240, 235, 0.05), transparent 72%);
}

.placeholder--studio::after {
  left: 10%;
  right: 10%;
  top: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 240, 235, 0.16), transparent);
}

.placeholder--warm::before {
  background: radial-gradient(46% 42% at 34% 58%, rgba(196, 150, 104, 0.12), transparent 70%),
    radial-gradient(40% 40% at 72% 40%, rgba(242, 240, 235, 0.07), transparent 72%);
}

/* interface: a faint frame with an option strip */
.placeholder--interface::before {
  inset: 10% 12% 38% 12%;
  border: 1px solid rgba(242, 240, 235, 0.08);
  border-radius: 2px;
  background: radial-gradient(60% 60% at 50% 55%, rgba(242, 240, 235, 0.06), transparent 70%);
}

.placeholder--interface::after {
  left: 30%;
  right: 30%;
  bottom: 30%;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(242, 240, 235, 0.14) 0 10px,
    transparent 10px 18px
  );
  border-radius: 1px;
}

/* document: a page */
.placeholder--document::before {
  top: 12%;
  bottom: 12%;
  left: 50%;
  aspect-ratio: 1 / 1.414;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(242, 240, 235, 0.07), rgba(242, 240, 235, 0.03));
  border: 1px solid rgba(242, 240, 235, 0.08);
}

.placeholder--document::after {
  top: 20%;
  left: 50%;
  width: 18%;
  height: 2px;
  transform: translateX(-80%);
  background: rgba(242, 240, 235, 0.14);
  box-shadow: 0 14px 0 rgba(242, 240, 235, 0.09), 0 26px 0 rgba(242, 240, 235, 0.09),
    0 38px 0 rgba(242, 240, 235, 0.09);
}

.placeholder--panel::before {
  aspect-ratio: auto;
  left: 14%;
  right: 14%;
  transform: none;
}

.placeholder__label {
  position: absolute;
  left: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: min(30rem, calc(100% - 2 * clamp(12px, 2vw, 20px)));
  padding: 10px 12px;
  border: 1px dashed var(--line-3);
  border-radius: 2px;
  background: rgba(11, 11, 11, 0.78);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--ink-2);
}

.placeholder__tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.placeholder__spec {
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

/* video pause control (rendered only once a final looping video exists) */
.video-toggle {
  position: absolute;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 2;
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 11, 11, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1080px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media .media,
.hero__media .placeholder,
.hero__media .media__video {
  width: 100%;
  height: 100%;
}

.hero__media .media__video {
  object-fit: cover;
}

/* Until the hero film (H1) is supplied: a dark studio — a soft light pool and a floor line.
   Decorative only; the film and its still cover it when they arrive. */
.hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
}

.hero__backdrop::before,
.hero__backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero__backdrop::before {
  inset: 0;
  background: radial-gradient(52% 46% at 62% 40%, rgba(242, 240, 235, 0.1), transparent 70%),
    radial-gradient(38% 22% at 62% 76%, rgba(242, 240, 235, 0.05), transparent 72%);
}

.hero__backdrop::after {
  left: 10%;
  right: 10%;
  top: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 240, 235, 0.16), transparent);
}

/* H1 drop-in: the art-directed still (<picture>, landscape / portrait) sits under the looping
   film. It shows until the film's first frame, and stays when motion is reduced. */
.hero__media picture,
.hero__media .media__poster,
.hero__media .media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media .media__poster {
  object-fit: cover;
}

/* the placeholder label sits clear of the copy: top right, under the header */
.hero__media .placeholder__label {
  top: calc(var(--header-h) + 20px);
  right: var(--gutter);
  left: auto;
  bottom: auto;
  max-width: 24rem;
}

.hero__media .video-toggle {
  top: calc(var(--header-h) + 20px);
  right: var(--gutter);
  bottom: auto;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none; /* decorative: clicks reach the film's Pause control underneath */
  background: linear-gradient(
      0deg,
      rgba(11, 11, 11, 0.94) 0%,
      rgba(11, 11, 11, 0.62) 34%,
      rgba(11, 11, 11, 0) 66%
    ),
    linear-gradient(90deg, rgba(11, 11, 11, 0.62) 0%, rgba(11, 11, 11, 0) 58%);
}

.hero__content {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 112px);
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1;
}

.hero__title span {
  display: block;
}

.hero__descriptor {
  margin-top: clamp(18px, 2.2vw, 28px);
  max-width: 30ch;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.hero__lede {
  margin-top: 12px;
  max-width: 44ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(28px, 3vw, 40px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__descriptor,
  .hero__lede,
  .hero__actions {
    animation: rise 1000ms var(--ease) both;
  }
  .hero__descriptor {
    animation-delay: 140ms;
  }
  .hero__lede {
    animation-delay: 240ms;
  }
  .hero__actions {
    animation-delay: 340ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* phones held upright: a taller scrim — the final 9:16 crop keeps the car in the upper half */
@media (max-width: 719px) {
  .hero {
    min-height: 600px;
  }
  .hero__scrim {
    background: linear-gradient(
      0deg,
      rgba(11, 11, 11, 0.96) 0%,
      rgba(11, 11, 11, 0.8) 46%,
      rgba(11, 11, 11, 0) 74%
    );
  }
  .hero__media .placeholder__label {
    left: var(--gutter);
    right: var(--gutter);
    max-width: none;
  }
  .hero__actions .btn--solid {
    width: 100%;
  }
}

/* phones held sideways: copy left, media right, everything inside the first screen */
@media (orientation: landscape) and (max-height: 560px) {
  .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    align-items: center;
  }
  .hero__content {
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 24px;
  }
  .hero__title {
    font-size: clamp(2rem, 1rem + 5vh, 2.75rem);
  }
  .hero__descriptor {
    margin-top: 10px;
    font-size: 1.0625rem;
  }
  .hero__lede {
    margin-top: 6px;
    font-size: 0.9375rem;
    max-width: 40ch;
  }
  .hero__actions {
    margin-top: 16px;
  }
  .hero__actions .btn--solid {
    width: auto;
  }
  .hero__scrim {
    background: linear-gradient(90deg, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.7) 50%, rgba(11, 11, 11, 0.1) 100%);
  }
  .hero__media .placeholder__label {
    left: auto;
    right: var(--gutter);
    max-width: 18rem;
  }
}

/* ============================== CHAPTERS (the four pillars) ============================== */
.chapter {
  padding-block: var(--section-y);
}

.chapter + .chapter,
.pivot + .chapter {
  padding-top: 0;
}

/* one continuous journey: every chapter opens with the same four-step strip */
.journey-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: clamp(44px, 6vw, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-4);
}

.journey-strip li {
  position: relative;
  display: inline-flex;
  gap: 10px;
}

.journey-strip__num {
  font-variant-numeric: tabular-nums;
}

.journey-strip .is-current {
  color: var(--ink);
}

.journey-strip .is-current::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -19px;
  height: 1px;
  background: var(--ink);
}

/* phones: one row — every step number, but only the current step's name */
@media (max-width: 719px) {
  .journey-strip {
    flex-wrap: nowrap;
    gap: 22px;
  }
  .journey-strip li:not(.is-current) .journey-strip__name {
    display: none;
  }
}

.chapter__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.chapter__grid--top {
  align-items: start;
}

.chapter__text {
  grid-column: 1 / span 5;
}

.chapter__text--wide {
  grid-column: 1 / span 6;
}

.chapter__media {
  grid-column: 7 / -1;
}

.chapter--mirror .chapter__media {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.chapter--mirror .chapter__text {
  grid-column: 9 / -1;
  grid-row: 1;
}

.chapter__title {
  font-size: var(--fs-display-m);
  line-height: 1.06;
  max-width: 16ch;
}

.chapter__body {
  margin-top: clamp(20px, 2vw, 28px);
  max-width: 40ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.chapter__note {
  margin-top: 20px;
  max-width: 44ch;
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

.chapter__link {
  margin-top: 28px;
}

@media (max-width: 959px) {
  .chapter__text,
  .chapter__text--wide,
  .chapter__media,
  .chapter--mirror .chapter__text,
  .chapter--mirror .chapter__media {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* A chapter shown without its media (until the asset is supplied): headline left, text right —
   the arrangement of .vehicle__head. When the media returns, drop .chapter--text again. */
.chapter--text .chapter__text {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: end;
}

.chapter--text .chapter__title {
  grid-column: 1 / span 6;
}

.chapter--text .chapter__body,
.chapter--text .chapter__note {
  grid-column: 8 / -1;
  margin-top: 0;
}

@media (max-width: 959px) {
  .chapter--text .chapter__title,
  .chapter--text .chapter__body,
  .chapter--text .chapter__note {
    grid-column: 1 / -1;
  }
}

/* Ledger: a ruled list (Follow Through on the homepage, "What it includes" on Platform).
   Its grid placement belongs to the page that uses it, not to the component. */
.chapter--follow .ledger {
  grid-column: 8 / -1;
  align-self: end;
}

.ledger li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-2);
}

.ledger li:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger__num {
  flex: none;
  min-width: 2ch;
  padding-top: 3px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

@media (max-width: 959px) {
  .chapter--follow .ledger {
    grid-column: 1 / -1;
  }
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(48px, 6vw, 88px);
}

@media (max-width: 719px) {
  .triptych {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Understand: questions, not dashboards */
.questions {
  margin-top: clamp(28px, 3vw, 40px);
}

.questions li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
}

.questions li:last-child {
  border-bottom: 1px solid var(--line);
}

.chapter--understand .chapter__text {
  grid-column: 1 / span 6;
}

/* the illustrative journey (placement set by the page: homepage Understand, Platform Understand) */
.chapter--understand .journey {
  grid-column: 8 / -1;
}

.journey {
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 959px) {
  .chapter--understand .chapter__text,
  .chapter--understand .journey {
    grid-column: 1 / -1;
  }
}

.journey__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.journey__tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
}

.journey__week + .journey__week {
  margin-top: 26px;
}

.journey__when {
  margin-bottom: 10px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.journey__steps {
  position: relative;
  padding-left: 30px;
}

.journey__steps::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 18px;
  width: 1px;
  background: var(--line-2);
}

.journey__step {
  position: relative;
  padding: 6px 0 8px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-3);
}

.journey__step b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.journey__step::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: var(--bg-2);
}

/* a shared alternative branches off the main line */
.journey__step--branch {
  margin-left: 30px;
}

.journey__step--branch::before {
  left: -30px;
  border-style: dashed;
}

.journey__step--branch::after {
  content: "";
  position: absolute;
  left: -54px;
  top: 16px;
  width: 24px;
  border-top: 1px dashed var(--line-3);
}

.journey__step--end::before {
  background: var(--ink);
  border-color: var(--ink);
}

.journey__note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

/* ============================== PIVOT ============================== */
.pivot {
  padding-block: var(--section-y);
}

.pivot__title {
  max-width: 17ch;
  font-size: var(--fs-display-l);
  line-height: 1.04;
}

.pivot__body {
  margin-top: clamp(24px, 2.6vw, 36px);
  max-width: 52ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.thread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 7vw, 104px);
}

.thread::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: var(--line-2);
  transform-origin: left;
}

.thread li {
  position: relative;
  padding-top: 36px;
}

.thread li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: var(--bg);
}

.thread .thread__start::before {
  background: var(--ink);
  border-color: var(--ink);
}

/* block-level flex on both the link and the static "Saved" item, so all four steps sit
   on the same line regardless of line-height struts */
.thread a,
.thread__step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  text-decoration: none;
}

.thread__num {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.thread__name {
  font-family: var(--display);
  font-size: var(--fs-display-s);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.thread a:hover .thread__name {
  text-decoration-color: currentColor;
}

.thread__start .thread__name {
  color: var(--ink-3);
}

@media (max-width: 719px) {
  .thread {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .thread::before {
    left: 7px;
    right: auto;
    top: 14px;
    bottom: 30px;
    width: 1px;
    height: auto;
    transform-origin: top;
  }
  .thread li {
    padding: 0 0 20px 40px;
  }
  .thread li:last-child {
    padding-bottom: 0;
  }
  .thread li::before {
    top: 14px;
  }
  .thread a,
  .thread__step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

/* overview variant (Platform intro): four linked steps, each with a one-line description */
.thread--overview {
  margin-top: clamp(48px, 6vw, 88px);
}

.thread--overview a {
  width: auto;
}

.thread__desc {
  margin-top: 2px;
  max-width: 28ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 719px) {
  .thread--overview li {
    padding-bottom: 28px;
  }
  .thread--overview li::before {
    top: 2px;
  }
  .thread--overview::before {
    top: 8px;
    bottom: 60px;
  }
  .thread--overview a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================== ONE DIGITAL VEHICLE ============================== */
.vehicle {
  padding-block: var(--section-y);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vehicle__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: end;
}

.vehicle__title {
  grid-column: 1 / span 6;
  font-size: var(--fs-display-m);
  line-height: 1.06;
  max-width: 14ch;
}

.vehicle__body {
  grid-column: 8 / -1;
  max-width: 44ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.vehicle__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(48px, 6vw, 80px);
}

.vehicle__grid .media__frame {
  background: var(--bg);
}

@media (max-width: 959px) {
  .vehicle__title,
  .vehicle__body {
    grid-column: 1 / -1;
  }
  .vehicle__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

/* ============================== CLOSE ============================== */
.close {
  padding-block: var(--section-y);
  text-align: center;
}

.close__title {
  margin-inline: auto;
  max-width: 14ch;
  font-size: var(--fs-display-l);
  line-height: 1.04;
}

.close__body {
  margin: 20px auto 0;
  max-width: 40ch;
  text-wrap: balance;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  max-width: 1080px;
  margin: clamp(56px, 7vw, 96px) auto 0;
  text-align: left;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

/* left-aligned use inside a page section (Approach), rather than centred in the Close */
.steps--left {
  max-width: none;
  margin: 0;
}

.steps__num {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.steps__name {
  font-family: var(--display);
  font-size: var(--fs-display-s);
  line-height: 1.1;
}

.steps__desc {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.close__line {
  margin-top: clamp(48px, 5vw, 72px);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.close__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.close__email {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.close__email a {
  display: inline-block;
  padding: 12px 2px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 5px;
}

.close__email a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 719px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .close__actions .btn--solid {
    width: 100%;
  }
}

/* ============================== SECTIONS & PAGE INTRO (supporting pages) ============================== */
.section {
  padding-block: var(--section-y);
}

.section--flush-top {
  padding-top: 0;
}

/* consecutive plain sections share one gap — the ruled label above each heading is the divider
   (surfaces keep their own spacing because their background marks the change) */
.section:not(.section--surface) + .section:not(.section--surface),
.section:not(.section--surface) + .close {
  padding-top: 0;
}

/* a quieter surface for sections that need separating (same treatment as .vehicle) */
.section--surface {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* section heading: ruled label, display title, optional intro on the right */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-label {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head .section-label {
  margin-bottom: clamp(16px, 3vw, 40px);
}

.section-title {
  grid-column: 1 / span 7;
  max-width: 18ch;
  font-size: var(--fs-display-m);
  line-height: 1.06;
}

.section-intro {
  grid-column: 8 / -1;
  max-width: 44ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

@media (max-width: 959px) {
  .section-title,
  .section-intro {
    grid-column: 1 / -1;
  }
}

.page-intro {
  padding: calc(var(--header-h) + clamp(64px, 9vw, 136px)) 0 clamp(72px, 8vw, 128px);
}

.page-intro + .chapter,
.page-intro + .section {
  padding-top: 0;
}

.page-intro__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.page-intro__title {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 18ch;
  font-size: var(--fs-display-l);
  line-height: 1.04;
}

.page-intro__lede {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 50ch;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}

.page-intro__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(40px, 5vw, 64px);
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.page-intro--centered {
  text-align: center;
}

.page-intro--centered .page-intro__title,
.page-intro--centered .page-intro__lede {
  margin-inline: auto;
}

/* small outlined tag: "Illustrative", "Development shell" … */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

/* status line for capabilities that are working but early (claim discipline) */
.status-line {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 60ch;
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

.status-line::before {
  content: "";
  flex: none;
  width: 18px;
  margin-top: 0.7em;
  border-top: 1px solid var(--line-3);
}

/* ============================== PILLARS (Platform page) ============================== */
.pillar__head {
  max-width: 760px;
}

.pillar__media {
  margin-top: clamp(40px, 5vw, 72px);
}

.pillar__detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
  margin-top: clamp(48px, 6vw, 88px);
}

.pillar__includes {
  grid-column: 1 / span 6;
}

.pillar__aside {
  grid-column: 8 / -1;
}

@media (max-width: 959px) {
  .pillar__includes,
  .pillar__aside {
    grid-column: 1 / -1;
  }
}

.pillar__subhead {
  margin-bottom: 14px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* what it means on each side of the table */
.values {
  display: grid;
  gap: 28px;
}

.values__item p {
  font-size: var(--fs-body);
  color: var(--ink-2);
  max-width: 44ch;
}

/* the running illustrative example that threads through the Platform page */
.example {
  margin-top: 36px;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--ink);
}

.example__tag {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.example__text {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.38;
  color: var(--ink);
}

/* questions grouped by team (Platform Understand) */
.team-questions {
  display: grid;
  gap: 32px;
}

.team-questions h3 {
  margin-bottom: 4px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.team-questions .questions {
  margin-top: 0;
}

.pillar__subhead + .team-questions {
  margin-top: 24px;
}

/* ============================== FEATURE GRID ============================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) var(--col-gap);
}

.feature-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.feature__title {
  font-family: var(--display);
  font-size: var(--fs-display-s);
  font-weight: 400;
  line-height: 1.12;
}

.feature__text {
  margin-top: 10px;
  max-width: 38ch;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-3);
}

.feature__text a {
  color: var(--ink);
  text-underline-offset: 4px;
}

@media (max-width: 1099px) {
  .feature-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .feature-grid,
  .feature-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================== PROCESS (Approach) ============================== */
.process {
  border-top: 1px solid var(--line);
}

.process__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 10px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.process__num {
  grid-column: 1 / span 1;
  padding-top: 0.55em;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.process__title {
  grid-column: 2 / span 5;
  font-family: var(--display);
  font-size: var(--fs-display-s);
  font-weight: 400;
  line-height: 1.15;
}

.process__text {
  grid-column: 8 / -1;
  max-width: 46ch;
  font-size: var(--fs-body);
  color: var(--ink-2);
}

@media (max-width: 959px) {
  .process__num,
  .process__title,
  .process__text {
    grid-column: 1 / -1;
  }
  .process__num {
    padding-top: 0;
  }
}

/* ============================== STATEMENT ============================== */
.statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: end;
}

.statement__title {
  grid-column: 1 / span 7;
  max-width: 17ch;
  font-size: var(--fs-display-l);
  line-height: 1.04;
}

.statement__body {
  grid-column: 8 / -1;
  max-width: 44ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.statement__body p + p {
  margin-top: 16px;
}

.statement + .media,
.statement + .media-pair {
  margin-top: clamp(48px, 6vw, 80px);
}

@media (max-width: 959px) {
  .statement__title,
  .statement__body {
    grid-column: 1 / -1;
  }
}

/* ============================== FAQ ============================== */
.faq {
  max-width: 920px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
  font-size: var(--fs-body-l);
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

/* plus that turns into a minus */
.faq__q::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  opacity: 0.8;
}

.faq__item[open] .faq__q::after {
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat;
}

.faq__q:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.faq__a {
  padding: 0 0 26px;
  max-width: 64ch;
  font-size: var(--fs-body);
  color: var(--ink-2);
}

.faq__a a {
  color: var(--ink);
  text-underline-offset: 4px;
}

/* ============================== FORMS ============================== */
.form-panel {
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form {
  display: grid;
  gap: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label,
.choice-group legend {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.field__optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field__hint {
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem; /* 16px — stops iOS zooming into the field */
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-3);
  border-radius: 2px;
  transition: border-color var(--t-fast) var(--ease);
}

textarea.field__input {
  min-height: 148px;
  resize: vertical;
}

.field__input:hover {
  border-color: rgba(242, 240, 235, 0.5);
}

.field__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--error);
}

.choice-group {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 8px;
  padding: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: var(--fs-body);
  color: var(--ink-2);
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.choice input:checked + span {
  color: var(--ink);
}

/* spam trap: present for bots, invisible and unreachable for people */
.field--trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form-note {
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

.form-note a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.error-summary {
  padding: 20px 22px;
  background: rgba(236, 159, 141, 0.06);
  border: 1px solid var(--error);
  border-radius: 2px;
}

.error-summary:focus-visible {
  outline-offset: 4px;
}

.error-summary__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
}

.error-summary ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.error-summary a {
  font-size: var(--fs-small);
  color: var(--error);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* a send that failed: the error-summary box, with a sentence instead of a list */
.form-alert p {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* while an enquiry is sending */
.btn[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.btn--solid[disabled]:hover {
  background: var(--ink);
}

/* the confirmation shown in place of the form once the enquiry has been received */
.form-status {
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

/* focus is moved here only so screen readers announce it; it is not a control, so no ring */
.form-status:focus,
.form-status:focus-visible {
  outline: none;
}

.form-status__tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-status__title {
  margin-top: 8px;
  font-family: var(--display);
  font-size: var(--fs-display-s);
  font-weight: 400;
  line-height: 1.15;
}

.form-status__text {
  margin-top: 10px;
  max-width: 52ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.btn--outline {
  color: var(--ink);
  border: 1px solid var(--line-3);
}

.btn--outline:hover {
  border-color: var(--ink);
}

/* ============================== CONTACT ============================== */
.contact {
  padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 var(--section-y);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 56px;
  align-items: start;
}

.contact__intro {
  grid-column: 1 / span 5;
}

.contact__form {
  grid-column: 7 / -1;
}

@media (max-width: 959px) {
  .contact__intro,
  .contact__form {
    grid-column: 1 / -1;
  }
}

.contact__title {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 14ch;
  font-size: var(--fs-display-l);
  line-height: 1.04;
}

.contact__lede {
  margin-top: 24px;
  max-width: 42ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.contact__subhead {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.next-steps {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.next-steps li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  color: var(--ink-2);
}

.next-steps__num {
  flex: none;
  min-width: 2ch;
  padding-top: 3px;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.contact__aside {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.contact__aside a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 5px;
}

.contact__aside a:hover {
  text-decoration-color: currentColor;
}

.contact__aside p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  min-height: 44px;
}

/* links under a confirmation or intro */
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* ============================== CLIENT ACCESS ============================== */
.access {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px);
}

.access__panel {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access__title {
  margin-top: clamp(14px, 2vw, 20px);
  font-size: var(--fs-display-m);
  line-height: 1.06;
}

.access__body {
  margin-top: 20px;
  max-width: 48ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.access__actions {
  margin-top: 32px;
}

.access__fine {
  margin-top: 14px;
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

.access__more {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.access__more h2 {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.access__more p {
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.access__more a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 5px;
}

.access__more a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 719px) {
  .access__actions .btn {
    width: 100%;
  }
}

/* ============================== DEMONSTRATOR (shell) ============================== */
.dev-shell-note {
  display: grid;
  gap: 6px;
  max-width: 64ch;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px dashed var(--line-3);
  border-radius: 2px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.dev-shell-note strong {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.sequence {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
}

.sequence__step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: start;
}

.sequence__text {
  grid-column: 1 / span 4;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.sequence__media {
  grid-column: 6 / -1;
}

.sequence__num {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.sequence__title {
  margin-top: 8px;
  font-family: var(--display);
  font-size: var(--fs-display-s);
  font-weight: 400;
  line-height: 1.12;
}

.sequence__desc {
  margin-top: 10px;
  max-width: 34ch;
  font-size: var(--fs-body);
  color: var(--ink-2);
}

@media (max-width: 959px) {
  .sequence__text,
  .sequence__media {
    grid-column: 1 / -1;
  }
}

.detail__subhead {
  margin-top: clamp(40px, 5vw, 64px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px var(--col-gap);
}

.facts li {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-family: var(--display);
  font-size: var(--fs-display-s);
  line-height: 1.15;
}

@media (max-width: 959px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ============================== FOOTER ============================== */
.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 32px;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 40px clamp(24px, 3vw, 48px);
}

.footer-brand__descriptor {
  margin-top: 14px;
  max-width: 30ch;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.footer-brand__company {
  margin-top: 14px;
  max-width: 48ch;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--ink-3);
}

.footer-col__title {
  margin-bottom: 12px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  color: var(--ink-3);
}

@media (max-width: 959px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================== FILM DIALOG ============================== */
.film-dialog {
  width: min(1200px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.film-dialog::backdrop {
  background: rgba(5, 5, 5, 0.88);
}

.film-dialog__inner {
  padding: clamp(12px, 1.6vw, 20px);
}

.film-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.film-dialog__title {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ============================== DEVELOPMENT NOTICE ============================== */
.dev-notice {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(560px, calc(100vw - 32px));
  padding: 16px 20px;
  background: #1a1a1a;
  border: 1px dashed var(--line-3);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.dev-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dev-notice__tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.dev-notice__text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink);
}

/* ============================== SCROLL REVEAL ==============================
   CSS scroll-driven, so there is no JavaScript, no flash of hidden content, and
   nothing at all in browsers without support or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    .thread::before {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  @keyframes draw {
    from {
      transform: scaleY(0);
    }
    to {
      transform: scaleY(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* forced colours / high contrast: keep structure visible */
@media (forced-colors: active) {
  .btn--solid {
    border: 1px solid ButtonText;
  }
  .placeholder__label,
  .dev-notice,
  .dev-shell-note,
  .form-status {
    border-style: solid;
  }
  .field__input,
  .error-summary,
  .access__panel,
  .form-panel {
    border: 1px solid CanvasText;
  }
}
