/* ==========================================================================
   Tendra — Landing page styles (light, Conicorn-inspired)
   Tokens: primitive → semantic → component (see design-system/tendra/MASTER.md)
   Light pages with dark "stages" (hero, menu, contact, footer) that redefine
   the semantic tokens locally via .stage-dark.
   ========================================================================== */

/* ---------- 1. Primitive tokens — Electric Mint ---------- */
:root {
  --ink-950: #031A17;
  --ink-900: #062420;
  --ink-800: #0A2A26;
  --ink-700: #0E3A33;
  --ink-600: #12443C;

  --mint-200: #BFF7E0;
  --mint-400: #2EE6A6;   /* fills only on light grounds (ink text on top) */
  --mint-500: #22CC92;
  --mint-700: #0B7A57;   /* mint as text on white */
  --lime-200: #EEFBBE;
  --lime-300: #D4F25A;
  --aqua-200: #C4F1EE;

  --white: #FFFFFF;
  --mist-50: #F7FAF9;
  --mist-100: #EFF5F2;   /* Conicorn's #f2f2f2, tinted toward mint */
  --mist-200: #E1EBE7;
  --mist-300: #C9D8D2;
  --slate-600: #4A6660;  /* muted text on light */
  --paper: #F4FBF8;
  --sage: #A7C9BE;
  --salmon: #FF8A7A;
  --brick: #B3261E;

  --font-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 12px;
  --radius-lg: 32px;     /* tiles */
  --radius-xl: 48px;     /* panels */
  --radius-2xl: 64px;
  --radius-pill: 999px;

  --e-expo: cubic-bezier(.16, 1, .3, 1);
  --e-quint: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
}

/* ---------- 2. Semantic tokens (light) ---------- */
:root {
  color-scheme: light;
  --color-bg: var(--white);
  --color-bg-alt: var(--mist-50);
  --color-surface: var(--mist-100);
  --color-surface-raised: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--slate-600);
  --color-border: var(--mist-200);
  --color-border-strong: var(--mist-300);
  --color-accent: var(--mint-400);
  --color-accent-hover: var(--mint-500);
  --color-on-accent: var(--ink-900);
  --color-accent-text: var(--mint-700);
  --color-dark: var(--ink-900);
  --color-on-dark: var(--paper);
  --color-focus: var(--mint-700);
  --color-error: var(--brick);

  /* Conicorn's iridescent wash, re-mixed from the brand: mint, aqua, paper, lime */
  --glow: linear-gradient(115deg, var(--mint-200) 0%, var(--aqua-200) 32%, var(--paper) 52%, var(--lime-200) 74%, var(--mint-200) 100%);
  --glow-text: linear-gradient(100deg, var(--mint-400) 0%, #8FF0C9 35%, var(--lime-300) 70%, var(--paper) 100%);

  /* Conicorn's tile bevel: a white inner rim and a soft bottom shade */
  --bevel: inset 0 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -2px 2px rgba(6, 36, 32, 0.10);
  --bevel-lg: inset 0 0 1px 3px rgba(255, 255, 255, 0.9), inset 0 -2px 1px 1px rgba(6, 36, 32, 0.10);
  --lift: 0 24px 60px -30px rgba(6, 36, 32, 0.28);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
}

/* Dark stages: same components, inverted tokens */
.stage-dark {
  color-scheme: dark;
  --color-bg: var(--ink-900);
  --color-bg-alt: var(--ink-800);
  --color-surface: rgba(244, 251, 248, 0.06);
  --color-surface-raised: rgba(244, 251, 248, 0.09);
  --color-text: var(--paper);
  --color-text-muted: var(--sage);
  --color-border: rgba(244, 251, 248, 0.14);
  --color-border-strong: rgba(244, 251, 248, 0.32);
  --color-accent-text: var(--mint-400);
  --color-focus: var(--lime-300);
  --color-error: var(--salmon);
  --color-dark: var(--paper);      /* dark pills turn into paper pills on a dark stage */
  --color-on-dark: var(--ink-900);
  --bevel: inset 0 0 1px 1px rgba(255, 255, 255, 0.10), inset 0 -2px 2px rgba(0, 0, 0, 0.35);
  color: var(--color-text);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--color-text); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem); line-height: 1.06; letter-spacing: -0.05em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; padding: .75rem 1rem; background: var(--color-dark); color: var(--color-on-dark); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--color-bg-alt); }
.center { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

.head { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 820px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.head > p:not(.tag) { color: var(--color-text-muted); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem); max-width: 40rem; }

/* Numbered section tag: "001 · Who we are" */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--bevel);
  font: 500 0.75rem/1.2 var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
}
.tag span { font-family: var(--font-mono); color: var(--color-text-muted); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--color-dark);
  --btn-fg: var(--color-on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font: 500 1rem/1.2 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--e-quint), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-base) var(--e-quint); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
