/* ama website v5
 * Visual direction follows the ama-playground Framer project (the design
 * master, "AMA 2.0" colour styles): one deep-teal page, mist headlines, sage
 * body, lime accents, translucent cards with hairlines, white product mocks.
 * Colour values are copied from the master's styles; DESIGN.md records the rules. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
}
/* Satoshi (Indian Type Foundry, via Fontshare) is the master's body and UI face */
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/SatoshiVariable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* AMA 2.0 styles from the Framer master (name: light / dark value) */
  --deep-teal: #143438;      /* Deep Teal, the page */
  --ink: #122e31;            /* Ink (light) */
  --ink-deep: #0a1517;       /* Ink Deep */
  --canvas: #f7f7f2;         /* Canvas (light) */
  --mist: #d9e7d4;           /* Mist: headlines on teal */
  --sage: #b9cbb3;           /* Sage: body on teal */
  --muted-on-dark: #9aa8a3;  /* Muted (dark) */
  --muted-on-light: #5c6b66; /* Muted (light) */
  --hairline: #e7e7df;       /* Hairline (light) */
  --lime: #c8e55f;           /* Lime */
  --lime-tint: rgba(200, 229, 95, 0.12);
  --lime-line: rgba(200, 229, 95, 0.28);
  --page-gradient: radial-gradient(120% 75% at 50% 0%, #1c474d 0%, #163a3f 45%, #143438 100%);

  /* Role tokens. The page is dark, so the "light" family now describes cards
     and text on teal; .ev, .demo and light .panel-mock re-scope them below. */
  --ama-dark: #143438;
  --ama-light: #d9e7d4;
  --ama-pop: #c8e55f;
  --ama-dark-100: #1f4a50;
  --ama-dark-200: #183d42;
  --ama-dark-300: #102c30;
  --ama-dark-400: #0a1517;
  --ama-light-100: rgba(255, 255, 255, 0.04);
  --ama-light-200: rgba(255, 255, 255, 0.03);
  --ama-light-300: rgba(255, 255, 255, 0.08);
  --ama-light-400: rgba(255, 255, 255, 0.14);
  --ama-pop-soft: #d4ec7a;
  --ama-pop-deep: #b8d54c;
  --fg-1: #d9e7d4;
  --fg-2: #b9cbb3;
  --fg-3: #9aa8a3;
  --fg-4: #6f807b;
  --fg-on-pop: #143438;
  --fg-inv-1: #d9e7d4;
  --fg-inv-2: #b9cbb3;
  --fg-inv-3: #9aa8a3;
  --fg-inv-4: #6f807b;
  --line-light: rgba(255, 255, 255, 0.08);
  --line-light-strong: rgba(255, 255, 255, 0.2);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-strong: rgba(255, 255, 255, 0.2);
  --ok: #7fbf8f;
  --font-sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  /* On teal, elevation is a hairline, as on the master's cards */
  --shadow-1: inset 0 0 0 1px var(--line-light);
  --shadow-2: inset 0 0 0 1px var(--line-light);
  --shadow-3: none;
  --shadow-pop: none;

  /* Web layer */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --ease-in: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.4, 0, 1, 1);
  --fs-display: clamp(40px, 5vw, 68px);
  --fs-h2: clamp(30px, 3.3vw, 46px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-lead: clamp(18px, 1.35vw, 21px);
  --fs-body: 17px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500; /* the master sets Satoshi body copy at 500 */
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  background: var(--deep-teal) var(--page-gradient) no-repeat;
  background-size: 100% 1400px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; color: var(--fg-1); }
/* Inter Display: Inter's optical-size axis at its display end */
h1, h2, h3, h4, .display, .display-md, .h2, .h3, .h4, .statement, .closing-line, .lead-in,
.proof-stat .big, .proof-auto .nums b, .panel-counter .count, .final-line strong, .stat b, .pool-num, .diff-n {
  font-family: var(--font-display); font-variation-settings: "opsz" 32; font-feature-settings: "ss01", "cv11";
}
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ama-dark); color: var(--fg-inv-1); }
.skip:focus { left: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Spacing utilities (kept to three) */
.m0 { margin: 0; }
.m-top { margin-top: 14px; }
.m-top-lg { margin-top: 28px; }

/* ---------- Surfaces ---------- */
.surface-light, .surface-dark { position: relative; isolation: isolate; }
.surface-light { background-color: transparent; color: var(--fg-1); }
.surface-light::before, .surface-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* One continuous teal page, as on the master. "Dark" sections keep a soft
   top glow so the rhythm between sections survives. */
.surface-dark { background-color: transparent; color: var(--fg-inv-1); }
/* An ellipse that reaches zero before the section edge: glow without a seam */
.surface-light::before, .surface-dark::before { background-image: radial-gradient(62% 44% at 50% 50%, rgba(30, 76, 82, 0.6), rgba(30, 76, 82, 0) 100%); }
.surface-deep { background: var(--ama-dark-300); color: var(--fg-inv-1); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(56px, 6vw, 88px); }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }

