/* ═══════════════════════════════════════════════════════════════
   CTB Realty — Welcome (scroll-driven mobile narrative)
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Surfaces */
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EEF1F5;
  --card: #FFFFFF;
  --bone: var(--bg);
  --bone-mute: var(--surface);

  /* Text */
  --ink: #0A1628;
  --ink-mute: #1A2940;
  --slate: #5A6578;
  --muted: #94A0B0;

  /* Hairlines */
  --hair: rgba(10,22,40,.07);
  --hair-strong: rgba(10,22,40,.14);

  --white: #FFFFFF;

  /* Accent system */
  --gold: #B89548;
  --gold-soft: #D4B872;
  --gold-glow: rgba(184,149,72,.1);
  --jade: #2D7D6F;
  --terra: #C4674A;
  --plum: #5840E8;

  /* Permanent values (never invert with theme) */
  --fixed-dark: #0A1628;
  --fixed-dark-2: #1A2940;
  --fixed-light: #F5F1E8;

  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', -apple-system, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #07090F;
  --surface: #0E121B;
  --surface-2: #161B28;
  --card: #11151F;
  --bone: var(--bg);
  --bone-mute: var(--surface);
  --white: var(--card);

  --ink: #ECEEF2;
  --ink-mute: #C7CDD8;
  --slate: #8A93A4;
  --muted: #5C6679;

  --hair: rgba(255,255,255,.07);
  --hair-strong: rgba(255,255,255,.14);

  --gold: #D4B872;
  --gold-soft: #E8CE8C;
  --gold-glow: rgba(212,184,114,.12);

  color-scheme: dark;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
::selection { background: var(--gold); color: var(--white); }

/* subtle film-grain overlay for premium texture */
.welcome::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── TOP NAV (welcome only) ── */
.w-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .3s ease;
}
.w-nav.scrolled { border-bottom-color: var(--hair); }

.w-nav-right { display: flex; align-items: center; gap: 8px; }
.w-theme-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair);
  transition: background .2s, border-color .2s, color .2s;
}
.w-theme-btn:hover { background: var(--surface); border-color: var(--hair-strong); }
.w-theme-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
[data-theme="dark"] .w-theme-btn .sun { display: none; }
:root:not([data-theme="dark"]) .w-theme-btn .moon { display: none; }
[data-theme="dark"] .w-theme-btn .moon { display: inline; }
.w-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.w-mark em {
  color: var(--gold);
  font-style: normal;
  font-size: 1.2em;
  line-height: 0;
}
.w-nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), background .2s;
}
.w-nav-cta:hover { background: var(--gold); color: var(--ink); }

/* ── SCENES (shared shell) ── */
.scene {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.05;
}

/* ══ SCENE 1 — HERO ══ */
.hero {
  padding: 0 20px;
  text-align: center;
  background: var(--bone);
  min-height: 100svh;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Offset for fixed nav so content is visually centered in viewport below nav */
  margin-top: -30px;
}

/* Subtle architectural grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* ambient gold + violet orb — larger, richer */
.hero-orb {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle,
    rgba(184,149,72,.20) 0%,
    rgba(184,149,72,.07) 28%,
    rgba(99,91,255,.04) 52%,
    transparent 68%
  );
  filter: blur(24px);
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .85; }
  33%       { transform: translate(-47%, -52%) scale(1.06); opacity: 1; }
  66%       { transform: translate(-52%, -49%) scale(0.96); opacity: .9; }
}

/* Secondary accent orb for depth */
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,91,255,.10) 0%, transparent 65%);
  animation: orbFloat 9s ease-in-out infinite reverse;
}

.hero-eyebrow {
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .8s var(--ease-out) .4s forwards;
}

/* ── CTB. Monogram ── */
.hero-monogram {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(130px, 36vw, 260px);
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-top: 28px;
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
}

/* "CTB" slides up from below */
.hero-ctb {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.1s var(--ease-out) .55s forwards;
}

/* "." bounces in after CTB settles, gold + glow */
.hero-period {
  display: inline-block;
  color: var(--gold);
  font-style: italic;
  opacity: 0;
  transform: translateY(32px) scale(0.4);
  animation: periodReveal .75s cubic-bezier(0.34, 1.56, 0.64, 1) 1.55s forwards;
  position: relative;
}
/* Soft glow behind the period */
.hero-period::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,72,.35) 0%, transparent 70%);
  filter: blur(10px);
  animation: periodGlow 3s ease-in-out 2.3s infinite;
  opacity: 0;
}
@keyframes periodReveal {
  0%   { opacity: 0; transform: translateY(32px) scale(0.4); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.18); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes periodGlow {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.3); }
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-top: 44px;
  max-width: 26ch;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .8s var(--ease-out) 1s forwards;
}
.hero-headline em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 36ch;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .8s var(--ease-out) 1.2s forwards;
}