/* Dark pill with Conicorn's inner glow */
.btn--dark { box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.28), 0 10px 24px -14px rgba(6, 36, 32, 0.8); }
.btn--dark:hover { box-shadow: inset 0 0 18px rgba(46, 230, 166, 0.45), 0 14px 28px -14px rgba(6, 36, 32, 0.8); }
.btn--mint { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.55), 0 12px 30px -12px rgba(46, 230, 166, 0.7); }
.btn--mint:hover { --btn-bg: var(--color-accent-hover); }
.btn--glass { --btn-bg: var(--color-surface-raised); --btn-fg: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.btn--glass:hover { --btn-bg: var(--color-surface); }
.btn--secondary { --btn-bg: var(--color-surface); --btn-fg: var(--color-text); box-shadow: var(--bevel); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- 6. Floating pill nav ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; pointer-events: none; padding-inline: 12px; }
.nav__bar { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.nav__home {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.18), 0 10px 30px -12px rgba(3, 26, 23, 0.6);
}
.nav__home svg { width: 30px; height: 30px; }
.nav__pill {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(6, 36, 32, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(244, 251, 248, 0.12), 0 10px 30px -12px rgba(3, 26, 23, 0.6);
}
.nav__menu, .nav__cta { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); font: 500 0.9375rem/1 var(--font-sans); cursor: pointer; }
.nav__menu { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--paper); }
.nav__menu svg { width: 18px; height: 18px; }
.nav__menu:hover { background: rgba(244, 251, 248, 0.08); }
.nav__cta { background: var(--mint-400); color: var(--ink-900); box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.55); }
.nav__cta:hover { background: var(--mint-500); }
.nav :focus-visible { outline-color: var(--lime-300); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 24px var(--gutter) 32px;
  background: radial-gradient(60% 50% at 80% 10%, rgba(46, 230, 166, 0.18) 0%, rgba(46, 230, 166, 0) 70%), var(--color-bg);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.25rem/1 var(--font-display); letter-spacing: -0.03em; }
.menu__brand svg { width: 32px; height: 32px; }
.menu__close { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--color-surface-raised); color: var(--color-text); cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-border); }
.menu__close svg { width: 22px; height: 22px; }
.menu__links { list-style: none; margin: 0; padding: 4vh 0; display: grid; align-content: center; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 0;
  font: 500 clamp(2rem, 1.2rem + 4vw, 4rem)/1.05 var(--font-display);
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast), padding-left var(--dur-base) var(--e-quint);
}
.menu__links a span { font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0; color: var(--color-text-muted); width: 2.5rem; flex: none; }
.menu__links a:hover { color: var(--mint-400); padding-left: 10px; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--color-text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu__links li { --rise: 24px; animation: au-soft .6s var(--e-quint) both; }
  .menu:not([hidden]) .menu__links li:nth-child(2) { animation-delay: .04s; }
  .menu:not([hidden]) .menu__links li:nth-child(3) { animation-delay: .08s; }
  .menu:not([hidden]) .menu__links li:nth-child(4) { animation-delay: .12s; }
  .menu:not([hidden]) .menu__links li:nth-child(5) { animation-delay: .16s; }
  .menu:not([hidden]) .menu__links li:nth-child(6) { animation-delay: .20s; }
}

/* ---------- 7. Hero (dark stage, WebGL blob) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 8px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  min-height: min(100svh, 960px);
  display: grid; place-items: center;
  padding: 120px var(--gutter) 88px;
  text-align: center;
  background: radial-gradient(70% 60% at 50% 45%, rgba(14, 58, 51, 0.9) 0%, rgba(6, 36, 32, 0) 70%), var(--color-bg);
}
.hero__blob { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Static stand-in when WebGL is unavailable */
.no-webgl .hero__blob {
  background:
    radial-gradient(28% 34% at 46% 46%, rgba(46, 230, 166, 0.45) 0%, rgba(46, 230, 166, 0) 70%),
    radial-gradient(24% 30% at 58% 56%, rgba(212, 242, 90, 0.28) 0%, rgba(212, 242, 90, 0) 70%),
    radial-gradient(40% 46% at 50% 50%, rgba(18, 68, 60, 0.9) 0%, rgba(18, 68, 60, 0) 72%);
}
.hero__inner { position: relative; display: grid; justify-items: center; gap: 22px; max-width: 980px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 36, 32, 0.55);
  box-shadow: inset 0 0 0 1px var(--color-border);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 0.875rem; font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--mint-400); box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.2); }