/* ---------- Type ---------- */
.display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; }
.display-md { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; }
.h4 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); }
.surface-dark .lead, .surface-deep .lead { color: var(--fg-inv-2); }
.small { font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.surface-dark .small, .surface-deep .small { color: var(--fg-inv-3); }
.micro { font-size: 12px; line-height: 1.45; color: var(--fg-3); }
.surface-dark .micro, .surface-deep .micro { color: var(--fg-inv-3); }
.eyebrow {
  display: block; font-size: 13px; line-height: 1.2; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; color: var(--lime); margin-bottom: 18px;
}
/* The master uses no monospace; .mono labels are small muted Satoshi */
.mono { font-size: 13px; color: var(--fg-3); }
.muted { color: var(--fg-3); }
.surface-dark .muted { color: var(--fg-inv-3); }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* Headline accent: the promise phrase in lime, as "tomorrow" on the master */
.hl { color: inherit; }
h1 .hl { color: var(--lime); }
.pop { background: var(--ama-pop); color: var(--fg-on-pop); border-radius: 5px; padding: 0.04em 0.16em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 0;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease-in), color 200ms var(--ease-in), transform 80ms var(--ease-out), box-shadow 200ms var(--ease-in);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pop { background: var(--ama-pop); color: var(--fg-on-pop); }
.btn-pop:hover { background: var(--ama-pop-soft); }
.btn-primary { background: var(--ama-pop); color: var(--fg-on-pop); }
.btn-primary:hover { background: var(--ama-pop-soft); }
.btn-light { background: var(--mist); color: var(--deep-teal); }
.btn-light:hover { background: #e6f0e2; }
.btn-secondary { background: transparent; color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--line-light-strong); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }
.btn-ghost { background: transparent; padding-inline: 8px; color: inherit; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line-light-strong); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: currentColor; }
.surface-dark .text-link { border-bottom-color: var(--line-dark-strong); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Nav ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; }
.nav-bar {
  pointer-events: auto; margin: 0 auto; display: flex; align-items: center; gap: 28px;
  height: var(--nav-h); max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-inline: var(--gutter);
  transition: max-width 320ms var(--ease-in), height 320ms var(--ease-in), margin-top 320ms var(--ease-in),
    background-color 320ms var(--ease-in), box-shadow 320ms var(--ease-in), border-radius 320ms var(--ease-in), padding 320ms var(--ease-in);
}
.brand { display: inline-flex; align-items: center; flex: none; }
/* The PNG is mint; the master's wordmark is white */
.brand img, .footer-brand img { filter: brightness(0) invert(1); }
.brand img { height: 30px; width: auto; }
.brand .wm-dark { display: none; }
.nav-links { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.nav-links a {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--sage); transition: background-color 200ms var(--ease-in), color 200ms var(--ease-in);
}
.nav-links a:hover { color: var(--mist); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: var(--mist); }
.nav-cta { flex: none; }
.nav-cta .btn { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.nav-cta .btn { background: var(--ama-pop); color: var(--fg-on-pop); box-shadow: none; }
.nav-cta .btn:hover { background: var(--ama-pop-soft); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform 240ms var(--ease-in), opacity 160ms; }
.nav-toggle { color: var(--fg-1); }
.site-nav.is-compact .nav-bar {
  margin-top: 12px; height: 60px; max-width: 1020px; padding-inline: 12px 10px 12px 22px;
  border-radius: var(--r-pill); background: rgba(16, 43, 46, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-light), 0 16px 40px -12px rgba(0, 0, 0, 0.5);
}
.site-nav.is-compact .brand img { height: 26px; }
.nav-sheet { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: transparent; color: var(--fg-inv-2); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--fg-inv-3); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--fg-inv-2); font-size: 15px; }
.footer-grid a:hover { color: var(--fg-inv-1); text-decoration: underline; text-underline-offset: 4px; }
/* The master closes on a large wordmark */
.footer-brand img { height: 80px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--fg-inv-3); font-size: 15px; max-width: 34ch; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: var(--fg-inv-3); }
.footer-base a { color: var(--fg-inv-3); }

/* ---------- Cards ---------- */
/* Master card: 4% white on teal, hairline edge, 20px radius */
.card {
  background: var(--ama-light-100); border-radius: var(--r-lg); padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.card-crisp { background: var(--ama-light-100); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 28px; }
.photo-card { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); background: var(--ama-light-300); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card.r-lg { border-radius: var(--r-lg); }
.photo-note { display: none; position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: rgba(241, 248, 239, 0.86); background: rgba(12, 34, 38, 0.46); padding: 4px 10px; border-radius: var(--r-pill); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; line-height: 1.3; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--fg-1);
}
.surface-dark .chip, .chip.on-dark { background: rgba(241, 248, 239, 0.08); border-color: rgba(241, 248, 239, 0.16); color: var(--fg-inv-1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--fg-3); }
.surface-dark .tag { color: var(--fg-inv-3); }

/* Lists */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8e55f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/15px no-repeat;
}
.dots { list-style: none; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-in), transform 600ms var(--ease-in); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 80ms; }
[data-reveal="3"] { transition-delay: 160ms; }
[data-reveal="4"] { transition-delay: 240ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Home: hero with the research-ration lens ---------- */
.hero-lens { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: var(--deep-teal); color: var(--fg-inv-1); }
.hero-lens canvas.mosaic { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-lens .hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 72px; }
.hero-copy { max-width: 700px; }
.kicker { display: block; margin-bottom: 22px; line-height: 1.4; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead { max-width: 560px; color: var(--fg-inv-2); margin-bottom: 32px; }
.hero-copy .btn-row { margin-bottom: 26px; }
.hero-fine { display: grid; gap: 8px; max-width: 520px; font-size: 14px; color: var(--fg-inv-3); }
.hero-fine .trust-line { color: var(--fg-inv-2); font-weight: 500; }
.lens-caption {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 28px; max-width: 290px;
  font-size: 13px; line-height: 1.45; color: var(--fg-inv-2); text-align: right;
}
.lens-caption strong { color: var(--fg-inv-1); font-weight: 500; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 40px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--line-dark-strong); }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--fg-inv-2); animation: scrollhint 2.2s var(--ease-in) infinite; }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- Home: problem ---------- */
.problem-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.problem-grid .photo-card { aspect-ratio: 4 / 5; }
.problem-grid .photo-card img { object-position: 64% 50%; }
.pain-list { list-style: none; display: grid; gap: 0; margin: 28px 0 28px; border-top: 1px solid var(--line-light); }
.pain-list li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line-light); position: relative; color: var(--fg-2); }
.pain-list li::before { content: ""; position: absolute; left: 6px; top: 26px; width: 12px; height: 1.5px; background: var(--fg-1); }
.closing-line { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }

