/*
 * NatureNet marketing site
 *
 * Tokens are mirrored verbatim from docs/BRAND.md / src/index.css.
 * If a token changes here, also change it in src/index.css and src/theme.js.
 */

:root {
  --color-text:           #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted:     #94a3b8;
  --color-bg:             #f8fafa;
  --color-bg-raised:      #ffffff;
  --color-border:         #e2e8f0;
  --color-border-subtle:  #f1f5f9;
  --color-accent:         #0d9488;
  --color-accent-light:   #14b8a6;
  --color-accent-hover:   #0f766e;
  --color-accent-subtle:  rgba(13, 148, 136, 0.08);
  --color-surface-hover:  rgba(13, 148, 136, 0.05);
  --color-nav-bg:         #0f172a;
  --color-nav-text:       rgba(255, 255, 255, 0.72);
  --color-nav-text-active:#ffffff;
  --color-marker:         #ea580c;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --content-max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-accent-hover); }

::selection { background: rgba(13, 148, 136, 0.18); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-nav-bg);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ────────────────────────────────────────────────────────────────
 * Header — sticky; on cinematic pages it starts as a transparent
 * overlay over the hero and solidifies after a few pixels of scroll
 * (ServiceNow-style chrome, NatureNet scale).
 * ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(248, 250, 250, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  z-index: 41;
}
.brand:hover { color: var(--color-text); }
.brand-mark { color: var(--color-accent); flex-shrink: 0; }
.brand-name { font-size: 17px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}
.nav-link[aria-current="page"] {
  color: var(--color-text);
}

/* Returning-user affordance, deliberately quiet: the app is behind a login,
 * so a cold visitor clicking it lands on a wall. It sits next to the primary
 * CTA without competing with it. */
.nav-signin {
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
}
.nav-signin:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

/* Cinematic pages: header is taken out of flow so the hero can own the
 * first viewport. Keep it fixed even after it solidifies — flipping back
 * to sticky would reinsert ~60px and jump the page. */
.has-cinematic .site-header {
  position: fixed;
  left: 0;
  right: 0;
}
.has-cinematic .site-header:not(.is-solid) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.has-cinematic .site-header:not(.is-solid) .brand,
.has-cinematic .site-header:not(.is-solid) .brand:hover {
  color: #ffffff;
}
.has-cinematic .site-header:not(.is-solid) .brand-mark { color: #99f6e4; }
.has-cinematic .site-header:not(.is-solid) .nav-link,
.has-cinematic .site-header:not(.is-solid) .nav-signin {
  color: rgba(255, 255, 255, 0.82);
}
.has-cinematic .site-header:not(.is-solid) .nav-link:hover,
.has-cinematic .site-header:not(.is-solid) .nav-signin:hover,
.has-cinematic .site-header:not(.is-solid) .nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.has-cinematic .site-header.is-solid {
  box-shadow: var(--shadow-sm);
}

/* Hamburger — hidden on desktop; opens a right drawer on small screens. */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 41;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
}
.has-cinematic .site-header:not(.is-solid) .nav-toggle { color: #ffffff; }
.nav-open .nav-toggle,
.has-cinematic .nav-open .site-header:not(.is-solid) .nav-toggle {
  color: var(--color-text);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 76px 22px 28px;
    background: var(--color-bg-raised);
    border-left: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }
  .nav-open .site-nav { transform: none; }
  .site-nav .nav-link,
  .site-nav .nav-signin {
    padding: 12px 10px;
    font-size: 16px;
    color: var(--color-text);
  }
  .site-nav .btn {
    margin-top: 12px;
    width: 100%;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }
  .nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  /* Overlay header is fixed, so the cinema hero must not sit under a
   * vanished sticky box. The toggle/brand stay painted on the hero. */
  .has-cinematic .site-header:not(.is-solid) .site-nav {
    background: var(--color-bg-raised);
  }
  .has-cinematic .site-header:not(.is-solid) .nav-link,
  .has-cinematic .site-header:not(.is-solid) .nav-signin {
    color: var(--color-text);
  }
  .has-cinematic .site-header:not(.is-solid) .nav-link:hover,
  .has-cinematic .site-header:not(.is-solid) .nav-signin:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  .nav-backdrop,
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    transition: none;
  }
}