.hl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 0.9rem + 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--color-text);
  text-shadow: 0 2px 40px rgba(3, 26, 23, 0.55);
}
.hl__line { display: block; }
.hl__clip { display: block; clip-path: inset(-0.3em -0.5em -0.18em -0.5em); }
.hl__track { display: block; }
.hl__glow { padding-bottom: 0.06em; background: var(--glow-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.hero__sub { max-width: 38rem; color: var(--color-text); opacity: 0.88; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); text-shadow: 0 1px 20px rgba(3, 26, 23, 0.8); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.875rem; color: var(--color-text-muted); }
.trust-line li { display: inline-flex; align-items: center; gap: 6px; }
.trust-line svg { width: 16px; height: 16px; color: var(--mint-400); }
@media (max-width: 479px) { .hero__ctas .btn { width: 100%; } }

/* ---------- 8. 001 Who we are ---------- */
.who__head { display: grid; justify-items: center; gap: 28px; }
.statement { max-width: 1040px; text-align: center; font: 400 clamp(1.75rem, 0.9rem + 3.1vw, 3.25rem)/1.1 var(--font-display); letter-spacing: -0.035em; color: var(--color-text); }
.statement .w { opacity: 0.18; transition: opacity .35s linear; }
.statement .w.is-lit { opacity: 1; }

.stats-stage { position: relative; margin-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); display: grid; place-items: center; }
.stats-marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; }
.stats-marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.stats-marquee span { flex: none; padding-right: clamp(40px, 6vw, 96px); font: 600 clamp(4rem, 2rem + 8vw, 9.5rem)/1 var(--font-display); letter-spacing: -0.06em; white-space: nowrap; color: var(--color-text); }
.stats-marquee span:nth-child(odd) { color: var(--mist-300); }
.stats-photo { position: relative; z-index: 1; margin: 0; width: min(78vw, 440px); aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 0 0 8px var(--color-bg), var(--lift); }
.stats-photo picture, .stats-photo img { width: 100%; height: 100%; }
.stats-photo img { object-fit: cover; object-position: 50% 30%; }

.notch-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .notch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notch-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 44px 28px 28px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--bevel); text-align: center; }
.notch-card__tab { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 4px 18px 6px; border-radius: 0 0 14px 14px; background: var(--color-dark); color: var(--color-on-dark); font: 500 0.75rem/1.2 var(--font-mono); }
.notch-card__num { font: 600 clamp(2.5rem, 2rem + 1.5vw, 3.25rem)/1 var(--font-display); letter-spacing: -0.05em; }
.notch-card p:not(.notch-card__num):not(.src) { color: var(--color-text-muted); font-size: 1rem; }
.notch-card__icon { display: grid; place-items: center; justify-self: center; width: 56px; height: 56px; border-radius: 50%; color: var(--ink-900); background: radial-gradient(circle at 35% 30%, #E9FFF6 0%, var(--mint-400) 60%, var(--mint-500) 100%); box-shadow: inset 0 -4px 10px rgba(6, 36, 32, 0.2), inset 0 3px 8px rgba(255, 255, 255, 0.7); }
.notch-card__icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
@media (min-width: 640px) and (max-width: 899px) { .notch-grid--calls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.src { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--color-border-strong); font-size: 0.8125rem; color: var(--color-text-muted); }
.src a { color: var(--color-text); }

/* ---------- 9. 002 Why Tendra ---------- */
.why-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.why { display: grid; gap: 10px; justify-items: center; text-align: center; }
.why__tile {
  position: relative;
  width: 100%; max-width: 340px;
  aspect-ratio: 1 / 0.9;
  margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 1px 1px, rgba(244, 251, 248, 0.12) 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(65% 60% at 50% 40%, var(--ink-600) 0%, var(--ink-900) 100%);
  box-shadow: 0 0 0 6px var(--white), inset 0 0 40px rgba(46, 230, 166, 0.10), var(--lift);
}
.why__icon {
  display: grid; place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  color: var(--ink-900);
  background: radial-gradient(circle at 35% 30%, #E9FFF6 0%, var(--mint-400) 60%, var(--mint-500) 100%);
  box-shadow: inset 0 -6px 14px rgba(6, 36, 32, 0.25), inset 0 4px 10px rgba(255, 255, 255, 0.7), 0 18px 40px -10px rgba(46, 230, 166, 0.55);
}
.why__icon svg { width: 38px; height: 38px; stroke-width: 1.6; }
.why__n { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--bevel), 0 2px 8px rgba(6, 36, 32, 0.08); font: 500 0.75rem/1.2 var(--font-mono); color: var(--color-text-muted); }
.why p { color: var(--color-text-muted); max-width: 30ch; }

/* ---------- 10. 003 Bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card--a, .card--b { grid-column: span 3; }
  .card--c, .card--d, .card--e, .card--f { grid-column: span 2; }
  .card--voice { grid-column: span 4; }
  .card--miami { grid-column: 1 / -1; }
}
.card { position: relative; display: grid; align-content: start; gap: 22px; padding: 28px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--bevel); overflow: hidden; }
.card h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; }
.card h3 span { font-weight: 400; color: var(--color-text-muted); }
.ui { position: relative; min-height: 168px; display: grid; place-items: center; }

/* Mini UI illustrations */
.ui-call__card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--white); box-shadow: var(--bevel), 0 12px 30px -16px rgba(6, 36, 32, 0.35); }
.ui-call__card strong { display: block; font-size: 0.9375rem; }
.ui-call__card small { color: var(--color-text-muted); font-size: 0.8125rem; }
.ui-call__ring { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink-900); color: var(--mint-400); }
.ui-call__ring svg { width: 18px; height: 18px; }
.ui-call__ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint-400); animation: ring-pulse 1.8s var(--e-quint) infinite; }
.ui-call__ok { margin-left: 8px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--mint-400); color: var(--ink-900); font-size: 0.75rem; font-weight: 600; }
.ui-line { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 36px; }
.ui-line i { width: 4px; height: 30%; border-radius: 2px; background: var(--mint-700); opacity: .35; animation: bar 1.4s ease-in-out infinite; }
.ui-line i:nth-child(3n) { height: 60%; animation-duration: 1.1s; }
.ui-line i:nth-child(4n+1) { height: 45%; animation-duration: 1.7s; }

