/* =========================================================
   pod. — landing page
   Aesthetic: bunq-kit dark editorial — pure-black canvas, charcoal cards,
   bunq orange as the brand accent + CTA, bunq green for savings/success.
   Original cream/ink/coral CSS variables retained as semantic tokens but
   redefined so every section that already references them inverts cleanly.
   ========================================================= */

:root {
  /* surface & ink — INVERTED for the dark canvas. The variable names
     ("cream" = canvas, "ink" = text) keep their semantic meaning even though
     the actual values flipped. */
  --cream:        #0A0A0A;   /* pure-black canvas */
  --cream-2:      #161616;   /* elevated card surface */
  --cream-deep:   #1F1F1F;   /* deeper card / section break */
  --ink:          #F4F4F4;   /* primary text on dark */
  --ink-2:        #C8C8C8;   /* secondary text */
  --ink-3:        #8C8C8C;   /* tertiary / muted */
  --ink-soft:     #F4F4F4cc;
  --rule:         #F4F4F422; /* light hairline on dark */
  --rule-soft:    #F4F4F412;

  /* accents — bunq orange as the brand CTA, bunq green as the savings
     accent. The old "coral" tokens are re-pointed at orange so existing
     selectors (the pip on .kicker, btn--primary hover, marquee dots, etc.)
     pick up the brand color without per-rule edits. */
  --coral:        #FF7A1A;   /* bunq orange — primary accent */
  --coral-hi:     #FF9A4A;   /* lighter orange highlight */
  --coral-deep:   #E66200;   /* pressed / deep orange */
  --ochre:        #E6B23A;   /* warning amber (kept) */
  --moss:         #1AC97F;   /* bunq green — savings/success */
  --plum:         #8B5BC9;   /* decorative — agent disc */
  --brick:        #E05A4D;   /* danger */
  --slate:        #6E6E6E;

  /* typography */
  --f-display:    "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body:       "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:       "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* type scale */
  --t-display:    clamp(3.4rem, 7.8vw, 7.2rem);
  --t-h1:         clamp(2.6rem, 5.4vw, 4.6rem);
  --t-h2:         clamp(2rem, 3.8vw, 3.2rem);
  --t-h3:         clamp(1.15rem, 1.6vw, 1.45rem);
  --t-lede:       clamp(1.12rem, 1.3vw, 1.32rem);
  --t-body:       1rem;
  --t-small:      0.82rem;
  --t-micro:      0.72rem;

  /* layout */
  --gutter:       clamp(20px, 3.6vw, 56px);
  --content-max:  1280px;

  /* motion */
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);

  /* hero fill */
  --pot-fill:     0.35;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv02", "kern";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--coral); color: var(--cream); }

code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--cream-2);
  padding: 0 0.4em;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

em { font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 1; }

u {
  text-decoration: none;
  background-image: linear-gradient(transparent 68%, var(--coral) 68%, var(--coral) 85%, transparent 85%);
  background-size: 100% 100%;
}


/* --------- Grain overlay --------- */
/* Multiply on near-black is invisible — switch to lighten/screen so the
   noise reads as a faint dust haze on the dark canvas. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
  mix-blend-mode: screen;
}


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
/* Official pod. logo asset — 1536×1024 viewBox cropped tight to the rounded
   rainbow card. Sized small in the nav, larger in the footer
   (.foot-logo override). The soft shadow lifts the card off the dark canvas. */
.wordmark-logo {
  height: 44px;
  width: auto;
  display: block;
  user-select: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .wordmark-logo { height: 36px; }
}
/* Legacy .wordmark-type span retained for any inline-text uses; in the nav
   the image replaces it. */
.wordmark-type {
  font-family: var(--f-body);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--coral);
}
.wordmark-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  align-self: center;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s var(--ease),
              color .2s var(--ease),
              border-color .2s var(--ease),
              transform .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr {
  transition: transform .3s var(--ease);
  display: inline-block;
}
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--primary {
  background: var(--coral);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--coral-deep);
  color: var(--cream);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  background: var(--cream-2);
  color: var(--ink);
  border-color: var(--rule);
}
.btn--inline {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--coral);
  color: var(--cream);
}
.btn--inline:hover { background: var(--coral-deep); }

