/* =========================================================================
   MAIN HERO — landing stylesheet
   Sections: FONTS -> TOKENS -> BASE -> LAYOUT -> COMPONENTS -> MOTION
   Author of visual contract: DesignerUXUI (values copied verbatim, task §5).
   Mobile-first. Single stylesheet (AntiGenericStandard / Soul.md).
   ========================================================================= */

/* === FONTS === */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibmplexmono-500.woff2') format('woff2');
}

/* === TOKENS === */
:root {
  /* colour */
  --ink: #0E0D13;
  --ink-2: #17151F;
  --ink-3: #211E2B;
  --sunken: #0A0910;
  --gold: #F2B33D;
  --gold-hi: #FFD98A;
  --ember: #E4553B;
  --paper: #EDE7DA;
  --paper-dim: #A7A091;
  --line: #33303D;
  --focus: #FFD98A;
  /* typography */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --tracking-heading: -0.02em;
  --tracking-eyebrow: 0.12em;
  --leading-body: 1.55;
  --leading-heading: 1.1;
  /* radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  /* rhythm */
  --pad-container: 20px;
  --container: 1200px;
  --space-section: 64px;
  --gap-card: 16px;
}
@media (min-width: 1024px) {
  :root {
    --space-section: 112px;
    --pad-container: 24px;
  }
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

:where(h1, h2) {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }         /* 32 -> 56px */
h2 { font-size: clamp(1.625rem, 3.5vw + 0.75rem, 2.625rem); line-height: 1.15; } /* 26 -> 42px */

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;                 /* 20 -> 24px */
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) { h3 { font-size: 1.5rem; } }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;                 /* 12 -> 13px */
  line-height: 1.4;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0;
}
@media (min-width: 1024px) { .eyebrow { font-size: 0.8125rem; } }

.small { font-size: 0.875rem; line-height: 1.5; }

/* Accessible focus — applies to every interactive element */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--ink-3);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-container);
}

.section { padding-block: var(--space-section); }
.section__head { max-width: 62ch; margin-bottom: 2rem; }
.section__title { margin-top: 0.5rem; }
.section__lead {
  margin-top: 1rem;
  color: var(--paper);
  font-size: 1.0625rem;
  max-width: 60ch;
}

.cards-grid {
  display: grid;
  gap: var(--gap-card);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px) {
  .cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cards-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { gap: 3rem; }
  .split--text-media { grid-template-columns: 1fr minmax(0, 520px); }
  .split--media-text { grid-template-columns: minmax(0, 420px) 1fr; }
}

/* === COMPONENTS === */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 16px 28px;
  min-height: 52px;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn__icon { font-size: 0.85em; line-height: 1; }

.btn--primary {
  position: relative;
  background: var(--gold);
  color: var(--ink);
  isolation: isolate;
}
/* diegetic gold underglow — animated via ::after opacity, never box-shadow.
   Kept tight horizontally so the halo never overlaps neighbours or the viewport edge. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -32% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 179, 61, 0.5), transparent 72%);
  opacity: 0.32;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
/* header CTAs sit next to other UI — no halo there */
.nav__cta::after,
.nav__cta--mobile::after { display: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

/* States, order LVFHA: hover -> focus-visible -> active */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--gold-hi); }
  .btn--primary:hover::after { opacity: 0.7; }
  .btn--ghost:hover { border-color: var(--gold); }
}
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.btn--primary:focus-visible {
  outline: 2px solid var(--ink);
  box-shadow: 0 0 0 4px var(--paper);
}
.btn:active { transform: scale(0.97); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  flex: none;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
/* narrow phones: wordmark only + smaller, so the header row never overflows */
@media (max-width: 480px) {
  .brand__mark { display: none; }
  .brand { font-size: 1.125rem; }
}

.nav { display: flex; align-items: center; gap: 0.6rem; }
.nav__list {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 1.25rem;
  align-items: center;
}
.nav__link {
  font-size: 0.9375rem;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--paper); }
}
.nav__cta { display: none; }
/* Slim header pill: fixed height + align-self so it never stretches to the header row */
.nav__cta--mobile {
  display: inline-flex;
  align-self: center;
  gap: 0;
  padding: 0 16px;
  height: 40px;
  min-height: 0;
  font-size: 0.8125rem;
}
.nav__cta--mobile .btn__icon { display: none; }   /* text-only in the tight header row */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.nav-menu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--pad-container) 20px;
  display: none;
}
.nav-menu[data-open="true"] { display: block; }
.nav-menu__list { list-style: none; margin: 0; padding: 0; }
.nav-menu__list a {
  display: block;
  padding: 14px 4px;
  min-height: 48px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}

@media (min-width: 1024px) {
  .nav { gap: 1.25rem; }
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; padding: 12px 22px; min-height: 44px; font-size: 0.9375rem; }
  .nav__cta--mobile { display: none; }
  .nav-toggle { display: none; }
  .nav-menu { display: none !important; }
}

