/* =============================================================================
   Verdant OS — verdantos.ai
   Botanical-premium editorial system. Light mode primary, optional dark mode.
   Author: Liam (build) · Brand & concept: the Verdant OS team
   ---------------------------------------------------------------------------
   Architecture
     1. Tokens (palette from brief, type, spacing, layout)
     2. Reset & base
     3. Typography primitives (eyebrow / headline / lead)
     4. Layout (wrap, section rhythm, dividers)
     5. Navigation
     6. Buttons
     7. Hero
     8. Cards & generic surfaces
     9. Tables
    10. Diagrams (SVG) & section-specific layouts
    11. Motion / reveal
    12. Responsive
   Selectors are kept single-class and low-specificity on purpose so section
   spacing never gets cancelled out. Spacing lives on .section + utilities only.
============================================================================= */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Palette — exact values from the client brief */
  --bg:          #F6F5F0;  /* warm off-white paper            */
  --surface:     #FCFBF7;  /* cards, panels                   */
  --border:      #D8D6CC;  /* hairline dividers               */
  --ink:         #1E2A22;  /* deep forest-ink body            */
  --muted:       #646E66;  /* secondary text (brief #6B756D, nudged to clear WCAG-AA 4.5:1) */
  --green:       #1F6F47;  /* verdant green — links, CTAs     */
  --green-hover: #155535;  /* hover / pressed                 */
  --gold:        #C08A2D;  /* sparing premium gold — fills, borders, dots, large accents */
  --gold-ink:    #8A6518;  /* darker gold for gold TEXT on light, to clear WCAG-AA       */

  /* Derived washes (kept on-palette: only green + gold + neutrals) */
  --green-04: rgba(31,111,71,.04);
  --green-08: rgba(31,111,71,.08);
  --green-14: rgba(31,111,71,.14);
  --green-24: rgba(31,111,71,.24);
  --gold-10:  rgba(192,138,45,.10);
  --gold-22:  rgba(192,138,45,.22);
  --ink-04:   rgba(30,42,34,.04);
  --ink-08:   rgba(30,42,34,.08);

  --shadow-sm: 0 1px 2px rgba(30,42,34,.04), 0 2px 5px rgba(30,42,34,.05);
  --shadow-md: 0 4px 18px -6px rgba(30,42,34,.12), 0 2px 6px rgba(30,42,34,.05);
  --shadow-lg: 0 30px 64px -24px rgba(30,42,34,.28);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.9rem, 1.7rem + 5vw, 5.4rem);
  --fs-h2:      clamp(2rem, 1.42rem + 2.3vw, 3.1rem);
  --fs-h3:      clamp(1.2rem, 1.04rem + .62vw, 1.55rem);
  --fs-lead:    clamp(1.06rem, .99rem + .34vw, 1.3rem);
  --fs-body:    1.0625rem;            /* 17px */
  --fs-small:   .925rem;
  --fs-eyebrow: .76rem;

  /* Layout */
  --maxw:   1140px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 56px);
  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --hairline: 1px solid var(--border);

  /* Vertical rhythm */
  --section-y: clamp(72px, 8vw, 132px);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:          #12180F;
  --surface:     #19211A;
  --border:      #2C3A2E;
  --ink:         #ECEFE5;
  --muted:       #9BA79A;
  --green:       #6FBF8F;
  --green-hover: #8FD3A9;
  --gold:        #E0B25C;
  --gold-ink:    #E8C271;  /* on dark, lighter gold reads fine as text */

  --green-04: rgba(111,191,143,.05);
  --green-08: rgba(111,191,143,.10);
  --green-14: rgba(111,191,143,.16);
  --green-24: rgba(111,191,143,.28);
  --gold-10:  rgba(224,178,92,.12);
  --gold-22:  rgba(224,178,92,.26);
  --ink-04:   rgba(236,239,229,.05);
  --ink-08:   rgba(236,239,229,.09);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 22px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 64px -24px rgba(0,0,0,.65);

  color-scheme: dark;
}

/* 2. RESET & BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* clear the sticky header when jumping to an anchor */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
strong { font-weight: 600; }

