/* ============================================================
   @ThisIsTrevorLee — MVP prototype stylesheet
   Brand: Heritage Blue / Hunter Green / Signature Gold / Parchment
   Type:  Cinzel (display) · Montserrat (body/UI) · Cormorant Garamond italic (quotes)
   NOTE FOR DEVELOPER: all brand values live in :root tokens below.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Colour — locked brand values */
  --blue: #110f37;            /* Heritage Blue — dominant field */
  --blue-surface: #1a1848;    /* card surface on dark */
  --blue-line: rgba(245, 241, 232, 0.12);
  --green: #1f4d3a;           /* Hunter Green — Pillar 2 only */
  --green-surface: #26594413; /* faint green tint on light */
  --gold: #d89f36;            /* Signature Gold — accent only, never bg/body text */
  --gold-soft: rgba(216, 159, 54, 0.55);
  --gold-faint: rgba(216, 159, 54, 0.22);
  --gold-deep: #8d651c;       /* darker gold for small accents on light (contrast-safe) */
  --parchment: #f5f1e8;       /* soft white — never pure #fff */
  --parchment-dim: #ede8db;
  --ink: #110f37;             /* text on light = Heritage Blue */
  --ink-muted: rgba(17, 15, 55, 0.68);
  --text-dark: #f5f1e8;       /* text on dark fields */
  --text-dark-muted: rgba(245, 241, 232, 0.66);
  --line-ink: rgba(17, 15, 55, 0.3); /* input/control borders on light fields */

  /* Type */
  --display: "Cinzel", serif;
  --body: "Montserrat", sans-serif;
  --quote: "Cormorant Garamond", serif;

  /* Rhythm */
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max-w: 72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.band-dark :focus-visible, .site-header :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue); color: var(--text-dark); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0 0 1rem; font-weight: 600; line-height: 1.18; }
.display { font-family: var(--display); letter-spacing: 0.015em; }
h1.display { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
h2.display { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1rem; max-width: 62ch; }

.eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow--gold { color: var(--gold); }          /* on dark fields */
.eyebrow--deep { color: var(--gold-deep); }     /* on light fields (contrast-safe) */
.eyebrow--green { color: var(--green); }

/* Gold keyword inside a Cinzel headline — colour is the only emphasis (brand rule) */
.kw { color: var(--gold); font-style: normal; }
.on-light .kw, .band-light .kw { color: var(--gold-deep); }

.pull-quote {
  font-family: var(--quote); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35;
  max-width: 26ch; margin: 0 auto;
}

.lede { font-size: 1.08rem; }
.muted { color: var(--ink-muted); }
.band-dark .muted, .band-green .muted { color: var(--text-dark-muted); }

/* ---------- Layout bands ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.band-dark { background: var(--blue); color: var(--text-dark); }
.band-green { background: var(--green); color: var(--text-dark); }
.band-light { background: var(--parchment); color: var(--ink); }
/* One light surface site-wide (parchment); a gold-faint hairline keeps rhythm where light bands meet */
.band-dim { background: var(--parchment); color: var(--ink); }
.band-light + .band-dim, .band-dim + .band-light,
.band-light + .band-light, .band-dim + .band-dim { border-top: 1px solid var(--gold-faint); }
.center { text-align: center; }
.center p { margin-inline: auto; }

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.hairline-top { border-top: 1px solid var(--gold-faint); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--text-dark);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(17, 15, 55, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--gold-faint);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin-inline: auto;
  padding: 0.9rem var(--gutter);
}
.brand-mark {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.14em; text-decoration: none; color: var(--text-dark);
}
.brand-mark span { color: var(--gold); }
.brand-sig { height: 21px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-lounge { opacity: 0.75; }
/* 7 primary links — hand off to the drawer a little wider than usual so they never crowd */
@media (min-width: 1080px) { .nav-links { display: flex; } .menu-toggle { display: none; } }

.menu-toggle {
  background: none; border: 1px solid var(--gold-soft); color: var(--text-dark);
  padding: 0.55rem 0.9rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  min-height: 44px;
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; background: var(--blue); color: var(--text-dark);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
}
.drawer.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.drawer-close {
  position: absolute; top: 1rem; right: var(--gutter);
  background: none; border: 1px solid var(--gold-soft); color: var(--text-dark);
  padding: 0.55rem 0.9rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  min-height: 44px;
}
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: block; padding: 0.85rem 0; text-decoration: none;
  font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--blue-line);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer.is-open nav li:nth-child(1) a { transition-delay: 0.08s; }
