/* ============================================================
   Maru Hub — Homepage
   Design system: dark-first, teal primary, amber accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Dark (default) — lifted, less flat-black */
  --bg:           oklch(0.215 0.018 232);
  --bg-2:         oklch(0.248 0.020 230);
  --surface:      oklch(0.272 0.022 230);
  --surface-2:    oklch(0.312 0.024 230);
  --border:       oklch(0.372 0.026 230);
  --border-soft:  oklch(0.330 0.022 230);
  --text:         oklch(0.978 0.004 220);
  --text-2:       oklch(0.800 0.015 220);
  --text-3:       oklch(0.650 0.016 220);

  --teal:         oklch(0.760 0.118 192);
  --teal-bright:  oklch(0.840 0.130 192);
  --teal-dim:     oklch(0.620 0.090 192);
  --teal-ghost:   oklch(0.760 0.118 192 / 0.12);

  --amber:        oklch(0.815 0.135 78);
  --amber-bright: oklch(0.875 0.140 80);
  --amber-ghost:  oklch(0.815 0.135 78 / 0.14);

  --danger:       oklch(0.640 0.140 28);

  /* type */
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;

  /* spacing rhythm */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 12vh, 160px);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 20px 50px -20px oklch(0 0 0 / 0.6);
  --glow: 0 0 0 1px var(--teal-ghost), 0 18px 50px -18px oklch(0.760 0.118 192 / 0.45);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg:           oklch(0.985 0.004 200);
  --bg-2:         oklch(0.965 0.006 200);
  --surface:      oklch(1 0 0);
  --surface-2:    oklch(0.975 0.005 200);
  --border:       oklch(0.890 0.008 200);
  --border-soft:  oklch(0.925 0.006 200);
  --text:         oklch(0.205 0.012 200);
  --text-2:       oklch(0.430 0.014 200);
  --text-3:       oklch(0.560 0.012 200);

  --teal:         oklch(0.560 0.110 192);
  --teal-bright:  oklch(0.500 0.120 192);
  --teal-dim:     oklch(0.680 0.080 192);
  --teal-ghost:   oklch(0.560 0.110 192 / 0.10);

  --amber:        oklch(0.660 0.135 66);
  --amber-bright: oklch(0.600 0.140 64);
  --amber-ghost:  oklch(0.660 0.135 66 / 0.12);

  --shadow: 0 1px 0 oklch(1 0 0 / 0.6) inset, 0 18px 44px -22px oklch(0.4 0.02 200 / 0.28);
  --glow: 0 0 0 1px var(--teal-ghost), 0 18px 46px -18px oklch(0.560 0.110 192 / 0.32);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal); color: oklch(0.16 0.006 200); }

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

/* ---------- Background ambience ---------- */
.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 800px at 84% -12%, oklch(0.72 0.13 192 / 0.30), transparent 60%),
    radial-gradient(980px 740px at 2% 4%, oklch(0.80 0.135 78 / 0.18), transparent 58%),
    radial-gradient(1150px 1020px at 52% 124%, oklch(0.58 0.17 292 / 0.28), transparent 62%);
}
.aurora {
  position: fixed; inset: -25% -12%; z-index: 0; pointer-events: none;
  filter: blur(58px); opacity: 0.72; will-change: transform;
  background:
    radial-gradient(36% 48% at 18% 26%, oklch(0.72 0.14 196 / 0.62), transparent 70%),
    radial-gradient(32% 42% at 82% 16%, oklch(0.64 0.18 300 / 0.52), transparent 70%),
    radial-gradient(42% 52% at 66% 84%, oklch(0.82 0.14 72 / 0.40), transparent 70%);
  animation: auroraDrift 28s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
.bg-grid {
  position: fixed; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, black, transparent 72%);
          mask-image: radial-gradient(120% 70% at 50% 0%, black, transparent 72%);
  opacity: 0.4;
}
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; } }
[data-theme="light"] .aurora { opacity: 0.4; filter: blur(80px); }
[data-theme="light"] .bg-field {
  background:
    radial-gradient(1100px 780px at 84% -14%, oklch(0.62 0.10 192 / 0.16), transparent 60%),
    radial-gradient(950px 720px at 4% 6%, oklch(0.70 0.13 70 / 0.12), transparent 58%),
    radial-gradient(1100px 1000px at 52% 122%, oklch(0.60 0.14 292 / 0.12), transparent 60%);
}
[data-theme="light"] .noise { opacity: 0.03; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 16px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: block;
  object-fit: cover; object-position: center;
  box-shadow: 0 5px 16px -5px oklch(0.60 0.17 300 / 0.6), 0 0 0 1px var(--border);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.92rem; color: var(--text-2); padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--teal); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .sun { display: none; }