.btn--big {
  font-size: 16px;
  padding: 18px 30px;
  font-weight: 500;
}
/* "cream" CTA — sits on a dark backdrop and reads as a light-pill secondary
   action. Was a light button on a dark section; on the new dark canvas we
   keep that visual intent (light pill), with hover sliding to bunq orange. */
.btn--cream {
  background: var(--ink);
  color: var(--cream);
}
.btn--cream:hover { background: var(--coral); color: var(--cream); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--cream);
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 52px var(--gutter) 0;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.issue-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp .6s var(--ease) .05s forwards;
}
.issue-tag__no {
  font-family: var(--f-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink);
}
.issue-tag__no sup {
  font-size: 10px;
  top: -6px;
  position: relative;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: 60px;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s var(--ease) forwards;
}
.hero-copy .kicker          { animation-delay: .15s; }
.hero-copy .hero-title      { animation-delay: 0s; opacity: 1; transform: none; }
.hero-copy .lede            { animation-delay: .55s; }
.hero-copy .cta-row         { animation-delay: .72s; }
.hero-copy .pitch-strip     { animation-delay: .92s; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 18px;
}
.kicker__pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 340;
  font-size: var(--t-display);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineReveal 1s var(--ease) var(--d, 0s) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--coral);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  padding-right: .06em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 34px;
}
.lede em {
  color: var(--ink);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.cta-row--big {
  gap: 18px;
  margin-bottom: 28px;
}

.pitch-strip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream-2) 55%, transparent);
  flex-wrap: wrap;
}
.pitch-strip .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.pitch-strip .chip b {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pitch-strip .chip__sub {
  opacity: 0.8;
}
.pitch-strip .chip__rule {
  width: 1px;
  height: 18px;
  background: var(--rule);
}

/* --------- Hero Pot --------- */
.hero-pot-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
  animation: fadeUp 1.2s var(--ease) .2s both;
}

.pot-svg {
  width: 100%;
  height: 100%;
  /* brand-tinted glow on the dark canvas — orange halo around the bowl */
  filter: drop-shadow(0 30px 60px rgba(255, 122, 26, 0.25))
          drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

/* the liquid group — position controlled via CSS var --pot-fill.
   The hero illustration is now a piggy bank: liquid fills the rounded body
   from y=373 (empty, trotters-up) to y=143 (full, ears-deep). */
.liquid-group {
  /* when fill=1, translateY = 143 (liquid at top of body)
     when fill=0, translateY = 373 (liquid at bottom of body) */
  transform: translateY(calc(143px + (1 - var(--pot-fill)) * 230px));
  transition: transform 1.8s var(--ease-out);
}

.liquid-hi {
  animation: bobHi 4.2s ease-in-out infinite;
}
.bubble {
  animation: bubbleUp 6s ease-in-out infinite;
}
.bubble--1 { animation-delay: 0.5s; }
.bubble--2 { animation-delay: 2.1s; }
.bubble--3 { animation-delay: 3.8s; }
.bubble--4 { animation-delay: 1.3s; }

@keyframes bobHi {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50%      { transform: translateX(4px); opacity: .7; }
}
@keyframes bubbleUp {
  0%   { transform: translateY(30px); opacity: 0; }
  20%  { opacity: .6; }
  80%  { opacity: .4; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.hero-pot-label {
  position: absolute;
  top: 4%;
  left: 4%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  z-index: 2;
}
.hero-pot-label .pot-label__mid {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  margin: 2px 0;
}
.hero-pot-label .pot-label__mid b {
  color: var(--coral);
  font-weight: 600;
}
.hero-pot-label .pot-label__bot {
  color: var(--moss);
}

.deposit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: chipFloat 5s ease-in-out infinite;
}
.deposit-chip .chip-ava {
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 500;
}
.deposit-chip .chip-amt { color: var(--moss); font-weight: 600; }
.deposit-chip--1 { top: 18%; right: 0%; animation-delay: 0s; }
.deposit-chip--2 { top: 52%; left: -6%; animation-delay: 1.5s; }
.deposit-chip--3 { top: 72%; right: -4%; animation-delay: 3s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* --------- Marquee --------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--cream-2);
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--cream-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--cream-2), transparent); }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 44s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.marquee__track .dot {
  color: var(--coral);
  font-family: var(--f-display);
  font-size: 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   Shared section scaffolding
   ========================================================= */
section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  position: relative;
}