/* ---------- Home: pinned story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-steps { padding-block: 6vh 20vh; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 400ms var(--ease-in); }
.story-step.is-active { opacity: 1; }
.story-step .step-no { margin-bottom: 12px; font-feature-settings: "tnum"; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.story-step h3 { margin-bottom: 14px; }
.story-step p { color: var(--fg-2); max-width: 52ch; }
.story-step .chip { align-self: flex-start; margin-bottom: 14px; }
.story-step .pull { margin-top: 10px; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; }
.story-sticky { position: sticky; top: calc(50vh - min(34vh, 330px)); height: min(68vh, 660px); }
.story-panel { position: relative; height: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--ama-light-100); box-shadow: inset 0 0 0 1px var(--line-light); }
.story-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-panel .grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(241, 248, 239, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(241, 248, 239, 0.06) 1px, transparent 1px); background-size: 25% 33.333%; }
.panel-counter { position: absolute; z-index: 3; left: 22px; top: 18px; color: var(--fg-inv-1); }
.panel-counter .count { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-feature-settings: "tnum"; color: var(--lime); }
.panel-counter .cap { display: block; font-size: 13px; color: var(--fg-inv-2); margin-top: 2px; }
.panel-note { position: absolute; z-index: 3; right: 18px; top: 20px; font-size: 11px; color: var(--fg-inv-3); letter-spacing: 0.02em; }
.panel-reason { position: absolute; z-index: 3; left: 22px; bottom: 18px; right: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-reason .chip { background: rgba(8, 25, 27, 0.72); border-color: rgba(241, 248, 239, 0.18); color: var(--fg-inv-2); font-size: 12px; opacity: 0; transform: translateY(6px); transition: opacity 320ms var(--ease-in), transform 320ms var(--ease-in); }
.panel-reason .chip.show { opacity: 1; transform: none; }
.panel-levels { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 5%; opacity: 0; transition: opacity 320ms var(--ease-in); pointer-events: none; }
.panel-levels.show { opacity: 1; }
.panel-levels span { text-align: center; font-size: 12px; font-weight: 500; color: var(--fg-inv-2); letter-spacing: 0.02em; }
.panel-photo { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-in); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-photo.show { opacity: 1; }
.panel-photo .photo-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; color: var(--fg-inv-1); font-size: 15px; line-height: 1.4; text-shadow: 0 1px 12px rgba(8, 25, 27, 0.6); }
.panel-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 25, 27, 0.66), rgba(8, 25, 27, 0) 42%); }
.panel-photo .photo-cap, .panel-photo .final-line { z-index: 2; }
.final-line { position: absolute; left: 22px; right: 22px; bottom: 22px; color: var(--fg-inv-1); }
.final-line strong { display: block; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.final-line span { display: block; margin-top: 6px; font-size: 14px; color: var(--fg-inv-2); }

/* ---------- Home: who does what ---------- */
.split-work { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-col { border-radius: var(--r-xl); overflow: hidden; }
.work-agents { background: var(--ama-dark-200); color: var(--fg-inv-1); padding: 32px 32px 170px; position: relative; }
.work-agents::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(241, 248, 239, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(241, 248, 239, 0.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.work-agents > * { position: relative; }
.work-agents::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: url("../../img/crowd-atlas-tint.webp") 0 0 / 420px auto repeat; opacity: 0.28; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); pointer-events: none; }
.work-team { background: var(--ama-light-100); box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
.work-team .photo { aspect-ratio: 16 / 9; overflow: hidden; }
.work-team .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.work-team .body { padding: 28px 32px 32px; }
.work-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.work-list { list-style: none; display: grid; gap: 0; }
.work-list li { padding: 13px 0; border-top: 1px solid var(--line-light); display: flex; gap: 14px; align-items: baseline; }
.work-agents .work-list li { border-top-color: var(--line-dark); font-family: var(--font-sans); }
.work-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--lime); }
.work-team .work-list li::before { background: var(--lime); border-radius: 50%; }

/* ---------- Home: promises (auto-advance) ---------- */
.promises { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.promise-tabs { display: grid; gap: 10px; align-content: start; }
.promise-tab {
  text-align: left; border: 0; cursor: pointer; background: transparent; padding: 18px 20px 20px; border-radius: var(--r-lg);
  display: grid; gap: 8px; transition: background-color 240ms var(--ease-in);
}
.promise-tab:hover { background: rgba(255, 255, 255, 0.03); }
.promise-tab[aria-selected="true"] { background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.promise-tab .t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.promise-tab .bar { height: 2px; border-radius: 2px; background: var(--line-light); overflow: hidden; }
.promise-tab .bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.promise-tab[aria-selected="true"] .bar i { animation: fillbar var(--dur, 8s) linear forwards; }
.promise-tab.paused .bar i { animation-play-state: paused; }
@keyframes fillbar { to { width: 100%; } }
.promise-count { font-size: 13px; color: var(--fg-3); padding: 6px 20px; font-feature-settings: "tnum"; }
.promise-panel { display: none; background: var(--ama-dark-200); color: var(--fg-inv-1); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; min-height: 460px; }
.promise-panel.is-active { display: flex; flex-direction: column; animation: panelin 420ms var(--ease-in); }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.promise-panel .h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 18px; }
.promise-panel blockquote { margin: 0 0 28px; font-size: 19px; line-height: 1.45; color: var(--fg-inv-2); max-width: 46ch; }
.promise-panel .feat-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-inv-3); margin: auto 0 14px; font-weight: 500; }
.promise-panel .feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { border-radius: var(--r-md); padding: 14px 16px; background: rgba(241, 248, 239, 0.06); border: 1px solid var(--line-dark); font-size: 15px; line-height: 1.4; color: var(--fg-inv-1); }
.feat small { display: block; color: var(--fg-inv-3); font-size: 12px; margin-top: 4px; }
.promise-panel .boundary { margin-top: 16px; font-size: 13px; color: var(--fg-inv-3); }