[data-theme="dark"] .moon, :root:not([data-theme="light"]) .moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 0.95rem;
  padding: 12px 20px; border-radius: 11px; transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn-primary {
  background: var(--teal); color: oklch(0.16 0.01 200);
  box-shadow: 0 10px 30px -12px var(--teal), 0 1px 0 oklch(1 0 0 / 0.2) inset;
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 16px 38px -12px var(--teal); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); transform: translateY(-2px); }
.nav .btn { padding: 9px 16px; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 18px 0 16px; }
.section-head p { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.16rem); }

section { position: relative; z-index: 1; }

/* section rhythm — gradient hairline dividers + faint banded tints */
.services::before, .how::before, .insight::before, .cases::before, .faq::before, .cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent); opacity: 0.8;
}
.how { background: linear-gradient(180deg, transparent, oklch(0.70 0.13 198 / 0.04) 45%, transparent); }
.cases { background: radial-gradient(80% 100% at 50% 0%, oklch(0.60 0.17 300 / 0.06), transparent 70%); }

/* ============================================================
   HERO — sticky intro stage (logo → shrink into place)
   ============================================================ */
.hero { position: relative; }
.hero-track { height: 175vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  padding-block: clamp(110px, 16vh, 180px) clamp(40px, 8vh, 90px);
}
html.js #heroCopy { opacity: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 64px); align-items: center; width: 100%;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: -0.035em; margin: 22px 0 0; font-weight: 600;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { color: var(--amber); position: relative; }
.hero h1 .teal { color: var(--teal); }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--text-2); max-width: 500px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 18px; color: var(--text-3); font-size: 0.86rem; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.hero-trust b { color: var(--text-2); font-weight: 500; }
.hero-hint {
  position: absolute; bottom: clamp(22px, 4vh, 44px); left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.hero-hint svg { width: 18px; height: 18px; animation: hintBob 1.8s ease-in-out infinite; }

/* ---------- Hero brand illustration ---------- */
.hero-art {
  position: relative; width: 100%; max-width: 560px; margin-left: auto;
  aspect-ratio: 979 / 745; will-change: transform;
}
.hero-art .glow {
  position: absolute; inset: -14% -10% -6% -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 42% at 52% 46%, oklch(0.70 0.13 198 / 0.45), transparent 70%),
    radial-gradient(40% 40% at 64% 60%, oklch(0.60 0.17 300 / 0.40), transparent 72%),
    radial-gradient(36% 36% at 40% 64%, oklch(0.80 0.13 70 / 0.30), transparent 72%);
  filter: blur(10px);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-art .ring {
  position: absolute; inset: 4%; z-index: 0; border-radius: 50%;
  border: 1px dashed var(--border); opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle, transparent 58%, black 60%);
          mask-image: radial-gradient(circle, transparent 58%, black 60%);
}
.hero-art img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 30px 50px oklch(0 0 0 / 0.45));
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .glow, .hero-art img { animation: none; }
}
[data-theme="light"] .hero-art img { filter: drop-shadow(0 24px 44px oklch(0.4 0.03 280 / 0.28)); }
[data-theme="light"] .hero-art .glow { filter: blur(10px); opacity: 0.8; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-block: var(--section-y); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 320px; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) -10%, var(--teal-ghost), transparent 70%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--glow); }
.card:hover::before { opacity: 1; }
.card .num { font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.1em; }
.card .c-ic {
  width: 46px; height: 46px; border-radius: 13px; margin: 16px 0 18px; display: grid; place-items: center;
  background: var(--teal-ghost); border: 1px solid color-mix(in oklab, var(--teal) 30%, transparent);
  color: var(--teal);
}
.card .c-ic svg { width: 23px; height: 23px; }
.card.premium .c-ic { background: var(--amber-ghost); border-color: color-mix(in oklab, var(--amber) 30%, transparent); color: var(--amber); }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.96rem; flex: 1; }
.card .price {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.card .price .amt { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.card .price .amt .teal { color: var(--teal); }
.card .price .lbl { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.card .tag {
  position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber);
  padding: 4px 9px; border-radius: 7px; background: var(--amber-ghost);
  border: 1px solid color-mix(in oklab, var(--amber) 28%, transparent);
}
.foundation-note {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; justify-content: center;
  font-size: 0.92rem; color: var(--text-2);
}
.foundation-note .pill { font-family: var(--mono); font-size: 0.7rem; color: var(--teal); padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; letter-spacing: 0.08em; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding-block: var(--section-y); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.steps-rail {
  position: absolute; left: 0; right: 0; top: 30px; height: 2px; z-index: 0;
  background: var(--border);
}
.steps-rail .fill {
  position: absolute; inset: 0; right: auto; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  box-shadow: 0 0 12px var(--teal); transition: width 0.9s var(--ease);
}
.step { position: relative; z-index: 1; }
.step .node {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-3);
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem; margin-bottom: 20px;
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.step.active .node { border-color: var(--teal); color: var(--teal); box-shadow: var(--glow); transform: translateY(-2px); }
.step h4 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 0.92rem; }
.step .meta { margin-top: 12px; font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.06em; }

/* ============================================================
   INZICHT / BI dashboard
   ============================================================ */
.insight { padding-block: var(--section-y); }
.insight-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.insight-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 18px 0 16px; }
.insight-copy h2 .teal { color: var(--teal); }
.insight-copy > p { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 480px; }
.insight-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.insight-list li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: 0.98rem; }
.insight-list svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