.ui-chat { display: grid; gap: 8px; align-content: center; justify-items: start; }
.ui-chat p { max-width: 86%; padding: 9px 14px; border-radius: 18px; font-size: 0.875rem; line-height: 1.4; }
.ui-chat__in { background: var(--white); box-shadow: var(--bevel); border-bottom-left-radius: 6px; }
.ui-chat__out { justify-self: end; background: var(--ink-900); color: var(--paper); border-bottom-right-radius: 6px; }

.ui-sms { display: grid; gap: 10px; align-content: center; }
.ui-sms__missed { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--bevel); font-size: 0.8125rem; color: var(--brick); font-weight: 500; }
.ui-sms__missed svg { width: 16px; height: 16px; }
.ui-sms p { padding: 12px 14px; border-radius: 18px 18px 6px 18px; background: var(--mint-400); color: var(--ink-900); font-size: 0.875rem; line-height: 1.4; }
.ui-sms__time { justify-self: end; font: 500 0.75rem/1 var(--font-mono); color: var(--color-text-muted); }

.ui-cal { display: grid; gap: 14px; width: 100%; }
.ui-cal__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ui-cal__days span { padding: 10px 0; border-radius: 12px; background: var(--white); box-shadow: var(--bevel); text-align: center; font: 500 0.75rem/1 var(--font-mono); color: var(--color-text-muted); }
.ui-cal__days .is-on { background: var(--ink-900); color: var(--lime-300); box-shadow: none; }
.ui-cal__slot { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--white); box-shadow: var(--bevel), 0 10px 24px -16px rgba(6, 36, 32, 0.4); border-left: 4px solid var(--mint-400); }
.ui-cal__slot svg { width: 22px; height: 22px; color: var(--mint-700); }
.ui-cal__slot strong { display: block; font-size: 0.875rem; }
.ui-cal__slot small { font-size: 0.75rem; color: var(--color-text-muted); }

.ui-lead__card { display: grid; justify-items: center; gap: 4px; padding: 18px 26px; border-radius: 22px; background: var(--white); box-shadow: var(--bevel), 0 16px 34px -18px rgba(6, 36, 32, 0.45); text-align: center; }
.ui-lead__avatar { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: var(--glow); color: var(--ink-900); }
.ui-lead__avatar svg { width: 22px; height: 22px; }
.ui-lead__card strong { font-size: 0.9375rem; }
.ui-lead__card small { font-size: 0.75rem; color: var(--color-text-muted); }
.ui-lead__chip { margin-top: 6px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--lime-300); color: var(--ink-900); font-size: 0.75rem; font-weight: 600; }

.ui-hand { display: flex; align-items: center; justify-content: center; width: 100%; padding-bottom: 32px; }
.ui-hand > i { flex: 1; max-width: 48px; height: 2px; background: repeating-linear-gradient(90deg, var(--mint-700) 0 6px, transparent 6px 10px); animation: dash 1s linear infinite; }
.ui-hand__node { display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 18px; background: var(--white); box-shadow: var(--bevel); font-size: 0.8125rem; font-weight: 600; }
.ui-hand__node--t { width: 56px; padding: 0; border-radius: 50%; background: var(--ink-900); }
.ui-hand__node--t svg { width: 34px; height: 34px; }
.ui-hand__flag { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--ink-900); color: var(--paper); font-size: 0.75rem; white-space: nowrap; }
.ui-hand__flag svg { width: 14px; height: 14px; color: var(--lime-300); }

