/* ============================================================
   THEME — "The Savoy, in Sorino's voice"
   Shared design system for index.html and get-started.html.
   Committed green-led editorial luxury. OKLCH, tinted neutrals,
   deep forest green and warm ivory, one restrained ochre accent.
   ============================================================ */
:root {
  /* Deep forest greens (near-black -> mid) */
  --green-950: oklch(0.165 0.024 158);
  --green-900: oklch(0.205 0.030 159);
  --green-850: oklch(0.238 0.033 159);
  --green-800: oklch(0.285 0.035 160);
  --green-700: oklch(0.370 0.038 160);
  --green-600: oklch(0.470 0.040 160);

  /* Warm ivory (text + light on dark) */
  --ivory:      oklch(0.975 0.013 92);
  --ivory-dim:  oklch(0.895 0.013 90);
  --ivory-mute: oklch(0.780 0.013 88);

  /* Cream (light sections) */
  --cream-50:  oklch(0.964 0.013 86);
  --cream-100: oklch(0.948 0.015 84);
  --cream-200: oklch(0.912 0.017 82);
  --cream-300: oklch(0.860 0.019 80);

  /* Espresso inks (text on cream) */
  --ink:       oklch(0.255 0.020 72);
  --ink-body:  oklch(0.340 0.022 70);
  --ink-mute:  oklch(0.470 0.022 68);

  /* One restrained warm accent: earth ochre, never metallic */
  --ochre:      oklch(0.720 0.105 70);
  --ochre-ink:  oklch(0.520 0.100 62);
  --ochre-soft: oklch(0.930 0.040 76);

  /* Semantic */
  --positive:      oklch(0.560 0.070 156);
  --positive-ink:  oklch(0.440 0.060 156);
  --positive-soft: oklch(0.920 0.030 156);
  --positive-dim:  oklch(0.760 0.075 156);
  --danger:        oklch(0.520 0.150 28);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-eyebrow: 0.7rem;
  --text-sm:      0.9rem;
  --text-body:    1.075rem;
  --text-lead:    clamp(1.16rem, 1.02rem + 0.6vw, 1.5rem);
  --text-title:   clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  --text-headline:clamp(2.3rem, 1.55rem + 3.1vw, 4rem);
  --text-display: clamp(3rem, 1.7rem + 5.8vw, 6.2rem);

  /* Spacing rhythm (base 8px) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --section-pad: clamp(4.5rem, 3rem + 8vw, 9.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3.25rem);
  --maxw: 1200px;

  /* Radii — sharp, editorial */
  --r-xs: 1px;
  --r-sm: 2px;
  --r-md: 3px;

  /* Motion — slower, composed */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-mid: 360ms;
  --dur-slow: 760ms;

  /* Elevation — flat at rest, soft on interaction */
  --lift: 0 24px 50px -30px oklch(0.12 0.02 158 / 0.55);
  --lift-soft: 0 16px 36px -28px oklch(0.12 0.02 158 / 0.45);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--green-950);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.66;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ochre-soft); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Eyebrow (mono, the technical voice) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 2em; height: 1px;
  background: var(--ochre-ink);
  opacity: 0.8;
}
.mono { font-family: var(--font-mono); }

.lead {
  font-size: var(--text-lead);
  color: var(--ink-mute);
  line-height: 1.55;
  font-weight: 400;
  max-width: 56ch;
}

/* ============================================================
   BUTTONS — flat, rectangular, mono label
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.05em 1.7em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              background-color var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart),
              color var(--dur-mid) var(--ease-out-quart);
}
.btn-primary { background: var(--green-900); color: var(--ivory); }
.btn-primary:hover {
  background: var(--green-950);
  transform: translateY(-2px);
  box-shadow: var(--lift-soft);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--cream-300);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn .arrow { transition: transform var(--dur-mid) var(--ease-out-expo); }
.btn:hover .arrow { transform: translateX(4px); }

/* Primary / ghost flip on a dark surface */
.dark .btn-primary { background: var(--ivory); color: var(--green-900); }
.dark .btn-primary:hover { background: color-mix(in oklch, var(--ivory) 88%, var(--ochre)); }
.dark .btn-ghost {
  color: var(--ivory);
  border-color: color-mix(in oklch, var(--ivory) 36%, transparent);
}
.dark .btn-ghost:hover {
  border-color: var(--ivory);
  background: color-mix(in oklch, var(--ivory) 8%, transparent);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-200%);
  top: 0.5rem;
  background: var(--green-950);
  color: var(--ivory);
  padding: 0.7em 1.2em;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: transform var(--dur-mid) var(--ease-out-quart);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip:focus { transform: translateX(-50%) translateY(0); }