.dash { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: linear-gradient(165deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); background: color-mix(in oklab, var(--surface-2) 70%, transparent); }
.dash-bar .url { margin-left: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-2); padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-soft); display: inline-flex; align-items: center; gap: 7px; }
.dash-bar .url::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.dash-body { padding: clamp(18px, 2.5vw, 26px); display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 15px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 6px; }
.kpi .k-l { font-size: 0.74rem; color: var(--text-3); }
.kpi .k-v { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; }
.kpi .k-d { font-family: var(--mono); font-size: 0.68rem; }
.kpi .k-d.up { color: var(--teal); }
.kpi .k-d.down { color: var(--amber); }
.chart { padding: 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-soft); }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.82rem; color: var(--text-2); }
.chart-head .chart-tag { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); padding: 3px 9px; border: 1px solid var(--border-soft); border-radius: 999px; }
.bars { display: flex; align-items: flex-end; gap: clamp(5px, 1vw, 10px); height: 120px; }
.bars span { flex: 1; height: var(--v); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--teal-bright), var(--teal-dim)); opacity: 0.85; transform-origin: bottom; transform: scaleY(0); transition: transform 0.7s var(--ease); }
.bars span.hot { background: linear-gradient(180deg, var(--amber-bright), var(--amber)); opacity: 1; box-shadow: 0 0 18px -2px var(--amber); }
.dash.in .bars span { transform: scaleY(1); }
.dash.in .bars span:nth-child(1) { transition-delay: 0.05s; }
.dash.in .bars span:nth-child(2) { transition-delay: 0.1s; }
.dash.in .bars span:nth-child(3) { transition-delay: 0.15s; }
.dash.in .bars span:nth-child(4) { transition-delay: 0.2s; }
.dash.in .bars span:nth-child(5) { transition-delay: 0.25s; }
.dash.in .bars span:nth-child(6) { transition-delay: 0.3s; }
.dash.in .bars span:nth-child(7) { transition-delay: 0.35s; }
.dash.in .bars span:nth-child(8) { transition-delay: 0.4s; }
.dash.in .bars span:nth-child(9) { transition-delay: 0.45s; }
.dash.in .bars span:nth-child(10) { transition-delay: 0.5s; }
.dash.in .bars span:nth-child(11) { transition-delay: 0.55s; }
.dash.in .bars span:nth-child(12) { transition-delay: 0.6s; }

/* ============================================================
   CASE — scroll-reveal laptop
   ============================================================ */
.cases { padding-bottom: var(--section-y); }
.case-intro { max-width: 660px; margin: 0 auto; text-align: center; padding-top: clamp(64px, 11vh, 130px); }
.case-intro .eyebrow { display: inline-flex; }
.case-intro h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 16px 0 16px; }
.case-intro p { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.14rem); }
.case-intro p b { color: var(--text); font-weight: 600; }
.reveal-stage { height: 280vh; position: relative; }
.reveal-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(22px, 4vh, 48px);
}
html.js .reveal-head { opacity: 0; transform: translateY(16px); }
.reveal-head {
  text-align: center; padding-inline: var(--gut); z-index: 3; pointer-events: none; max-width: 760px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-head .eyebrow { display: inline-flex; }
.reveal-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.6rem); margin: 14px 0 0; }
.reveal-head .teal { color: var(--teal); }