/* Iridescent voice card */
.card--voice { gap: 24px; background: var(--glow); background-size: 200% 100%; animation: glow-drift 14s ease-in-out infinite alternate; }
@media (min-width: 1000px) { .card--voice { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; } }
.voice__copy { display: grid; gap: 12px; }
.voice__copy h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.04em; }
.voice__copy p { color: var(--color-text-muted); }
.voice__prompts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.voice__prompts li { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.75); box-shadow: var(--bevel); font-size: 0.8125rem; }

.console { display: grid; justify-items: center; gap: 10px; padding: 16px 18px 18px; border-radius: 28px; background: var(--ink-900); color: var(--paper); box-shadow: inset 0 0 30px rgba(46, 230, 166, 0.12), var(--lift); }
.console__bar { display: flex; justify-content: space-between; width: 100%; font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.console__live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.console__time { color: var(--lime-300); font-variant-numeric: tabular-nums; }
.console__hint { font-size: 0.8125rem; color: var(--sage); text-align: center; }
.orb-wrap { position: relative; display: grid; place-items: center; width: 168px; aspect-ratio: 1; margin: 6px 0 2px; }
.orb-wrap::before, .orb-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(46, 230, 166, 0.5); animation: ripple 3.2s var(--e-quint) infinite; }
.orb-wrap::after { animation-delay: 1.6s; }
.orb {
  position: relative;
  width: 74%; aspect-ratio: 1;
  display: grid; place-items: center; align-content: center; gap: 6px;
  border: 0; border-radius: 50%;
  cursor: pointer;
  color: var(--ink-900);
  font: 600 0.9375rem/1.2 var(--font-sans);
  background: radial-gradient(circle at 35% 30%, #C9FFEA 0%, var(--mint-400) 55%, #0FA873 100%);
  box-shadow: 0 0 0 8px rgba(46, 230, 166, 0.16), 0 0 50px 8px rgba(46, 230, 166, 0.35), inset 0 -10px 30px rgba(0, 70, 45, 0.3);
  transition: transform var(--dur-base) var(--e-quint);
}
.orb svg { width: 28px; height: 28px; }
.orb:hover { transform: scale(1.04); }
.orb:focus-visible { outline-color: var(--lime-300); outline-offset: 8px; border-radius: 50%; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 36px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--mint-400); transform: scaleY(0.12); animation: wave-idle 2.2s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-duration: 1.7s; animation-delay: -.4s; }
.wave i:nth-child(3n) { animation-duration: 2.6s; animation-delay: -1.1s; background: var(--lime-300); }
.wave i:nth-child(5n) { animation-duration: 1.3s; animation-delay: -.7s; }
.console.is-live .wave i { animation-name: wave-live; animation-duration: .9s; }
.console.is-live .wave i:nth-child(2n) { animation-duration: .7s; }
.console.is-live .wave i:nth-child(3n) { animation-duration: 1.15s; }
#voice-demo { min-height: 1px; }

/* Built for Miami panel */
.card--miami { gap: 20px; padding: 32px; }
.card--miami h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }
.miami-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.mtile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 24px 18px 22px; border-radius: 28px; text-align: center; background: linear-gradient(180deg, var(--white) 0%, var(--mist-100) 100%); box-shadow: var(--bevel-lg), 0 10px 26px -18px rgba(6, 36, 32, 0.35); }
.mtile__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--ink-600) 0%, var(--ink-900) 100%); color: var(--mint-400); font: 600 0.8125rem/1 var(--font-mono); box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.15), 0 10px 20px -10px rgba(6, 36, 32, 0.6); }
.mtile__icon svg { width: 26px; height: 26px; }
.mtile strong { font-size: 1rem; font-weight: 600; }
.mtile small { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.4; }
.mtile a { color: var(--color-text); }