/* ============================================================
   NAV — dark, editorial, mono links
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) var(--ease-out-quart);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--green-950) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
/* On a page whose top is not the dark hero, the nav needs a surface from the start */
.nav.solid {
  background: color-mix(in oklch, var(--green-950) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .ai {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62em;
  color: var(--ochre);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: center;
  transform: translateY(1px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.5rem + 1.7vw, 2.4rem);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 0.4em 0;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out-quart);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: var(--space-4); }
.nav-cta .btn { padding: 0.85em 1.3em; }
.nav-cta .ghost-link {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-cta .ghost-link:hover { color: var(--ivory); }

.nav-text-links { display: flex; }

/* Mobile menu: hamburger toggle + dropdown panel (shown <= 880px) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--ivory) 28%, transparent);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.nav-toggle:hover { border-color: var(--ivory); }
.nav-toggle-box { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-box span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--ivory); border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out-expo),
              opacity var(--dur-fast) var(--ease-out-quart);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 5px; }
.nav-toggle-box span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-menu { display: none; }

@media (max-width: 880px) {
  .nav-text-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: color-mix(in oklch, var(--green-950) 97%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
    animation: menu-in var(--dur-mid) var(--ease-out-expo) both;
  }
  .nav-menu[hidden] { display: none; }
  .nav-menu a:not(.btn) {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-dim);
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid color-mix(in oklch, var(--green-700) 45%, transparent);
    transition: color var(--dur-fast) var(--ease-out-quart);
  }
  .nav-menu a:not(.btn):hover { color: var(--ivory); }
  .nav-menu .btn { margin-top: 1rem; justify-content: center; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   DARK / LIGHT SECTION CONTEXTS
   ============================================================ */
.dark { background: var(--green-900); color: var(--ivory-dim); }
.dark.sec-ink { background: var(--green-950); }
.sec-cream { background: var(--cream-50); color: var(--ink-body); }

.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ivory); }
.dark .lead { color: var(--ivory-dim); }
.dark .eyebrow { color: var(--ochre); }
.dark .eyebrow::before { background: var(--ochre); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 1rem + 7vw, 6.5rem);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(58% 60% at 76% 6%, oklch(0.40 0.05 162 / 0.55), transparent 68%),
    radial-gradient(60% 55% at 12% 0%, oklch(0.33 0.045 160 / 0.50), transparent 70%),
    radial-gradient(80% 50% at 50% 120%, oklch(0.30 0.05 75 / 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Full-bleed background video for the hero */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* poster doubles as the still shown before the video paints and under reduced-motion */
  background: var(--green-950) url("videos/hero-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* settle the AI clip into the brand: ease its saturation, keep it bright */
  filter: saturate(0.9) brightness(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  /* lighter veil: just enough on the left to hold the copy, video reads through the rest */
  background:
    linear-gradient(90deg,
      oklch(0.165 0.024 158 / 0.78) 0%,
      oklch(0.172 0.027 158 / 0.55) 40%,
      oklch(0.185 0.030 159 / 0.24) 72%,
      oklch(0.190 0.032 159 / 0.12) 100%),
    linear-gradient(0deg,
      var(--green-950) 0%,
      oklch(0.165 0.024 158 / 0) 24%);
}
@media (max-width: 940px) {
  /* single-column hero: a gentle even veil so the stacked copy stays legible */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        oklch(0.168 0.025 158 / 0.64) 0%,
        oklch(0.175 0.028 158 / 0.5) 55%,
        var(--green-950) 100%);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; } }
.hero-copy { max-width: 38rem; }
.hero h1 {
  font-size: var(--text-display);
  font-weight: 300;
  margin-top: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.hero h1 .warm { color: var(--ochre); font-style: italic; }
.hero .lead { margin-top: 1.7rem; max-width: 42ch; color: var(--ivory-dim); }
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero-note {
  margin-top: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ivory-mute);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive-dim);
  box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0.5);
  animation: pulse 2.6s var(--ease-out-quart) infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0.45); }
  70% { box-shadow: 0 0 0 9px oklch(0.760 0.075 156 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.760 0.075 156 / 0); }
}