.drawer.is-open nav li:nth-child(2) a { transition-delay: 0.14s; }
.drawer.is-open nav li:nth-child(3) a { transition-delay: 0.2s; }
.drawer.is-open nav li:nth-child(4) a { transition-delay: 0.26s; }
.drawer.is-open nav li:nth-child(5) a { transition-delay: 0.32s; }
.drawer.is-open nav li:nth-child(6) a { transition-delay: 0.38s; }
.drawer.is-open nav li:nth-child(7) a { transition-delay: 0.44s; }
.drawer nav a[aria-current="page"] { color: var(--gold); }
.drawer-foot { margin-top: 2rem; font-size: 0.8rem; color: var(--text-dark-muted); }

/* ---------- Buttons — "gilded register" hover: offset gold hairline snaps into place ---------- */
.btn {
  position: relative; display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 2.1rem; min-height: 44px; border: none;
  transition: transform 0.25s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--gold);
  transform: translate(5px, 5px); pointer-events: none;
  transition: transform 0.28s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translate(0, 0); }
.btn:active { transform: scale(0.98); }
.btn--parchment { background: var(--parchment); color: var(--blue); }   /* on dark bands */
.btn--blue { background: var(--blue); color: var(--parchment); }        /* on light bands */
.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn--ghost::after { display: none; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.band-light .btn--ghost:hover, .band-dim .btn--ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, #1a1848 0%, var(--blue) 55%),
    var(--blue);
  color: var(--text-dark);
  min-height: 92svh;
  display: flex; align-items: center;
  padding-block: 7.5rem 5rem;
}
.hero .container { position: relative; z-index: 3; }
.hero-sub { max-width: 46ch; font-size: 1.05rem; color: var(--text-dark-muted); }

/* Gilded frame that draws itself on load */
.frame-svg {
  position: absolute; z-index: 2; pointer-events: none;
  /* top inset clears the fixed header so the frame never crosses the wordmark */
  inset: 4.6rem clamp(0.9rem, 2.5vw, 1.6rem) clamp(0.9rem, 2.5vw, 1.6rem);
  width: calc(100% - 2 * clamp(0.9rem, 2.5vw, 1.6rem));
  height: calc(100% - 4.6rem - clamp(0.9rem, 2.5vw, 1.6rem));
}
.frame-svg rect {
  fill: none; stroke: var(--gold-soft); stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4; stroke-dashoffset: 4;
  animation: frame-draw 1.7s var(--ease-out) 0.15s forwards;
}
@keyframes frame-draw { to { stroke-dashoffset: 0; } }

/* HK skyline line-art — draws after the frame */
.skyline {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; aspect-ratio: 1584 / 150;
  opacity: 0.92; pointer-events: none;
}
/* Strokes/opacities come from the inline SVG (exact banner art) — don't override. */

/* Headline lines rise in sequence */
.rise { display: block; overflow: hidden; }
.rise > span {
  display: block; transform: translateY(110%);
  animation: rise-up 0.9s var(--ease-out) forwards;
}
.rise:nth-of-type(2) > span { animation-delay: 0.55s; }
.hero .eyebrow, .hero .hero-sub, .hero .btn-row {
  opacity: 0; animation: fade-in 0.9s var(--ease-out) forwards;
}
.hero .eyebrow { animation-delay: 0.35s; }
.hero .hero-sub { animation-delay: 1.15s; }
.hero .btn-row { animation-delay: 1.35s; }
@keyframes rise-up { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
.hero .rise > span { animation-delay: 0.4s; }
.hero h1 { margin-bottom: 1.4rem; }

/* Compact hero for inner pages */
.hero--inner { min-height: 56svh; padding-top: 8rem; }

/* ---------- Gold Thread — scroll progress line (desktop only) ---------- */
.thread { display: none; }
@media (min-width: 1100px) {
  .thread {
    display: block; position: fixed; z-index: 90;
    left: 2.2rem; top: 0; bottom: 0; width: 1px;
    background: rgba(216, 159, 54, 0.12);
    pointer-events: none;
  }
  .thread-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--gold-faint), var(--gold));
    transform: scaleY(0); transform-origin: top;
  }
  .thread-dot {
    position: absolute; left: 50%; width: 5px; height: 5px;
    background: var(--gold); border-radius: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 2rem 1.75rem;
  border: 1px solid var(--gold-faint);
  background: var(--parchment);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-soft); box-shadow: 0 12px 30px rgba(17, 15, 55, 0.08); }