::selection { background: var(--green-24); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  z-index: 200; transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 16px; color: #fff; }

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

/* 3. TYPOGRAPHY PRIMITIVES ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  opacity: .55;
}

.headline { font-size: var(--fs-h2); max-width: 18ch; }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1.1rem;
  line-height: 1.5;
}

.section-head { margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--green-04); }
.section--paper {
  background:
    linear-gradient(var(--surface), var(--surface));
  border-block: var(--hairline);
}

/* botanical hairline divider between acts */
.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* texture divider band (uses packaged botanical texture, very quiet) */
.divider-botanical {
  height: clamp(120px, 18vw, 220px);
  background-image: url("../../photos/texture_botanical.png");
  background-size: cover;
  background-position: center 35%;
  opacity: .9;
  position: relative;
}
.divider-botanical::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
              linear-gradient(var(--bg), transparent 40%, transparent 60%, var(--bg));
}
[data-theme="dark"] .divider-botanical { opacity: .14; }

/* small reusable bits */
.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gold { color: var(--gold-ink); }
.placeholder { color: var(--muted); }   /* marks lorem-ipsum the client will replace */

/* generic grids */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 5. NAVIGATION ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.18rem;
  letter-spacing: -.01em; color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { width: 26px; height: 26px; flex-shrink: 0; color: var(--green); }
.brand:hover { color: var(--ink); }

.nav__links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav__link {
  color: var(--muted);
  font-size: .94rem; font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius-sm);
  position: relative; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--ink); background: var(--ink-04); }
.nav__link.is-active { color: var(--green); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--green);
}
.nav__link--cta {
  color: var(--green);
  border: 1px solid var(--green-24);
  margin-left: 8px;
  background: var(--green-08);
}
.nav__link--cta:hover { background: var(--green); color: #fff; border-color: var(--green); }
.nav__link--cta.is-active::after { display: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green-24); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* 6. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 560; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; line-height: 1;
  transition: transform .15s ease, background-color .2s ease, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); background: var(--surface); }
.btn--on-dark { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--on-dark:hover { background:#fff; color: var(--green-hover); border-color:#fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* 7. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../../photos/hero_terrace.png") center 40% / cover no-repeat;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,20,14,.86) 0%, rgba(12,20,14,.34) 42%, rgba(12,20,14,.12) 70%, rgba(12,20,14,.30) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding: 0 var(--gutter) clamp(48px, 7vw, 92px);
}
.hero__eyebrow { color: rgba(255,255,255,.82); }
.hero__eyebrow::before { background: rgba(255,255,255,.7); }
.hero__wordmark {
  font-size: var(--fs-display);
  font-weight: 560;
  letter-spacing: -.022em;
  line-height: .94;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.hero__sub {
  font-family: var(--font-display);
  font-weight: 380;
  font-style: italic;
  font-size: clamp(1.2rem, .9rem + 1.4vw, 1.9rem);
  color: rgba(255,255,255,.94);
  margin-top: .7rem;
  max-width: 24ch;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,.8);
  max-width: 52ch; margin-top: 1.4rem; line-height: 1.5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero__meta {
  margin-top: 2.6rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
}
.hero__stat .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 560;
  color: #fff; line-height: 1;
}
.hero__stat .lbl {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .5rem;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.7);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top;} 50%{ transform: scaleY(1); opacity:.9; transform-origin: top;} }

/* 8. CARDS & SURFACES ------------------------------------------------------ */
.card {
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-24); }
.card__index {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--green); margin-bottom: 1rem;
}
.card__title { font-size: var(--fs-h3); margin-bottom: .55rem; }
.card__body { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }

/* pain cards get a leading hairline + number */
.pain { position: relative; }
.pain__no {
  font-family: var(--font-mono); font-size: .72rem; color: var(--gold);
  letter-spacing: .12em; margin-bottom: 1rem;
}

/* feature cards (compact) */
.feature {
  display: flex; flex-direction: column; gap: .5rem;
  padding: clamp(18px,2vw,24px);
}
.feature__title { font-family: var(--font-display); font-weight: 540; font-size: 1.12rem; letter-spacing: -.01em; }
.feature__body { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.feature .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-bottom: .4rem; }
.feature--accent { border-color: var(--gold-22); background: linear-gradient(var(--gold-10), transparent); }
.feature--accent .dot { background: var(--gold); }
.feature-grid { grid-template-columns: 1fr 1fr; }
.feature-grid .span-2 { grid-column: 1 / -1; }

