/* ============================================================
   Velorus Labs — Marketing Site
   Brand colour system v1.0
   ============================================================ */

:root {
  /* Core palette */
  --navy:        #0D1F3C;
  --navy-2:      #112647;   /* slightly lifted navy for layering on dark */
  --teal:        #00BFC8;   /* overridden by tweak */
  --teal-light:  #E0F7F8;
  --ivory:       #F8F9FA;
  --slate-dark:  #1E293B;
  --slate:       #64748B;
  --slate-2:     #475569;
  --amber:       #F59E0B;
  --indigo:      #6366F1;
  --border:      #CBD5E1;
  --near-black:  #111827;

  /* Derived */
  --ink:         var(--navy);
  --bg:          var(--ivory);

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-dur: 700ms;
  --reveal-stagger: 80ms;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Section rhythm ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}
.eyebrow.on-dark { color: #93a4c0; }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--reveal-dur) var(--ease-out),
              transform var(--reveal-dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  border-radius: 999px;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 180ms ease, background 180ms ease,
              border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }

/* Teal pill, navy label */
.btn-teal {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-teal:hover { box-shadow: 0 8px 28px -8px color-mix(in oklab, var(--teal) 70%, transparent); border-color: color-mix(in oklab, var(--teal) 60%, white); }

/* Navy filled */
.btn-navy {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-navy:hover { background: #16294a; }

/* Outline (navy text) */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--navy); }

/* Outline on dark */
.btn-outline-d {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255,255,255,0.22);
}
.btn-outline-d:hover { border-color: var(--teal); }

.btn .arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Reduced helpers
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--navy);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--teal-light) 55%, var(--ivory));
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal) 60%, transparent);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.gradient-text {
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cadenx-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  color: #fff;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
}
.cadenx-badge .spark {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
}
/* glowing pulse for the Cadenx badge in the Cadenx section */
.cadenx-badge-glow {
  position: relative;
  box-shadow: 0 0 0 0 rgba(99,102,241,0.0);
  animation: cadenx-glow 2.6s ease-in-out infinite;
}
.cadenx-badge-glow .spark {
  animation: spark-pulse 2.6s ease-in-out infinite;
}
@keyframes cadenx-glow {
  0%, 100% { box-shadow: 0 0 18px -4px rgba(0,191,200,0.45), 0 0 0 0 rgba(99,102,241,0.30); }
  50%      { box-shadow: 0 0 30px 2px rgba(99,102,241,0.65), 0 0 0 5px rgba(99,102,241,0.10); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .cadenx-badge-glow, .cadenx-badge-glow .spark { animation: none; }
}

/* keep tweaks panel readable */
[data-tweaks-root] { font-family: var(--font-body); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.nav-solid {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 11px; }
.nav-word {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; color: var(--navy);
  transition: color 300ms ease;
}
.nav-solid .nav-word { color: var(--ivory); }
.footer .nav-word { color: var(--ivory); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--slate);
  transition: color 200ms ease; position: relative;
}
.nav-solid .nav-link { color: #aebbcf; }
.nav-link:hover { color: var(--navy); }
.nav-solid .nav-link:hover { color: var(--ivory); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 20px; font-size: 14.5px; }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--navy); padding: 4px;
}
.nav-solid .nav-burger { color: var(--ivory); }

.nav-sheet {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: rgba(13,31,60,0.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 250ms ease;
}
.nav-sheet.open { opacity: 1; pointer-events: auto; }
.nav-sheet-inner {
  background: var(--navy); padding: 22px var(--gutter) 30px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-sheet-link {
  color: var(--ivory); font-size: 18px; font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 40px;
  min-height: calc(100vh - 72px);
  padding-block: clamp(40px, 7vw, 80px);
}
.hero-h1 {
  font-size: clamp(40px, 6vw, 74px); font-weight: 800;
  margin: 22px 0 0; max-width: 16ch;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 21px); color: var(--slate);
  margin: 24px 0 0; max-width: 44ch; line-height: 1.55;
}
.hero-agnostic {
  font-size: 15px; color: var(--teal); font-weight: 500;
  margin: 14px 0 0; max-width: 46ch; line-height: 1.5;
}
.hero-onestop { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.hero-graph { position: relative; align-self: stretch; min-height: 460px; }
.graph-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.graph-wrap canvas { display: block; }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social {
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--ivory) 92%, var(--navy) 8%);
  padding-block: 22px; overflow: hidden;
}
.social-inner { display: flex; align-items: center; gap: 32px; }
.social-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate); flex: 0 0 auto;
}
.social-track-mask {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.social-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 32s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.social-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--navy); white-space: nowrap;
}
.social-suffix { color: var(--slate); font-weight: 500; }
.social-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ============================================================
   PROBLEM
   ============================================================ */
.container-rule { max-width: var(--maxw); margin-inline: auto; }
.problem-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.problem-stmt {
  font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; line-height: 1.12;
  max-width: 18ch;
}
.problem-stmt .hl { color: var(--teal); }
.problem-body p { margin: 0 0 18px; font-size: 17.5px; }
.problem-body p:last-child { margin-bottom: 0; }

/* ============================================================
   FEATURES
   ============================================================ */
.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-title {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-top: 14px;
  max-width: 20ch;
}
.sec-head.center .sec-title { margin-inline: auto; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 28px 32px;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--teal);
  box-shadow: 0 18px 40px -24px rgba(13,31,60,0.35);
}
.feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px;
  background: color-mix(in oklab, var(--teal-light) 60%, var(--ivory));
  color: var(--navy); margin-bottom: 22px;
  border: 1px solid color-mix(in oklab, var(--teal) 30%, var(--border));
}
.feature-card:hover .feature-ico { color: var(--teal); }
.feature-name { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 16px; margin: 0; line-height: 1.55; }

/* ============================================================
   STATS BAR (dark "The Reality" band)
   ============================================================ */