.hero-agent {
  margin-top: 40px;
  padding: 12px 16px 12px 12px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--hair);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .8s var(--ease-out) 1.5s forwards;
}
.agent-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #6B4E10 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  flex-shrink: 0;
}
.agent-meta { text-align: left; line-height: 1.2; }
.agent-meta-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.agent-meta-role { font-size: 10.5px; color: var(--slate); letter-spacing: .04em; margin-top: 1px; }
.agent-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #15be53;
  box-shadow: 0 0 0 3px rgba(21,190,83,.18);
  margin-left: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;         /* full width so centering is unambiguous */
  display: flex;
  flex-direction: column;
  align-items: center;       /* center content horizontally */
  gap: 6px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 2.4s forwards;
  z-index: 3;
}
.hero-scroll-label {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate);
  animation: scrollPulse 2.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.hero-scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.h-chev {
  width: 20px; height: 9px;
  color: var(--gold);
  animation: chevCascade 2.2s ease-in-out infinite;
}
.h-chev:nth-child(1) { animation-delay: 0s; }
.h-chev:nth-child(2) { animation-delay: .18s; }
.h-chev:nth-child(3) { animation-delay: .36s; }
@keyframes chevCascade {
  0%, 55%, 100% { opacity: .15; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(3px); }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ══ SCENE 2 — PROBLEM (checklist → pipeline) ══ */
.scene-problem {
  background: var(--surface);
  border-top: 1px solid var(--hair);
  min-height: 200svh;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

/* Sticky pin — holds the scene in place while user scrolls through the tall section */
.problem-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  overflow: hidden;
  /* Contains the absolute-positioned .pipeline-preview */
  isolation: isolate;
}

/* Eyebrow fades in on scroll entry */
.problem-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  margin-bottom: 18px;
}
.problem-eyebrow.in { opacity: 1; transform: translateY(0); }

.problem-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: center;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease-out) .1s, transform .7s var(--ease-out) .1s;
}
.problem-quote.in { opacity: 1; transform: translateY(0); }
.problem-quote .strike {
  position: relative;
  color: var(--terra);
  font-style: italic;
  white-space: nowrap;
}
.problem-quote .strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s ease;
}
.problem-quote .strike.struck::after { transform: scaleX(1); }
.problem-quote em { color: var(--gold); font-style: italic; }

/* Swap container — checklist and pipeline-preview occupy identical space */
.problem-swap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: all .55s var(--ease-out);
}
.check.in { opacity: 1; transform: translateY(0); }
.check.done { opacity: .42; }
.check-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--hair-strong);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all .3s;
}
.check.done .check-box {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}
/* text-decoration-color renders through the text — transitions from transparent to terra */
.check-text {
  font-size: 14.5px; color: var(--ink); flex: 1;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color .6s ease;
}
.check.done .check-text { text-decoration-color: var(--terra); }

/* Stagger: each item strikes 300ms after the previous */
.check:nth-child(1) .check-text { transition-delay: 0s; }
.check:nth-child(2) .check-text { transition-delay: .3s; }
.check:nth-child(3) .check-text { transition-delay: .6s; }
.check:nth-child(4) .check-text { transition-delay: .9s; }

/* Pipeline preview — absolutely overlays the checklist within .problem-swap */
.pipeline-preview {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  pointer-events: none;
}
.pipeline-preview.in { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pp-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 14px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
}
.pp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.pp-stage-label {
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.pp-stage-prop { font-size: 13.5px; color: var(--ink); margin-top: 2px; font-weight: 500; }

/* ══ SCENE 3 — PIPELINE IN MOTION (scroll-tied) ══ */
.scene-pipeline {
  background: var(--bone);
  min-height: 200svh;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}
.pipeline-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow: hidden;
}

.pipeline-header { text-align: center; margin-bottom: 36px; max-width: 460px; }
.pipeline-title {
  font-family: var(--serif);
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 14px;
  text-wrap: balance;
}
.pipeline-title em { font-style: italic; color: var(--gold); }

.pipeline-track {
  width: 100%;
  max-width: 440px;
  position: relative;
  margin-bottom: 32px;
}
.pipeline-track-line {
  position: absolute;
  left: 6%; right: 6%;
  top: 7px;
  height: 1.5px;
  background: var(--hair-strong);
}
.pipeline-track-line-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width .4s var(--ease-out);
}
.pipeline-stages {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.pipe-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; z-index: 2;
  flex: 1;
}
.pipe-stage-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bone);
  border: 1.5px solid var(--hair-strong);
  transition: all .4s var(--ease-out);
}
.pipe-stage.active .pipe-stage-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-glow);
}
.pipe-stage-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  transition: color .3s;
}
.pipe-stage.active .pipe-stage-label { color: var(--gold); }