/* ────────────────────────────────────────────────────────────────
 * Buttons
 * ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* ────────────────────────────────────────────────────────────────
 * Hero
 * ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #cfe7e3, #f8fafa);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The hero is a still frame of a real point cloud that opens the live viewer.
 * The tag is the affordance saying so — without it the image reads as stock. */
.hero-art-link { display: block; height: 100%; text-decoration: none; }
.hero-art-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -4px;
}
.hero-art-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 160ms ease, transform 160ms ease;
}
.hero-art-link:hover .hero-art-tag,
.hero-art-link:focus-visible .hero-art-tag {
  background: var(--color-accent);
  transform: translateY(-1px);
}
/* Same pill used as a plain provenance label where the image isn't a link. */
.hero-art-tag-static { font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .hero-art-tag { transition: none; }
  .hero-art-link:hover .hero-art-tag,
  .hero-art-link:focus-visible .hero-art-tag { transform: none; }
}

.hero-copy {
  margin-top: 32px;
  /* .hero-art is positioned, so it paints above static in-flow siblings. In
   * the >=920px overlay layout both share one grid cell, which silently hid
   * the headline and CTAs behind the illustration on every desktop width. */
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* From md up: hero is a two-column overlap layout — copy reads on the
 * atmospheric "text safe zone" the illustration was generated to leave
 * empty on the right. */
@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 88px;
    min-height: 540px;
  }
  .hero-art {
    grid-row: 1;
    grid-column: 1;
    aspect-ratio: auto;
    height: 540px;
  }
  .hero-copy {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: end;
    margin-top: 0;
    /* Left padding is the gutter between the photograph and the first
     * character of the headline. It has to clear the scrim's feathered edge —
     * at 48px the headline started while the scrim was still half-transparent,
     * so it read as crowding the canopy. Widening the panel by the same amount
     * keeps the text measure unchanged. */
    padding: 40px 48px 40px 128px;
    max-width: 608px;
    /* The scrim carries body copy over a busy illustration, so it has to hold
     * contrast across the whole panel — not just at the right edge. */
    background: linear-gradient(
      to left,
      rgba(248, 250, 250, 0.99) 0%,
      rgba(248, 250, 250, 0.98) 58%,
      rgba(248, 250, 250, 0.94) 80%,
      rgba(248, 250, 250, 0.72) 90%,
      rgba(248, 250, 250, 0) 100%
    );
    border-radius: var(--radius-xl);
  }
}

/* Band variant: cinematic strip with the copy below it, rather than the
 * overlay composition the homepage uses. Keeps the shared illustration from
 * reading as the same page twice. */
.hero-band .hero-art { aspect-ratio: 21 / 9; }
@media (min-width: 920px) {
  .hero-band {
    grid-template-rows: auto auto;
    min-height: 0;
    padding-bottom: 56px;
  }
  .hero-band .hero-art {
    grid-row: 1;
    height: 300px;
  }
  .hero-band .hero-copy {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: start;
    max-width: 760px;
    padding: 36px 0 0;
    background: none;
  }
}

/* Full-bleed cinematic hero — first viewport is the photograph, copy
 * sits on a dark scrim, header paints over the top. Used on / and
 * /invasives. The picture is still the real survey (no stock). */
.hero.hero-cinema {
  display: flex;
  align-items: flex-end;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}