.band-dark .card, .band-green .card { background: var(--blue-surface); border-color: var(--gold-faint); }
.band-dark .card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.card h3 { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.04em; }
.card .eyebrow { margin-bottom: 0.8rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
a.card { display: block; text-decoration: none; }

/* Media placeholder block inside content cards */
.card-media {
  position: relative; aspect-ratio: 16 / 10; margin: -2rem -1.75rem 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--gold-faint);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-surface) 100%);
  color: var(--text-dark-muted);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.card--p2 .card-media { background: linear-gradient(135deg, var(--green) 0%, #16382b 100%); }
.card-media .play {
  width: 46px; height: 46px; border: 1px solid var(--gold-soft); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  transition: transform 0.3s var(--ease-out);
}
.card:hover .card-media .play { transform: scale(1.1); }

/* Pillar tags — colour does the pillar work */
.tag {
  display: inline-block; font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border: 1px solid; margin-bottom: 1rem;
}
.tag--p1 { color: var(--blue); border-color: rgba(17, 15, 55, 0.35); }
.tag--p2 { color: var(--green); border-color: rgba(31, 77, 58, 0.45); }
.band-dark .tag--p1 { color: var(--gold); border-color: var(--gold-soft); }

/* Quote card (Pillar 2) */
.card--quote { background: var(--green); color: var(--text-dark); border-color: var(--gold-faint); }
.card--quote .q {
  font-family: var(--quote); font-style: italic; font-weight: 500;
  font-size: 1.35rem; line-height: 1.4; margin-bottom: 0.9rem;
}
.card--quote cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Stats / count-up ---------- */
.stats { display: grid; gap: 2rem; text-align: center; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat-num {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--gold);
}
.band-light .stat-num, .band-dim .stat-num { color: var(--gold-deep); }
.stat-label { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.6rem; }

/* ---------- Journey (How I Help) ---------- */
.journey { position: relative; display: grid; gap: 3rem; }
.stage { position: relative; padding-left: 5.2rem; }
.stage-num {
  position: absolute; left: 0; top: -0.4rem;
  font-family: var(--display); font-weight: 600; font-size: 3.2rem; line-height: 1;
  color: var(--gold);
}
.band-light .stage-num { color: var(--gold-deep); }
.stage h3 { font-family: var(--display); font-size: 1.25rem; }
.stage .leave-with {
  margin-top: 0.9rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--gold-soft);
  font-size: 0.88rem; background: rgba(216, 159, 54, 0.06);
}
/* connector line drawn between stages as they reveal */
.journey::before {
  content: ""; position: absolute; left: 1.55rem; top: 3.2rem; bottom: 2rem; width: 1px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
}
@media (max-width: 560px) {
  .stage { padding-left: 0; padding-top: 3.6rem; }
  .stage-num { top: 0; }
  .journey::before { display: none; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 0.85rem 1rem; min-height: 48px;
  font: inherit; color: inherit;
  background: transparent; border: 1px solid var(--line-ink);
  transition: border-color 0.25s var(--ease-out);
}
.band-dark input, .band-dark select, .band-dark textarea,
.band-green input { border-color: var(--blue-line); color: var(--text-dark); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.field-help { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.35rem; }
.band-dark .field-help { color: var(--text-dark-muted); }

/* Lead-magnet form (live) — errors + consent */
.field-error { font-size: 0.8rem; color: #a03232; margin-top: 0.35rem; }
.consent-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.consent-row input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex: none;
  accent-color: var(--gold-deep); cursor: pointer;
}
.consent-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.consent-row label {
  font-size: 0.8rem; line-height: 1.55; color: var(--ink-muted); cursor: pointer;
  text-transform: none; letter-spacing: normal; font-weight: 400; margin-bottom: 0;
}
.consent-row label a { color: inherit; text-decoration: underline; }

/* Inline email capture */
.capture-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.capture-row input { flex: 1 1 240px; }

/* Success state — drawn gold tick + Ad Meliora sign-off */
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.is-shown { display: block; }
.form-wrap.is-done form { display: none; }
.tick { width: 64px; height: 64px; margin: 0 auto 1.2rem; }
.tick circle, .tick path {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round;
}
.is-shown .tick circle { animation: frame-draw 0.8s var(--ease-out) forwards; }
.is-shown .tick path { animation: frame-draw 0.5s var(--ease-out) 0.7s forwards; }
.form-success .signoff {
  font-family: var(--quote); font-style: italic; font-size: 1.3rem; margin-top: 0.4rem;
}

/* ---------- Booking placeholder ---------- */
.booking-slot {
  border: 1px dashed var(--gold-soft); padding: 3rem 1.5rem; text-align: center;
  color: var(--text-dark-muted);
}
.booking-slot .cal-skel {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  max-width: 320px; margin: 1.5rem auto 0;
}
.booking-slot .cal-skel span {
  aspect-ratio: 1; border: 1px solid var(--blue-line);
}
.booking-slot .cal-skel span.free { border-color: var(--gold-soft); }

/* ---------- Social band ---------- */
.social-cards { display: grid; gap: 1rem; }
@media (min-width: 720px) { .social-cards { grid-template-columns: repeat(3, 1fr); } }
.social-cards .card { text-align: center; }
.social-cards .card svg { margin: 0 auto 0.9rem; color: var(--gold); }
.band-light .social-cards .card svg { color: var(--gold-deep); }
.social-cards .handle { font-size: 0.78rem; letter-spacing: 0.1em; }

/* ---------- Client Lounge ---------- */
.lounge-gate {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(100% 80% at 50% 0%, #1a1848 0%, var(--blue) 60%);
  color: var(--text-dark); padding: var(--gutter);
}
.gate-card {
  position: relative; max-width: 26rem; width: 100%; text-align: center;
  padding: 3.5rem 2.2rem; border: 2px solid var(--gold-soft);
}
.gate-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-faint); pointer-events: none;
}
.gate-card .monogram {
  font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 0.4rem;
}
.lounge { display: none; }
.lounge.is-open { display: block; }
.lounge-frame { border: 2px solid var(--gold-soft); position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.lounge-frame::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-faint); pointer-events: none; }
.welcome-letter {
  font-family: var(--quote); font-size: 1.25rem; line-height: 1.6; max-width: 56ch;
}
.welcome-letter .sig { font-style: italic; color: var(--gold); }

/* ---------- Insights filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  background: none; border: 1px solid var(--line-ink); color: var(--ink);
  padding: 0.6rem 1.3rem; min-height: 44px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.filter-btn[aria-pressed="true"] { background: var(--blue); color: var(--parchment); border-color: var(--blue); }
.filter-btn[data-filter="p2"][aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.insight-card { transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.insight-card.is-hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--text-dark); padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: var(--text-dark-muted); text-decoration: none; transition: color 0.25s; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.88rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold-faint); }
.footer-social a:hover { border-color: var(--gold); }
.footer-legal {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--blue-line);
  font-size: 0.74rem; color: var(--text-dark-muted); line-height: 1.8;
}
.footer-head { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--text-dark); }
.footer-legal-links { margin-top: 0.4rem; }
.footer-legal-links a { white-space: nowrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children of a revealed group */
.reveal-group > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
  .rise > span { transform: none; }
  .hero .eyebrow, .hero .hero-sub, .hero .btn-row { opacity: 1; }
  .frame-svg rect, .skyline path { stroke-dashoffset: 0; }
  .thread { display: none; }
}