/* ---- Surfaces (tonal elevation, variant B) ---- */
.surface-elevated {
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.surface-sunken {
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---- Cards ---- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.card__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
}
.card__title { margin-top: 0.15rem; }
.card__body { color: var(--paper); }
.card__top-line {
  position: absolute;
  left: 22px; right: 22px; top: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    background: color-mix(in srgb, var(--gold) 5%, var(--ink-2));
    border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  }
  .card:hover .card__top-line { background: linear-gradient(90deg, var(--gold), transparent); }
}

/* big highlighted stat */
.stat-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 4rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* metric ring (Technology section) */
.ring {
  --pct: 85;
  width: 148px; height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--ink-2) 79%, transparent 80% 100%),
    conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--line) 0);
  position: relative;
}
.ring__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 24px 40px;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(14,13,19,0.40), rgba(14,13,19,0.92)),
    url('../assets/images/hero-silhouette.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}
.hero__brand-eyebrow { color: var(--paper-dim); }
.hero__title { max-width: 16ch; }
.hero__subtitle {
  max-width: 46ch;
  color: var(--paper);
  font-size: 1.0625rem;
}
.hero__cta { margin-top: 0.5rem; }

/* ---- Hero Core ---- */
.hero-core {
  position: relative;
  /* ~30% of screen height; shrinks on short viewports for the hero height budget */
  width: min(66vw, 30svh, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-block: 0.25rem;
}
.hero-core__staff, .hero-core__rings, .hero-core__notes {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-core__rings circle { fill: none; stroke: var(--line); stroke-width: 1; }
.hero-core__staff line { stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.hero-core__sphere {
  width: 46%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, var(--gold-hi) 0%, var(--gold) 40%, #9A6C1E 78%, #4A340F 100%);
  position: relative;
  transform: scale(1);
  will-change: transform;
}
.hero-core__sphere::after {
  content: "";
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242,179,61,0.55), transparent 70%);
  opacity: var(--core-glow, 0.5);
  z-index: -1;
}
.hero-core__note {
  position: absolute;
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-size: 1.4rem;
  opacity: 0.75;
  will-change: transform, opacity;
}

/* ---- Telemetry ---- */
.telemetry {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}
.telemetry__beat { color: var(--ember); font-size: 1em; }
.telemetry__bpm { color: var(--paper); font-variant-numeric: tabular-nums; }

/* ---- Intensity slider ---- */
.intensity {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.intensity__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
  align-self: center;
}
.intensity__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;              /* touch target */
  background: transparent;
  cursor: pointer;
  margin: 0;
}
/* track — sunken */
.intensity__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.intensity__range::-moz-range-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* thumb — 24px visual, 44px hit via height */
.intensity__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  transition: transform 0.1s ease, background-color 0.1s ease;
}
.intensity__range::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
}
.intensity__range:active::-webkit-slider-thumb {
  transform: scale(1.17);      /* -> ~28px */
  background: var(--ember);
}
.intensity__range:active::-moz-range-thumb {
  transform: scale(1.17);
  background: var(--ember);
}
.intensity__range:focus-visible { outline: none; }
.intensity__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-hi);
}
.intensity__range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-hi);
}
/* collapsed chip fallback (short viewports) */
.intensity__chip {
  display: none;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
}
.intensity.is-collapsed .intensity__control { display: none; }
.intensity.is-collapsed .intensity__chip { display: inline-flex; align-items: center; }

/* ---- Day dramaturgy / leitmotifs ---- */
/* storyboard is a portrait 2:3 image of three stacked acts (morning/day/evening) */
.storyboard {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.leitmotifs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.leitmotif {
  display: inline-flex;
  align-items: center;
  gap: 0.55ch;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.leitmotif__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember); flex: none;
}

/* ---- Working modes: segmented control + panels ---- */
.segmented {
  display: flex;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  max-width: 420px;
  margin-bottom: 1.75rem;
}
.segmented__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5ch;
  min-height: 48px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.segmented__btn[aria-selected="true"] {
  color: var(--paper);
  background: var(--ink-3);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.segmented__icon { font-size: 1em; }
.modes__panel { display: none; }
.modes__panel[data-active="true"] { display: block; }
.modes__grid {
  display: grid;
  gap: var(--gap-card);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .modes__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Pricing ---- */
.price-card { position: relative; }
.price-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--gold);
}
.price-card__price span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--paper-dim); }
.price-card--featured {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}
.price-card--featured .card__top-line {
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}
.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

/* ---- Roadmap timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
/* mobile: vertical with left gold line */
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 30%, transparent));
}
.timeline__item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 1.75rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node {
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
}
.timeline__phase {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gold);
  text-transform: uppercase;
}
.timeline__body { margin-top: 0.35rem; color: var(--paper); }
.timeline__closing { margin-top: 1.5rem; color: var(--paper); max-width: 60ch; }