.stats {
  background: var(--navy);
  color: var(--ivory);
  border-block: 1px solid rgba(255,255,255,0.07);
  padding-block: clamp(56px, 8vw, 96px);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 52px);
}
.stat { padding-right: 16px; border-left: 2px solid var(--teal); padding-left: 24px; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px); color: var(--teal); letter-spacing: -0.02em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 16px; font-size: 16px; color: #cdd7e6; max-width: 30ch; line-height: 1.45; }
.stats-source { margin: clamp(30px, 4vw, 44px) 0 0; font-size: 13px; color: #7387a3; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ============================================================
   WHY VELORUS
   ============================================================ */
.section-why { background: color-mix(in oklab, var(--ivory) 94%, var(--navy) 6%); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 920px; margin: 0 auto;
}
.why-col { border-radius: 18px; padding: 32px 32px 36px; border: 1px solid var(--border); background: #fff; }
.why-other { background: color-mix(in oklab, #fff 70%, var(--border) 30%); }
.why-velorus {
  border-color: color-mix(in oklab, var(--teal) 50%, var(--border));
  box-shadow: 0 24px 60px -36px color-mix(in oklab, var(--teal) 60%, transparent);
}
.why-col-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); font-weight: 500;
  padding-bottom: 20px; margin-bottom: 6px; border-bottom: 1px solid var(--border); width: 100%;
}
.why-col-label.on { color: var(--navy); }
.why-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.why-list li { display: flex; gap: 13px; font-size: 16.5px; line-height: 1.45; align-items: flex-start; }
.why-other .why-list li { color: var(--slate); }
.why-velorus .why-list li { color: var(--navy); font-weight: 500; }
.why-mark { flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.why-mark.dash { color: #aab4c2; font-weight: 600; }
.why-mark.check {
  border-radius: 50%; background: color-mix(in oklab, var(--teal) 18%, transparent); color: var(--teal); width: 23px; height: 23px;
}

/* How It Works intro line */
.how-intro { font-size: 17.5px; color: var(--slate); margin: 18px 0 0; max-width: 56ch; line-height: 1.55; }
.sec-head.center .how-intro { margin-inline: auto; }

/* ============================================================
   SCENARIO SHOWCASE (interactive "in practice")
   ============================================================ */
.section-showcase { background: var(--ivory); }
.showcase-disclaimer {
  text-align: center; color: var(--slate); font-size: 13.5px;
  margin: -28px auto 36px; max-width: 52ch;
}
.showcase { max-width: 880px; margin: 0 auto; }
.showcase-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 26px; min-height: 64px; justify-content: center;
}
.showcase-banner-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.showcase-banner-title {
  font-size: clamp(20px, 2.6vw, 27px); font-weight: 600; color: var(--navy);
  animation: scn-title 500ms var(--ease-out) both;
}
@keyframes scn-title { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.showcase-window {
  background: var(--slate-dark);
  border: 1px solid rgba(13,31,60,0.12);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(13,31,60,0.55);
}
.showcase-window .mock-bar { background: rgba(0,0,0,0.22); }
.showcase-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8fa0bb;
}
.showcase-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal) 60%, transparent); animation: pulse-dot 2.2s var(--ease-out) infinite; }

.showcase-body { padding: clamp(22px, 3vw, 34px); min-height: 320px; }
.showcase-card-enter { animation: scn-card 560ms var(--ease-out) both; }
@keyframes scn-card { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }

/* staggered inner items */
.scn-stagger { animation: scn-item 520ms var(--ease-out) both; animation-delay: calc(var(--si, 0) * 80ms + 120ms); }
@keyframes scn-item { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-card-enter, .scn-stagger, .showcase-banner-title { animation: none !important; }
}

/* shared scn text */
.scn { color: #d7deea; }
.scn-row { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.scn-row:last-child { border-bottom: 0; }
.scn-row.col { flex-direction: column; gap: 12px; }
.scn-row.col .scn-k { flex: 0 0 auto; }
.scn-k { flex: 0 0 110px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8fa0bb; padding-top: 2px; }
.scn-v { font-size: 16.5px; color: var(--ivory); font-weight: 500; }
.scn-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.scn-chip { font-size: 13px; color: #cdd7e6; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); padding: 5px 11px; border-radius: 999px; }
.scn-deliv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.scn-deliv li { display: flex; gap: 11px; font-size: 15.5px; color: #cdd7e6; line-height: 1.4; align-items: flex-start; }
.scn-tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: color-mix(in oklab, var(--teal) 22%, transparent); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; }

/* risk card */
.risk-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.risk-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--amber) 22%, transparent); color: var(--amber); }
.risk-head > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.risk-title { font-size: 17px; font-weight: 600; color: var(--ivory); }
.risk-meta { font-family: var(--font-mono); font-size: 11.5px; color: #8fa0bb; letter-spacing: 0.04em; }
.risk-sev { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #1b1205;
  background: var(--amber); padding: 4px 11px; border-radius: 999px; align-self: center; }
.risk-body { font-size: 16px; color: #cdd7e6; line-height: 1.6; margin: 18px 0; }
.risk-body strong { color: var(--ivory); }
.risk-meter { position: relative; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09); overflow: hidden; display: flex; align-items: center; }
.risk-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62%;
  background: linear-gradient(90deg, color-mix(in oklab, var(--amber) 60%, transparent), color-mix(in oklab, var(--amber) 30%, transparent)); }
.risk-meter-label { position: relative; z-index: 2; padding-left: 14px; font-size: 13px; color: var(--ivory); font-weight: 500; }
.risk-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.risk-act { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); color: #cdd7e6; }
.risk-act.primary { background: var(--teal); color: var(--navy); border-color: var(--teal); font-weight: 600; }