/* ---------- Wisdom plaque — Hunter Green framed panel on parchment ----------
   P2 green never sits full-bleed against Heritage Blue: as a framed plaque on a
   light field it reads as an object, not a competing background. */
.plaque {
  position: relative;
  background: var(--green); color: var(--text-dark);
  max-width: 46rem; margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.plaque::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--gold-soft); pointer-events: none;
}
.plaque .eyebrow { margin-bottom: 1.3rem; }
.plaque .pull-quote { font-size: clamp(1.35rem, 2.9vw, 2rem); }

/* Cinematic variant: quote sits over a premium photograph relating to it.
   DEVELOPER: swap --plaque-img per instance for the real image, e.g.
   style="--plaque-img: url('img/harbour-dusk.jpg')". Overlay stays — it keeps
   Hunter Green ownership of the moment and guarantees WCAG contrast for the
   parchment text regardless of the photograph beneath. Placeholder gradient
   stands in until real photography exists. */
.plaque--image {
  --plaque-img: radial-gradient(120% 90% at 28% 18%, #2c5a45 0%, #1f4d3a 52%, #12291f 100%);
  background:
    linear-gradient(165deg, rgba(16, 38, 29, 0.72), rgba(11, 27, 20, 0.9)),
    var(--plaque-img) center / cover no-repeat, var(--green);
  max-width: 54rem;
}
.plaque--image .pull-quote { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }

/* Quotation marks above & below the quote, inside the gilded frame, each flanked
   by a fading gold hairline (per the @ThisIsTrevorLee carousel template). */
.plaque--quote { display: flex; flex-direction: column; align-items: center; }
.plaque--quote .pull-quote { margin-block: 1.8rem; }
.plaque-qmark {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  width: min(24rem, 84%); pointer-events: none; z-index: 2;
  color: var(--gold); font-family: var(--quote); font-style: italic; font-weight: 600;
  font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1;
}
/* Quote glyphs sit high in their box — lift the hairlines 0.185em (measured from the
   font metrics) so they cross the marks' true visual centre. */
.plaque-qmark::before, .plaque-qmark::after {
  content: ""; flex: 1 1 auto; height: 1px; transform: translateY(-0.185em);
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.plaque-qmark::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* Light gold gilded frame on the plaque */
.plaque--quote.plaque::before { border-color: var(--gold-soft); inset: 12px; }

/* Faded, scroll-fixed portrait behind any plaque section (cf. jemmadaley.com).
   PLACEHOLDER photo — swap --portrait-img for Trevor's real backdrop when supplied.
   The image is pinned to the viewport, so scrolling reveals more of it. */
.section--portrait {
  --portrait-img: url("../assets/portraits/professional.jpg");
  position: relative; isolation: isolate; overflow: hidden;
}
.section--portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--portrait-img) center top / cover no-repeat;
  background-attachment: fixed;
  opacity: 0.20; filter: grayscale(0.4) contrast(1.05);
}
.section--portrait > .container { position: relative; z-index: 1; }
@media (max-width: 768px) {
  /* iOS/Safari ignore fixed attachment — fall back so it still reads as a backdrop */
  .section--portrait::before { background-attachment: scroll; opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .section--portrait::before { background-attachment: scroll; }
}

/* ---------- FAQ (Book a Call) ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--gold-faint); }
.faq details:last-child { border-bottom: 1px solid var(--gold-faint); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0.2rem; min-height: 44px;
  font-weight: 600; font-size: 0.95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--display); font-size: 1.3rem; line-height: 1;
  color: var(--gold-deep);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-deep); }
.faq .faq-a { padding: 0 0.2rem 1.3rem; }
.faq .faq-a p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Personas (Who I Help) — editorial spreads, alternating side ---------- */
.persona { display: grid; gap: 1.8rem; align-items: center; }
.persona + .persona {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--gold-faint);
}
@media (min-width: 820px) {
  .persona { grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4rem); }
  /* even personas flip the portrait to the right for a turning-pages rhythm */
  .persona:nth-of-type(even) .persona-media { order: 2; }
}
.persona-media {
  position: relative; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border: 1px solid var(--gold-faint);
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-surface) 100%);
  color: var(--text-dark-muted);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.persona-media::after { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-faint); pointer-events: none; z-index: 1; }