.laptop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.laptop-lid {
  --b: 1;
  width: min(90vw, 1000px); aspect-ratio: 16 / 10; position: relative;
  background: #06070a; padding: calc(13px * var(--b));
  border-radius: calc(6px + 13px * var(--b)) calc(6px + 13px * var(--b)) calc(2px + 4px * var(--b)) calc(2px + 4px * var(--b));
  box-shadow: 0 50px 100px -34px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.laptop-cam { position: absolute; top: calc(5px * var(--b)); left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #23272d; opacity: var(--b); }
.laptop-screen { position: relative; width: 100%; height: 100%; border-radius: calc(2px + 5px * var(--b)); overflow: hidden; background: #000; }
.screen-img { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity 0.12s linear; }
.screen-img.is-active { opacity: 1; }
.screen-img[data-shot="portal"] { background-position: left top; }
.screen-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--b);
  background: linear-gradient(118deg, rgba(255,255,255,0.10) 0%, transparent 26%, transparent 72%, rgba(255,255,255,0.05) 100%);
}
.laptop-base {
  width: 116%; height: clamp(13px, 1.7vw, 21px); margin-top: -1px; transform-origin: top center;
  background: linear-gradient(180deg, #c9cfd7, #8b929b);
  border-radius: 3px 3px 11px 11px; box-shadow: 0 24px 44px -18px rgba(0,0,0,0.7);
  position: relative;
}
.laptop-lip { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13%; height: 5px; background: #757c85; border-radius: 0 0 6px 6px; }

.reveal-hint {
  position: absolute; bottom: clamp(26px, 5vh, 52px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.reveal-hint svg { width: 18px; height: 18px; animation: hintBob 1.8s ease-in-out infinite; }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .reveal-hint svg { animation: none; } }

/* supporting detail after the reveal */
.case-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(16px, 4vh, 44px); }
.case-detail-main h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: 14px; max-width: 520px; }
.case-detail-main p { color: var(--text-2); font-size: 1.02rem; max-width: 520px; margin-bottom: 24px; }
.case-metrics { display: flex; gap: 32px; flex-wrap: wrap; }
.metric .big { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.metric .big .unit { font-size: 0.45em; color: var(--text-2); margin-left: 3px; }
.metric .lbl { font-size: 0.82rem; color: var(--text-3); margin-top: 8px; }

.cv-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-chip { font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); padding: 8px 13px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.cv-chip.done { color: var(--teal); border-color: color-mix(in oklab, var(--teal) 40%, transparent); background: var(--teal-ghost); }
.cv-arrow { color: var(--teal); font-size: 0.9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: var(--section-y); }
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item.open { border-color: var(--teal); box-shadow: var(--glow); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; text-align: left; font-size: 1.06rem; font-weight: 500; color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--teal); }
.faq-ic {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--teal);
  transition: transform 0.35s var(--ease);
}
.faq-item.open .faq-ic { transform: rotate(135deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 24px 22px; margin-top: -2px; color: var(--text-2);
  font-size: 0.98rem; line-height: 1.6; max-width: 64ch;
}

/* ============================================================
   CTA / INTAKE
   ============================================================ */
.cta { padding-block: var(--section-y); }
.cta-card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px);
  background: linear-gradient(155deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 100% 0%, var(--teal-ghost), transparent 60%);
}
.cta-left h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 16px 0 16px; }
.cta-left p { color: var(--text-2); font-size: 1.05rem; max-width: 380px; }
.cta-left .reassure { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.cta-left .reassure li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: 0.95rem; list-style: none; }
.cta-left .reassure svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

.form { position: relative; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }
.field label .req { color: var(--amber); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-ghost);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: 0.76rem; color: var(--danger); opacity: 0; height: 0; transition: opacity 0.2s; }
.field.invalid .err { opacity: 1; height: auto; }

.urgency { display: flex; gap: 8px; }
.urgency input { position: absolute; opacity: 0; pointer-events: none; }
.urgency label {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); font-size: 0.86rem; color: var(--text-2); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.urgency input:checked + label { border-color: var(--teal); color: var(--text); background: var(--teal-ghost); box-shadow: 0 0 0 1px var(--teal); }
.form .submit { margin-top: 6px; width: 100%; justify-content: center; }
.form-success {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; background: var(--surface); border-radius: var(--radius); padding: 30px;
}
.form-success.show { display: flex; animation: pop 0.5s var(--ease); }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-ghost); color: var(--teal);
  display: grid; place-items: center; border: 1px solid var(--teal);
}
.form-success .check svg { width: 28px; height: 28px; }
.form-success h4 { font-size: 1.3rem; }
.form-success p { color: var(--text-2); max-width: 320px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-soft); padding-block: 40px 50px; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .muted { color: var(--text-3); font-size: 0.86rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-2); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

/* ============================================================
   SCROLL ANIMATION PRIMITIVES
   ============================================================ */
/* Hidden states only apply when JS is active (progressive enhancement):
   no-JS, print and PDF export render the visible end-state directly. */
html.js [data-animate] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-animate="fade"] { transform: none; }
html.js [data-animate="scale"] { transform: translateY(20px) scale(0.97); }
html.js [data-animate].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js #heroCopy { opacity: 1 !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-track { height: 175vh; }
  .hero-art { margin-inline: auto; }
  .insight-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .steps-rail { display: none; }
  .case-detail { grid-template-columns: 1fr; gap: 28px; }
  .reveal-stage { height: 220vh; }
  .cta-card { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; }
  .urgency { flex-wrap: wrap; }
  .urgency label { min-width: calc(50% - 4px); }
}