/* map card */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.map-head > div { display: flex; flex-direction: column; gap: 3px; }
.map-title { font-size: 18px; font-weight: 600; color: var(--ivory); }
.map-sub { font-size: 13.5px; color: #8fa0bb; }
.map-done { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--teal); background: color-mix(in oklab, var(--teal) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--teal) 40%, transparent); padding: 6px 13px; border-radius: 999px; }
.map-phases { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.map-phases li { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.map-tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; }
.map-pname { flex: 1; font-size: 15.5px; color: var(--ivory); }
.map-pstatus { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.map-handoff { font-size: 14.5px; color: #aebbcf; margin: 16px 0 0; line-height: 1.55; }

/* dot nav */
.showcase-dots { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.showcase-dot { position: relative; width: 44px; height: 6px; border-radius: 999px; cursor: pointer;
  background: var(--border); border: 0; padding: 0; overflow: hidden; transition: background 200ms ease; }
.showcase-dot:hover { background: #b3c0d2; }
.showcase-dot.on { background: color-mix(in oklab, var(--teal) 30%, var(--border)); }
.showcase-dot-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--teal);
  transform-origin: left; transform: scaleX(0); }
.showcase-dot.on .showcase-dot-fill { animation-name: dot-fill; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .showcase-dot.on .showcase-dot-fill { animation: none; transform: scaleX(1); }
}

@media (max-width: 600px) {
  .scn-row { flex-direction: column; gap: 6px; }
  .scn-k { flex-basis: auto; }
  .risk-head { flex-wrap: wrap; }
  .map-head { flex-wrap: wrap; }
}

/* ============================================================
   CADENX
   ============================================================ */
.cadenx { background: var(--navy); color: var(--ivory); overflow: hidden; }
.cadenx-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.cadenx-h2 {
  color: var(--ivory); font-size: clamp(30px, 4vw, 50px); font-weight: 700;
  margin: 24px 0 0; max-width: 14ch;
}
.cadenx-sub {
  color: #aebbcf; font-size: 18px; margin: 22px 0 0; max-width: 46ch; line-height: 1.6;
}
.cadenx-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  color: var(--teal); font-weight: 600; font-size: 16.5px;
  transition: gap 180ms ease;
}
.cadenx-link:hover { gap: 12px; }

/* Cadenx mockup */
.cadenx-mock {
  background: var(--slate-dark); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.18);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8fa0bb; margin-left: 8px;
}
.mock-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 188px; }
.mock-msg { font-size: 15px; line-height: 1.55; max-width: 92%; }
.mock-msg.user {
  align-self: flex-end; background: rgba(255,255,255,0.07);
  color: var(--ivory); padding: 11px 15px; border-radius: 13px 13px 4px 13px;
}
.mock-msg.ai { align-self: flex-start; display: flex; gap: 11px; }
.ai-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; margin-top: 1px;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
}
.ai-text {
  color: #d7deea; background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.22);
  padding: 12px 15px; border-radius: 4px 13px 13px 13px;
}
.typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo);
  display: inline-block; animation: typing 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.mock-suggest {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px 20px;
}
.suggest-chip {
  font-family: var(--font-body); font-size: 13px; color: #aebbcf;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.suggest-chip:hover { border-color: var(--teal); color: var(--ivory); }
.suggest-chip.on {
  border-color: var(--teal); color: var(--navy);
  background: var(--teal); font-weight: 500;
}

/* ============================================================
   METHODOLOGY TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 8px;
}
/* vertical rail behind the nodes */
.timeline-rail, .timeline-fill {
  position: absolute;
  left: 19px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
}
.timeline-rail {
  background: repeating-linear-gradient(
    to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.timeline-fill {
  bottom: auto; height: 0;
  background: var(--teal);
  box-shadow: 0 0 14px -2px var(--teal);
  transition: height 900ms var(--ease-out);
}
.tphase {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: 18px 0;
  align-items: start;
}
.tnode {
  position: relative; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ivory);
  border: 2px solid var(--border);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.tnode-core {
  width: 12px; height: 12px; border-radius: 50%; background: var(--border);
  transition: background 300ms ease;
}
.tphase.live .tnode {
  border-color: var(--teal);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--teal) 16%, transparent);
  animation: node-pulse 2.6s var(--ease-out) infinite;
}
.tphase.live .tnode-core { background: var(--teal); }
@keyframes node-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal) 34%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .tphase.live .tnode { animation: none; }
}

.tphase-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 7px; }
.tphase-step {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate);
}
.tstatus {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; font-family: var(--font-body);
  padding: 4px 11px; border-radius: 999px;
  letter-spacing: 0.01em;
}
.tstatus.on {
  color: var(--navy);
  background: color-mix(in oklab, var(--teal) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--teal) 45%, transparent);
}
.tstatus.on .tstatus-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.tstatus.off {
  color: var(--slate);
  background: color-mix(in oklab, var(--border) 30%, transparent);
  border: 1px solid var(--border);
}
.tphase-name {
  font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; margin: 0 0 6px;
  color: var(--navy);
}
.tphase-desc { font-size: 16px; margin: 0; color: var(--slate); }

.tphase.soon { opacity: 0.62; }
.tphase.soon .tphase-name { color: color-mix(in oklab, var(--navy) 60%, var(--slate)); }
.tphase.soon.reveal.in:hover { opacity: 0.82; transition: opacity 200ms ease; }