.section-head {
  max-width: var(--content-max);
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.section-head--center {
  text-align: center;
}

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.section-eyebrow--light { color: color-mix(in srgb, var(--ink) 70%, transparent); }

.section-title {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
}
.section-title em {
  color: var(--coral);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}
.section-title--dark { color: var(--ink); }

.section-lede {
  font-size: var(--t-lede);
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.55;
  margin: 0;
}
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }
.section-lede--dark { color: color-mix(in srgb, var(--ink) 70%, transparent); }

.body-lg {
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 52ch;
}
.body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 18px;
  max-width: 52ch;
}


/* =========================================================
   PROBLEM
   ========================================================= */
.problem {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.problem-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.problem-number {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-right: 24px;
}
.problem-number .huge-num {
  font-family: var(--f-display);
  font-size: clamp(12rem, 24vw, 22rem);
  font-weight: 280;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.problem-number .percent {
  font-family: var(--f-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--coral);
  font-weight: 350;
  line-height: 0.78;
  align-self: flex-end;
  padding-bottom: 0.15em;
  padding-left: 0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.problem-number .huge-num__sub {
  position: absolute;
  bottom: -18px;
  left: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pull-quote {
  max-width: var(--content-max);
  margin: 60px auto 0;
  padding: 54px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.34;
  color: var(--ink-2);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}
.pull-quote em { color: var(--coral); }
.pull-quote .quote-open {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 24px;
  font-family: var(--f-display);
  font-size: 52px;
  color: var(--coral);
  line-height: 1;
  font-style: italic;
}


/* =========================================================
   THREE PLANES
   ========================================================= */
.planes {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
}

.planes-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.plane {
  padding: 48px 36px 44px;
  position: relative;
  background: var(--cream-2);
  transition: background .35s var(--ease);
}
.plane + .plane { border-left: 1px solid var(--rule); }
.plane:hover { background: var(--cream-deep); }

.plane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.plane-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--coral);
  text-transform: lowercase;
}

.plane-name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin: 18px 0 20px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}

.plane-ill {
  width: 100%;
  max-width: 160px;
  height: auto;
  color: var(--ink-2);
  margin: 0 0 22px;
  opacity: 0.85;
}

.plane-body {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.plane-body b { color: var(--ink); font-weight: 500; }

.plane-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.plane-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.plane-meta li span { color: var(--ink-3); text-transform: uppercase; }
.plane-meta li b { color: var(--ink); font-weight: 500; }


/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.how .section-head {
  max-width: 900px;
}

.how-list {
  max-width: var(--content-max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.how-step {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background .3s var(--ease);
}
.how-step:last-child { border-bottom: 1px solid var(--rule); }
.how-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--coral) 6%, transparent), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.how-step:hover::before { opacity: 1; }

.how-num {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--coral);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.how-body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 10px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.how-body p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
}

.how-agent {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: start;
  padding-top: 12px;
  text-align: right;
}


/* =========================================================
   AGENTS
   ========================================================= */
.agents {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
}

.agents-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20,18,16,0.08);
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--agent-tint);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.agent-card:hover::before { opacity: 0.3; }
.agent-card > * { position: relative; z-index: 1; }

