/* ==========================================================================
   NestTraxx v2 : design tokens
   Deep forest greens, charcoal, warm cream, one cardinal accent.
   Layout: full-bleed chapters, huge type, square corners, almost no motion.
   ========================================================================== */
:root {
  /* palette */
  --forest-950: #0a1a12;
  --forest-900: #0f2a1d;
  --forest-800: #163826;
  --forest-700: #1e4a31;
  --forest-600: #275c3d;
  --moss-500: #3f7a52;
  --charcoal-950: #121513;
  --charcoal-900: #191d1a;
  --charcoal-800: #232825;
  --cream-50: #fbf9f4;
  --cream-100: #f4efe3;
  --cream-200: #ebe4d3;
  --cream-300: #ddd4bf;
  --cardinal-600: #c1271f;
  --cardinal-700: #a41d17;
  --cardinal-800: #86140f;

  /* semantic: light (cream) context is the default */
  --color-bg: var(--cream-100);
  --color-surface: var(--cream-50);
  --color-surface-offset: var(--cream-200);
  --color-text: #171b18;
  --color-text-muted: #5a625b;
  --color-text-faint: #8a918a;
  --color-border: rgb(23 27 24 / 0.14);
  --color-border-strong: rgb(23 27 24 / 0.28);
  --color-primary: var(--forest-700);
  --color-accent: var(--cardinal-600);
  --color-accent-hover: var(--cardinal-700);
  --color-focus: var(--forest-600);
  --color-on-accent: #fff8f0;

  /* type */
  --font-display: 'Clash Display', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Avenir Next', 'Segoe UI', sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.25vw, 2rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-chapter: clamp(2.25rem, 5vw, 4.5rem);
  --text-page: clamp(2.5rem, 6vw, 5.5rem);
  --text-hero: clamp(3rem, 8vw, 7.5rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --chapter-pad: clamp(var(--space-16), 10vw, var(--space-32));
  --section-pad: clamp(var(--space-16), 8vw, var(--space-24));
  --gutter: clamp(var(--space-5), 4vw, var(--space-12));

  /* shape */
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 4px;

  /* motion: hover transitions only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 160ms var(--ease-out);

  /* layout */
  --content-narrow: 45rem;
  --content-default: 62rem;
  --content-wide: 84rem;
  --measure: 34em;
  --header-h: 3.5rem;
}

@media (max-width: 720px) {
  :root {
    --header-h: 3.25rem;
  }
}

/* Dark contexts re-map the semantic tokens */
.theme-forest,
.theme-charcoal,
.theme-night {
  --color-text: var(--cream-100);
  --color-text-muted: rgb(244 239 227 / 0.72);
  --color-text-faint: rgb(244 239 227 / 0.5);
  --color-border: rgb(244 239 227 / 0.16);
  --color-border-strong: rgb(244 239 227 / 0.34);
  --color-primary: var(--cream-100);
  --color-focus: var(--cream-100);
  color: var(--color-text);
}
.theme-night {
  --color-bg: var(--forest-950);
  --color-surface: var(--forest-900);
  --color-surface-offset: var(--forest-800);
  background-color: var(--color-bg);
}
.theme-forest {
  --color-bg: var(--forest-900);
  --color-surface: var(--forest-800);
  --color-surface-offset: var(--forest-700);
  background-color: var(--color-bg);
}
.theme-charcoal {
  --color-bg: var(--charcoal-950);
  --color-surface: var(--charcoal-900);
  --color-surface-offset: var(--charcoal-800);
  background-color: var(--color-bg);
}
.theme-cream {
  --color-bg: var(--cream-100);
  background-color: var(--color-bg);
}
.theme-white {
  --color-bg: #ffffff;
  --color-surface: var(--cream-50);
  --color-surface-offset: var(--cream-100);
  background-color: var(--color-bg);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}
.section {
  padding-block: var(--section-pad);
}
.section--tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}
.flow > * + * {
  margin-top: var(--flow-space, 1em);
}
.measure {
  max-width: var(--measure);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.h-hero {
  font-size: var(--text-hero);
  line-height: 0.95;
}
.h-page {
  font-size: var(--text-page);
  line-height: 0.98;
}
.h-chapter {
  font-size: var(--text-chapter);
  line-height: 1;
}
.h-section {
  font-size: var(--text-2xl);
  line-height: 1.04;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.lead {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: var(--measure);
}
.muted {
  color: var(--color-text-muted);
}
.small {
  font-size: var(--text-sm);
}
.tiny {
  font-size: var(--text-xs);
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.eyebrow--accent {
  color: var(--color-accent);
}
.theme-night .eyebrow--accent,
.theme-forest .eyebrow--accent,
.theme-charcoal .eyebrow--accent {
  color: #ff6b61;
}

/* ==========================================================================
   Buttons: square corners, no pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg {
  width: 1em;
  height: 1em;
  flex: none;
}
.btn--accent {
  background: var(--cardinal-600);
  border-color: var(--cardinal-600);
  color: var(--color-on-accent);
}
.btn--accent:hover {
  background: var(--cardinal-700);
  border-color: var(--cardinal-700);
}
.btn--dark {
  background: #171b18;
  border-color: #171b18;
  color: var(--cream-50);
}
.btn--dark:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
}
.btn--light {
  background: var(--cream-100);
  border-color: var(--cream-100);
  color: #171b18;
}
.btn--light:hover {
  background: #ffffff;
  border-color: #ffffff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: currentColor;
  background: color-mix(in oklab, currentColor 8%, transparent);
}
.btn--sm {
  min-height: 36px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.text-link:hover {
  color: var(--color-accent);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 0.15rem;
}
.arrow-link svg {
  width: 1em;
  height: 1em;
}
.arrow-link:hover {
  border-color: currentColor;
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--cream-50);
  color: #171b18;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Header: transparent over the hero, solid dark after 40px of scroll
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--cream-100);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms var(--ease-in-out),
    border-color 200ms var(--ease-in-out);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(10 26 18 / 0.92);
  border-bottom-color: rgb(244 239 227 / 0.12);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand img {
  height: 2.375rem;
  width: auto;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(244 239 227 / 0.78);
  text-decoration: none;
}
.nav a:hover {
  color: var(--cream-50);
  background: rgb(244 239 227 / 0.08);
}
.nav a[aria-current='page'] {
  color: var(--cream-50);
  text-decoration: underline;
  text-decoration-color: #ff6b61;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--cream-100);
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--forest-950);
  color: var(--cream-100);
  padding: var(--space-6) var(--gutter) var(--space-10);
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu__list a {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgb(244 239 227 / 0.12);
}
.mobile-menu__list a[aria-current='page'] {
  color: #ff6b61;
}
.mobile-menu__foot {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}
.mobile-menu__foot .btn {
  width: 100%;
}
.mobile-menu__foot p {
  color: rgb(244 239 227 / 0.6);
  font-size: var(--text-sm);
}

@media (max-width: 860px) {
  .nav,
  .header__actions .btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero: full viewport real footage
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream-100);
  background: var(--forest-950);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(10 26 18 / 0.94) 0%,
    rgb(10 26 18 / 0.72) 32%,
    rgb(10 26 18 / 0.2) 62%,
    rgb(10 26 18 / 0.1) 100%
  ),
  linear-gradient(to bottom, rgb(10 26 18 / 0.6) 0%, rgb(10 26 18 / 0) 18%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: clamp(var(--space-12), 8vh, var(--space-24));
  display: grid;
  gap: var(--space-8);
}
.hero__copy {
  max-width: 62rem;
  display: grid;
  gap: var(--space-6);
}
.hero__copy .eyebrow {
  color: rgb(244 239 227 / 0.7);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lead {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: rgb(244 239 227 / 0.82);
  max-width: var(--measure);
}
.hero .btn--ghost {
  color: var(--cream-100);
  border-color: rgb(244 239 227 / 0.4);
}
.hero .btn--ghost:hover {
  border-color: var(--cream-100);
  background: rgb(244 239 227 / 0.1);
}
.hero__caption {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: rgb(244 239 227 / 0.6);
  letter-spacing: 0.02em;
}
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem 0.6rem 0.7rem;
  border: 1px solid rgb(244 239 227 / 0.5);
  border-radius: 4px;
  background: rgb(10 26 18 / 0.55);
  color: var(--cream-100);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color var(--transition-interactive), border-color var(--transition-interactive);
}
.hero__play[hidden] {
  display: none;
}
.hero__play svg {
  width: 1.1rem;
  height: 1.1rem;
}
.hero__play:hover,
.hero__play:focus-visible {
  border-color: var(--cream-100);
  background: rgb(10 26 18 / 0.8);
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
  }
  .hero__inner {
    padding-bottom: var(--space-10);
  }
}

/* ==========================================================================
   Spec strip: hairline dividers, no cards
   ========================================================================== */
.specstrip {
  border-bottom: 1px solid var(--color-border);
}
.specstrip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.specstrip__item {
  padding: var(--space-10) var(--space-8) var(--space-10) 0;
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.specstrip__item + .specstrip__item {
  padding-left: var(--space-8);
  border-left: 1px solid var(--color-border);
}
.specstrip__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.specstrip__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .specstrip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specstrip__item {
    padding: var(--space-6) var(--space-5) var(--space-6) 0;
  }
  .specstrip__item + .specstrip__item {
    padding-left: var(--space-5);
    border-left: 0;
  }
  .specstrip__item:nth-child(even) {
    border-left: 1px solid var(--color-border);
  }
  .specstrip__item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   Chapters: one idea, one image, generous space
   ========================================================================== */
.chapter {
  position: relative;
  padding-block: var(--chapter-pad);
  overflow: hidden;
}
.chapter--flush-bottom {
  padding-bottom: 0;
}
.chapter--flush {
  padding-block: 0;
}
.chapter__head {
  display: grid;
  gap: var(--space-5);
  max-width: 60rem;
}
.chapter__head .lead {
  max-width: var(--measure);
}
.chapter__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-chapter);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.chapter__body {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: var(--measure);
}
.chapter__body strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Full-bleed image below the copy */
.bleed {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  width: 100%;
}
.bleed img {
  width: 100%;
  height: clamp(60vh, 56.25vw, 92vh);
  object-fit: cover;
}
.bleed--post img {
  object-position: 42% center;
}

/* Footnote row under a bleed image */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
}
.notes > div {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-2);
}
.notes h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.notes p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
@media (max-width: 860px) {
  .notes {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Two column chapter: media at least half the viewport */
.chapter--split {
  padding-block: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  min-height: 90vh;
}
.split__media {
  position: relative;
  min-height: 60vh;
}
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media--contain {
  background: #ffffff;
}
.split__media--contain img {
  object-fit: contain;
  padding: clamp(var(--space-6), 4vw, var(--space-16));
}
.split__copy {
  display: grid;
  align-content: center;
  gap: var(--space-8);
  padding: var(--chapter-pad) var(--gutter);
}
.split__copy > .chapter__head {
  max-width: 40rem;
}
.split--media-right .split__media {
  order: 2;
}
.split--media-right {
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
}
@media (min-width: 1100px) {
  .split__copy {
    padding-inline: clamp(var(--space-10), 4.5vw, var(--space-20));
  }
}
@media (max-width: 900px) {
  .split,
  .split--media-right {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .split__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .split__media--portrait {
    aspect-ratio: 4 / 5;
  }
  .split--media-right .split__media {
    order: 0;
  }
  .split__copy {
    padding: var(--space-16) var(--gutter);
  }
}

/* Spec list beside the studio shot */
.speclist {
  display: grid;
}
.speclist > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}
.speclist > div:last-child {
  border-bottom: 1px solid var(--color-border);
}
.speclist dt {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  padding-top: 0.15em;
}
.speclist dd {
  font-size: var(--text-base);
  line-height: 1.45;
}
@media (max-width: 480px) {
  .speclist > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* Numbered list beside the app image */
.numbered {
  display: grid;
  counter-reset: item;
}
.numbered > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}
.numbered > li:last-child {
  border-bottom: 1px solid var(--color-border);
}
.numbered__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.numbered h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.numbered p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* Real clips grid */
.clips {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}
.clip {
  display: grid;
  gap: var(--space-4);
}
.clip__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--forest-900);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.clip__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip__media button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: transparent;
  font-size: 0;
}
.clip__badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  background: rgb(10 26 18 / 0.72);
  color: var(--cream-100);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.clip__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b61;
}
.clip.is-playing .clip__badge {
  background: rgb(193 39 31 / 0.85);
}
.clip figcaption {
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-base);
}
.clip figcaption span {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.clips__note {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
@media (max-width: 720px) {
  .clips {
    grid-template-columns: 1fr;
  }
}

/* Overlay chapter: copy sits on the image (desktop), stacks on mobile */
.overlay {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--cream-100);
  background: var(--charcoal-950);
}
.overlay__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}
/* Legibility scrim only: dark on the copy side, clear over the lens */
.overlay__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(15 17 16 / 0.92) 0%, rgb(15 17 16 / 0.72) 38%, rgb(15 17 16 / 0.2) 62%, rgb(15 17 16 / 0) 78%);
}
.overlay__inner {
  position: relative;
  padding-block: var(--chapter-pad);
}
.overlay .chapter__head {
  max-width: 34rem;
}
.overlay .chapter__body {
  color: rgb(244 239 227 / 0.78);
}
.overlay .chapter__body strong {
  color: var(--cream-50);
}
@media (max-width: 900px) {
  .overlay {
    display: block;
    min-height: 0;
  }
  .overlay__scrim {
    display: none;
  }
  .overlay__img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 62% center;
  }
  .overlay__inner {
    padding-block: var(--space-16);
  }
}