.timeline-note {
  margin: 30px 0 0; padding-left: 8px;
  font-size: 16px; color: var(--slate); max-width: 60ch;
}
.timeline-note strong { color: var(--navy); font-weight: 600; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--teal); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-block: clamp(56px, 8vw, 92px); flex-wrap: wrap;
}
.cta-text { max-width: 30ch; }
.cta-h2 { color: var(--navy); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.12; }
.cta-sub { color: color-mix(in oklab, var(--navy) 78%, var(--teal)); font-size: 17px; font-weight: 500; margin: 16px 0 0; }
.cta-btn { flex: 0 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #aebbcf; padding-top: 64px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tag { margin: 16px 0 0; max-width: 34ch; color: #8294b0; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: flex-start; }
.footer-link { color: #aebbcf; font-size: 15px; transition: color 180ms ease; }
.footer-link:hover { color: var(--teal); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 24px 32px; font-size: 13.5px; color: #7387a3; gap: 16px;
}
.footer-social { color: #aebbcf; display: inline-flex; transition: color 180ms ease; }
.footer-social:hover { color: var(--teal); }

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-hero {
  position: relative; background: var(--navy); color: var(--ivory);
  padding-top: 72px; overflow: hidden; min-height: 260px;
  display: flex; align-items: center;
}
.legal-field { position: absolute; inset: 0; z-index: 0; }
.legal-field canvas { display: block; }
.legal-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 10%, transparent 45%, rgba(13,31,60,0.55) 100%);
}
.legal-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(28px, 4vw, 44px); }
.legal-h1 { color: var(--ivory); font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 14px 0 0; letter-spacing: -0.02em; }
.legal-meta { color: var(--teal); font-size: 15px; font-weight: 500; margin: 16px 0 0; font-family: var(--font-mono); letter-spacing: 0.02em; }