/* persona cards */
.persona { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.persona__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-08); color: var(--green);
  display: grid; place-items: center; flex-shrink: 0;
}
.persona__avatar svg { width: 26px; height: 26px; }

/* team cards */
.team-card { text-align: left; }
.monogram {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  letter-spacing: .01em; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.team-card__name { font-size: 1.18rem; font-family: var(--font-display); font-weight: 560; }
.team-card__role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-top: .45rem; }
.team-card__body { color: var(--muted); font-size: .9rem; margin-top: .9rem; line-height: 1.55; }

/* pricing tiers */
.tier {
  display: flex; flex-direction: column;
  padding: clamp(24px,2.6vw,34px);
  position: relative;
}
.tier--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--gold-10), var(--surface) 60%);
}
.tier__flag {
  position: absolute; top: -12px; left: clamp(24px,2.6vw,34px);
  background: var(--gold-ink); color: #fff;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.tier__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; }
.tier__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 560; margin: .6rem 0 .2rem; }
.tier__price .per { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.tier__list { display: flex; flex-direction: column; gap: .7rem; margin: 1.4rem 0; flex: 1; }
.tier__list li { display: flex; gap: .6rem; color: var(--muted); font-size: .92rem; align-items: flex-start; }
.tier__list svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.econ-band {
  margin-top: 26px; padding: 18px 24px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--green-04);
  font-size: .95rem; color: var(--muted);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.econ-band strong { color: var(--ink); font-family: var(--font-display); font-weight: 560; }

/* 9. TABLES ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: var(--hairline); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data caption { text-align: left; padding: 16px 20px 0; color: var(--muted); font-size: .85rem; }
table.data th, table.data td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: var(--hairline); }
table.data thead th {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--green-04); font-weight: 600; white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--ink-04); }
table.data .row-head { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.data .is-self { color: var(--green); font-weight: 600; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .76rem; font-family: var(--font-mono); letter-spacing: .03em; border: 1px solid var(--border); color: var(--muted); }
.pill--green { background: var(--green-08); color: var(--green); border-color: var(--green-24); }
.pill--gold { background: var(--gold-10); color: var(--gold-ink); border-color: var(--gold-22); }

/* 10. DIAGRAMS & SECTION LAYOUTS ------------------------------------------- */
.diagram {
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 44px);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.diagram__cap {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; text-align: center;
}
.diagram svg { width: 100%; height: auto; }
.diagram svg text { font-family: var(--font-body); }
.svg-label { font-family: var(--font-mono); letter-spacing: .04em; }
.svg-title { font-family: var(--font-display); font-weight: 540; }

/* SVG palette hooks */
.svg-ink    { fill: var(--ink); }
.svg-muted  { fill: var(--muted); }
.svg-green  { fill: var(--green); }
.svg-gold   { fill: var(--gold); }      /* gold shapes (dots) */
.svg-gold-ink { fill: var(--gold-ink); } /* gold TEXT — AA-safe on light */
.stroke-border { stroke: var(--border); }
.stroke-green  { stroke: var(--green); }
.stroke-gold   { stroke: var(--gold); }
.fill-surface  { fill: var(--surface); }
.fill-greentint { fill: var(--green-08); }
.fill-goldtint  { fill: var(--gold-10); }
.fill-bg { fill: var(--bg); }

/* product (§8) media gallery */
.product-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,56px); align-items: center; }
.phone-hero { position: relative; }
.phone-hero img { border-radius: 28px; box-shadow: var(--shadow-lg); margin-inline: auto; max-height: 660px; width: auto; }
.device-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2vw,24px); margin-top: clamp(30px,4vw,48px); }
.device-gallery figure { background: var(--green-04); border: var(--hairline); border-radius: var(--radius); padding: 18px; }
.device-gallery img { border-radius: 16px; box-shadow: var(--shadow-md); margin-inline: auto; max-height: 420px; width: auto; }
.device-gallery figcaption { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* differentiation (§9) split */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,4vw,56px); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 3/4; }