.agent-band {
  height: 8px;
  background: var(--agent);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 12px;
  position: relative;
}
.agent-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--agent);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent);
}
.agent-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}
.agent-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--agent);
  margin: 4px 0 0;
  font-weight: 500;
}
.agent-stamp {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.agent-bio {
  padding: 8px 22px 20px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.agent-sample {
  margin: 0;
  padding: 20px 22px 22px;
  border-top: 1px dashed var(--rule);
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  background: color-mix(in srgb, var(--agent-tint) 35%, transparent);
  position: relative;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  font-weight: 400;
}
.agent-sample::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 22px;
  height: 1px;
  background: var(--agent);
}
.agent-sample b { color: var(--agent); font-weight: 600; }

.agents-foot {
  max-width: var(--content-max);
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-3);
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
.agents-foot em { color: var(--ink); }


/* =========================================================
   LEDGER — was the dark section in a light-canvas site. On the new
   bunq-kit dark canvas it stays a "deepest section" with brand-tinted
   atmosphere. We use cream (now near-black) for the bg + ink (now light)
   for the default text so the --dark modifiers keep working semantically.
   ========================================================= */
.ledger {
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--coral) 18%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--moss) 12%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

.ledger-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

.ledger-head {
  margin-bottom: 48px;
  max-width: 780px;
}

.tape-card {
  background: #0A0907;
  border: 1px solid #ffffff12;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.tape-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #ffffff08;
  border-bottom: 1px solid #ffffff12;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.tape-head__right {
  margin-left: auto;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.tape-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1AC97F;
  box-shadow: 0 0 0 3px color-mix(in srgb, #1AC97F 35%, transparent);
}
.tape-dot--live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, #1AC97F 35%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, #1AC97F 0%, transparent); }
}