.hero-cinema .hero-art {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  height: auto;
  background: #0f172a;
}
.hero-cinema .hero-art img {
  object-position: center 40%;
}
.hero-cinema .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(15, 23, 42, 0.55) 38%,
      rgba(15, 23, 42, 0.18) 68%,
      rgba(15, 23, 42, 0.4) 100%),
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.45) 0%,
      transparent 28%,
      rgba(15, 23, 42, 0.55) 100%);
}
.hero-cinema .hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 132px var(--gutter) 72px;
  background: none;
}
.hero-cinema .eyebrow {
  color: #99f6e4;
  background: rgba(13, 148, 136, 0.22);
}
.hero-cinema h1 {
  color: #ffffff;
  max-width: 16ch;
}
.hero-cinema .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
}
.hero-cinema .hero-reassure {
  color: rgba(255, 255, 255, 0.72);
}
.hero-cinema .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-cinema .btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.hero-cinema .hero-art-tag {
  left: auto;
  right: 22px;
  bottom: 22px;
}
@media (min-width: 920px) {
  .hero.hero-cinema {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
  }
  .hero-cinema .hero-art {
    height: auto;
  }
  .hero-cinema .hero-copy {
    justify-self: start;
    align-self: flex-end;
    max-width: var(--content-max);
    padding: 160px var(--gutter) 88px;
    background: none;
  }
}

/* Inner-page cinema: same overlay language, shorter so the page can start. */
.hero.hero-cinema-band {
  min-height: min(78vh, 720px);
}
@media (min-width: 920px) {
  .hero.hero-cinema-band {
    min-height: min(78vh, 720px);
  }
}

/* Invasives ortho is leaf-off grey + a green shrub tell. A heavy whole-
 * frame scrim hides the thing the page is selling, so this variant keeps
 * the left readable and the right photograph visible. */
.hero-cinema-band .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.78) 0%,
      rgba(15, 23, 42, 0.42) 40%,
      rgba(15, 23, 42, 0.08) 72%,
      rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.32) 0%,
      transparent 34%,
      rgba(15, 23, 42, 0.38) 100%);
}

/* Forest uses the same creek photograph as the homepage. Restore the
 * heavier left scrim so white type stays readable over the bright sky. */
.hero-cinema-band.hero-cinema-stand .hero-art::after {
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(15, 23, 42, 0.55) 38%,
      rgba(15, 23, 42, 0.18) 68%,
      rgba(15, 23, 42, 0.4) 100%),
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.45) 0%,
      transparent 28%,
      rgba(15, 23, 42, 0.55) 100%);
}

@media (max-width: 640px) {
  .hero-cinema .hero-copy {
    padding-bottom: 96px;
  }
  .hero-cinema .hero-art-tag {
    left: var(--gutter);
    right: auto;
  }
}

/* Homepage hero: rust-crown callouts. Orange is the signal (Robichaud
 * figure/ground) on a green canopy. --depth follows image Y so nearer
 * trees read larger. Numbers on the foreground card are stand-level —
 * the pin marks a visible-dead crown, not a claimed tree ID. */
.hero-callouts {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 920px) {
  .hero-cinema .hero-callouts { display: block; }
}
.hero-callout {
  --pin-x: 50%;
  --pin-y: 50%;
  --depth: 1;
  --delay: 0s;
  --rest-opacity: calc(0.82 + (var(--depth) * 0.18));
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 0;
  height: 0;
  transform: scale(var(--depth));
  transform-origin: 0 0;
  opacity: 0;
  z-index: calc(2 + (var(--depth) * 20));
}
.hero-callout-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 7px rgba(234, 88, 12, 0.38);
}
.hero-callout-pin::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: left bottom;
  transform: rotate(-42deg);
}
.hero-callout[data-dir="se"] .hero-callout-pin::after {
  bottom: auto;
  top: 10px;
  transform-origin: left top;
  transform: rotate(38deg);
}
.hero-callout[data-dir="nw"] .hero-callout-pin::after {
  left: auto;
  right: 10px;
  transform-origin: right bottom;
  transform: rotate(42deg);
}
.hero-callout[data-dir="sw"] .hero-callout-pin::after {
  left: auto;
  right: 10px;
  bottom: auto;
  top: 10px;
  transform-origin: right top;
  transform: rotate(-38deg);
}
.hero-callout-card {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(22px, calc(-100% - 12px));
  width: 280px;
  padding: 14px 16px 13px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0;
  color: #0f172a;
  text-decoration: none;
  box-shadow: none;
}
a.hero-callout-card {
  pointer-events: auto;
}
.hero-callout[data-dir="se"] .hero-callout-card {
  transform: translate(22px, 18px);
}
.hero-callout[data-dir="nw"] .hero-callout-card {
  transform: translate(calc(-100% - 22px), calc(-100% - 12px));
}
.hero-callout[data-dir="sw"] .hero-callout-card {
  transform: translate(calc(-100% - 22px), 18px);
}
a.hero-callout-card:hover,
a.hero-callout-card:focus-visible {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.9);
}
a.hero-callout-card:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}
.hero-callout-kicker {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}
.hero-callout-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.hero-callout-dl {
  margin: 0;
  display: grid;
  gap: 3px;
}
.hero-callout-dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.hero-callout-dl dt {
  margin: 0;
  color: #475569;
  font-weight: 500;
}
.hero-callout-dl dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