.persona-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.persona-body h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.03em; margin-bottom: 1.1rem; }
/* the question each client arrives with — the page's anchor device */
.persona-q {
  font-family: var(--quote); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.32;
  padding-left: 1.1rem; border-left: 2px solid var(--gold-soft);
  margin: 0 0 1.3rem; max-width: 32ch; color: var(--ink);
}
.persona-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.persona-tags .tag { margin-bottom: 0; }

/* ---------- Testimonials — ambient marquee (mouse) / swipe strip (touch) ---------- */
.marquee {
  position: relative; margin-top: 2.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; padding-bottom: 0.4rem; }
.testimonial {
  flex: 0 0 clamp(270px, 78vw, 350px); scroll-snap-align: center;
  padding: 2rem 1.75rem; border: 1px solid var(--gold-faint); background: var(--blue-surface);
}
.testimonial .q {
  font-family: var(--quote); font-style: italic; font-weight: 500;
  font-size: 1.3rem; line-height: 1.42; margin: 0 0 1.2rem; color: var(--text-dark);
}
.testimonial cite {
  font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.marquee-hint { margin-top: 1.3rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* On pointer devices: drift continuously, pause on hover/focus, fade the edges */
@media (hover: hover) and (min-width: 720px) {
  .marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .marquee-track { animation: marquee 52s linear infinite; }
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reduced motion: no drift, plain scrollable strip */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ================================================================
   EDITION 3 — bound-volume design upgrades + new components
   ================================================================ */

/* ---------- Page transitions — pages turn like leaves of one volume ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-leave 0.28s ease both; }
::view-transition-new(root) { animation: vt-arrive 0.55s cubic-bezier(0.22, 0.8, 0.35, 1) both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Gold-leaf pass — gradient "leaf" on the largest gold moments only ---------- */
.stat-num,
.band-dark .display .kw,
.hero .display .kw {
  background: linear-gradient(118deg, #e8bd66 8%, var(--gold) 42%, #a4771f 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.band-light .stat-num, .band-dim .stat-num {
  background: linear-gradient(118deg, #a4771f 8%, var(--gold-deep) 55%, #6d4d13 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-deep);
}
/* Fine grain over cinematic plaques so the overlay reads as material, not tint */
.plaque--image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.10;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Signature mark — sweeps into place like a pen lifting away ---------- */
.sig-mark { display: block; width: 140px; height: auto; clip-path: inset(0 100% 0 0); }
.is-visible .sig-mark, .sig-mark.is-visible, .form-success .sig-mark {
  animation: sig-reveal 1.15s var(--ease-out) forwards;
}
@keyframes sig-reveal { to { clip-path: inset(0 0 0 0); } }
.form-success .sig-mark { margin: 1.1rem auto 0; width: 110px; }
@media (prefers-reduced-motion: reduce) { .sig-mark { clip-path: none; animation: none; } }

/* ---------- Scroll choreography ---------- */
/* Journey spine: a gold line that draws down the timeline as you read it */
.journey[data-draw-line] { position: relative; padding-left: 1.6rem; }
.journey[data-draw-line]::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 1px;
  background: var(--gold-faint);
}
.journey[data-draw-line]::after {
  content: ""; position: absolute; left: 0; top: 0.4rem; width: 1px;
  height: calc((100% - 0.8rem) * var(--draw, 0));
  background: linear-gradient(#e2b45a, var(--gold-deep));
}
/* Gentle drift: plaques and hero skyline move a beat slower than the page */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .journey[data-draw-line]::after { height: calc(100% - 0.8rem); }
  [data-parallax] { transform: none !important; }
}

/* ---------- Where Do You Stand? — self-assessment ---------- */
.assess { max-width: 46rem; margin-inline: auto; }
.assess-q { margin-top: 2rem; }
.assess-q p { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.3rem; margin-bottom: 0.9rem; }
.assess-opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.assess-opts button {
  font: 600 0.8rem/1.2 Montserrat, sans-serif; letter-spacing: 0.04em;
  padding: 0.7rem 1.1rem; min-height: 44px; cursor: pointer;
  background: transparent; color: inherit;
  border: 1px solid var(--gold-faint); transition: border-color 0.25s, color 0.25s;
}
.assess-opts button:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.assess-opts button[aria-pressed="true"] { border-color: var(--gold-deep); color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.band-dark .assess-opts button:hover, .band-dark .assess-opts button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.assess-result { display: none; margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--gold-soft); position: relative; }
.assess-result.is-shown { display: block; }
.assess-result h3 { font-family: Cinzel, serif; margin-bottom: 0.5rem; }

/* ---------- Insights — Start Here hub ---------- */
.featured { display: grid; gap: 2rem; align-items: center; border: 1px solid var(--gold-faint); padding: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 820px) { .featured { grid-template-columns: 5fr 7fr; } }
.featured .big-num { font-family: Cinzel, serif; font-size: clamp(4rem, 10vw, 7.5rem); line-height: 0.9; color: var(--gold-deep); }
.start-here { counter-reset: step; }
.start-here .card { position: relative; }

/* ---------- Annual letter ---------- */
.letter { max-width: 42rem; margin-inline: auto; }
.letter h2 { font-family: Cinzel, serif; font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 3rem 0 1rem; }
.letter p { margin-bottom: 1.1rem; }
.letter .lede::first-letter {
  font-family: Cinzel, serif; font-size: 3.4em; line-height: 0.82;
  float: left; padding: 0.06em 0.12em 0 0; color: var(--gold-deep);
}
.letter .aside { border-left: 2px solid var(--gold-soft); padding-left: 1.2rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.25rem; margin: 1.8rem 0; }
.letter-sig { margin-top: 3rem; }

/* ================================================================
   EDITION 4 — evening mode, magnetic buttons, plaque glint, 404
   ================================================================ */

/* ---------- Evening mode (dark theme) ----------
   The single light surface (parchment) becomes a deep evening blue;
   everything already dark stays exactly as designed. Toggled by the
   header lamp button; persisted in localStorage; first paint follows
   prefers-color-scheme via the inline head script on every page. */
:root[data-theme="dark"] {
  --parchment: #16142e;                       /* light bands -> evening surface */
  --parchment-dim: #191740;
  --ink: #f5f1e8;
  --ink-muted: rgba(245, 241, 232, 0.66);
  --gold-deep: #e2b45a;                       /* contrast-safe gold flips lighter */
  --line-ink: rgba(245, 241, 232, 0.22);
  --green-surface: rgba(38, 89, 68, 0.25);
}
/* Buttons keep their intent: the "light" button stays parchment-coloured */
:root[data-theme="dark"] .btn--parchment { background: #f5f1e8; color: #110f37; }
:root[data-theme="dark"] .btn--blue { background: #f5f1e8; color: #110f37; }
/* Cards on evening bands sit slightly above the field */
:root[data-theme="dark"] .band-light .card,
:root[data-theme="dark"] .band-dim .card { background: #1a1848; }
/* Gold-leaf numerals flip to the bright foil on evening bands */
:root[data-theme="dark"] .band-light .stat-num,
:root[data-theme="dark"] .band-dim .stat-num {
  background: linear-gradient(118deg, #e8bd66 8%, var(--gold) 42%, #a4771f 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
/* Insights filter: pressed state reads as gilded, not a blue block on blue */
:root[data-theme="dark"] .filter-btn[aria-pressed="true"] {
  background: transparent; color: var(--gold); border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
:root[data-theme="dark"] .field-error { color: #e08c8c; }
:root[data-theme="dark"] .tag--p1 { color: var(--gold-deep); border-color: var(--gold-soft); }
:root[data-theme="dark"] .tag--p2 { color: #7fb99f; border-color: rgba(127, 185, 159, 0.45); }
:root[data-theme="dark"] .persona-media,
:root[data-theme="dark"] .card-media { background: linear-gradient(150deg, #1a1848 0%, #221f5c 100%); }
:root[data-theme="dark"] .site-header.is-scrolled { background: rgba(13, 11, 40, 0.92); }

/* The lamp — theme toggle in the header */
.theme-toggle {
  background: none; border: 1px solid var(--gold-faint); color: var(--text-dark);
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-tools { display: flex; align-items: center; gap: 0.7rem; }

/* ---------- Magnetic CTAs — buttons lean towards the cursor (fine pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn { will-change: transform; }
}

/* ---------- Gold glint — a soft foil highlight follows the cursor across cinematic plaques ---------- */
@media (hover: hover) and (pointer: fine) {
  .plaque--image::before {
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 40%),
                rgba(232, 189, 102, 0.13), transparent 68%);
    transition: opacity 0.4s var(--ease-out); opacity: 0;
  }
  .plaque--image:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .plaque--image::before { background: none !important; }
}

/* ================================================================
   EDITION 5 — evergreen reads: expanding articles on Insights
   ================================================================ */

/* Start-here cards double as accordion triggers */
.start-read { display: flex; flex-direction: column; }
.start-read .read-cue {
  margin-top: auto; padding-top: 1.1rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.start-read[aria-expanded="true"] { border-color: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-soft); }

/* The opened volume — framed reading panel below the cards */
.read-panel { scroll-margin-top: 5.5rem; margin-top: 2rem; }
.read-panel[hidden] { display: none; }
.read-frame {
  position: relative; border: 2px solid var(--gold-soft);
  padding: clamp(1.8rem, 5vw, 3.5rem);
  background: var(--parchment);
}
.read-frame::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--gold-faint); pointer-events: none;
}
:root[data-theme="dark"] .read-frame { background: #1a1848; }
.read-panel.is-open .read-frame { animation: read-open 0.55s var(--ease-out) both; }
@keyframes read-open { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .read-panel.is-open .read-frame { animation: none; } }

.read-head { max-width: 42rem; margin-inline: auto; }
.read-head h2 { margin-bottom: 0.4rem; }
.read-meta {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0;
}
.read-body { margin-top: 2.2rem; }
.read-body h2 { margin-top: 2.6rem; }

/* Close control sits inside the top of the frame */
.read-close {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
  background: none; border: 1px solid var(--gold-faint); color: var(--ink-muted);
  padding: 0.5rem 0.85rem; min-height: 44px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s;
}
.read-close:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* Takeaway plaque — the one thing to carry out of each read */
.read-takeaway {
  margin: 2.4rem 0 0; padding: 1.5rem 1.6rem;
  border-left: 2px solid var(--gold-soft); background: rgba(216, 159, 54, 0.06);
}
.read-takeaway .takeaway-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.5rem;
}
.read-takeaway p:last-child { margin-bottom: 0; font-size: 0.95rem; }
.read-next { margin-top: 2.2rem; }

/* ---------- Charts — hand-set SVG in brand tokens (theme-aware) ---------- */
.chart-fig { margin: 2rem 0; }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--body); font-size: 15px; fill: var(--ink); }
.chart .grid line { stroke: var(--gold-faint); stroke-width: 1; }
.chart .bars rect { fill: var(--gold-deep); }
:root[data-theme="dark"] .chart .bars rect { fill: var(--gold); }
.chart .val text { font-family: var(--display); font-weight: 600; font-size: 17px; fill: var(--gold-deep); }
.chart .lab text { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-muted); }
.chart-fig figcaption {
  font-size: 0.76rem; color: var(--ink-muted); margin-top: 0.7rem; line-height: 1.6;
}

/* Pyramid (protection first) */
.chart--pyramid .pyr polygon {
  fill: var(--parchment-dim); stroke: var(--gold-soft); stroke-width: 1;
}
.chart--pyramid .pyr .pyr-base { fill: var(--green); }
.chart--pyramid .pyr-num text { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--ink); }
.chart--pyramid .pyr-num text:first-child { fill: var(--text-dark); }
:root[data-theme="dark"] .chart--pyramid .pyr polygon { fill: #221f5c; }
:root[data-theme="dark"] .chart--pyramid .pyr .pyr-base { fill: var(--green); }

/* Review timeline */
.chart--timeline .tl-line { stroke: var(--gold-soft); stroke-width: 1.25; }
.chart--timeline circle { fill: var(--parchment); stroke: var(--gold-deep); stroke-width: 1.5; }
:root[data-theme="dark"] .chart--timeline circle { fill: #1a1848; stroke: var(--gold); }
.chart--timeline .tl-node > text { font-family: var(--display); font-weight: 600; font-size: 15px; }
.chart--timeline .tl-sub { font-size: 12.5px; letter-spacing: 0.06em; fill: var(--ink-muted); }
.chart--timeline .tl-cap { font-family: var(--quote); font-style: italic; font-size: 17px; fill: var(--ink-muted); }

/* Plan anatomy — six numbered parts */
.plan-anatomy { display: grid; gap: 1rem; margin: 1.8rem 0; }
@media (min-width: 720px) { .plan-anatomy { grid-template-columns: 1fr 1fr; } }
.anatomy-item {
  position: relative; padding: 1.3rem 1.3rem 1.3rem 3.6rem;
  border: 1px solid var(--gold-faint);
}
.anatomy-num {
  position: absolute; left: 1.1rem; top: 1.05rem;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1;
  color: var(--gold-deep);
}
.anatomy-item h3 { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.anatomy-item p { font-size: 0.85rem; margin-bottom: 0; max-width: none; }

/* ---------- 404 ---------- */
.lost {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(100% 80% at 50% 0%, #1a1848 0%, var(--blue) 60%);
  color: var(--text-dark); padding: var(--gutter); text-align: center;
}
.lost-card { position: relative; max-width: 30rem; width: 100%; padding: 3.5rem 2.2rem; border: 2px solid var(--gold-soft); }
.lost-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-faint); pointer-events: none; }
.lost-num { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 12vw, 6.5rem); line-height: 1; color: var(--gold); }
.lost-card .sig-mark { margin: 1.6rem auto 0; width: 120px; }
.lost .muted { color: var(--text-dark-muted); }

/* ================================================================
   EDITION 6 — Cost of Waiting slider, WhatsApp CTA, mobile book bar
   ================================================================ */

/* WhatsApp button — icon sits inline with the label */
.btn--wa { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn--wa svg { flex: none; }

/* Cost of Waiting */
.wait-calc {
  max-width: 46rem; margin: 2.5rem auto 0; padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--gold-faint); background: var(--card, transparent);
}
.wait-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .wait-controls { grid-template-columns: 1fr; gap: 1.25rem; } }
.wait-field label { display: block; font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.wait-field input[type="range"] { width: 100%; accent-color: var(--gold-deep); }
.wait-val { display: block; margin-top: 0.25rem; font-family: Cinzel, serif; font-size: 1.15rem; color: var(--gold-deep); }
:root[data-theme="dark"] .wait-val { color: var(--gold); }

.wait-bars {
  display: flex; justify-content: center; align-items: flex-end; gap: 3rem;
  height: 200px; margin-top: 2rem;
}
.wait-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 90px; }
.wait-bar-track { height: 140px; width: 100%; display: flex; align-items: flex-end; }
.wait-bar { width: 100%; transition: height 0.25s var(--ease-out, ease-out); }
.wait-bar--now { background: var(--gold); }
.wait-bar--wait { background: var(--gold-faint); border: 1px solid var(--gold-soft); }
.wait-bar-num { font-family: Cinzel, serif; font-size: 1rem; margin-bottom: 0.35rem; }
.wait-bar-label { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.75; }
.wait-cost { text-align: center; margin-top: 1.6rem; font-size: 1.05rem; }
.wait-cost strong { font-family: Cinzel, serif; color: var(--gold-deep); }
:root[data-theme="dark"] .wait-cost strong { color: var(--gold); }
.wait-note { text-align: center; font-size: 0.8rem; margin-top: 0.5rem; }

/* Sticky mobile CTA bar — appears under 768px only */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--blue); border-top: 1px solid var(--gold-soft);
  gap: 0.6rem;
}
.mobile-cta .btn { flex: 1; text-align: center; justify-content: center; padding: 0.7rem 0.5rem; font-size: 0.9rem; }
.mobile-cta .btn--ghost { color: var(--text-dark, #f5f1e8); border-color: var(--gold-soft); }
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.25rem; }  /* keep footer clear of the bar */
}

/* Where Do You Stand? — reveal gate */
.assess-launch { margin-top: 1.6rem; }
.assess-body[hidden] { display: none; }

/* ================================================================
   Mobile polish — phones (<=560px)
   Stack CTA buttons full-width so rows don't wrap raggedly, and
   tighten vertical rhythm. Sticky .mobile-cta bar is unaffected
   (its buttons are not inside .btn-row).
   ================================================================ */
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn-row .btn { width: 100%; }
  .btn-row[style*="center"] { align-items: stretch; }
  /* centre icon+label when a WhatsApp button goes full-width */
  .btn-row .btn--wa { justify-content: center; }
  /* standalone WhatsApp button (e.g. Book a Call) also goes full-width */
  .btn--wa { display: flex; width: 100%; justify-content: center; }
  /* but the sticky bottom bar keeps its two buttons side by side */
  .mobile-cta .btn { width: auto; }
  /* the offset gold frame sits inside the button edge on mobile so it never nudges the gutter */
  .btn::after { transform: translate(3px, 3px); }
  /* a touch tighter so sections don't feel sparse on a small screen */
  :root { --section-pad: clamp(3.5rem, 9vw, 8rem); }
  h1.display { line-height: 1.08; }
}