.prop-stack {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prop-row {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 1px 3px rgba(10,22,40,.04), 0 4px 16px -8px rgba(10,22,40,.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s var(--ease-out);
}
.prop-row.in { opacity: 1; transform: translateY(0); }
.prop-thumb {
  width: 46px; height: 46px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mute) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.prop-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184,149,72,.35), transparent 70%);
}
.prop-thumb-gold { background: linear-gradient(135deg, #5C4A1F, #2A1F08); }
.prop-thumb-jade { background: linear-gradient(135deg, var(--jade), #0F3A33); }
.prop-thumb-plum { background: linear-gradient(135deg, #2B1E5C, #110A2E); }
.prop-info { flex: 1; min-width: 0; }
.prop-name { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-meta { font-size: 11px; color: var(--slate); margin-top: 2px; }
.prop-right { text-align: right; flex-shrink: 0; }
.prop-price { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.prop-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.badge-tour { background: rgba(45,125,111,.12); color: var(--jade); }
.badge-disc { background: var(--gold-glow); color: var(--gold); }
.badge-neg { background: rgba(83,58,253,.08); color: var(--plum); }

/* ══ SCENE 4 — MANIFESTO (dark interlude) ══ */
.scene-manifesto {
  background: var(--fixed-dark);
  color: var(--fixed-light);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}
/* Remove old single-orb pseudo — replaced by .manifesto-art blob system */
.scene-manifesto::before { display: none; }

/* ── Manifesto artistic background ── */
.manifesto-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.m-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Blob 1 — large gold, top-left */
.m-blob-1 {
  width: 640px; height: 640px;
  top: -15%; left: -12%;
  background: radial-gradient(circle, rgba(184,149,72,.22) 0%, rgba(184,149,72,.06) 45%, transparent 70%);
  filter: blur(72px);
  animation: mblob1 22s ease-in-out infinite alternate;
}

/* Blob 2 — violet, right center */
.m-blob-2 {
  width: 520px; height: 520px;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(88,64,232,.28) 0%, rgba(88,64,232,.08) 50%, transparent 72%);
  filter: blur(80px);
  animation: mblob2 27s ease-in-out infinite alternate;
}

/* Blob 3 — teal accent, bottom-left */
.m-blob-3 {
  width: 400px; height: 400px;
  bottom: -8%; left: 18%;
  background: radial-gradient(circle, rgba(45,125,111,.2) 0%, rgba(45,125,111,.05) 55%, transparent 75%);
  filter: blur(64px);
  animation: mblob3 19s ease-in-out infinite alternate;
}

/* Blob 4 — warm amber core, dead center */
.m-blob-4 {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,184,114,.14) 0%, transparent 65%);
  filter: blur(50px);
  animation: mblob4 31s ease-in-out infinite alternate;
}

@keyframes mblob1 {
  0%   { transform: translate(0,     0)    scale(1);    }
  33%  { transform: translate(40px,  60px) scale(1.08); }
  66%  { transform: translate(-20px, 30px) scale(0.96); }
  100% { transform: translate(30px, -40px) scale(1.05); }
}
@keyframes mblob2 {
  0%   { transform: translate(0,      0)     scale(1);    }
  40%  { transform: translate(-50px,  40px)  scale(1.1);  }
  80%  { transform: translate(20px,  -30px)  scale(0.95); }
  100% { transform: translate(-30px,  60px)  scale(1.06); }
}
@keyframes mblob3 {
  0%   { transform: translate(0,     0)    scale(1);    }
  50%  { transform: translate(60px, -50px) scale(1.12); }
  100% { transform: translate(-30px, 30px) scale(0.94); }
}
@keyframes mblob4 {
  0%   { transform: translate(-50%, -50%) scale(1);    }
  50%  { transform: translate(-50%, -50%) scale(1.3);  }
  100% { transform: translate(-50%, -50%) scale(0.85); }
}

/* Gold grid overlay */
.m-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,149,72,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,149,72,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* Cityscape silhouette — bottom-anchored, spans most of the scene */
.m-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: min(58vh, 460px);
  filter: blur(0.8px);
  opacity: 1;
}
.m-skyline svg {
  width: 100%;
  height: 100%;
  /* scale the fills to match new container proportions */
  overflow: visible;
}

.manifesto-eyebrow { color: var(--gold-soft); position: relative; z-index: 2; }
.manifesto-eyebrow::before { background: var(--gold-soft); }
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.015em;
  text-align: center;
  max-width: 18ch;
  text-wrap: balance;
  margin-top: 28px;
  color: var(--fixed-light);
  position: relative;
  z-index: 2;
}
.manifesto-text em { font-style: italic; color: var(--gold-soft); }
.manifesto-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), filter .65s var(--ease-out);
}
.manifesto-text .word.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Strikethrough — animated line drawn L→R on scroll */
.manifesto-strike {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.manifesto-strike::after {
  content: '';
  position: absolute;
  left: 0; top: 48%;
  height: 2px;
  width: 100%;
  background: var(--gold-soft);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}
.manifesto-strike.active::after {
  transform: scaleX(1);
}

.manifesto-cite {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,241,232,.5);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  position: relative; z-index: 2;
}
.manifesto-cite.in { opacity: 1; }

/* ══ SCENE 5 — THREE PILLARS ══ */
.scene-features {
  background: var(--bone);
  min-height: auto;
  padding: 100px 20px;
}
.features-head {
  text-align: center;
  max-width: 460px;
  margin-bottom: 44px;
}
.features-title {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-top: 14px;
  text-wrap: balance;
}
.features-title em { font-style: italic; color: var(--gold); }

.features-list {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: all .7s var(--ease-out);
  box-shadow: 0 1px 2px rgba(10,22,40,.02);
}
.feat.in { opacity: 1; transform: translateY(0); }
.feat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.feat-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 14px;
  letter-spacing: -.01em;
}
.feat-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 8px;
  text-wrap: pretty;
}
.feat-vis { margin-top: 22px; }