@keyframes hero-callout-fade {
  from { opacity: 0; }
  to { opacity: var(--rest-opacity); }
}
@media (min-width: 920px) {
  .hero-cinema .hero-callout {
    animation: hero-callout-fade 1.4s var(--delay) ease both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cinema .hero-callout {
    animation: none;
    opacity: var(--rest-opacity);
  }
}
.hero-callout.is-clipped {
  visibility: hidden;
}

/* ────────────────────────────────────────────────────────────────
 * Moments — the operational situations that bring people here
 * ──────────────────────────────────────────────────────────────── */

.moments {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px var(--gutter) 48px;
}
.moments-head {
  margin: 0 0 22px;
  max-width: 64ch;
}
.moments-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.moments-head p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
}
.moment-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) {
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .moment-grid { grid-template-columns: repeat(4, 1fr); }
}
.moment-grid li {
  background: var(--color-bg-raised);
  padding: 20px;
}
.moment-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.moment-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ────────────────────────────────────────────────────────────────
 * Offer — see it on your own imagery, before any commitment
 * ──────────────────────────────────────────────────────────────── */

.offer {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #f0fdfa 0%, var(--color-bg) 100%);
}
.offer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter);
}
.offer-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.offer-lede {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 66ch;
}
.offer-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .offer-points { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.offer-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.offer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.offer-points strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────────
 * FAQ — objections answered in the open, no accordion
 * ──────────────────────────────────────────────────────────────── */

.faq {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter);
}
.faq-head {
  margin: 0 0 20px;
}
.faq-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 860px) {
  .faq-item {
    display: grid;
    grid-template-columns: minmax(200px, 28%) 1fr;
    gap: 32px;
  }
}
.faq-item dt {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.faq-item dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 70ch;
}
@media (min-width: 860px) {
  .faq-item dd { margin-top: 0; }
}

/* ────────────────────────────────────────────────────────────────
 * Page lead — opening band for prose pages
 * ──────────────────────────────────────────────────────────────── */

.page-lead {
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #f0fdfa 0%, var(--color-bg) 100%);
}
.page-lead-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .page-lead-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 52px;
    padding-bottom: 56px;
  }
}
.page-lead h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.page-lead .lede { margin-bottom: 0; }
.page-lead .cta-row { margin-top: 24px; }