.legal-body { background: var(--ivory); }
.legal-col { max-width: 680px; }
.legal-section { margin-bottom: 34px; }
.legal-h2 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.legal-p { font-size: 17px; line-height: 1.65; color: var(--slate); margin: 0 0 12px; }
.legal-p a, .legal-contact a { color: var(--teal); font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--teal) 40%, transparent); }
.legal-p a:hover, .legal-contact a:hover { border-bottom-color: var(--teal); }
.legal-contact { font-size: 16px; color: var(--slate); margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .hero-graph { min-height: 380px; order: 2; margin-top: 8px; }
  .problem-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .cadenx-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .tphase { grid-template-columns: 34px 1fr; gap: 16px; }
  .tnode { width: 34px; height: 34px; }
  .timeline-rail, .timeline-fill { left: 16px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Why Velorus — stack the two comparison cards */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-col { width: 100%; }
  /* Stats bar — stack the three stats, centered, with spacing instead of side borders */
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat {
    border-left: 0; padding-left: 0; padding-right: 0; text-align: center;
    padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .stat-label { margin-inline: auto; }
  /* counter band (About) — drop the vertical dividers, stack */
  .counter-inner { flex-direction: column; gap: 28px; }
  .counter-sep { display: none; }
  /* Built in Canada — let the underlined phrase wrap so it can't force overflow */
  .draw-underline { white-space: normal; }
  .draw-underline::after { display: none; }
}
@media (max-width: 460px) {
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   DARK SUB-PAGES (Cadenx)
   ============================================================ */
.dark-page { background: var(--navy); }
.cxpage { background: var(--navy); color: var(--ivory); overflow-x: hidden; }

.cx-hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}
.cx-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 880px;
  padding-block: clamp(80px, 13vw, 150px);
  display: flex; flex-direction: column; align-items: center;
}
.cx-glow {
  position: absolute; z-index: 1;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: min(680px, 90vw); height: 480px;
  background: radial-gradient(ellipse at center,
    rgba(0,191,200,0.30), rgba(99,102,241,0.22) 38%, transparent 70%);
  filter: blur(20px);
  animation: cx-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cx-glow-pulse {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(0.96); }
  50%      { opacity: 0.62; transform: translateX(-50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .cx-glow { animation: none; opacity: 0.4; } }

.cx-h1 {
  color: var(--ivory);
  font-size: clamp(40px, 6.2vw, 76px); font-weight: 800;
  margin: 26px 0 0; max-width: 16ch;
}
.cx-sub {
  color: #aebbcf; font-size: clamp(18px, 2vw, 21px);
  margin: 24px 0 0; max-width: 52ch; line-height: 1.55;
}
.cx-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

.cx-h2 { color: var(--ivory); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-top: 14px; max-width: 20ch; }
/* ---- Embedded product-overview video (full-bleed, no frame) ---- */
.cx-video-section { padding: clamp(40px, 6vw, 72px) 0 0; }
.eyebrow.cx-video-label { margin: 0 0 20px; text-align: center; color: var(--teal); }
/* true edge-to-edge: break out of any container to full viewport width */
.cx-video-frame {
  position: relative; width: 100vw; left: 50%; margin-left: -50vw;
  aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.cx-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }

.cx-cap { border-top: 1px solid rgba(255,255,255,0.08); }
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.cap {
  background: var(--slate-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 30px 30px 32px;
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(0,191,200,0.45); }
.cap-num { font-family: var(--font-mono); font-size: 26px; font-weight: 600; display: block; margin-bottom: 16px; }
.cap-t { color: var(--ivory); font-size: 22px; font-weight: 600; margin: 0 0 9px; }
.cap-d { color: #aebbcf; font-size: 16px; margin: 0; line-height: 1.6; }

.cx-show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.cx-sub-2 { color: #aebbcf; font-size: 18px; margin: 20px 0 0; max-width: 46ch; line-height: 1.6; }
.cx-signature {
  display: flex; align-items: center; gap: 11px;
  margin: 30px 0 0; font-size: 14.5px; color: #8fa0bb;
}
.grad-chip {
  width: 34px; height: 10px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
}

/* ---- Hero aurora (slow navy→teal drift, behind headline) ---- */
.cx-aurora {
  position: absolute; z-index: 0; inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(40% 55% at 28% 30%, rgba(0,191,200,0.20), transparent 70%),
    radial-gradient(45% 50% at 74% 42%, rgba(20,70,130,0.40), transparent 72%),
    radial-gradient(38% 46% at 52% 68%, rgba(0,150,170,0.16), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
  background-size: 160% 160%;
  animation: cx-aurora-drift 22s ease-in-out infinite alternate;
}
@keyframes cx-aurora-drift {
  0%   { background-position: 0% 30%, 100% 40%, 50% 80%; transform: translateY(0); }
  50%  { background-position: 30% 50%, 70% 20%, 40% 60%; }
  100% { background-position: 60% 20%, 40% 60%, 70% 90%; transform: translateY(-3%); }
}
@media (prefers-reduced-motion: reduce) { .cx-aurora { animation: none; } }

/* ---- Hero badge pulse ring (3s loop) ---- */
.cx-badge-wrap { position: relative; display: inline-flex; }
.cx-badge-ring {
  position: absolute; inset: -2px; border-radius: 999px;
  border: 1.5px solid var(--teal);
  pointer-events: none; opacity: 0;
  animation: cx-badge-ring 3s ease-out infinite;
}
@keyframes cx-badge-ring {
  0%   { opacity: 0.75; transform: scale(0.9); }
  70%  { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .cx-badge-ring { animation: none; } }

.cx-method-sub { color: #aebbcf; font-size: 17.5px; margin: 16px 0 0; max-width: 56ch; line-height: 1.55; }

/* ---- Methodology timeline (dark, scroll-sequential) ---- */
.cx-method { border-top: 1px solid rgba(255,255,255,0.08); }
.cx-tl { position: relative; margin-top: 38px; padding-left: 8px; }
.cx-tl-rail, .cx-tl-fill {
  position: absolute; left: 27px; top: 14px; width: 2px; border-radius: 2px;
}
.cx-tl-rail {
  bottom: 14px;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.18) 0 6px, transparent 6px 12px);
}
.cx-tl-fill {
  height: 0;
  background: var(--teal);
  box-shadow: 0 0 16px -1px var(--teal);
  transition: height 260ms linear;
}
.cx-tl-phase {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 24px;
  padding: 20px 0; align-items: start;
}
.cx-tl-node {
  position: relative; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-2);
  border: 2px solid rgba(255,255,255,0.18);
  transition: border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
}
.cx-tl-node-core {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background 400ms ease, transform 400ms var(--ease-out);
}
/* reached but "coming soon" — subtle activation */
.cx-tl-phase.reached .cx-tl-node { border-color: rgba(255,255,255,0.38); }
.cx-tl-phase.reached .cx-tl-node-core { background: rgba(255,255,255,0.55); }
/* reached + live — full teal */
.cx-tl-phase.live.reached .cx-tl-node {
  border-color: var(--teal);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--teal) 18%, transparent);
  animation: node-pulse 2.6s var(--ease-out) infinite;
}
.cx-tl-phase.live.reached .cx-tl-node-core { background: var(--teal); transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .cx-tl-phase.live.reached .cx-tl-node { animation: none; } }

.cx-tl-content { padding-top: 2px; }
.cx-tl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 7px; }
.cx-tl-step {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8fa0bb;
}
.cx-tl-status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
}
.cx-tl-status.on {
  color: var(--ivory);
  background: color-mix(in oklab, var(--teal) 22%, transparent);
  border: 1px solid color-mix(in oklab, var(--teal) 50%, transparent);
}
.cx-tl-status.on .cx-tl-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cx-tl-status.off {
  color: #8fa0bb;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
.cx-tl-name { color: var(--ivory); font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; margin: 0 0 6px; }
.cx-tl-desc { color: #aebbcf; font-size: 16px; margin: 0; }
.cx-tl-phase.soon { opacity: 0.66; transition: opacity 300ms ease; }
.cx-tl-phase.soon.reached { opacity: 0.82; }
.cx-tl-note { color: #aebbcf; font-size: 16px; margin: 30px 0 0; padding-left: 8px; max-width: 60ch; }
.cx-tl-note strong { color: var(--ivory); font-weight: 600; }

/* ---- The Platform (dark) ---- */
.cx-platform { border-top: 1px solid rgba(255,255,255,0.08); background: var(--navy-2); }
.feature-card.dark {
  background: var(--slate-dark);
  border-color: rgba(255,255,255,0.08);
}
.feature-card.dark:hover { border-color: var(--teal); box-shadow: 0 18px 44px -24px rgba(0,0,0,0.6); }
.feature-card.dark .feature-ico {
  background: rgba(0,191,200,0.10);
  border-color: color-mix(in oklab, var(--teal) 40%, transparent);
  color: var(--teal);
}
.feature-card.dark .feature-name { color: var(--ivory); }
.feature-card.dark .feature-desc { color: #aebbcf; }

/* ---- Ask CadenX chat: message entrance ---- */
.cx-chat-body { min-height: 300px; }
.cx-chat-disclaimer {
  text-align: center; color: #8fa0bb; font-size: 13px;
  margin: 22px auto 0; max-width: 56ch;
}
.cx-msg-in { animation: cx-msg-in 420ms var(--ease-out) both; }
@keyframes cx-msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cx-msg-in { animation: none; } }

@media (max-width: 860px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cx-show-grid { grid-template-columns: 1fr; }
}
/* interactive Phase 1 + slide-in panel */
.cx-tl-interactive {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer;
  border-radius: 14px; transition: background 200ms ease;
}
.cx-tl-interactive:hover { background: rgba(0,191,200,0.06); }
.cx-tl-interactive.active { background: rgba(0,191,200,0.09); }
.cx-tl-explore {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--teal);
  animation: cx-explore-pulse 2.4s var(--ease-out) infinite;
}
@keyframes cx-explore-pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.cx-tl-interactive:hover .cx-tl-explore { opacity: 1; animation: none; }

.cx-panel-scrim {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,12,26,0.55);
  opacity: 0; pointer-events: none; transition: opacity 300ms ease; backdrop-filter: blur(2px);
}
.cx-panel-scrim.open { opacity: 1; pointer-events: auto; }
.cx-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(440px, 92vw); background: var(--slate-dark);
  border-left: 3px solid var(--teal);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.7);
  padding: 32px 30px; overflow-y: auto;
  transform: translateX(100%); transition: transform 300ms ease;
  display: flex; flex-direction: column; gap: 22px;
}
.cx-panel.open { transform: translateX(0); }
.cx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cx-panel-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
}
.cx-panel-close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: #aebbcf; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all 180ms ease;
}
.cx-panel-close:hover { border-color: var(--teal); color: var(--ivory); }
.cx-panel-title { color: var(--ivory); font-size: 24px; font-weight: 700; margin: 0; }
.cx-panel-list { display: flex; flex-direction: column; gap: 18px; }
.cx-panel-feature {
  display: flex; gap: 16px; padding: 18px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.cx-panel-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0,191,200,0.1); border: 1px solid color-mix(in oklab, var(--teal) 40%, transparent);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center;
}
.cx-panel-fname { color: var(--ivory); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.cx-panel-fdesc { color: #aebbcf; font-size: 14.5px; line-height: 1.5; margin: 0; }
@media (prefers-reduced-motion: reduce) { .cx-tl-explore { animation: none; } }

@media (max-width: 768px) {
  .cx-tl-phase { grid-template-columns: 34px 1fr; gap: 18px; }
  .cx-tl-node { width: 34px; height: 34px; }
  .cx-tl-rail, .cx-tl-fill { left: 24px; }
}

/* ============================================================
   PAGE HEROES (About / Contact)
   ============================================================ */
.page-hero {
  padding-top: 72px;
}
.page-hero .container {
  padding-block: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 40px);
}
.page-h1 {
  font-size: clamp(38px, 5.6vw, 66px); font-weight: 800;
  margin: 22px 0 0; max-width: 18ch;
}
.page-lede {
  font-size: clamp(18px, 2vw, 21px); color: var(--slate);
  margin: 24px 0 0; max-width: 56ch; line-height: 1.55;
}

/* ---- About: narrative ---- */
.narrative-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start;
}
.narrative-stmt { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.16; max-width: 20ch; }
.narrative-stmt .hl { color: var(--teal); }
.narrative-body p { margin: 0 0 18px; font-size: 17.5px; }
.narrative-body p:last-child { margin-bottom: 0; }