/* msg-in: rise-and-fade, used by the get-started success panel */
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION SCAFFOLD + CAPABILITIES (type-led, no screens)
   ============================================================ */
section { position: relative; }
.section { padding-block: var(--section-pad); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--text-headline); font-weight: 300; margin-top: 1.1rem; }
.section-head .lead { margin-top: 1.3rem; }

.cap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  align-items: start;
}
@media (max-width: 820px) { .cap { grid-template-columns: 1fr; gap: 1.4rem; } }
.cap-lede h3 { font-size: var(--text-title); font-weight: 300; margin-top: 1rem; }
.cap-body > p { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-body); max-width: 60ch; }
.dark .cap-body > p { color: var(--ivory-dim); }
.cap-points {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2rem;
}
@media (max-width: 560px) { .cap-points { grid-template-columns: 1fr; } }
.cap-points li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.dark .cap-points li { color: var(--ivory-mute); }
.cap-points li::before { content: "—"; color: var(--ochre-ink); flex: none; }
.dark .cap-points li::before { color: var(--ochre); }
.cap-channels {
  margin-top: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.dark .cap-channels { color: var(--ochre); }

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 0.5rem + 3.5vw, 4rem);
  margin-top: var(--space-7);
}
@media (max-width: 820px) { .outcomes { grid-template-columns: 1fr; gap: 2.5rem; } }
.outcome { padding-top: 1.6rem; border-top: 1px solid var(--cream-300); }
.outcome .o-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ochre-ink);
  display: block;
  margin-bottom: 0.9rem;
}
.outcome .o-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.outcome h3 { font-size: var(--text-title); font-weight: 300; margin-top: 0.6rem; }
.outcome p { margin-top: 0.85rem; color: var(--ink-body); font-size: 1rem; }

/* ============================================================
   HOW IT WORKS — numbered steps (dark section)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 0.5rem + 2.4vw, 2.5rem);
  margin-top: var(--space-7);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; max-width: 30rem; } }
.step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--green-700);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ochre);
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--ochre);
  border-radius: var(--r-sm);
  margin-bottom: 1.2rem;
}
.step h3 { font-size: var(--text-title); font-weight: 300; margin-top: 0; }
.step p { margin-top: 0.85rem; color: var(--ivory-mute); font-size: 1rem; }
.how-foot {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  font-size: 1.1rem;
  color: var(--ivory-dim);
}
.how-foot a {
  color: var(--ochre);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.how-foot a:hover { color: var(--ivory); }

/* ============================================================
   USE CASES (use-cases.html)
   ============================================================ */