/* ---------- Home: Autopilot band ---------- */
.autopilot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.autopilot .quote-line { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; font-weight: 500; color: var(--fg-inv-1); margin: 22px 0 28px; letter-spacing: -0.01em; }
.flow { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-xl); background: var(--ama-light-100); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow .lane { fill: none; stroke: rgba(241, 248, 239, 0.24); stroke-width: 1.2; }
.flow .pulse { fill: none; stroke: rgba(231, 243, 229, 0.9); stroke-width: 2; stroke-dasharray: 6 240; animation: dash 3.6s linear infinite; }
@keyframes dash { from { stroke-dashoffset: 246; } to { stroke-dashoffset: 0; } }
.flow .node { position: absolute; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.flow .node.role { left: 15%; top: 50%; background: var(--ama-light-100); color: var(--fg-1); box-shadow: var(--shadow-3); }
.flow .node.ama { left: 42%; top: 50%; background: var(--ama-dark-100); color: var(--fg-inv-1); box-shadow: inset 0 0 0 1px var(--line-dark-strong); display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border-radius: 50%; }
.flow .node.ama img { width: 40px; height: auto; }
.flow .node.you { left: 86%; top: 50%; background: var(--ama-light-100); color: var(--fg-1); box-shadow: var(--shadow-3); text-align: center; }
.flow .reply { position: absolute; right: 21%; width: 150px; padding: 8px 12px; border-radius: 12px; background: rgba(241, 248, 239, 0.1); border: 1px solid var(--line-dark); color: var(--fg-inv-2); font-size: 12px; opacity: 0; transform: translateX(-12px); }
.flow.run .reply { animation: replyin 9s var(--ease-in) infinite; }
.flow .reply:nth-of-type(2) { animation-delay: 1.2s !important; }
.flow .reply:nth-of-type(3) { animation-delay: 2.4s !important; }
@keyframes replyin { 0%, 18% { opacity: 0; transform: translateX(-12px); } 26%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
.flow .cap { position: absolute; font-size: 11px; color: var(--fg-inv-3); letter-spacing: 0.02em; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Home: success fees ---------- */
.fees { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fee-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.fee-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line-light); font-size: 19px; line-height: 1.45; }
.fee-list li span.i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime); font-size: 13px; font-weight: 600; margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { border-radius: var(--r-lg); overflow: hidden; background: var(--ama-light-100); border: 1px solid var(--line-light); box-shadow: var(--shadow-2); }
.table-scroll { overflow-x: auto; }
table.crit { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 680px; }
table.crit th, table.crit td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line-light); }
table.crit thead th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; background: var(--ama-light-200); }
table.crit tbody tr:last-child td, table.crit tbody tr:last-child th { border-bottom: 0; }
table.crit tbody th { font-weight: 600; width: 24%; }
table.crit td.q { color: var(--fg-2); width: 36%; }

/* ---------- Marquee ---------- */
.marquee { display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; width: max-content; gap: 12px; animation: marquee var(--mq, 46s) linear infinite; }
.marquee-row .set { display: flex; gap: 12px; flex: none; }
.marquee-row.rev { animation-direction: reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row .sys { flex: none; padding: 14px 22px; border-radius: var(--r-pill); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.marquee-row .sys.sys-sync { background: var(--ama-light-100); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-light); }
.marquee-row .sys.sys-impl { background: transparent; box-shadow: inset 0 0 0 1px var(--line-light-strong); color: var(--fg-2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sys-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 10px; font-size: 14px; color: var(--fg-2); }
.sys-legend span { display: inline-flex; align-items: center; gap: 10px; }
.sys-legend i { width: 28px; height: 16px; border-radius: 8px; display: inline-block; flex: none; }
.sys-legend i.lg-sync { background: var(--lime-tint); box-shadow: inset 0 0 0 1px var(--lime); }
.sys-legend i.lg-impl { box-shadow: inset 0 0 0 1px var(--lime-line); }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.role .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.role .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-in); }
.role:hover .ph img { transform: scale(1.03); }
.role .body { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.role .body p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
.role .body .text-link { margin-top: 6px; font-size: 15px; justify-self: start; }

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.proof-quote { grid-column: span 7; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.proof-quote .q { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--fg-inv-1); }
.proof-quote .what { margin-top: 18px; font-size: 16px; color: var(--fg-inv-2); max-width: 46ch; }
.proof-quote .who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.proof-quote .mark { white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--fg-inv-2); padding: 8px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.proof-stat { grid-column: span 5; display: flex; flex-direction: column; }
.proof-stat .big { font-size: clamp(64px, 7.4vw, 104px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; font-feature-settings: "tnum"; }
.proof-stat .big small { font-size: 0.42em; letter-spacing: -0.01em; font-weight: 600; margin-left: 4px; }
.proof-stat .frame { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--fg-inv-2); }
.proof-stat .sub { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--fg-inv-3); }
.proof-card { grid-column: span 6; }
.proof-auto { grid-column: span 6; display: flex; flex-direction: column; }
.proof-auto .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 18px; }
.proof-auto .nums b { display: block; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -0.02em; font-weight: 600; font-feature-settings: "tnum"; color: var(--lime); }
.proof-auto .nums span { display: block; margin-top: 8px; font-size: 13px; color: var(--fg-inv-3); line-height: 1.4; }