.tape {
  height: 420px;
  overflow: hidden;
  position: relative;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.tape-row {
  display: grid;
  grid-template-columns: 90px 190px 110px 1fr 80px;
  gap: 18px;
  padding: 6px 0;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  opacity: 0;
  animation: rowIn .6s var(--ease) forwards;
  white-space: nowrap;
}
.tape-row .time      { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.tape-row .evt       { font-weight: 600; }
.tape-row .actor     { color: color-mix(in srgb, var(--ink) 90%, transparent); }
.tape-row .msg       { color: color-mix(in srgb, var(--ink) 60%, transparent); overflow: hidden; text-overflow: ellipsis; }
.tape-row .amt       { text-align: right; font-weight: 500; }
.tape-row .amt--pos  { color: #1AC97F; }
.tape-row .amt--neg  { color: #FF9A4A; }
.tape-row .amt--info { color: color-mix(in srgb, var(--ink) 60%, transparent); }

.tape-row[data-type="contribute.posted"]   .evt { color: #1AC97F; }
.tape-row[data-type="contribute.staged"]   .evt { color: #E6B23A; }
.tape-row[data-type="reminder.sent"]       .evt { color: #FF9A4A; }
.tape-row[data-type="mediator.verdict"]    .evt { color: #B49CE0; }
.tape-row[data-type="emergency.executed"]  .evt { color: #E05A4D; }
.tape-row[data-type="payout.posted"]       .evt { color: #FF7A1A; font-weight: 700; }
.tape-row[data-type="charter.signed"]      .evt { color: #E6B23A; }
.tape-row[data-type="passport.issued"]     .evt { color: #1AC97F; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ledger-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  padding: 28px 24px;
  border: 1px solid #ffffff14;
  border-radius: 4px;
  background: #ffffff05;
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 350;
  font-style: italic;
  color: var(--coral-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  margin-top: 14px;
  display: block;
  line-height: 1.5;
}


/* =========================================================
   SAFETY
   ========================================================= */
.safety {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.safety-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
}

.safety-copy {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.safety-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.safety-no {
  font-family: var(--f-display);
  font-size: 28px;
  font-style: italic;
  color: var(--coral);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.safety-list h4 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.safety-list p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 58ch;
}


/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--coral);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 100%, var(--coral-deep) 0%, transparent 55%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 12px 0 36px;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
}
.cta-title em {
  font-style: italic;
  color: var(--cream);
  opacity: 0.88;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.cta-fine {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  margin: 18px 0 0;
}
.cta-fine code {
  background: rgba(0,0,0,0.15);
  color: var(--cream);
  border-color: rgba(255,255,255,0.15);
}

.cta-seal {
  display: flex;
  justify-content: center;
  align-items: center;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}
.seal-svg {
  width: 100%;
  max-width: 280px;
  animation: sealSpin 48s linear infinite;
}
@keyframes sealSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}


/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--cream-2);
  color: var(--ink);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 36px;
  border-top: 1px solid var(--rule);
}
.foot-top {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
}
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  margin: 0 0 16px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--coral); }

.foot-col--brand .wordmark-type { color: var(--coral); }
.foot-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.foot-tag {
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  margin: 20px 0 0;
  max-width: 30ch;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}

.foot-rule {
  max-width: var(--content-max);
  margin: 48px auto 20px;
  height: 1px;
  background: #ffffff1a;
}

.foot-bot {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.foot-bot__mid {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-style: italic;
  font-family: var(--f-display);
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  font-variation-settings: "SOFT" 80;
}


/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(80%); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pot-wrap { max-width: 420px; justify-self: center; margin-top: 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .problem-number .huge-num { font-size: clamp(9rem, 38vw, 16rem); }
  .problem-number .percent  { font-size: clamp(3.8rem, 14vw, 6rem); }
  .planes-grid { grid-template-columns: 1fr; border: none; }
  .plane + .plane { border-left: none; border-top: 1px solid var(--rule); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step { grid-template-columns: 60px 1fr; }
  .how-agent { grid-column: 1 / -1; text-align: left; padding-top: 6px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-copy { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-seal { justify-self: center; }
  .seal-svg { max-width: 220px; }
  .ledger-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 12px 18px; }
  .issue-tag { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 24px; }
  .hero { padding-top: 32px; }
  .pitch-strip { padding: 12px 16px; gap: 12px; font-size: 12px; }
  .pitch-strip .chip b { font-size: 14px; }
  .pitch-strip .chip__rule { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .tape { font-size: 11px; padding: 10px 14px; }
  .tape-row { grid-template-columns: 72px 120px 80px 1fr 70px; gap: 10px; }
  .ledger-stats { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
  .wordmark-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   VOICE TOUR — floating button + modal
   ========================================================= */
.voice-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(20,18,16,.32);
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease);
}
.voice-btn:hover {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(237,74,44,.45);
}
.voice-btn__icon {
  width: 18px; height: 18px;
  position: relative; z-index: 1;
}
.voice-btn__label {
  position: relative; z-index: 1;
}
.voice-btn__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--coral);
  opacity: 0;
  animation: btnPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulse {
  0%   { opacity: .55; transform: scale(0.95); }
  70%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}
.voice-btn:hover .voice-btn__pulse { animation-duration: 1.6s; }

/* --- Modal --- */
.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.voice-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.voice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.voice-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 4vh auto 0;
  max-height: 92vh;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 60px 120px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.98);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.voice-modal.is-open .voice-modal__panel {
  transform: translateY(0) scale(1);
}

.voice-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-2);
}
.voice-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.voice-modal__title h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--ink);
}
.voice-icon-btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.voice-icon-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.voice-modal__body {
  padding: 28px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* --- Orb --- */
.voice-orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.voice-orb {
  --lvl: 0.05;
  position: relative;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-orb__core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--coral-hi), var(--coral) 55%, var(--coral-deep));
  box-shadow:
    0 0 0 calc(6px + var(--lvl) * 22px) color-mix(in srgb, var(--coral) calc(15% + var(--lvl) * 35%), transparent),
    0 12px 30px rgba(237,74,44,.35);
  transform: scale(calc(1 + var(--lvl) * 0.18));
  transition: transform .12s ease, box-shadow .15s ease;
}
.voice-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--coral) 60%, transparent);
  opacity: 0;
  animation: orbRing 3.6s ease-out infinite;
}
.voice-orb__ring--2 { animation-delay: 1.2s; }
.voice-orb__ring--3 { animation-delay: 2.4s; }
@keyframes orbRing {
  0%   { opacity: 0;   transform: scale(0.6); }
  20%  { opacity: .6; }
  80%  { opacity: 0;   transform: scale(1.2); }
  100% { opacity: 0;   transform: scale(1.2); }
}

.voice-modal[data-state="connecting"] .voice-orb__core { background: var(--ochre); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ochre) 25%, transparent); }
.voice-modal[data-state="connecting"] .voice-orb__ring { border-color: var(--ochre); }
.voice-modal[data-state="error"] .voice-orb__core { background: var(--brick); }
.voice-modal[data-state="speaking"] .voice-orb__ring { animation-duration: 2s; }
.voice-modal[data-state="idle"] .voice-orb__ring,
.voice-modal[data-state="error"] .voice-orb__ring { animation-play-state: paused; opacity: .15; }