/* opportunity grid (§7) */
.opp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px,3vw,32px); align-items: start; }
.opp-list { display: flex; flex-direction: column; gap: 12px; }
.opp {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; border: var(--hairline); border-radius: var(--radius); background: var(--surface);
}
.opp__no { font-family: var(--font-mono); color: var(--muted); font-size: .85rem; }
.opp__label { font-weight: 520; }
.opp--win { border-color: var(--green); background: var(--green-08); box-shadow: var(--shadow-sm); }
.opp--win .opp__no { color: var(--green); }
.opp__win-flag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--green); padding: 4px 10px; border-radius: var(--radius-pill); }
.criteria { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px,2.4vw,26px); }
.criteria__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.criteria li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.criteria li svg { width: 16px; height: 16px; color: var(--green); }

/* scope panel (§10) */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.4vw,24px); }
.scope__col { padding: clamp(22px,2.4vw,30px); }
.scope__col--in { border-top: 3px solid var(--green); }
.scope__col--out { border-top: 3px solid var(--border); }
.scope__h { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.scope__col--in .scope__h { color: var(--green); }
.scope__col--out .scope__h { color: var(--muted); }
.scope__list li { display: flex; gap: .65rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); color: var(--muted); font-size: .92rem; }
.scope__list li:last-child { border-bottom: 0; }
.scope__list .mk { color: var(--green); flex-shrink: 0; }
.scope__col--out .scope__list .mk { color: var(--muted); }

.experiments { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(14px,1.6vw,18px); margin-top: clamp(20px,2.6vw,30px); }
.exp { padding: 20px; border: var(--hairline); border-radius: var(--radius); background: var(--surface); position: relative; }
.exp__no { font-family: var(--font-mono); font-size: .72rem; color: var(--green); letter-spacing: .08em; margin-bottom: .8rem; }
.exp__title { font-family: var(--font-display); font-weight: 540; font-size: 1.02rem; line-height: 1.2; }
.exp__metric { color: var(--muted); font-size: .85rem; margin-top: .7rem; }

/* deliverables (§15) — the for-grading anchor, given a touch of weight */
.deliverables-section { scroll-margin-top: 92px; }
.deliv-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.deliv-badge {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); border: 1px solid var(--gold-22); background: var(--gold-10);
  padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}
table.data td .link-pending { color: var(--muted); font-style: italic; }

/* roadmap + why-now timelines share the rail look (the SVGs carry detail) */
.timeline-note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; display: flex; align-items: center; gap: 8px; }
.timeline-note .swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--gold); display: inline-block; }

/* 11. FOOTER --------------------------------------------------------------- */
.footer { border-top: var(--hairline); background: var(--surface); padding-block: clamp(48px,6vw,72px); }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer__brand svg { width: 26px; height: 26px; color: var(--green); }
.footer__tagline { color: var(--muted); margin-top: 1rem; max-width: 46ch; font-size: .95rem; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .9rem; }
.footer__col a { display: block; color: var(--ink); font-size: .92rem; padding: 4px 0; }
.footer__col a:hover { color: var(--green); }
.footer__bottom { margin-top: clamp(36px,5vw,56px); padding-top: 24px; border-top: var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.footer__note { max-width: 60ch; }

/* 12. MOTION / REVEAL ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue .line { animation: none; }
  .hero__bg { transform: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* 13. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 920px) {
  :root { --section-y: clamp(60px, 9vw, 92px); }
  .product-grid, .split, .opp-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .experiments { grid-template-columns: repeat(2, 1fr); }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16/10; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: var(--hairline);
    padding: 12px var(--gutter) 22px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__link { padding: 12px 10px; font-size: 1rem; }
  .nav.is-open .nav__link.is-active::after { display: none; }
  .nav.is-open .nav__link--cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav__link.is-active { background: var(--green-08); }
  .grid-2, .grid-3, .grid-4, .scope, .experiments { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero__meta { gap: 28px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .device-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .opp { grid-template-columns: auto 1fr; }
  .opp__win-flag { grid-column: 2; justify-self: start; }
}

/* print: let Gemma print the page cleanly if she wants a PDF of it */
@media print {
  .nav, .scroll-cue, .theme-toggle, .nav__toggle { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
  .hero__scrim, .hero__bg { position: static; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