/* ---------- Evidence card (synthetic) ---------- */
.ev { background: var(--ama-light-100); color: var(--fg-1); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.ev-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-light); }
.ev-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ama-light-300); font-weight: 600; font-size: 14px; color: var(--fg-2); }
.ev-head .nm { font-weight: 600; font-size: 16px; line-height: 1.25; }
.ev-head .rl { font-size: 13px; color: var(--fg-3); }
.ev-head .lvl { margin-left: auto; }
.ev-synth { padding: 8px 20px; font-size: 11px; letter-spacing: 0.04em; color: var(--fg-3); background: var(--ama-light-200); border-bottom: 1px solid var(--line-light); }
.ev-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line-light); overflow-x: auto; }
.ev-tab { border: 0; background: transparent; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 500; color: var(--fg-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ev-tab[aria-selected="true"] { color: var(--fg-1); border-bottom-color: var(--ama-dark); }
.ev-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.ev-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.ev-row .k { font-size: 12px; color: var(--fg-3); padding-top: 2px; }
.ev-verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ev-verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ev-verdict.mid::before { background: #d99b2e; }
.ev-over { font-size: 13px; color: var(--fg-2); background: var(--ama-light-200); border-radius: var(--r-sm); padding: 10px 12px; }

/* Level pill */
.lvl { display: inline-flex; white-space: nowrap; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--ama-light-300); color: var(--fg-1); }
.lvl.step { background: rgba(46, 125, 138, 0.14); }
.lvl.on { background: rgba(46, 138, 94, 0.16); }
.lvl.above { background: rgba(217, 155, 46, 0.18); }

/* ---------- Fit ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit-grid .card h3 { margin-bottom: 18px; }
.fit-grid .no li::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8a3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-list details { border-bottom: 1px solid var(--line-light); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary { color: var(--fg-1); }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8e55f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform 240ms var(--ease-in); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .a { padding: 0 48px 24px 0; color: var(--fg-2); }
.faq-list .a p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: left; }
.cta-box { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.cta-box .display { font-size: clamp(36px, 4.2vw, 58px); }
.cta-box .lead { margin-top: 20px; color: var(--fg-inv-2); }
.cta-final .cta-box {
  width: calc(100% - 2 * var(--gutter)); max-width: var(--wrap);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 64px); border-radius: var(--r-xl);
  background: var(--lime); color: var(--deep-teal);
}
.cta-final .cta-box .display, .cta-final .cta-box .hl { color: var(--deep-teal); }
.cta-final .cta-box .lead { color: rgba(20, 52, 56, 0.8); }
.cta-final .cta-box .micro, .cta-final .cta-box .small { color: rgba(20, 52, 56, 0.72); }
.cta-final .cta-box .btn-pop { background: var(--deep-teal); color: var(--lime); }
.cta-final .cta-box .btn-pop:hover { background: var(--ink-deep); }
.cta-final .cta-box :focus-visible { outline-color: var(--deep-teal); }
.cta-side { display: grid; gap: 16px; justify-items: start; }
.cta-side .micro { max-width: 40ch; }

/* ---------- Generic page hero ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero .display { margin-bottom: 22px; }
.page-hero .lead { max-width: 600px; margin-bottom: 30px; }
.page-hero .photo-card { aspect-ratio: 5 / 4; }
.page-hero.center .grid { grid-template-columns: 1fr; text-align: left; }
.page-hero .grid.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

/* Hero side cards */
.glance { display: grid; gap: 0; padding: 8px 24px; }
.glance div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.glance div:last-child { border-bottom: 0; }
.glance dt, .glance .k { color: var(--fg-3); font-size: 13px; }
.qlist { list-style: none; counter-reset: q; display: grid; gap: 10px; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-light); font-size: 15px; line-height: 1.4; }
.qlist li::before { content: counter(q); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ama-dark); color: var(--fg-inv-1); font-size: 12px; font-weight: 600; }
.qlist a { text-decoration: none; }
.qlist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sync-card { display: grid; gap: 18px; }
.sync-card .ends { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; }
.sync-card .end { border-radius: var(--r-lg); padding: 18px; text-align: center; font-weight: 600; font-size: 15px; }
.sync-card .end.a { background: var(--ama-dark-200); color: var(--fg-inv-1); }
.sync-card .end.a img { height: 22px; width: auto; margin: 0 auto; }
.sync-card .end.b { background: #fff; border: 1px solid var(--line-light); color: var(--fg-1); }
.sync-card .mid { display: grid; gap: 14px; padding: 0 10px; }

/* Numbered sequence (horizontal) */
.seq { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: seq; list-style: none; }
.seq li { counter-increment: seq; position: relative; padding: 22px 20px 24px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); font-size: 15.5px; line-height: 1.45; }
.seq li::before { content: counter(seq); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime-tint); color: var(--lime); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.seq.seq-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seq li strong { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }

/* Big statement */
.statement { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; max-width: 22ch; }
.statement.wide { max-width: 32ch; text-wrap: balance; }

/* Timeline of dates */
.dates { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dates::before { content: ""; position: absolute; left: 14px; right: 18%; top: 34px; height: 1px; background: var(--line-light-strong); }
.date { position: relative; padding-top: 70px; }
.date .dot { position: absolute; top: 20px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--deep-teal); box-shadow: inset 0 0 0 1.5px var(--lime); }
.date .dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--lime); }
.date h3 { margin-bottom: 8px; }
.date p { color: var(--fg-2); margin: 0; }