/* ---- About: principles ---- */
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.principle-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 30px 32px;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease;
}
.principle-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 18px 40px -24px rgba(13,31,60,0.35); }
.principle-idx { font-family: var(--font-mono); font-size: 14px; color: var(--teal); font-weight: 600; }
.principle-t { font-size: 21px; font-weight: 600; margin: 12px 0 9px; }
.principle-d { font-size: 16px; margin: 0; line-height: 1.6; }

/* ---- About: where ---- */
.where-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--navy); border-radius: 20px;
  padding: clamp(34px, 5vw, 56px);
}
.where-card .eyebrow { color: #93a4c0; }
.where-h2 { color: var(--ivory); font-size: clamp(24px, 3vw, 36px); font-weight: 700; max-width: 22ch; }

/* ============================================================
   ABOUT — redesign
   ============================================================ */
/* Hero (dark, animated field) */
.about-hero {
  position: relative; background: var(--navy); color: var(--ivory);
  padding-top: 72px; overflow: hidden;
  min-height: 280px; display: flex; align-items: center;
}
.about-field { position: absolute; inset: 0; z-index: 0; }
.about-field canvas { display: block; }
.about-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 10%, transparent 40%, rgba(13,31,60,0.55) 100%);
}
.about-hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-block: clamp(28px, 4vw, 40px);
}
.about-h1 {
  color: var(--ivory); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800;
  margin: 16px 0 0; max-width: 26ch; letter-spacing: -0.02em;
}
.about-hero-sub {
  color: var(--teal); font-size: clamp(16px, 1.9vw, 20px); font-weight: 500;
  margin: 18px 0 0; font-family: var(--font-display); letter-spacing: -0.01em;
}

/* Team — single horizontal wave row of 4 equal cards */
.section-team { background: var(--ivory); padding-bottom: 40px; }
.section-team .sec-head { margin-bottom: 40px; }   /* cards sit close to the headline */
.team-row {
  display: flex; flex-wrap: nowrap; gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch; padding-top: 0;
  padding-bottom: 180px;   /* reserve the dropped-card offset so they aren't clipped */
}
.team-card {
  flex: 1 1 23%; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--teal);
  border-radius: 14px; padding: 26px 24px; min-height: 188px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
/* wave: 2nd and 4th cards drop 180px below the 1st/3rd */
.team-card.team-down { transform: translateY(180px); }
.team-card:hover { transform: translateY(-4px); }
.team-card.team-down:hover { transform: translateY(176px); }
.team-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.team-meta { display: flex; flex-direction: column; gap: 5px; }
.team-name { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.2; }
.team-role { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0; }
.team-desc {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal); margin: 2px 0 0; line-height: 1.45;
}

/* slide in from the bottom on scroll entry */
.team-card.from-bottom { transform: translateY(40px); }
.team-card.from-bottom.team-down { transform: translateY(220px); }   /* 180 base + 40 entry */
.team-card.from-bottom.in { transform: translateY(0); }
.team-card.from-bottom.team-down.in { transform: translateY(180px); }
.team-card.from-bottom.in:hover { transform: translateY(-4px); }
.team-card.from-bottom.team-down.in:hover { transform: translateY(176px); }
.team-card:hover { box-shadow: 0 18px 40px -24px rgba(13,31,60,0.35); border-left-color: var(--teal); }