/* CTA band with looping footage */
.band {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream-100);
  background: var(--forest-950);
  overflow: hidden;
}
.band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__scrim {
  position: absolute;
  inset: 0;
  background: rgb(10 26 18 / 0.62);
  pointer-events: none;
}
.band__inner {
  position: relative;
  padding-block: var(--chapter-pad);
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}
.band__inner .eyebrow {
  color: rgb(244 239 227 / 0.7);
}
.band__inner .chapter__body {
  color: rgb(244 239 227 / 0.82);
  text-align: center;
}
.band .btn--ghost {
  color: var(--cream-100);
  border-color: rgb(244 239 227 / 0.45);
}
.band .btn--ghost:hover {
  border-color: var(--cream-100);
  background: rgb(244 239 227 / 0.1);
}
.band__inner .btn-row {
  justify-content: center;
}

/* ==========================================================================
   Subpage hero
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(var(--space-16), 10vw, var(--space-32)));
  padding-bottom: clamp(var(--space-12), 7vw, var(--space-24));
}
.page-hero__inner {
  display: grid;
  gap: var(--space-6);
  max-width: 60rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-page);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  color: rgb(244 239 227 / 0.78);
}
.page-hero--compact {
  padding-top: calc(var(--header-h) + clamp(var(--space-12), 7vw, var(--space-20)));
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.page-hero--compact h1 {
  font-size: var(--text-2xl);
}

/* ==========================================================================
   Feature rows and generic two-column sections
   ========================================================================== */