.lead-aside {
  padding: 22px 24px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.lead-aside h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.lead-aside ol,
.lead-aside ul {
  margin: 0;
  padding-left: 1.15em;
}
.lead-aside li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.lead-aside li:last-child { margin-bottom: 0; }
.lead-aside li strong { color: var(--color-text); font-weight: 600; }

.lead-figure {
  margin: 0;
  padding: 20px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.lead-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.lead-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ────────────────────────────────────────────────────────────────
 * Steps section
 * ──────────────────────────────────────────────────────────────── */

.steps {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}

.steps-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.steps-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.step {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.step:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.steps-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ────────────────────────────────────────────────────────────────
 * Footer
 * ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-nav-bg);
  color: var(--color-nav-text);
  padding: 48px var(--gutter) 32px;
}

.footer-row {
  max-width: var(--content-max);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-footer {
  color: #fff;
}
.brand-footer .brand-mark {
  color: var(--color-accent-light);
}
.brand-footer .brand-name {
  font-size: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.footer-nav a {
  color: var(--color-nav-text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-nav a:hover { color: var(--color-nav-text-active); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  display: inline-block;
  flex-shrink: 0;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.status-dot.ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.status-dot.bad {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.footer-meta {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* ────────────────────────────────────────────────────────────────
 * Research page
 * ──────────────────────────────────────────────────────────────── */

.nav-link[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.research-head {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
}
.research-head h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--color-text);
}
.research-head .lede { max-width: 62ch; }

/* Featured / unifying paper */
.featured-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px var(--gutter) 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-card {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 36px clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.featured-eyebrow {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.featured-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.featured-subtitle {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--color-text-secondary);
}
.featured-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 70ch;
}
.featured-card .btn { margin-top: 8px; }

/* Featured with cover image → two columns from md up */
.featured-card-has-cover {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.featured-media {
  max-width: 220px;
}
.featured-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
@media (min-width: 760px) {
  .featured-card-has-cover {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
  }
  .featured-media { max-width: none; }
}

/* Secondary featured card: same anatomy, lighter weight than the primary */
.featured-card-secondary {
  padding: 26px clamp(22px, 3.5vw, 36px);
}
.featured-card-secondary .featured-title {
  font-size: clamp(20px, 2.4vw, 26px);
}
.featured-card-secondary .featured-media { max-width: 170px; }
@media (min-width: 760px) {
  .featured-card-secondary.featured-card-has-cover {
    grid-template-columns: 160px 1fr;
    gap: 32px;
  }
  .featured-card-secondary .featured-media { max-width: none; }
}

/* Ours vs. field legend */
.research-legend {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}
.legend-swatch-ours { background: var(--color-accent); }
.legend-swatch-field {
  background: transparent;
  border: 1px solid var(--color-border);
}

/* Browse-by-theme jump nav */
.theme-nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.theme-nav:empty { display: none; }
.theme-nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.theme-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.theme-chip:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.theme-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
  border-radius: 999px;
}
.theme-chip:hover .theme-chip-count {
  color: var(--color-accent);
  background: rgba(13, 148, 136, 0.12);
}

/* Theme sections */
.themes { max-width: var(--content-max); margin: 0 auto; }
.theme-section { padding: 40px var(--gutter) 8px; scroll-margin-top: 84px; }
.theme-head { max-width: 720px; margin: 0 0 24px; }
.theme-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.theme-blurb {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1040px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.paper-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.paper-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Ours vs. field: instant-scan left accent + faint tint */
.paper-card-ours {
  border-left: 3px solid var(--color-accent);
  background: #f5fbfa;
}
.paper-card-field {
  border-left: 3px solid var(--color-border);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge-ours {
  background: var(--color-accent);
  color: #fff;
}
.badge-field {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.status-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-border-subtle);
  color: var(--color-text-secondary);
}
.status-published { background: rgba(16, 185, 129, 0.12); color: #047857; }
.status-in-preparation { background: rgba(234, 88, 12, 0.10); color: var(--color-marker); }
.status-preprint { background: rgba(37, 99, 235, 0.10); color: #1d4ed8; }
.status-brief { background: var(--color-accent-subtle); color: var(--color-accent-hover); }

.card-kind {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: auto;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.card-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.card-summary {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  flex: 1;
}

.card-tags {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
  padding: 2px 9px;
  border-radius: 999px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.card-link:hover { color: var(--color-accent-hover); }
.card-link-pending {
  color: var(--color-text-muted);
  font-weight: 500;
}

.themes-error {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  color: var(--color-text-secondary);
}

/* Method note + CTA band */
.method-note {
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding: 40px var(--gutter);
}
.method-note h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.method-note p {
  margin: 0;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.method-note .cta-row { margin-top: 20px; }
.lab-note {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
}

/* ────────────────────────────────────────────────────────────────
 * Homepage stage, proof rail, flow
 * ──────────────────────────────────────────────────────────────── */

.page-home .hero.hero-cinema {
  align-items: stretch;
  justify-content: flex-end;
}
.page-home .hero-cinema .hero-art::after {
  background:
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.72) 0%,
      rgba(15, 23, 42, 0.38) 20%,
      rgba(15, 23, 42, 0.06) 36%,
      transparent 50%,
      rgba(15, 23, 42, 0.32) 78%,
      rgba(15, 23, 42, 0.58) 100%);
}
.page-home .hero-cinema .hero-copy-mast {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 33.334%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px var(--gutter) 0;
  text-align: center;
  pointer-events: none;
}
.page-home .hero-cinema .hero-copy-mast h1 {
  pointer-events: auto;
  max-width: min(18ch, 92vw);
  margin: 0 auto;
  font-size: clamp(28px, 2.4vw + 1.4rem, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-home .hero-cinema .hero-copy-mast .lede {
  pointer-events: auto;
  max-width: min(28ch, 92vw);
  margin: 14px auto 0;
  font-size: clamp(16px, 0.8vw + 14px, 22px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: balance;
}
.page-home .hero-cinema .hero-copy-actions {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 52ch;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  text-align: center;
}
.page-home .hero-cinema .hero-copy-actions .cta-row {
  justify-content: center;
}
@media (min-width: 920px) {
  .page-home .hero-cinema .hero-copy-mast {
    padding: 72px var(--gutter) 0;
  }
  .page-home .hero-cinema .hero-copy-actions {
    padding: 0 var(--gutter) 88px;
    background: none;
    justify-self: unset;
    align-self: flex-end;
  }
}
@media (max-width: 640px) {
  .page-home .hero-cinema .hero-copy-actions {
    padding-bottom: 96px;
  }
}

.home-stage {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter);
}
.home-stage-head {
  margin-bottom: 20px;
}
.home-stage-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.home-stage-head p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 48ch;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 860px) {
  .stage-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: stretch;
  }
}

.stage-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 24px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.stage-panel:hover {
  border-color: var(--color-accent);
  color: inherit;
  box-shadow: var(--shadow-md);
}
.stage-panel-primary {
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 55%);
  border-color: rgba(13, 148, 136, 0.35);
}
.stage-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stage-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}
.stage-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.stage-badge-muted {
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
}
.stage-panel h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.stage-panel > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.stage-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.stage-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
}
.stage-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.stage-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.stage-panel:hover .stage-cta { color: var(--color-accent-hover); }

@media (prefers-reduced-motion: no-preference) {
  .stage-panel:hover { transform: translateY(-2px); }
}

.home-proof {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) {
  .home-proof { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 1100px) {
  .home-proof { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
  background: #0f172a;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color .15s ease, transform .15s ease;
}
.proof-card:hover {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.72);
}
.proof-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.proof-card strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}
.proof-card span:last-child {
  font-size: 13px;
  line-height: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .proof-card:hover { transform: translateY(-1px); }
}

.home-flow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px var(--gutter) 56px;
  border-top: 1px solid var(--color-border);
}
.home-flow-head {
  margin: 40px 0 28px;
}
.home-flow-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .flow-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
.flow-rail li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}
.flow-rail h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.flow-rail p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.home-close {
  background: linear-gradient(180deg, #f0fdfa 0%, var(--color-bg) 100%);
  border-top: 1px solid rgba(13, 148, 136, 0.15);
  padding: 56px var(--gutter) 72px;
}
.home-close-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .home-close-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}
.home-close-copy {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.home-close-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.home-close-copy p {
  margin: 0 auto 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 48ch;
}
.home-close-copy .cta-row {
  justify-content: center;
}

/* Homepage marketing type — larger, shorter, not the interior-page spec. */
.page-home .hero-cinema .hero-copy-mast .lede {
  font-size: clamp(20px, 1.2vw + 16px, 26px);
}
.page-home .hero-reassure {
  font-size: 16px;
}
.page-home .metrics-title {
  font-size: 18px;
}
.page-home .metrics-grid dt {
  font-size: clamp(36px, 5vw, 52px);
}
.page-home .metrics-grid dd {
  font-size: 16px;
}
.page-home .offer-inner h2,
.page-home .stand-head h2,
.page-home .home-close-copy h2 {
  font-size: clamp(32px, 4.2vw, 44px);
}
.page-home .offer-lede,
.page-home .stand-lede,
.page-home .home-close-copy p {
  font-size: clamp(19px, 1.6vw, 22px);
}
.page-home .offer-points li {
  font-size: 17px;
}
.page-home .stand-head .cta-row {
  margin-top: 28px;
}
.page-home .stand-stats dt {
  font-size: clamp(28px, 3.4vw, 36px);
}
.page-home .stand-stats dd,
.page-home .stand-figure figcaption,
.page-home .stand-blurb {
  font-size: 16px;
}
.page-home .eyebrow {
  font-size: 13px;
}
.page-home .btn:not(.btn-sm) {
  font-size: 16px;
  padding: 14px 22px;
}

.band {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-raised);
}
.band-inner { max-width: 720px; }
.band h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.band p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.band p:last-child { margin-bottom: 0; }

.prose-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.prose-page h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.prose-page .lede {
  margin-bottom: 40px;
}
.prose-page h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose-page p,
.prose-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.prose-page p { margin: 0 0 16px; }
.prose-page ul,
.prose-page ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.prose-page li { margin-bottom: 6px; }
.prose-page strong { color: var(--color-text); font-weight: 600; }
.prose-page .cta-row { margin-top: 28px; }

.prose-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose-table th,
.prose-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.prose-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  white-space: nowrap;
}
.prose-table td { color: var(--color-text-secondary); }
.prose-table tr:last-child th,
.prose-table tr:last-child td { border-bottom: none; }

.disclosure {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--color-accent-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.disclosure p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.disclosure strong { color: var(--color-text); }

.cap-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .cap-list { grid-template-columns: repeat(2, 1fr); }
}
.cap-list li {
  padding: 20px 22px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.cap-list h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}
.cap-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 32px;
}

/* Scope grid — what a pilot includes, and what it does not */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
}
@media (min-width: 760px) {
  .scope-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.scope-col {
  padding: 20px 22px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.scope-col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.scope-col-in { border-left: 3px solid var(--color-accent); }
.scope-col-in h3 { color: var(--color-accent-hover); }
.scope-col-out { border-left: 3px solid var(--color-text-muted); }
.scope-col-out h3 { color: var(--color-text-secondary); }
.scope-col ul {
  margin: 0;
  padding-left: 18px;
}
.scope-col li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.scope-col li:last-child { margin-bottom: 0; }

/* ────────────────────────────────────────────────────────────────
 * Reassurance line under a primary CTA
 * ──────────────────────────────────────────────────────────────── */

/* Secondary rather than muted: on the homepage this sits over the hero
 * illustration, where muted grey loses the contrast fight. */
.hero-reassure {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.close-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.close-note a { color: var(--color-accent-hover); font-weight: 500; }

/* ────────────────────────────────────────────────────────────────
 * Metrics band — volume figures, never accuracy claims
 * ──────────────────────────────────────────────────────────────── */

.metrics {
  padding: 52px var(--gutter);
  background: var(--color-nav-bg);
  border: none;
}
.metrics-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.metrics-title {
  margin: 0 0 26px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.005em;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 32px;
  margin: 0;
}
.metrics-grid > div {
  border-left: 3px solid var(--color-accent-light);
  padding-left: 16px;
}
.metrics-grid dt {
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.metrics-grid dd {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
/* ────────────────────────────────────────────────────────────────
 * Homepage — the 3-D stand, shown rather than described
 * ──────────────────────────────────────────────────────────────── */

.stand {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-raised);
}
.stand-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 68px) var(--gutter);
}
.stand-head { max-width: 62ch; margin-bottom: 32px; }
.stand-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stand-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.stand-figure { margin: 0; }
.stand-figure-wide { margin-top: 36px; }
.stand-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.stand-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 62ch;
}
.stand-figure figcaption b {
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Capture beside reconstruction — the two halves read as one claim, so they
   share a row on wide screens and stack in capture-then-result order below. */
.stand-pair {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .stand-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

.stand-video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}
.stand-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.stand-video-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Segmented then measured. These share the reconstruction's camera, so the row
   reads as encodings of one view rather than three different places. */
/* Segmentation beside the caveat that qualifies it: the "4% of crowns come out
   merged" line is a claim about exactly what this image shows, so they share a
   row and the reader can check the wording against the picture. Same column
   width as the reconstruction above, because the two renders share a camera and
   only compare honestly at a common scale. */
.stand-multiples {
  display: grid;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .stand-multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  /* The prose is much shorter than the render it annotates; centring it keeps
     the row from trailing off into empty space below the buttons. */
  .stand-multiples .stand-note { align-self: center; }
}

.stand-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 44px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .stand-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
.stand-stats dt {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stand-stats dd {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
/* Body copy, not a disclaimer. The muted colour and quoted left rule this
   replaced were doing rhetorical work — they read as fine print no matter what
   the sentence said. */
.stand-blurb {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.stand-blurb a { color: var(--color-accent-hover); font-weight: 500; }

/* Provenance, in the register of a photo credit rather than a disclaimer: it
   attributes the figures above to a public artifact anyone can pull. Small and
   quiet is right for a credit; do not let it grow into a caveat paragraph. */
.stand-provenance {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.stand-provenance code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.94em;
  color: var(--color-text-secondary);
}
.stand-provenance a {
  color: var(--color-accent-hover);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────────
 * Start page — offer terms beside the request form
 * ──────────────────────────────────────────────────────────────── */

.start-wrap {
  display: grid;
  gap: 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 88px);
}
@media (min-width: 900px) {
  .start-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
    gap: 56px;
    align-items: start;
  }
}

.start-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.start-copy .lede {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.start-terms {
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.start-terms dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent-hover);
}
.start-terms dd {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 58ch;
}

/* ────────────────────────────────────────────────────────────────
 * Lead form
 * ──────────────────────────────────────────────────────────────── */

.start-form-panel {
  position: sticky;
  top: 88px;
}
@media (max-width: 899px) {
  .start-form-panel { position: static; }
}

.lead-form {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.lead-form h2 {
  margin: 0 0 20px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.field label span { color: var(--color-accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-muted); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Honeypot: hidden from people without display:none, which some bots skip. */
.lf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lead-form-status {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 0;
}
.lead-form-status.is-error { color: #dc2626; }
.lead-form-status.is-pending { color: var(--color-text-secondary); }

.lead-form-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.lead-form-foot a { color: var(--color-accent-hover); }

.lead-form-done {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.lead-form-done a { color: var(--color-accent-hover); font-weight: 500; }

/* ────────────────────────────────────────────────────────────────
 * Scroll reveal — sections arrive as they enter. No parallax, no
 * loops. JS adds .is-in; reduced-motion visitors get the content
 * already visible (the observer still runs but the CSS is a no-op).
 * ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ────────────────────────────────────────────────────────────────
 * Reduced motion
 * ──────────────────────────────────────────────────────────────── */

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

/* ────────────────────────────────────────────────────────────────
 * Mobile input zoom guard (matches src/index.css convention)
 * ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
}