/* Principles — dark cards on ivory */
.section-principles { background: var(--ivory); }
.principle-card.dark {
  background: var(--slate-dark); border-color: rgba(255,255,255,0.08);
}
.principle-card.dark:hover { border-color: var(--teal); box-shadow: 0 18px 44px -24px rgba(13,31,60,0.5); }
.principle-card.dark .principle-idx { font-size: 26px; }
.principle-card.dark .principle-t { color: var(--ivory); font-size: 22px; }
.principle-card.dark .principle-d { color: #aebbcf; }

/* Built in Canada band */
.section-team2 { background: var(--ivory); }
.team2-group { margin-top: 44px; }
.team2-group:first-of-type { margin-top: 0; }
.team2-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 0 0 18px;
}
.team2-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 640px; }
.team2-card {
  background: #fff; border-radius: 12px; border-top: 3px solid var(--teal);
  box-shadow: 0 10px 30px -18px rgba(13,31,60,0.25);
  padding: 30px 24px 26px; display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.team2-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px -14px rgba(0,191,200,0.35), 0 0 0 1px rgba(0,191,200,0.28);
}
.team2-name-wrap { position: relative; display: inline-block; }
.team2-name-wrap::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); transform: translateX(-50%); transition: width 250ms ease;
}
.team2-card:hover .team2-name-wrap::after { width: 100%; }
.team2-photo { width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto; margin-bottom: 18px; overflow: hidden; }
.team2-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.team2-photo-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team2-name { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }
.team2-desc { font-size: 14px; color: var(--slate); margin: 8px 0 0; }
@media (max-width: 480px) { .team2-row { grid-template-columns: 1fr; max-width: 320px; } }

.canada-band { background: var(--navy); color: var(--ivory); padding-block: clamp(64px, 9vw, 110px); }
.canada-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.canada-h2 { color: var(--ivory); font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; max-width: 20ch; line-height: 1.12; }
.canada-link {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  color: var(--teal); font-weight: 600; font-size: 17px; transition: gap 180ms ease;
}
.canada-link:hover { gap: 13px; }

/* draw-on underline */
.draw-underline { position: relative; white-space: nowrap; }
.draw-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 4px; border-radius: 4px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.draw-underline.on::after { transform: scaleX(1); }

/* ---- Full-width teal divider that draws L→R ---- */
.draw-divider-wrap { background: var(--ivory); padding-top: clamp(8px, 2vw, 20px); }
.draw-divider {
  display: block; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), color-mix(in oklab, var(--teal) 30%, transparent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1100ms var(--ease-out);
  box-shadow: 0 0 14px -3px var(--teal);
}
.draw-divider.on { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .draw-divider { transform: scaleX(1); } }

/* ---- Highlight sweep on inline words ---- */
.hl-sweep {
  position: relative; color: var(--teal); white-space: nowrap;
  background-image: linear-gradient(color-mix(in oklab, var(--teal) 18%, transparent), color-mix(in oklab, var(--teal) 18%, transparent));
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: left center;
  transition: background-size 850ms var(--ease-out);
  padding: 0 2px; margin: 0 -2px; border-radius: 3px;
}
.hl-sweep.on { background-size: 100% 88%; }
@media (prefers-reduced-motion: reduce) { .hl-sweep { background-size: 100% 88%; } }

/* ---- Navy counter band ---- */
.counter-band { background: var(--navy); color: var(--ivory); padding-block: clamp(48px, 7vw, 84px); }
.counter-inner { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 70px); flex-wrap: wrap; }
.counter-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.counter-num {
  font-family: var(--font-display); font-weight: 800; color: var(--teal);
  font-size: clamp(48px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.counter-label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #aebbcf; margin-top: 12px;
}
.counter-sep { width: 1px; height: 56px; background: rgba(255,255,255,0.14); flex: 0 0 auto; }

/* ---- Parallax glow zone ---- */
.parallax-zone { position: relative; height: 0; overflow: visible; }
.parallax-glow { position: relative; }
.pg-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
  transform: translate(var(--gx, 0), var(--gy, 0));
  transition: transform 120ms linear;
}
.pg-1 { width: 320px; height: 320px; left: 8%; top: -80px;
  background: radial-gradient(circle, color-mix(in oklab, var(--teal) 26%, transparent), transparent 70%); }
.pg-2 { width: 260px; height: 260px; right: 10%; top: -10px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%); }

/* ---- Particle burst transition ---- */
.burst { position: relative; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--ivory); }
.burst-dot {
  position: absolute; width: calc(5px * var(--s, 1)); height: calc(5px * var(--s, 1));
  border-radius: 50%; background: var(--teal); opacity: 0;
}
.burst.on .burst-dot {
  animation: burst-scatter 1100ms var(--ease-out) var(--d, 0ms) both;
}
@keyframes burst-scatter {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  35%  { opacity: 0.9; transform: translate(var(--dx), var(--dy)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 0.25), 0) scale(0.5); }
}
@media (prefers-reduced-motion: reduce) { .burst-dot { display: none; } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
/* ---- Single-column centered layout ---- */
.cf-page { background: var(--ivory); padding-top: 72px; }
.cf-band {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--ivory);
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.cf-circuit { position: absolute; inset: 0; z-index: 0; }
.cf-circuit canvas { display: block; }
.cf-band::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 45%, rgba(13,31,60,0.5) 100%);
}
.cf-band-inner { position: relative; z-index: 2; padding: 56px var(--gutter); }
.cf-h1 { color: var(--ivory); font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
.cf-band-sub { color: var(--teal); font-size: clamp(15px, 1.8vw, 18px); font-weight: 500; margin: 18px 0 0; }

.cf-col {
  max-width: 680px; margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 110px);
}
.cf-subhead {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; color: var(--navy);
  text-align: center; line-height: 1.4; margin: 0 auto; max-width: 30ch;
  font-family: var(--font-display); letter-spacing: -0.01em;
}
.cf-day-one { margin-top: clamp(36px, 5vw, 52px); }
.cf-includes-h { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 18px; }
.cf-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cf-includes li { display: flex; gap: 13px; font-size: 16.5px; color: var(--slate-2); line-height: 1.5; }
.cf-check {
  flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; margin-top: 1px;
  background: color-mix(in oklab, var(--teal) 16%, transparent);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center;
}
.cf-standout {
  margin: 24px 0 0; font-size: 15.5px; font-weight: 600; color: var(--navy);
  border-left: 3px solid var(--teal); padding: 11px 0 11px 16px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--teal) 12%, transparent), transparent);
  border-radius: 0 8px 8px 0;
}