/* Mini sim viz */
.fv-sliders { display: flex; flex-direction: column; gap: 11px; }
.fv-slider-row { display: flex; flex-direction: column; gap: 5px; }
.fv-slider-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); }
.fv-slider-label strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fv-track {
  height: 4px;
  background: var(--bone-mute);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.fv-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 2px;
}
.fv-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.fv-total-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.fv-total-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Mini compare viz */
.fv-cmp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.fv-cmp-col {
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: 9px;
  padding: 10px 9px;
  font-size: 10.5px;
}
.fv-cmp-col.best { background: rgba(45,125,111,.08); border-color: rgba(45,125,111,.3); }
.fv-cmp-col.worst { background: rgba(196,103,74,.06); border-color: rgba(196,103,74,.25); }
.fv-cmp-name { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 11px; }
.fv-cmp-row { color: var(--slate); margin-bottom: 2px; }
.fv-cmp-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fv-cmp-tag {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fv-cmp-col.best .fv-cmp-tag { color: var(--jade); }
.fv-cmp-col.worst .fv-cmp-tag { color: var(--terra); }

/* Mini stamp duty viz */
.fv-bsd-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 12px;
}
.fv-bsd-row:last-child { border-bottom: 0; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--hair-strong); }
.fv-bsd-row .l { color: var(--slate); }
.fv-bsd-row .v { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.fv-bsd-row .v.hi { color: var(--terra); }
.fv-bsd-row:last-child .v { font-family: var(--serif); font-size: 18px; font-weight: 400; }

/* ══ SCENE 6 — CTA ══ */
.scene-cta {
  background: var(--fixed-dark);
  color: var(--fixed-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,149,72,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,149,72,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cta-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(184,149,72,.16) 0%, transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.cta-content { position: relative; z-index: 2; max-width: 480px; width: 100%; }
.cta-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 32px;
  position: relative;
}
.cta-pulse::before, .cta-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(184,149,72,.4);
  border-radius: 50%;
  animation: ctaPulse 2.4s ease-out infinite;
}
.cta-pulse::after { animation-delay: 1.2s; }
@keyframes ctaPulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.5); }
}
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 72px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
  color: var(--fixed-light);
  text-wrap: balance;
}
.cta-headline em { font-style: italic; color: var(--gold-soft); }
.cta-sub {
  font-size: 14.5px;
  color: rgba(245,241,232,.55);
  line-height: 1.65;
  margin-top: 20px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}
.cta-sub strong { color: var(--gold-soft); font-weight: 500; }
.cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.btn-gold {
  background: var(--gold);
  color: var(--fixed-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s var(--ease-out);
  letter-spacing: -.005em;
}
.btn-gold:hover, .btn-gold:active {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(184,149,72,.32);
}
.btn-ghost {
  background: transparent;
  color: rgba(245,241,232,.78);
  border: 1px solid rgba(245,241,232,.18);
  font-size: 14.5px;
  font-weight: 400;
  padding: 15px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease-out);
}
.btn-ghost:hover, .btn-ghost:active { border-color: var(--gold-soft); color: var(--gold-soft); }

/* Footer */
.w-footer {
  background: #060E18;
  color: rgba(245,241,232,.28);
  text-align: center;
  padding: 22px 20px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.w-footer strong { color: var(--gold-soft); font-weight: 500; }

/* ── REVEAL UTILS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (min-width: 720px) {
  .scene { padding: 120px 32px; }
  .hero { padding: 0 32px; }
  .w-nav { padding: 16px 32px; }
  .features-list { max-width: 720px; }
  .feat { padding: 32px 30px; }
}
@media (min-width: 980px) {
  .features-list {
    max-width: 1040px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