.uc-hero { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.uc-hero-copy { max-width: 60rem; }
.uc-hero h1 { font-size: var(--text-headline); font-weight: 300; margin-top: 1rem; }
.uc-hero .lead { margin-top: 1.3rem; max-width: 60ch; }
.uc-jump { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; }
.uc-jump a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid color-mix(in oklch, var(--ivory) 22%, transparent);
  border-radius: var(--r-sm);
  padding: 0.62em 0.95em;
  transition: color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.uc-jump a:hover { color: var(--ivory); border-color: var(--ivory); }

.uc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.uc.reverse .uc-media { order: -1; }
@media (max-width: 860px) {
  .uc { grid-template-columns: 1fr; gap: 2rem; }
  .uc.reverse .uc-media { order: 0; }
}
.uc-lede h2 { font-size: var(--text-title); font-weight: 300; margin-top: 0.8rem; }
.uc-lede > p { margin-top: 1.2rem; color: var(--ink-body); max-width: 46ch; }
.dark .uc-lede > p { color: var(--ivory-dim); }
.uc-tags {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.dark .uc-tags { color: var(--ochre); }
.uc-points { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; list-style: none; padding: 0; }
.uc-points li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--ink-body); font-size: 1rem; }
.dark .uc-points li { color: var(--ivory-dim); }
.uc-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre-ink); flex: none; transform: translateY(0.45em); }
.dark .uc-points li::before { background: var(--ochre); }
.uc-aside { margin-top: 1.4rem; color: var(--ink-mute); font-size: 0.98rem; }
.dark .uc-aside { color: var(--ivory-mute); }
.uc-aside .mono { color: var(--ochre-ink); }
.dark .uc-aside .mono { color: var(--ochre); }

.uc-figure { margin: 0; }
.uc-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--cream-300);
}
.dark .uc-figure img { border-color: color-mix(in oklch, var(--green-700) 70%, transparent); }

.uc-audio {
  margin-top: 1.2rem;
  padding: 1.05rem 1.15rem;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
}
.dark .uc-audio {
  background: color-mix(in oklch, var(--green-900) 55%, transparent);
  border-color: color-mix(in oklch, var(--green-700) 70%, transparent);
}
.uc-audio-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 0.65rem;
}
.dark .uc-audio-label { color: var(--ivory-mute); }
.uc-audio audio { width: 100%; height: 40px; }
.uc-transcript { margin-top: 0.7rem; }
.uc-transcript summary {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); cursor: pointer; width: fit-content;
}
.dark .uc-transcript summary { color: var(--ivory-mute); }
.uc-transcript summary:hover { color: var(--ochre-ink); }
.dark .uc-transcript summary:hover { color: var(--ochre); }
.uc-transcript p { margin: 0.55rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-body); }
.dark .uc-transcript p { color: var(--ivory-dim); }
.uc-transcript b { color: var(--ink); font-weight: 600; }
.dark .uc-transcript b { color: var(--ivory); }

/* ============================================================
   LIVE-DEMO INTERSTITIAL — confirms hand-off to the Lucy AI demo
   ============================================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--green-950) 78%, transparent);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
}
.demo-modal-card {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  background: var(--cream-50);
  color: var(--ink-body);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  box-shadow: var(--lift);
  animation: demo-pop var(--dur-mid) var(--ease-out-expo) both;
}
@keyframes demo-pop {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .demo-modal-card { animation: none; } }
.demo-modal-card .eyebrow { color: var(--ochre-ink); }
.demo-modal-card .eyebrow::before { background: var(--ochre-ink); }
.demo-modal-title { font-size: var(--text-title); font-weight: 300; color: var(--ink); margin: 1rem 0 0; }
.demo-modal-desc { margin-top: 1rem; color: var(--ink-body); }
.demo-modal-desc b { color: var(--ink); font-weight: 600; }
.demo-modal-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* keep the card's buttons in their light-surface form even on a .dark <body> */
.demo-modal-card .btn-primary { background: var(--green-900); color: var(--ivory); border-color: var(--green-900); }
.demo-modal-card .btn-primary:hover { background: var(--green-950); }
.demo-modal-card .btn-ghost { color: var(--ink); border-color: var(--cream-300); }
.demo-modal-card .btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklch, var(--ink) 5%, transparent); }

/* ============================================================
   CLOSING CTA BAND
   ============================================================ */