@media (min-width: 1024px) {
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .timeline::before { left: 12px; right: 12px; top: 11px; bottom: auto; width: auto; height: 2px; }
  .timeline__item { padding-left: 0; padding-top: 44px; padding-bottom: 0; }
  .timeline__node { top: 0; left: 0; }
}

/* ---- Founders ---- */
.founder-card { padding: 0; overflow: hidden; }
.founder-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--ink-3);
}
.founder-card__inner { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 0.6rem; }
.founder-card__role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.founder-card__points { margin: 0.4rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.founder-card__points li { color: var(--paper); font-size: 0.9375rem; line-height: 1.5; }

/* ---- Why now / finale ---- */
.finale__media {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.finale__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--paper);
  margin-block: 1.25rem;
}
.finale__statement b { color: var(--gold); font-weight: 600; }
@media (min-width: 1024px) {
  .finale__media { max-width: 420px; margin: 0; }
}

/* ---- Access form ---- */
.access {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  max-width: 520px;
}
.access__form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
}
.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--sunken);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px transparent;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 52px;
  width: 100%;
}
.field__input::placeholder { color: #8f887a; }   /* contrast >= 4.5:1 on --sunken */
.field__input:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field__input[aria-invalid="true"] { border-color: var(--ember); }

.consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.consent input {
  width: 22px; height: 22px;
  margin: 0; flex: none;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent label { font-size: 0.9375rem; color: var(--paper); line-height: 1.5; cursor: pointer; }
.consent a { color: var(--gold-hi); text-underline-offset: 2px; }

.form-status {
  font-size: 0.9375rem;
  min-height: 1.2em;
  display: flex;
  align-items: flex-start;
  gap: 0.5ch;
}
.form-status:empty { display: none; }
.form-status[data-kind="error"] { color: var(--gold-hi); }
.form-status[data-kind="error"]::before { content: "!"; font-weight: 700; color: var(--ember); }
.form-status[data-kind="success"] { color: var(--paper); }
.form-status[data-kind="success"]::before { content: "\2713"; color: var(--gold); font-weight: 700; }

.access__hint { color: var(--paper-dim); font-size: 0.8125rem; }

/* ---- Access split (form + pitch) ---- */
.access-split { max-width: 520px; }
.access-split .access { max-width: none; width: 100%; }
.access__pitch { margin-bottom: 1.5rem; }
.access__benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.access__benefits li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.access__benefits li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}
.access__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
}
@media (min-width: 1024px) {
  .access-split {
    max-width: 1000px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .access-split .access { order: 1; }
  .access__pitch { order: 2; margin-bottom: 0; }
}

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px var(--pad-container) calc(12px + env(safe-area-inset-bottom));
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform 0.28s ease;
}
.sticky-cta[data-visible="true"] { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
/* contain the button's radial glow so it can't push page width past the viewport */
.sticky-cta { overflow: hidden; }
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--sunken);
}
/* mobile: reserve room for the fixed sticky CTA so it never hides the last line.
   Uses the physical `padding-bottom` longhand (matching the base rule) so it
   cleanly overrides on small screens. */
@media (max-width: 1023px) {
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--paper); text-decoration: none; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--gold-hi); } }
.footer-partners {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.footer-partners__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.35rem;
}
.footer-partners__link {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .footer-partners__link:hover { border-color: var(--gold); }
}
.site-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--paper); }
.site-footer__legal { margin-top: 2rem; color: var(--paper-dim); font-size: 0.8125rem; }

/* ---- Desktop hero layout (55/45) ---- */
/* Named grid areas: robust cross-browser reflow with no display:contents/order.
   The "stage" area repeats down every row so the Hero Core spans the full height
   of the right column while text/controls stack in the left column. */
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);   /* ~55 / 45 */
    grid-template-areas:
      "eyebrow   stage"
      "title     stage"
      "subtitle  stage"
      "telemetry stage"
      "intensity stage"
      "cta       stage";
    column-gap: 3rem;
    align-items: center;
    align-content: center;
    text-align: left;
  }
  .hero__brand-eyebrow { grid-area: eyebrow; justify-self: start; }
  .hero__title { grid-area: title; justify-self: start; max-width: 14ch; }
  .hero__subtitle { grid-area: subtitle; justify-self: start; }
  .telemetry { grid-area: telemetry; justify-self: start; }
  .intensity { grid-area: intensity; justify-self: start; width: min(100%, 360px); }
  .intensity__label, .intensity__chip { align-self: flex-start; }
  .hero__cta { grid-area: cta; justify-self: start; }
  .hero__stage {
    grid-area: stage;
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
  }
  .hero-core { width: min(34vw, 400px); }
}

/* === MOTION === */
/* JS-gated reveal — content stays visible if JS never runs (Progressive Enhancement) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-core__note { display: none; }
  .btn, .card, .segmented__btn, .nav-toggle__bars,
  .nav-toggle__bars::before, .nav-toggle__bars::after,
  .sticky-cta, .intensity__range::-webkit-slider-thumb {
    transition: none;
  }
}