.voice-state {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.voice-modal[data-state="error"] .voice-state { color: var(--brick); }
.voice-modal[data-state="connecting"] .voice-state { color: var(--ochre); }
.voice-modal[data-state="speaking"] .voice-state { color: var(--coral-deep); }
.voice-modal[data-state="listening"] .voice-state { color: var(--moss); }

.voice-hint {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-3);
  font-variation-settings: "opsz" 14, "SOFT" 50;
  max-width: 38ch;
  line-height: 1.5;
}
.voice-hint i { color: var(--ink); }

/* --- Transcript --- */
.voice-transcript {
  flex: 1;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px 14px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voice-transcript:empty::before {
  content: "transcript will appear here.";
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vt {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;
}
.vt__role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  padding-top: 2px;
}
.vt--assistant .vt__role { color: var(--coral); }
.vt--user .vt__role { color: var(--moss); }
.vt--system .vt__role { color: var(--brick); }
.vt__text {
  color: var(--ink);
  word-break: break-word;
}

.voice-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--rule);
  background: var(--cream);
}
.voice-action {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.voice-action--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.voice-action--ghost[data-muted="1"] {
  background: var(--ochre);
  color: var(--cream);
  border-color: var(--ochre);
}
.voice-action--end {
  background: var(--brick);
  color: var(--cream);
  border-color: var(--brick);
}
.voice-action--end:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
}

.voice-action--ghost[data-sharing="1"] {
  background: var(--moss);
  color: var(--cream);
  border-color: var(--moss);
}
.voice-action--ghost[data-sharing="1"]:hover {
  background: #14a868;
  border-color: #14a868;
}

/* Screen-share preview — hidden until a track is active */
.voice-share {
  display: none;
  position: relative;
  margin: 0 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #000;
  aspect-ratio: 16 / 10;
}
.voice-modal[data-sharing="1"] .voice-share { display: block; }
.voice-share__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.voice-share__label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: color-mix(in srgb, var(--moss) 90%, transparent);
  padding: 4px 8px;
  border-radius: 999px;
}
.voice-share::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--moss) 60%, transparent);
  border-radius: 10px;
  pointer-events: none;
  animation: shareGlow 2.4s ease-in-out infinite;
}
@keyframes shareGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--moss) 0%, transparent); }
  50%      { box-shadow: inset 0 0 24px 0 color-mix(in srgb, var(--moss) 30%, transparent); }
}

.vt--partial .vt__text {
  opacity: 0.78;
  position: relative;
}
.vt--partial .vt__text::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--coral);
  animation: vtCaret 0.9s step-start infinite;
}
@keyframes vtCaret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

body.voice-locked { overflow: hidden; }

@media (max-width: 640px) {
  .voice-btn__label { display: none; }
  .voice-btn { padding: 14px; }
  .voice-modal__panel { margin: 0; max-height: 100vh; height: 100vh; border-radius: 0; }
  .voice-modal__body { gap: 14px; padding-top: 18px; }
  .voice-orb { width: 110px; height: 110px; }
  .voice-orb__core { width: 50px; height: 50px; }
  .voice-transcript { max-height: none; }
  .voice-modal__foot { flex-wrap: wrap; }
  .voice-action { flex: 1 1 calc(50% - 5px); min-width: 0; }
}