.cta-band { max-width: 60rem; }
.cta-band h2 { font-size: var(--text-headline); font-weight: 300; margin-top: 1rem; }
.cta-band .lead { margin-top: 1.3rem; max-width: 54ch; }
.cta-band-actions { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ============================================================
   FORM CARD (a cream card on near-black) — used on get-started
   ============================================================ */
.form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  background: var(--cream-50);
  color: var(--ink-body);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
  padding: clamp(1.85rem, 1rem + 3.2vw, 3.5rem);
  box-shadow: var(--lift);
}
@media (max-width: 860px) { .form-card { grid-template-columns: 1fr; gap: 2.5rem; } }
/* The card is cream even though the band is dark: keep the primary button dark-on-cream */
.form-card .btn-primary { background: var(--green-900); color: var(--ivory); }
.form-card .btn-primary:hover { background: var(--green-950); }
.form-copy .eyebrow { color: var(--ochre-ink); }
.form-copy .eyebrow::before { background: var(--ochre-ink); }
.form-copy h1, .form-copy h2 { font-size: var(--text-title); font-weight: 300; margin-top: 1rem; color: var(--ink); }
.form-copy > p { margin-top: 1.2rem; color: var(--ink-body); max-width: 42ch; }
.reassure { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.reassure li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.95rem; color: var(--ink-mute); }
.reassure li::before { content: "✓"; color: var(--positive-ink); font-weight: 700; flex: none; }
.reassure li b { color: var(--ink); font-weight: 600; }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-field label .opt { color: var(--ink-mute); letter-spacing: 0.08em; }
.form-field input, .form-field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-body);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--ochre-ink); box-shadow: 0 0 0 3px var(--ochre-soft); }
.form-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px oklch(0.520 0.150 28 / 0.14); }
.field-error {
  display: none;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--danger);
}
.form-field.invalid .field-error { display: block; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-fine {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}
.form-success { display: none; text-align: center; padding: 1.5rem 1rem; }
.form-success.show { display: block; animation: msg-in var(--dur-slow) var(--ease-out-expo) both; }
.form-success .check {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--positive-soft);
  color: var(--positive-ink);
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
}
.form-success h2 { font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.form-success p { margin-top: 0.8rem; color: var(--ink-mute); max-width: 36ch; margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--green-700); padding-block: var(--space-7); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: flex-start;
}
.footer-brand { max-width: 27rem; }
.footer-brand p { margin-top: 1.1rem; color: var(--ivory-mute); font-size: 0.98rem; }
.footer-cols { display: flex; gap: clamp(2rem, 1rem + 4vw, 5rem); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.98rem;
  color: var(--ivory-dim);
  padding: 0.35rem 0;
  width: fit-content;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in oklch, var(--green-700) 70%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ivory-mute);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-quart),
              transform var(--dur-slow) var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .pulse { animation: none; }
  .btn:hover, .btn:active, .nav-links a:hover::after { transform: none; }
  .nav .brand .mark path, .nav .brand .mark g { animation: none !important; }
  .brand:hover .mark { transform: none; }
  .eyebrow::before { transform: none !important; }
  .nav-menu { animation: none !important; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   SIGNATURE MOTION
   The brand mark performs a one-time sunrise on load (North Star:
   "The Sunlit Console"): the horizon draws in, the sun blooms up
   from it, the rays follow. Section eyebrow rules then draw in on
   reveal, echoing the nav underline as a recurring note of precision.
   Transform/opacity only; both honour prefers-reduced-motion above.
   ============================================================ */
.js .nav .brand .mark path,
.js .nav .brand .mark g { transform-box: view-box; transform-origin: 16px 21px; }
.js .nav .brand .mark path[d^="M3.5"] { animation: mark-horizon 520ms var(--ease-out-expo) both; }
.js .nav .brand .mark path[d^="M9 21"] { animation: mark-sun 760ms var(--ease-out-expo) 180ms both; }
.js .nav .brand .mark g { animation: mark-rays 640ms var(--ease-out-expo) 460ms both; }
@keyframes mark-horizon {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes mark-sun {
  from { transform: scale(0);   opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes mark-rays {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* the brand mark lifts a touch when you reach for home */
.brand .mark { transition: transform var(--dur-mid) var(--ease-out-expo); }
.brand:hover .mark { transform: translateY(-1px); }

/* section eyebrow rule draws in with its reveal */
.js .reveal .eyebrow::before,
.js .eyebrow.reveal::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0ms) + 160ms);
}
.reveal.in .eyebrow::before,
.eyebrow.reveal.in::before { transform: scaleX(1); }