/* Form */
.form-card { background: var(--ama-light-100); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--fg-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.field .hint { font-size: 12.5px; color: var(--fg-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg-1); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-sm); padding: 12px 16px; min-height: 48px;
  transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { min-height: 96px; resize: vertical; }
.field ::placeholder { color: var(--fg-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-tint); }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--fg-2); }
.check-field input {
  appearance: none; -webkit-appearance: none; margin: 3px 0 0; width: 18px; height: 18px; flex: none; cursor: pointer;
  border-radius: 5px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.check-field input:checked {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143438' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: none;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cbb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
}
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 22px; }
.form-card .form-foot { flex-direction: column; align-items: stretch; }
.form-card .form-foot .btn { width: 100%; }
.form-foot .micro { max-width: 46ch; }
.form-done { display: none; padding: 24px; border-radius: var(--r-lg); background: var(--ama-light-200); }
.form-card.sent form { display: none; }
.form-card.sent .form-done { display: block; }

.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Facts table */
.facts { display: grid; grid-template-columns: minmax(180px, 1fr) 2.4fr; margin: 0; border-top: 1px solid var(--line-light); }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.facts dt { font-size: 14px; color: var(--fg-3); padding-right: 24px; }
.facts dd { font-size: 16px; color: var(--fg-1); }

/* Article layout (AI research guide) */
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 4px; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--fg-3); padding: 8px 12px; border-radius: var(--r-pill); border-left: 0; }
.toc a:hover { color: var(--fg-1); background: rgba(255, 255, 255, 0.05); }
.toc a.is-active { color: var(--fg-1); background: var(--ama-light-100); box-shadow: var(--shadow-1); }
.crit-block { padding: 8px 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line-light); max-width: 760px; }
.crit-block:last-of-type { border-bottom: 0; margin-bottom: 0; }
.crit-block .n { margin-bottom: 10px; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.crit-block h2 { margin-bottom: 18px; }
.ask { margin: 22px 0; padding: 20px 22px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.ask .tag { margin-bottom: 8px; display: block; }
.ask p { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.answer { margin-top: 18px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--ama-dark-200); color: var(--fg-inv-1); }
.answer .tag { color: var(--fg-inv-3); display: block; margin-bottom: 8px; }
.answer p { margin: 0; color: var(--fg-inv-1); }

/* Decision map */
.dmap { display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ama-light-100); box-shadow: var(--shadow-2); border: 1px solid var(--line-light); }
.dmap-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line-light); }
.dmap-row:last-child { border-bottom: 0; }
.dmap-row > * { padding: 18px 22px; font-size: 15px; line-height: 1.5; }
.dmap-row .stage { font-weight: 600; }
.dmap-row .you { background: rgba(46, 138, 94, 0.06); }
.dmap-head > * { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; background: var(--ama-light-200); padding-block: 14px; }

/* Numbered list of commitments */
.commit { list-style: none; counter-reset: c; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.commit li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: rgba(241, 248, 239, 0.06); border: 1px solid var(--line-dark); font-size: 16px; line-height: 1.45; }
.commit li::before { content: counter(c); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--lime-tint); color: var(--lime); }

/* Offer grid (company) */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer { padding: 26px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); display: grid; gap: 10px; align-content: start; }
.offer p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.offer .impl { font-size: 12px; color: var(--fg-3); }
.offer.wide { grid-column: span 2; }

/* Differentiators (company) */
.diff { display: grid; border-top: 1px solid var(--line-light); }
.diff-item { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.diff-n { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-feature-settings: "tnum"; color: var(--lime); }
.diff-item p { margin: 6px 0 0; color: var(--fg-2); max-width: 60ch; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.person .mono-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.person h3 { margin-bottom: 2px; }
.person .role-t { font-size: 14px; color: var(--fg-3); margin-bottom: 12px; }
.person p { color: var(--fg-2); font-size: 15.5px; margin: 0; }

/* Manifesto reveal */
.manifesto { max-width: 920px; }
.manifesto p { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.32; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 0.8em; }
.manifesto p .w { color: rgba(217, 231, 212, 0.26); transition: color 500ms var(--ease-in); }
.manifesto p .w.on { color: var(--fg-inv-1); }
.manifesto .lead-in { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.9em; }

/* Product demo (how it works hero) */
.demo { position: relative; border-radius: var(--r-xl); background: var(--ama-light-100); color: var(--fg-1); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.5); overflow: hidden; min-height: 470px; display: flex; flex-direction: column; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-light); background: var(--ama-light-200); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ama-light-400); }
.demo-bar span { margin-left: 10px; font-size: 12px; color: var(--fg-3); }
.demo-body { flex: 1; display: grid; grid-template-columns: 1fr; padding: 18px; gap: 12px; align-content: start; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity 320ms var(--ease-in), transform 320ms var(--ease-in); }
.msg.show { opacity: 1; transform: none; }
.msg.me { justify-self: end; background: var(--ama-dark); color: var(--fg-inv-1); border-bottom-right-radius: 6px; }
.msg.ama { justify-self: start; background: var(--ama-light-200); border: 1px solid var(--line-light); border-bottom-left-radius: 6px; }
.msg .chip-row { margin-top: 8px; }
.demo-progress { height: 4px; border-radius: 2px; background: var(--ama-light-300); overflow: hidden; margin-top: 4px; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--ama-dark); transition: width 2.4s linear; }
.demo-map { display: grid; gap: 6px; }
.demo-map .row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-light); font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-in), transform 300ms var(--ease-in); }
.demo-map .row.show { opacity: 1; transform: none; }
.demo-map .av { width: 30px; height: 30px; border-radius: 50%; background-size: cover; background-position: center; }
.demo-map .why { font-size: 12px; color: var(--fg-3); display: block; }
.demo .chip, .panel-mock:not(.dark) .chip { background: rgba(20, 52, 56, 0.06); border-color: rgba(20, 52, 56, 0.12); color: var(--fg-1); }
.demo-label { font-size: 11px; color: var(--fg-3); padding: 0 18px 14px; }

/* Faces from the colour atlas (18 x 12 cells) */
.face { --sz: 34px; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%; background-image: url("../../img/crowd-atlas.webp"); background-size: calc(var(--sz) * 18) calc(var(--sz) * 12); background-position: calc(var(--c) * var(--sz) * -1) calc(var(--r) * var(--sz) * -1); box-shadow: 0 0 0 1px var(--line-light); }