/* ---------- 11. 004 Timeline ---------- */
.timeline { --p: 0; position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; gap: 16px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 24px; bottom: 24px; left: 27px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--color-border-strong); }
.timeline::after { background: linear-gradient(180deg, var(--mint-400), var(--lime-300)); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; align-items: center; }
.step__icon { position: relative; z-index: 1; grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ink-900); color: var(--mint-400); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15), 0 10px 22px -12px rgba(6, 36, 32, 0.7); }
.step__icon svg { width: 24px; height: 24px; }
.step__num { grid-column: 2; font: 500 0.75rem/1 var(--font-mono); color: var(--color-text-muted); }
.step__body { grid-column: 2; display: grid; gap: 6px; padding: 20px 22px; border-radius: 24px; background: var(--white); box-shadow: var(--bevel), 0 10px 26px -20px rgba(6, 36, 32, 0.4); }
.step__body p { color: var(--color-text-muted); font-size: 1rem; }
@media (min-width: 800px) {
  .timeline::before, .timeline::after { left: 50%; margin-left: -1px; }
  .step { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 0 28px; }
  .step__icon { grid-column: 2; grid-row: 1; }
  .step__num { grid-column: 2; grid-row: 2; justify-self: center; margin-top: 8px; }
  .step__body { grid-column: 3; grid-row: 1 / span 2; }
  .step:nth-child(even) .step__body { grid-column: 1; text-align: right; }
}

/* ---------- 12. 005 Industries carousel ---------- */
.ind { position: relative; }
.ind__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: 16px;
  list-style: none; margin: 0;
  padding: 6px var(--edge) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ind__track::-webkit-scrollbar { display: none; }
.ind__track:focus-visible { outline-offset: -3px; border-radius: 0; }
.ind__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ind-card { flex: 0 0 min(80vw, 380px); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; padding: 10px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--bevel); }
.ind-card picture { display: block; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; }
.ind-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-expo); user-select: none; -webkit-user-drag: none; }
.ind-card:hover img { transform: scale(1.04); }
.ind-card__body { display: grid; align-content: start; gap: 8px; padding: 18px 14px 14px; }
.ind-card__num { font: 500 0.75rem/1 var(--font-mono); color: var(--color-text-muted); }
.ind-card h3 { font-size: 1.5rem; letter-spacing: -0.04em; }
.ind-card p { font-size: 0.9375rem; color: var(--color-text-muted); }
.ind-card--yours { padding: 0; background: var(--glow); }
.ind-card--yours button { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; width: 100%; height: 100%; min-height: 360px; padding: 28px; border: 0; border-radius: inherit; background: transparent; color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.ind-card--yours button:focus-visible { outline-offset: -8px; border-radius: 26px; }
.ind-card--yours svg { width: 48px; height: 48px; margin-bottom: auto; padding: 10px; border-radius: 50%; background: var(--ink-900); color: var(--mint-400); }
.ind-card__yours { font: 500 3rem/1 var(--font-display); letter-spacing: -0.05em; }
.ind-card__cta { color: var(--color-text-muted); font-size: 0.9375rem; }
.ind__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; margin-top: 24px; }
.ind__progress { height: 2px; border-radius: 2px; background: var(--color-border-strong); overflow: hidden; }
.ind__progress span { display: block; width: calc(100% / 6); height: 100%; background: linear-gradient(90deg, var(--mint-400), var(--lime-300)); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--e-expo); }
.ind__count { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-text-muted); }
.ind__count b { font-weight: 500; color: var(--color-text); }
.ind__nav { display: flex; gap: 8px; }
.ind__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink-900); color: var(--paper); cursor: pointer; box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2); transition: opacity var(--dur-fast), background-color var(--dur-fast); }
.ind__btn svg { width: 20px; height: 20px; }
.ind__btn--prev svg { transform: rotate(180deg); }
.ind__btn:hover:not(:disabled) { background: var(--ink-600); }
.ind__btn:disabled { opacity: .3; cursor: default; }
.drag-cursor { position: absolute; left: 0; top: 0; z-index: 5; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--ink-900); color: var(--lime-300); font: 500 0.75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transform: translate(var(--cx, 0), var(--cy, 0)) translate(-50%, -50%) scale(0); transition: transform .35s var(--e-expo); }
.ind.is-cursor .drag-cursor { transform: translate(var(--cx, 0), var(--cy, 0)) translate(-50%, -50%) scale(1); }
.ind.is-cursor .ind__track { cursor: none; }