.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: center;
}
.row--media-right .row__media {
  order: 2;
}
.row__media img {
  width: 100%;
  border-radius: var(--radius-lg);
}
.row__media--white {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-4), 3vw, var(--space-10));
}
.row__copy {
  display: grid;
  gap: var(--space-5);
}
.row__copy .h-section {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.row + .row {
  margin-top: clamp(var(--space-20), 10vw, var(--space-32));
}
@media (max-width: 860px) {
  .row {
    grid-template-columns: 1fr;
  }
  .row--media-right .row__media {
    order: 0;
  }
}

.check-list {
  display: grid;
  gap: var(--space-3);
}
.check-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  align-items: start;
}
.check-list svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2em;
  color: var(--moss-500);
}
.theme-night .check-list svg,
.theme-forest .check-list svg,
.theme-charcoal .check-list svg {
  color: #8fd19e;
}

/* Spec table */
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.spec-table th {
  width: 32%;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.spec-table td {
  font-size: var(--text-base);
}
.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td {
  border-top: 1px solid var(--color-border);
}

/* Steps (how it works) */
.steps {
  display: grid;
  counter-reset: step;
}
.steps > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-6);
  padding: clamp(var(--space-8), 4vw, var(--space-12)) 0;
  border-top: 1px solid var(--color-border);
}
.steps > li:last-child {
  border-bottom: 1px solid var(--color-border);
}
.steps__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  color: var(--color-text-faint);
  line-height: 1.1;
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.steps p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  max-width: var(--measure);
}
@media (max-width: 600px) {
  .steps > li {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-4);
  }
}