/* Talent Market Map mock */
.tmm { display: grid; gap: 16px; }
.tmm-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-light); }
.tmm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tmm-col { display: grid; gap: 8px; align-content: start; }
.tmm-col > .lvl { justify-self: start; margin-bottom: 4px; }
.tmm-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-light); font-size: 13.5px; line-height: 1.35; }
.tmm-item .why, .demo-map .why { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* Salary range chart (synthetic) */
.bands { position: relative; display: grid; gap: 10px; padding: 30px 0 30px 56px; margin-top: 12px; }
.band-scale { position: absolute; left: 56px; right: 0; top: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-3); }
.band { position: relative; height: 26px; }
.band .who { position: absolute; left: -56px; top: 4px; width: 48px; font-size: 12.5px; color: var(--fg-2); font-weight: 500; }
.band .bar { position: absolute; top: 5px; height: 16px; left: var(--a); right: calc(100% - var(--b)); border-radius: var(--r-pill); background: linear-gradient(90deg, rgba(46, 125, 138, 0.32), rgba(20, 52, 56, 0.72)); }
.bands .budget { position: absolute; top: 24px; bottom: 22px; left: calc(56px + (100% - 56px) * var(--x)); width: 0; border-left: 1.5px dashed var(--ama-dark); }
.bands .budget span { position: absolute; bottom: -20px; left: -22px; font-size: 11px; font-weight: 600; color: var(--fg-1); white-space: nowrap; }

/* Step blocks (how it works) */
.hiw-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-light); }
.hiw-step:first-child { border-top: 0; }
.hiw-step .n { margin-bottom: 12px; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.hiw-step h2 { margin-bottom: 16px; }
.hiw-step p { color: var(--fg-2); }
.hiw-step.flip > :first-child { order: 2; }
.hiw-step.stack { grid-template-columns: 1fr; gap: 32px; }
.stack-head { max-width: 780px; }
.seq-dark { grid-template-columns: 1fr; }
.seq-dark li { background: rgba(241, 248, 239, 0.06); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--fg-inv-2); }
.seq-dark li::before { background: var(--lime-tint); color: var(--lime); }
.seq-dark li strong { color: var(--fg-inv-1); }
.bounds { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: b; }
.bounds li { counter-increment: b; padding: 22px 20px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); font-size: 16px; line-height: 1.45; font-weight: 500; letter-spacing: -0.005em; }
.bounds li::before { content: counter(b); display: block; font-size: 13px; color: var(--lime); margin-bottom: 12px; font-weight: 500; }
.panel-mock { border-radius: var(--r-xl); background: var(--ama-light-100); box-shadow: var(--shadow-3); padding: 22px; }
.panel-mock.dark { background: var(--ama-dark-200); color: var(--fg-inv-1); box-shadow: 0 24px 60px -24px rgba(8, 25, 27, 0.6); }
.boundary-box { border: 1.5px dashed var(--line-light-strong); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
.boundary-box .row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; align-items: start; }
.boundary-box .row .k { color: var(--fg-3); font-size: 13px; }

/* Criterion toggle demo */
.pool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.toggles { display: grid; gap: 10px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-light); font-size: 14px; cursor: pointer; }
.tog input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--ama-light-300); position: relative; cursor: pointer; flex: none; transition: background-color 200ms; }
.tog input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform 200ms var(--ease-in); }
.tog input:checked { background: var(--ama-dark); }
.tog input:checked::after { transform: translateX(16px); }
.pool-out { display: grid; gap: 10px; align-content: start; }
.pool-num { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; font-feature-settings: "tnum"; }
.pool-list { list-style: none; display: grid; gap: 6px; }
.pool-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-light); font-size: 13.5px; transition: transform 360ms var(--ease-in), opacity 240ms; }
.pool-note { font-size: 12.5px; color: var(--fg-3); }

/* Message draft */
.draft { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-light); padding: 18px; font-size: 14.5px; line-height: 1.6; }
.draft .to { font-size: 12px; color: var(--fg-3); margin-bottom: 10px; }
.draft-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seg { display: inline-flex; background: var(--ama-light-200); border-radius: var(--r-pill); padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; cursor: pointer; color: var(--fg-2); }
.seg button[aria-pressed="true"] { background: var(--ama-dark); color: var(--fg-inv-1); }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outcome { padding: 26px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.outcome h3 { margin: 14px 0 8px; }
.outcome p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.outcome .ico { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--lime-tint); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }
.outcome .ico svg { width: 20px; height: 20px; }
.outcomes.compact .outcome { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.outcomes.compact .outcome h3 { margin: 0; }

/* Sync diagram */
.sync { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: stretch; }
.sync-col { border-radius: var(--r-xl); padding: 26px; }
.sync-col.ama { background: var(--ama-light-100); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--fg-inv-1); }
.sync-col.sor { background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.sync-col.ama .dots li::before { background: var(--lime); }
.sync-col h3 { margin-bottom: 14px; }
.sync-mid { position: relative; display: grid; align-content: center; gap: 36px; padding: 0 8px; }
.sync-arrow { position: relative; height: 2px; background: var(--line-light-strong); }
.sync-arrow::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-top: 2px solid var(--fg-1); border-right: 2px solid var(--fg-1); }
.sync-arrow.r::after { right: 0; transform: rotate(45deg); }
.sync-arrow.l::after { left: 0; transform: rotate(-135deg); }
.sync-arrow i { position: absolute; top: -1px; left: 0; width: 18px; height: 4px; border-radius: 2px; background: var(--lime); animation: travel 2.8s var(--ease-in) infinite; }
.sync-arrow.l i { animation-direction: reverse; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 18px); } }
.sync-label { font-size: 11px; color: var(--fg-3); text-align: center; margin-top: 8px; }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 24px; border-radius: var(--r-lg); background: var(--ama-light-100); box-shadow: var(--shadow-2); }
.stat b { display: block; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; font-feature-settings: "tnum"; margin-bottom: 10px; color: var(--lime); }
.stat p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; letter-spacing: -0.012em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--fg-2); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin-bottom: 1em; }
.draft-note { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: var(--ama-light-300); font-size: 13px; font-weight: 500; margin-bottom: 20px; }