/* ---------- 13. 006 Pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
@media (min-width: 640px) and (max-width: 999px) { .plans { max-width: 560px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--bevel), 0 18px 40px -30px rgba(6, 36, 32, 0.35); }
.plan--featured { background: linear-gradient(180deg, var(--mint-200) 0%, var(--white) 38%); box-shadow: inset 0 0 0 2px var(--mint-400), 0 24px 50px -28px rgba(46, 230, 166, 0.55); }
.plan__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: var(--ink-900); color: var(--mint-400); }
.plan__icon svg { width: 22px; height: 22px; }
.plan__badge { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--bevel), 0 2px 8px rgba(6, 36, 32, 0.08); font-size: 0.75rem; font-weight: 600; }
.plan__badge svg { width: 14px; height: 14px; color: var(--mint-700); }
.plan h3 { font-size: 1.5rem; letter-spacing: -0.04em; }
.plan__for { margin-top: 6px; min-height: 3em; color: var(--color-text-muted); font-size: 0.9375rem; }
.plan__price { display: flex; align-items: baseline; margin-top: 18px; font-family: var(--font-display); }
.plan__price strong, .plan__cents { font-size: clamp(2.75rem, 2.3rem + 1.4vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.plan__cents { color: var(--mist-300); }
.plan__price span:last-child { margin-left: 6px; font-size: 0.9375rem; color: var(--color-text-muted); }
.plan__setup { margin-top: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; color: var(--color-text-muted); }
.plan__inc { margin-top: 20px; font-size: 0.875rem; font-weight: 600; }
.plan__list { list-style: none; margin: 12px 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.9375rem; color: var(--color-text-muted); }
.plan__list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--mint-700); }
.pricing-note { text-align: center; margin-top: 28px; color: var(--color-text-muted); font-size: 0.9375rem; }

.glow-card { display: grid; justify-items: center; gap: 12px; margin-top: 40px; padding: clamp(36px, 5vw, 56px) var(--gutter); border-radius: var(--radius-2xl); background: var(--glow); background-size: 200% 100%; animation: glow-drift 14s ease-in-out infinite alternate; text-align: center; box-shadow: var(--bevel-lg); }
.glow-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; background: var(--ink-900); color: var(--mint-400); }
.glow-card__icon svg { width: 24px; height: 24px; }
.glow-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.04em; }
.glow-card p { max-width: 36rem; margin-bottom: 8px; color: var(--color-text-muted); }

/* ---------- 14. 007 FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 24px; background: var(--color-surface); box-shadow: var(--bevel); transition: background-color var(--dur-base); }
.faq details[open] { background: var(--white); box-shadow: var(--bevel), 0 16px 34px -24px rgba(6, 36, 32, 0.4); }
.faq summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px 12px 16px; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; border-radius: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); box-shadow: var(--bevel); font: 500 0.75rem/1 var(--font-mono); color: var(--color-text-muted); }
.faq__plus { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--ink-900); transition: transform var(--dur-base) var(--e-quint), background-color var(--dur-base); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--paper); }
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] .faq__plus { transform: rotate(45deg); background: var(--mint-700); }
.faq__body { padding: 0 24px 22px 62px; color: var(--color-text-muted); }
.faq__body a { color: var(--color-text); }
.faq__more { text-align: center; margin-top: 28px; color: var(--color-text-muted); }
.faq__more a { color: var(--color-text); font-weight: 500; }

/* ---------- 15. Contact (dark stage) ---------- */
.contact {
  position: relative;
  overflow: hidden;
  margin: 0 8px;
  padding-block: var(--section-y) calc(var(--section-y) * 0.8);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background:
    radial-gradient(50% 45% at 50% 0%, rgba(46, 230, 166, 0.22) 0%, rgba(46, 230, 166, 0) 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(212, 242, 90, 0.10) 0%, rgba(212, 242, 90, 0) 70%),
    var(--color-bg);
}
.contact h2 em { color: var(--lime-300); }
.contact__card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-2xl) var(--radius-2xl);
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.10) 0%, rgba(244, 251, 248, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(244, 251, 248, 0.25), inset 0 0 40px rgba(244, 251, 248, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

/* ---------- 16. Footer (dark) ---------- */
.footer { overflow: hidden; margin: 0 8px 8px; padding-top: 40px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: var(--ink-950); }
.footer__links { list-style: none; margin: 0; padding: 0 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-bottom: 1px solid var(--color-border); }
.footer__links a { color: var(--color-text); text-decoration: none; font-size: 0.9375rem; }
.footer__links a:hover { color: var(--mint-400); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 22px; font-size: 0.875rem; color: var(--color-text-muted); }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font: 600 1.125rem/1 var(--font-display); color: var(--color-text); letter-spacing: -0.03em; }
.footer__brand svg { width: 26px; height: 26px; }
.footer__mega { margin: clamp(24px, 4vw, 48px) 0 0; font: 600 28vw/0.8 var(--font-display); letter-spacing: -0.07em; text-align: center; white-space: nowrap; user-select: none; }
.footer__mega span { display: block; background: linear-gradient(180deg, var(--mint-400) 0%, rgba(46, 230, 166, 0.55) 45%, rgba(46, 230, 166, 0.04) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* The wordmark wipes up out of the page edge (the clip lives on the inner span so the observer still sees the <p>) */
.footer__mega.reveal { opacity: 1; transform: none; }
.footer__mega.reveal span { transform: translateY(0.12em); clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--e-expo), transform 1.3s var(--e-expo); }
.footer__mega.reveal.is-visible span { transform: none; clip-path: inset(-0.1em 0 0 0); }

/* ---------- 17. Forms (modal + contact) ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 520px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .req { color: var(--color-accent-text); }
.field input, .field select { width: 100%; min-height: 50px; padding: 0.75rem 1rem; font: 400 1rem/1.4 var(--font-sans); color: var(--color-text); background: var(--color-surface); border: 1.5px solid var(--color-border-strong); border-radius: 16px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field input::placeholder { color: var(--color-text-muted); opacity: .8; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem; }
.stage-dark .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A7C9BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.stage-dark .field select option { background: var(--ink-800); color: var(--paper); }
.field input:focus, .field select:focus { outline: none; border-color: var(--color-accent-text); box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.28); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--color-error); }
.field__hint { font-size: 0.8125rem; color: var(--color-text-muted); }
.field__error { min-height: 1.2em; font-size: 0.875rem; color: var(--color-error); }
.field__error:empty { min-height: 0; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); font-size: 0.875rem; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mint-700); cursor: pointer; }
.stage-dark .consent input { accent-color: var(--mint-400); }
.consent label { cursor: pointer; }
.consent--invalid { border-color: var(--color-error); }
.form__legal { font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; }
.form__legal a { color: var(--color-text); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(127, 127, 127, 0.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
.form-success { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px 0 8px; }
.form-success[hidden] { display: none; }
.form-success p { color: var(--color-text-muted); }
.icon-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint-400); color: var(--ink-900); }
.icon-badge svg { width: 30px; height: 30px; }

/* Modal */
.modal { width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 32px; background: var(--white); color: var(--color-text); box-shadow: 0 40px 100px -20px rgba(3, 26, 23, 0.55); overflow: auto; }
.modal::backdrop { background: rgba(3, 26, 23, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .4s var(--e-quint); }
.modal__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 12px; background: var(--white); }
.modal__header h2 { font-size: 1.875rem; letter-spacing: -0.04em; margin-bottom: 4px; }
.modal__header p { color: var(--color-text-muted); font-size: 0.9375rem; }
.modal__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--color-surface); color: var(--color-text); cursor: pointer; box-shadow: var(--bevel); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { padding: 8px 28px 28px; }

/* ---------- 18. Motion ---------- */
@keyframes au-rise { from { translate: 0 var(--rise); } to { translate: 0 0; } }
@keyframes au-soft { from { translate: 0 var(--rise, .55em); opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes au-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes au-ring { from { stroke-dasharray: 0 200; } to { stroke-dasharray: 122 200; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes bar { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.4); } }
@keyframes dash { to { background-position: 20px 0; } }
@keyframes glow-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes ripple { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes wave-idle { 0%, 100% { transform: scaleY(.12); } 50% { transform: scaleY(.32); } }
@keyframes wave-live { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Hero entrance (html.is-entering is set in <head>; plays once fonts are ready) */
html.is-entering { --au-state: paused; }
html.is-entering.is-playing { --au-state: running; }
html.is-entering .hl__track { --rise: 1.1em; animation: au-rise 1.1s var(--e-expo) both; animation-play-state: var(--au-state); }
html.is-entering .hl__line:nth-child(2) .hl__track { animation-delay: .1s; }
html.is-entering :is(.hero__kicker, .hero__sub, .hero__ctas, .trust-line, .nav__pill) { --rise: 18px; animation: au-soft .9s var(--e-quint) both; animation-play-state: var(--au-state); }
html.is-entering .hero__kicker { animation-delay: .05s; }
html.is-entering .hero__sub { animation-delay: .45s; }
html.is-entering .hero__ctas { animation-delay: .58s; }
html.is-entering .trust-line { animation-delay: .7s; }
html.is-entering .nav__pill { animation-delay: .8s; }
html.is-entering .hero__blob { animation: au-on 1.6s ease-out .1s both; animation-play-state: var(--au-state); }
html.is-entering :is(.logo__mark .lm-2, .logo__mark .lm-3) { animation: au-on .14s ease-out both; animation-play-state: var(--au-state); }
html.is-entering .logo__mark .lm-1 { animation: au-ring .8s var(--e-expo) .62s both; animation-play-state: var(--au-state); }
html.is-entering .logo__mark .lm-2 { animation-delay: .9s; }
html.is-entering .logo__mark .lm-3 { animation-delay: 1.1s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--e-quint), transform 1.05s var(--e-expo); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .footer__mega span { opacity: 1; transform: none; clip-path: none; }
.no-js .statement .w { opacity: 1; }

@media (hover: none) {
  .btn:hover svg, .orb:hover, .ind-card:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .footer__mega.reveal span { opacity: 1; transform: none; clip-path: none; }
  .statement .w { opacity: 1; }
  .timeline { --p: 1; }
}