/* form card + lift-on-enter */
.cf-lift { margin-top: clamp(36px, 5vw, 52px); }
.cf-form-stage { position: relative; }
.cf-card {
  position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: 0 18px 50px -40px rgba(13,31,60,0.4);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.cf-lift.in .cf-card { transform: translateY(-4px); box-shadow: 0 30px 70px -45px rgba(13,31,60,0.5); }
.cf-intro-note { font-size: 13.5px; color: var(--slate); margin: 0 0 24px; }

/* faint teal dot-grid flanking the form (atmospheric, no content) */
.cf-dots {
  position: absolute; z-index: 0; top: -8px; bottom: -8px; width: 200px; pointer-events: none;
  background-image: radial-gradient(color-mix(in oklab, var(--teal) 55%, transparent) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
  mask-image: linear-gradient(to right, transparent, #000 55%);
}
.cf-dots-left { right: calc(100% + 40px); -webkit-mask-image: linear-gradient(to left, transparent, #000 55%); mask-image: linear-gradient(to left, transparent, #000 55%); }
.cf-dots-right { left: calc(100% + 40px); }

.cf-waitlist { text-align: center; color: var(--slate); font-size: 14.5px; margin: clamp(36px, 5vw, 52px) auto 0; }

/* hide the flanking dots when there isn't room beside the form */
@media (max-width: 1040px) {
  .cf-dots { display: none; }
}

/* submit + pulsing glow */
.cf-submit-wrap { position: relative; margin-top: 6px; }
.cf-submit-glow {
  position: absolute; inset: -6px; border-radius: 999px; z-index: 0; pointer-events: none;
  background: var(--teal); filter: blur(16px); opacity: 0.35;
  animation: cf-glow 2.8s ease-in-out infinite;
}
@keyframes cf-glow {
  0%, 100% { opacity: 0.22; transform: scale(0.97); }
  50%      { opacity: 0.5; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .cf-submit-glow { animation: none; } }
.cf-submit-wrap .form-submit { position: relative; z-index: 1; width: 100%; justify-content: center; }

/* ---- Searchable select ---- */
.ss { position: relative; width: 100%; }
.ss-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; text-align: left;
}
.ss-trigger.placeholder > span { color: #9aa7ba; }
.ss-caret { color: var(--slate); transition: transform 180ms ease; flex: 0 0 auto; }
.ss.open .ss-caret { transform: rotate(180deg); }
.ss-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 60px -30px rgba(13,31,60,0.45); overflow: hidden;
  animation: ss-in 160ms var(--ease-out) both;
}
@keyframes ss-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ss-search { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--slate); }
.ss-input { flex: 1; border: 0; outline: none; font-family: var(--font-body); font-size: 15px; color: var(--navy); background: transparent; }
.ss-input::placeholder { color: #9aa7ba; }
.ss-list { max-height: 280px; overflow-y: auto; padding: 6px; }
.ss-group + .ss-group { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); margin-top: 4px; padding-top: 4px; }
.ss-group-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); padding: 8px 12px 5px;
}
.ss-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--navy);
}
.ss-opt.active { background: color-mix(in oklab, var(--teal) 12%, transparent); }
.ss-opt.chosen { color: var(--teal); font-weight: 600; }
.ss-opt .arrow, .ss-opt svg { color: var(--teal); flex: 0 0 auto; }
.ss-other { font-weight: 600; }
.ss-empty { padding: 16px 12px; font-size: 14px; color: var(--slate); text-align: center; }

@media (max-width: 860px) {
  .cf-band { min-height: 240px; }
}

/* ============================================================
   CONTACT FORM (shared form primitives)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside-h { font-size: 22px; font-weight: 600; margin: 0 0 22px; }
.includes { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.includes li { display: flex; gap: 13px; font-size: 16px; color: var(--slate-2); line-height: 1.5; }
.inc-check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: color-mix(in oklab, var(--teal) 16%, transparent);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center;
}
.contact-note { font-size: 14.5px; color: var(--slate); border-left: 2px solid var(--teal); padding-left: 14px; margin: 0; }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: 0 30px 70px -50px rgba(13,31,60,0.5);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field-req { color: #EF4D63; font-weight: 700; }
.input {
  font-family: var(--font-body); font-size: 15.5px; color: var(--navy);
  background: var(--ivory); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.input::placeholder { color: #9aa7ba; }
.input:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 18%, transparent);
}
.input.invalid { border-color: #e0556b; }
.input.invalid:focus { box-shadow: 0 0 0 3px rgba(224,85,107,0.16); }
select.input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field-error { font-size: 13px; color: #d6455c; }
.field-hint { font-size: 13px; color: var(--slate); }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-fineprint { font-size: 13px; color: var(--slate); text-align: center; margin: 14px 0 0; }

.form-success { text-align: center; padding: 18px 6px; display: flex; flex-direction: column; align-items: center; }
.success-mark {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 22px;
  background: color-mix(in oklab, var(--teal) 16%, transparent); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  animation: pop-in 500ms var(--ease-out) both;
}
@keyframes pop-in { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-h { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.success-p { font-size: 16.5px; color: var(--slate); margin: 0 0 26px; max-width: 42ch; line-height: 1.6; }
.success-p strong { color: var(--navy); font-weight: 600; }

@media (max-width: 860px) {
  .narrative-grid { grid-template-columns: 1fr; gap: 28px; }
  .principle-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-row { gap: 14px; padding-top: 70px; }
  .team-card { padding: 22px 18px; min-height: 200px; }
}
@media (max-width: 640px) {
  /* a 4-wide row is unusable on phones — stack and neutralise the wave */
  .team-row { flex-wrap: wrap; padding-top: 0; gap: 16px; }
  .team-card { flex: 1 1 100%; min-height: 0; }
  .team-card.team-down,
  .team-card.from-bottom.team-down.in { transform: none; }
  .team-card.from-bottom { transform: translateY(24px); }
  .team-card.from-bottom.in { transform: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