/* ---------- Review mode (?review) ---------- */
.review-badge { position: absolute; z-index: 40; top: 8px; right: 8px; max-width: 420px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 25, 27, 0.92); color: #f1f8ef; font: 11px/1.4 var(--font-mono); pointer-events: none; }
.review-badge .chk { color: var(--ama-pop); display: block; margin-top: 3px; }

/* ---------- Product mocks: light UI on teal ----------
   The master shows product screens as white cards (Surface, Ink, Hairline)
   in a sage frame. Re-scoping the role tokens here keeps every mock's
   internals on their light values. */
.ev, .demo, .panel-mock:not(.dark), .flow .node.role, .flow .node.you {
  color-scheme: light;
  --fg-1: var(--ink); --fg-2: #33504c; --fg-3: var(--muted-on-light); --fg-4: #93a09b;
  --line-light: var(--hairline); --line-light-strong: rgba(18, 46, 49, 0.28);
  --ama-light-100: #ffffff; --ama-light-200: var(--canvas); --ama-light-300: #e3ecdf; --ama-light-400: #b9cbb3;
  --ok: #2e8a5e;
  --shadow-1: 0 1px 2px rgba(18, 46, 49, 0.06); --shadow-2: 0 4px 12px rgba(18, 46, 49, 0.08);
  color: var(--fg-1);
}
/* A border keeps the sage frame inside the grid column */
.ev, .demo, .panel-mock:not(.dark) { border: 16px solid #c5d4c0; border-radius: var(--r-xl); box-shadow: none; }
.panel-mock:not(.dark) .h3, .panel-mock:not(.dark) h3, .panel-mock:not(.dark) h4, .ev h3, .demo h3 { color: var(--fg-1); }
body.review .photo-note { display: block; }
body.review [data-claims], body.review [data-check] { outline: 1px dashed rgba(238, 255, 65, 0.8); outline-offset: -1px; position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 10px 10px; font-size: 14px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmm-cols { grid-template-columns: 1fr; }
  .offer.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-sheet { position: fixed; inset: 0; z-index: 45; background: var(--deep-teal); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease-in), visibility 0s linear 240ms; }
  .nav-open .nav-sheet { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease-in); }
  .nav-sheet a:not(.btn) { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--fg-1); padding: 10px 0; border-bottom: 1px solid var(--line-light); }
  .nav-sheet .btn { margin-top: 20px; font-size: 16px; }
  .nav-open .site-nav .nav-bar { background: transparent; box-shadow: none; }
  .nav-open .nav-toggle { color: var(--fg-1); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav.is-compact .nav-bar { margin-top: 8px; margin-inline: 12px; height: 56px; }
  .problem-grid, .story, .promises, .autopilot, .fees, .faq, .cta-box, .page-hero .grid, .hiw-step, .article, .pool, .sync { grid-template-columns: 1fr; }
  .hiw-step.flip > :first-child { order: 0; }
  .page-hero .grid.wide-left { grid-template-columns: 1fr; }
  .problem-grid .photo-card { aspect-ratio: 16 / 11; }
  .split-work, .fit-grid, .commit, .people, .footer-grid, .grid-two { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
  .story { gap: 0; }
  .story-sticky { order: -1; top: calc(var(--nav-h) + 8px); height: 46vh; z-index: 2; }
  .story-steps { padding-block: 4vh 12vh; }
  .story-step { min-height: 64vh; justify-content: flex-start; padding-top: 6vh; opacity: 0.4; }
  .story-step.is-active { opacity: 1; }
  .proof-quote, .proof-stat, .proof-card, .proof-auto { grid-column: 1 / -1; }
  .promise-panel { min-height: 0; }
  .promise-panel .feat-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .dmap-row { grid-template-columns: 1fr; }
  .dmap-row > * { padding: 12px 18px; }
  .dmap-head { display: none; }
  .dmap-row .stage { padding-top: 18px; }
  .outcomes, .stat-row, .dates { grid-template-columns: 1fr; }
  .dates::before { display: none; }
  .date { padding-top: 0; padding-left: 44px; }
  .date .dot { top: 2px; }
  .sync-mid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; }
  .lens-caption { left: var(--gutter); right: var(--gutter); max-width: none; text-align: left; bottom: 70px; }
}
@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  .roles, .seq, .seq.seq-3, .offers, .bounds { grid-template-columns: 1fr; }
  .offer.wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .diff-item { grid-template-columns: 1fr; gap: 8px; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
  .proof-auto .nums { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .hero-lens .hero-inner { padding-bottom: 176px; }
  .lens-caption { bottom: 60px; font-size: 12px; max-width: 54%; right: auto; }
  .panel-reason { display: none; }
  .hero-scroll { display: none; }
  .ev-row { grid-template-columns: 1fr; gap: 2px; }
  table.crit { min-width: 560px; }
  .btn { white-space: normal; text-align: center; }
  .flow .node { font-size: 11px; padding: 7px 9px; }
  .flow .reply { width: 112px; font-size: 10.5px; right: 19%; }
  .flow .cap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-row { animation: none; width: auto; padding-inline: var(--gutter); }
  .marquee-row .set { flex-wrap: wrap; }
  .marquee-row .set[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .flow .reply { opacity: 1; transform: none; }
}