/* Need list */
.need-list {
  display: grid;
  gap: var(--space-4);
}
.need-list > div {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.need-list dt {
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.need-list dd {
  font-size: var(--text-base);
}

/* ==========================================================================
   Accordion (FAQ): no animation, plain open and close
   ========================================================================== */
.faq-group + .faq-group {
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.faq-group__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: var(--space-8);
}
.accordion__item {
  border-top: 1px solid var(--color-border);
}
.accordion__item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.25;
  border-radius: 4px;
}
.accordion__trigger:hover {
  color: var(--color-accent);
}
.accordion__icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
}
.accordion__icon svg {
  width: 1rem;
  height: 1rem;
}
.accordion__trigger[aria-expanded='true'] .accordion__icon svg {
  transform: rotate(45deg);
}
.accordion__panel[hidden] {
  display: none;
}
.accordion__body {
  padding: 0 0 var(--space-6);
  max-width: var(--measure);
  color: var(--color-text-muted);
}
.accordion__body p + p {
  margin-top: var(--space-3);
}
.accordion__body a {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Prose, values (about) and legal documents
   ========================================================================== */
.prose {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
}
.prose p.lead {
  color: var(--color-text);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
}
.value {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.value__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  letter-spacing: -0.02em;
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.value p {
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .values {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.doc {
  max-width: 720px;
  margin-inline: auto;
}
.doc > * + * {
  margin-top: 1.1em;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--color-border);
}
.doc p,
.doc li {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
}
.doc ul {
  padding-left: 1.25em;
  display: grid;
  gap: 0.5em;
}
.doc a {
  color: var(--color-text);
  font-weight: 600;
}
.doc .doc__meta {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Support: contact cards and the mail form
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}
.contact-card {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-2);
}
.contact-card + .contact-card {
  margin-top: var(--space-8);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.contact-card p {
  color: var(--color-text-muted);
}
.contact-card__link {
  font-weight: 600;
  font-size: var(--text-lg);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  width: fit-content;
}
.contact-card__link:hover {
  border-color: currentColor;
}
.link-list {
  display: grid;
  gap: var(--space-2);
}
.link-list a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  width: fit-content;
}
.link-list a:hover {
  border-color: currentColor;
}
.form {
  display: grid;
  gap: var(--space-5);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-weight: 700;
  font-size: var(--text-sm);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--cream-50);
  color: var(--color-text);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-focus);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.form__foot p {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 28em;
}
.form__status {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.form__status:empty {
  display: none;
}
@media (max-width: 860px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-950);
  color: var(--cream-100);
  border-top: 1px solid rgb(244 239 227 / 0.1);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.footer__brand {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.footer__brand img {
  height: 2.5rem;
  width: auto;
}
.footer__brand p {
  color: rgb(244 239 227 / 0.68);
  max-width: 24em;
  font-size: var(--text-sm);
}
.footer__col h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(244 239 227 / 0.55);
  margin-bottom: var(--space-4);
}
.footer__col ul {
  display: grid;
  gap: var(--space-2);
}
.footer__col a {
  text-decoration: none;
  color: rgb(244 239 227 / 0.85);
  font-size: var(--text-sm);
}
.footer__col a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer__bottom {
  border-top: 1px solid rgb(244 239 227 / 0.1);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
  font-size: var(--text-xs);
  color: rgb(244 239 227 / 0.55);
}
.footer__bottom a {
  color: inherit;
}
@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.note {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.note svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-10 {
  margin-top: var(--space-10);
}
.mt-12 {
  margin-top: var(--space-12);
}
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

/* ==========================================================================
   Scroll driven turntable (the one scroll linked element on the site)
   ========================================================================== */
.spin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
}
.spin__stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.spin__figure {
  position: relative;
  width: min(92%, calc(100svh - var(--header-h)));
  aspect-ratio: 1 / 1;
}
.spin__poster,
.spin__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 99%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 88%, transparent 99%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.spin__canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
}
.spin.is-ready .spin__canvas {
  opacity: 1;
}
.spin.is-ready .spin__poster {
  visibility: hidden;
}
.spin.is-dragging .spin__canvas {
  cursor: grabbing;
}
.spin__hint {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spin.is-ready .spin__hint {
  opacity: 1;
}
.spin.has-moved .spin__hint {
  opacity: 0;
}
.spin__copy {
  display: grid;
}
.spin__stop {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: var(--space-5);
  padding: var(--chapter-pad) var(--gutter);
  max-width: 36rem;
}
.spin__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.spin .chapter__body {
  font-size: var(--text-lg);
}
.spin--static .spin__stop {
  min-height: 0;
}
@media (max-width: 900px) {
  .spin {
    grid-template-columns: 1fr;
  }
  .spin__stage {
    height: calc(58svh - var(--header-h));
    z-index: 1;
    background: #ffffff;
  }
  .spin__figure {
    width: min(88vw, calc(54svh - var(--header-h)));
  }
  .spin__stop {
    min-height: 42svh;
    padding: var(--space-6) var(--gutter) var(--space-8);
  }
  .spin__stop:last-child {
    min-height: 0;
    padding-bottom: var(--space-16);
  }
  .spin__hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin__stage {
    position: relative;
    height: auto;
    padding: var(--space-12) 0;
  }
  .spin__stop {
    min-height: 0;
  }
  .spin__hint {
    display: none;
  }
}

/* Spec list as a full width grid */
.essentials {
  display: grid;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}
.speclist--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-12);
}
.speclist--grid > div:last-child {
  border-bottom: 0;
}
.speclist--grid > div:nth-last-child(2) {
  border-bottom: 0;
}
@media (max-width: 720px) {
  .speclist--grid {
    grid-template-columns: 1fr;
  }
  .speclist--grid > div:nth-last-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}
