:root {
  --bg: #fff6ec;
  --bg-2: #fdebd8;
  --ink: #14212b;
  --muted: #5d6870;
  --teal: #0f7c8f;
  --water: #2ba5cf;
  --coral: #ff7a59;
  --coral-ink: #e4552f;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.brand {
  position: fixed;
  top: 22px;
  left: clamp(16px, 4vw, 48px);
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}
.brand-mark { font-size: 22px; color: var(--coral-ink); letter-spacing: 0.02em; }
.brand-name { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- Story ---------- */
.story { position: relative; height: 1100vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(110% 80% at 50% 20%, #fffaf3 0%, var(--bg) 55%, var(--bg-2) 100%);
}
.layers, .layers canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.layers canvas { display: block; }
.goo { filter: url(#goo); }
.water { opacity: 0.9; }
.defs { position: absolute; }

.scene-text {
  --ty: 0px;
  position: absolute;
  top: 50%;
  max-width: min(540px, 40vw);
  opacity: 0;
  transform: translateY(calc(-50% + var(--ty)));
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 2;
}
.scene-text.top { top: 13vh; transform: translateY(var(--ty)); }
.scene-text.left { left: clamp(24px, 7vw, 110px); }
.scene-text.right { right: clamp(24px, 7vw, 110px); text-align: right; }
.scene-text.center {
  left: 50%;
  top: 9vh;
  max-width: 860px;
  width: calc(100% - 32px);
  text-align: center;
  transform: translate(-50%, var(--ty));
}
.scene-text.is-active { pointer-events: auto; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--coral-ink);
}

.lede {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
}
.right .lede, .right .meta { margin-left: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

.meta { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--teal); }

.chips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.right .chips { justify-content: flex-end; }
.chips li {
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 33, 43, 0.06), 0 6px 16px -10px rgba(20, 33, 43, 0.35);
  font-size: 13px;
  font-weight: 500;
}

.assess {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.assess li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 33, 43, 0.1);
}
.assess span { font-size: 11px; font-weight: 700; color: var(--coral-ink); letter-spacing: 0.08em; }

.stats {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 780px;
}
.stats li {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px -16px rgba(20, 33, 43, 0.4);
}
.stats strong { font-size: 17px; font-weight: 700; }
.stats span { font-size: 12px; color: var(--muted); }

.cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 12px 28px -12px rgba(228, 85, 47, 0.8); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 33, 43, 0.15); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(20, 33, 43, 0.35); }

/* progress + scroll pill */
.progress {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.progress-track { width: 64px; height: 2px; background: rgba(255, 255, 255, 0.35); border-radius: 2px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: #fff; }
.progress-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }

.scroll-pill {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(20, 33, 43, 0.45);
  color: var(--ink);
  font: 700 13px var(--sans);
  cursor: pointer;
  transition: opacity .4s ease;
}
.scroll-pill span { display: inline-block; margin-left: 4px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ---------- Mobile ---------- */
@media (max-width: 759px) {
  .scene-text,
  .scene-text.left,
  .scene-text.right,
  .scene-text.top {
    left: 20px;
    right: 20px;
    top: 10vh;
    max-width: none;
    text-align: left;
    transform: translateY(var(--ty));
  }
  .scene-text.center { top: 9vh; left: 50%; right: auto; width: calc(100% - 32px); text-align: center; transform: translate(-50%, var(--ty)); }
  .right .lede, .right .meta { margin-left: 0; }
  .right .chips { justify-content: flex-start; }
  h1, h2 { font-size: clamp(28px, 8vw, 38px); }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .lede { font-size: 14.5px; margin-top: 10px; }
  .chips { gap: 6px; margin-top: 10px; }
  .chips li { font-size: 12px; padding: 5px 10px; }
  .assess { gap: 3px; font-size: 13px; margin-top: 12px; }
  .assess li { padding-bottom: 4px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 16px; gap: 8px; }
  .stats li { padding: 9px; }
  .stats strong { font-size: 15px; }
  .cta { margin-top: 16px; }
  .progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-pill span { animation: none; }
}
