/* ==========================================================================
   Wise Longevity
   Layout: deep olive bands carry the brand (helix, rings, gold); pale sage
   bands carry the reading. Text sits left, beside one object at a time.
   The "rung" (a short bar with a bead at each end) is taken from the DNA
   ladder in the logo and marks lists and steps.
   ========================================================================== */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/text-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/text-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* colour, sampled from the logo */
  --forest-900: #0c1806;
  --forest-800: #14240a;
  --forest-700: #1f3311;
  --gold-300: #f0d688;
  --gold-400: #ddb54a;
  --gold-600: #a47c1b;
  --bronze-700: #6a4e0c;
  --leaf-600: #4a7016;
  --sage-50: #f2f4e8;
  --sage-100: #e5e9d6;
  --sage-200: #cdd4b8;
  --ink: #172210;
  --ink-soft: #47533a;
  --on-dark: #f4f2e3;
  --on-dark-soft: #cdd0b8;
  --line-on-dark: rgba(221, 181, 74, 0.3);
  --field: #fbfcf6;
  --field-line: #78825f;
  --alert: #8a2d12;

  /* type: an inscriptional display face and an open, easy-reading text face */
  --font-display: "Marcellus", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.125rem, 1.55rem + 2.4vw, 3.125rem);
  --step-5: clamp(2.5rem, 1.5rem + 4.4vw, 4.375rem);

  /* context: these flip inside .on-dark */
  --rung: var(--gold-600);
  --focus: var(--forest-700);
  --muted: var(--ink-soft);
  --rule: var(--sage-200);
  --accent-text: var(--bronze-700);

  color-scheme: light;
}

.on-dark {
  color: var(--on-dark);
  --rung: var(--gold-400);
  --focus: var(--gold-300);
  --muted: var(--on-dark-soft);
  --rule: var(--line-on-dark);
  --accent-text: var(--gold-300);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--sage-50); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p, li, figcaption, dd, blockquote { text-wrap: pretty; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--forest-900); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; text-wrap: balance; }
h4 { font-size: var(--step-0); font-weight: 700; line-height: 1.3; }
a { color: inherit; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 40; padding: 0.75rem 1rem; background: var(--gold-400); color: var(--forest-900); font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type helpers ---------- */
.display { font-size: var(--step-5); line-height: 1.05; letter-spacing: -0.005em; }
.display span { display: block; }
.title { font-size: var(--step-4); }
.subtitle { font-size: var(--step-3); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.measure { max-width: 40rem; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--rung); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
.text-link:hover { color: var(--accent-text); }
.prose a, .faq a, figcaption a, .hint a, .check a, .note a { text-decoration: underline; text-decoration-color: var(--rung); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.prose a:hover, .faq a:hover, figcaption a:hover, .hint a:hover, .check a:hover, .note a:hover { color: var(--accent-text); }

/* ---------- layout primitives ---------- */
.band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band--sage { background: var(--sage-100); }
.band--dark { background: var(--forest-800); }
.band--deep { background: var(--forest-900); overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.stack--sm { gap: 0.75rem; }
.stack--lg { gap: 2.25rem; }
.section-head { display: flex; flex-direction: column; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--top { align-items: start; }
  .split--art-left { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.5rem; border: 2px solid transparent; border-radius: 999px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease-out; }
.btn--gold { background: var(--gold-400); color: var(--forest-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn--ghost { border-color: var(--gold-400); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { background: rgba(221, 181, 74, 0.16); }
.btn--ink { background: var(--forest-800); color: var(--on-dark); }
.btn--ink:hover { background: var(--forest-700); }
.btn--line { border-color: var(--forest-700); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--sage-100); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.15rem; font-size: var(--step--1); }

/* ---------- rings (the medallion's border, repeated as atmosphere) ---------- */
.rings { position: absolute; pointer-events: none; background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 3.4rem, rgba(221, 181, 74, 0.14) 3.4rem, rgba(221, 181, 74, 0.14) calc(3.4rem + 1px)); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 68%); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--forest-900); border-bottom: 1px solid var(--line-on-dark); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--on-dark); text-decoration: none; }
.brand img { width: 3rem; height: 3rem; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: 0.02em; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; }
.site-nav li a { display: inline-block; padding: 0.6rem 0.1rem; border-bottom: 2px solid transparent; color: var(--on-dark-soft); text-decoration: none; }
.site-nav li a:hover { color: var(--on-dark); }
.site-nav li a[aria-current="page"] { color: var(--gold-300); border-bottom-color: var(--gold-400); }
.nav-toggle { display: none; }
@media (max-width: 63.99rem) {
  .site-header:not([data-nav]) { position: static; }
  .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem; border: 2px solid var(--gold-400); border-radius: 999px; background: transparent; color: var(--on-dark); font-family: var(--font-body); font-size: 1rem; font-weight: 700; cursor: pointer; }
  .site-header[data-nav="closed"] .site-nav { display: none; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line-on-dark); }
  .site-nav li a[aria-current="page"] { border-bottom-color: var(--line-on-dark); }
  .site-nav .btn { align-self: flex-start; }
}

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(70rem 46rem at 80% 45%, rgba(84, 108, 28, 0.5), transparent 62%), var(--forest-900); }
.hero__grid { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.hero__text { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hero__note { font-size: var(--step--1); color: var(--on-dark-soft); }
.hero__art { position: relative; min-width: 0; height: 15rem; }
.hero__art .rings { inset: -30% -10%; }
.helix { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; }
  .hero__art { height: auto; aspect-ratio: 4 / 5; width: 100%; max-width: 26rem; max-height: 34rem; justify-self: center; }
  .hero__art .rings { inset: -25%; }
}

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(50rem 30rem at 92% 30%, rgba(84, 108, 28, 0.45), transparent 62%), var(--forest-900); }
.page-hero .rings { right: -14rem; top: -15rem; width: 42rem; height: 42rem; }
.page-hero__inner { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding-block: clamp(2.25rem, 5vw, 4rem); max-width: 46rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; font-size: var(--step--1); color: var(--on-dark-soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-on-dark); text-underline-offset: 0.2em; }
.crumbs a:hover { color: var(--on-dark); }

/* ---------- healthspan chart (drawn to one 0-80 year scale) ---------- */
.spans { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.spans__chart { display: flex; flex-direction: column; gap: 1rem; }
.spans__row { display: flex; flex-direction: column; gap: 0.35rem; }
.spans__label { font-weight: 700; }
.spans__track { position: relative; height: 2.75rem; background: var(--sage-100); border-radius: 3px; }
.spans__bar { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.7rem; border-radius: 3px 0 0 3px; color: var(--on-dark); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spans__bar--life { width: 89.25%; background: var(--forest-700); border-radius: 3px; }
.spans__bar--health { width: 77.375%; background: var(--leaf-600); }
.spans__gap { position: absolute; top: 0; bottom: 0; left: 77.375%; width: 11.875%; border: 2px solid var(--bronze-700); border-left: 0; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(135deg, var(--bronze-700) 0, var(--bronze-700) 2px, transparent 2px, transparent 7px); }
.spans__axis { position: relative; height: 1.5rem; border-top: 1px solid var(--ink-soft); font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.spans__axis span { position: absolute; top: 0.3rem; transform: translateX(-50%); white-space: nowrap; }
.spans__axis span::before { content: ""; position: absolute; left: 50%; top: -0.3rem; width: 1px; height: 0.3rem; background: var(--ink-soft); }
.spans__axis .t0 { left: 0; transform: none; }
.spans__axis .t0::before { left: 0; }
.spans__axis .t20 { left: 25%; }
.spans__axis .t40 { left: 50%; }
.spans__axis .t60 { left: 75%; }
.spans__axis .t80 { left: auto; right: 0; transform: none; }
.spans__axis .t80::before { left: auto; right: 0; }
.spans__key { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; align-items: center; font-weight: 700; }
.spans__swatch { height: 1.25rem; border: 2px solid var(--bronze-700); border-radius: 3px; background: repeating-linear-gradient(135deg, var(--bronze-700) 0, var(--bronze-700) 2px, transparent 2px, transparent 7px); }
.spans figcaption { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- lists ---------- */
.rungs { display: grid; gap: 0.6rem; list-style: none; }
.rungs li { position: relative; padding-left: 2.5rem; }
.rungs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 1.6rem; height: 0.5rem; background: radial-gradient(circle at 0.25rem 50%, var(--rung) 0.22rem, transparent 0.26rem), radial-gradient(circle at calc(100% - 0.25rem) 50%, var(--rung) 0.22rem, transparent 0.26rem), linear-gradient(var(--rung), var(--rung)) center / calc(100% - 0.4rem) 2px no-repeat; }
@media (min-width: 44rem) { .rungs--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; } }
.crossed { display: grid; gap: 0.6rem; list-style: none; }
.crossed li { position: relative; padding-left: 2.5rem; }
.crossed li::before { content: ""; position: absolute; left: 0.3rem; top: 0.82em; width: 1rem; height: 2px; background: var(--muted); }

.reasons { display: grid; gap: 0 3.5rem; list-style: none; border-bottom: 1px solid var(--rule); }
.reasons li { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.reasons h3 { font-size: var(--step-2); }
.reasons p { color: var(--muted); }
@media (min-width: 48rem) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.steps { display: grid; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.4rem 1rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--accent-text); }
.steps h3 { font-size: var(--step-2); }
.steps p { grid-column: 2; color: var(--muted); }
@media (min-width: 66rem) {
  .steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
  .steps--row li { display: flex; flex-direction: column; gap: 0.6rem; padding-block: 1.25rem 0; border-top: 2px solid var(--gold-400); }
  .steps--row h3 { font-size: var(--step-1); }
  .steps--row p { font-size: 1rem; }
}

.plist { list-style: none; border-bottom: 1px solid var(--rule); }
.plist li { border-top: 1px solid var(--rule); }
.plist a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem 1.5rem; padding-block: 1.2rem; text-decoration: none; }
.plist__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.plist__len { font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.plist__sum { color: var(--muted); }
.plist a:hover .plist__name { text-decoration: underline; text-decoration-color: var(--rung); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (min-width: 52rem) { .plist a { grid-template-columns: minmax(0, 19rem) 8rem minmax(0, 1fr); align-items: baseline; } }

/* ---------- programs ladder ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--step--1); text-decoration: none; }
.jump a:hover { border-color: var(--gold-400); color: var(--gold-300); }
.ladder { list-style: none; border-bottom: 1px solid var(--rule); }
.tier { display: grid; gap: 1rem 2.5rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); scroll-margin-top: 6rem; }
.tier__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.tier__step { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--accent-text); }
.tier__level { font-weight: 700; }
.tier__len { color: var(--muted); font-variant-numeric: tabular-nums; }
.tier__body { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; max-width: 46rem; }
.tier__body h2 { font-size: var(--step-3); }
.tier__tag { font-size: var(--step-1); line-height: 1.4; color: var(--muted); }
@media (min-width: 56rem) {
  .tier { grid-template-columns: 12rem minmax(0, 1fr); }
  .tier__meta { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  /* the "one path" line: a gold line that fills as you move down the six tiers */
  .ladder { position: relative; }
  .ladder::before, .ladder::after { content: ""; position: absolute; top: 0; bottom: 0; left: 13.25rem; pointer-events: none; }
  .ladder::before { width: 1px; background: var(--rule); }
  .ladder::after { width: 3px; margin-left: -1px; border-radius: 2px; background: var(--gold-600); transform-origin: 50% 0; transform: scaleY(var(--spine, 1)); }
}
.store { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; list-style: none; }
.store figure { display: flex; flex-direction: column; gap: 0.5rem; }
.store img { width: 100%; aspect-ratio: 600 / 715; object-fit: cover; border-radius: 4px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.store figcaption { font-size: 1rem; font-weight: 700; color: var(--ink); }
@media (min-width: 48rem) { .store { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--sage-50); }
.table-scroll table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.table-scroll th, .table-scroll td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table-scroll thead th { background: var(--sage-100); font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.table-scroll tbody th { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll td { font-variant-numeric: tabular-nums; }
.table-scroll td:nth-child(3) { white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: var(--step-1); line-height: 1.3; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 1.6rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 42rem; padding-bottom: 1.25rem; color: var(--muted); }

/* ---------- call to action band ---------- */
.cta { position: relative; overflow: hidden; background: var(--forest-900); }
.cta .rings { right: -12rem; bottom: -20rem; width: 46rem; height: 46rem; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; max-width: 40rem; }

/* ---------- figures ---------- */
/* cameo portrait: the founder's photo framed like the logo medallion, shown small so it stays sharp */
.cameo { position: relative; isolation: isolate; width: 100%; max-width: 16.5rem; margin: 0; padding: 0.75rem; }
.cameo__frame { position: relative; }
.cameo__frame::after { content: ""; position: absolute; inset: -0.75rem; border: 1px solid var(--rung); border-radius: 50%; opacity: 0.6; pointer-events: none; }
.cameo__img { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 4px solid var(--gold-400); border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-600), 0 1.5rem 2.5rem -1.25rem rgba(6, 12, 3, 0.6); }
.cameo figcaption { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 1.4rem; text-align: center; }
.cameo__name { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.cameo__role { font-size: var(--step--1); color: var(--muted); }
.cameo--hero .rings { inset: -80%; z-index: -1; }
.page-hero__split { position: relative; display: grid; gap: 0 3rem; align-items: center; }
.page-hero__split .cameo { max-width: 13.5rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
@media (min-width: 56rem) {
  .page-hero__split { grid-template-columns: minmax(0, 1fr) auto; }
  .page-hero__split .cameo { width: 16.5rem; max-width: none; margin-block: 2.5rem; margin-right: clamp(0rem, 5vw, 5rem); }
}
.figure-8 { position: relative; display: flex; align-items: center; justify-content: center; min-height: 15rem; }
.figure-8 .rings { inset: -30% -10%; }
.figure-8__num { position: relative; display: inline-block; min-width: 0.62em; text-align: center; font-family: var(--font-display); font-size: clamp(8rem, 22vw, 15rem); line-height: 0.9; color: var(--gold-400); }
.figure-8__unit { position: relative; align-self: flex-end; margin-left: 0.75rem; padding-bottom: 1.5rem; font-family: var(--font-display); font-size: var(--step-3); color: var(--on-dark); }
.quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; max-width: 44rem; text-wrap: balance; }
.medallion { width: 100%; max-width: 20rem; justify-self: center; }

/* ---------- contact ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.price__amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; }
.form { position: relative; display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--sage-50); border: 1px solid var(--rule); border-radius: 8px; scroll-margin-top: 6rem; }
.form h2 { font-size: var(--step-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 700; }
.hint { font-size: var(--step--1); color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--field-line); border-radius: 6px; background: var(--field); color: var(--ink); font: inherit; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.2rem 0 0; accent-color: var(--forest-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 6rem; }
.form__status { padding: 0.9rem 1rem; border-left: 4px solid var(--alert); background: var(--sage-100); font-weight: 700; }
.note { padding: 1rem 1.25rem; border-left: 4px solid var(--rung); background: var(--sage-100); font-size: 1rem; }
.on-dark .note { background: var(--forest-700); }

/* ---------- long text ---------- */
.prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 42rem; }
.prose h2 { margin-top: 1.5rem; font-size: var(--step-2); }
.prose ul { display: grid; gap: 0.4rem; padding-left: 1.25rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(2.5rem, 6vw, 4rem) 5.5rem; background: var(--forest-900); border-top: 1px solid var(--line-on-dark); }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; max-width: 26rem; }
.site-footer__brand img { width: 8.5rem; height: 8.5rem; }
.site-footer__tagline { font-family: var(--font-display); font-size: var(--step-1); }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer nav ul { display: grid; gap: 0.25rem; list-style: none; }
.site-footer nav a { display: inline-block; padding-block: 0.3rem; color: var(--on-dark-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__legal { display: flex; flex-direction: column; gap: 0.75rem; max-width: 60rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-dark); font-size: var(--step--1); color: var(--on-dark-soft); }
@media (min-width: 56rem) { .site-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr) minmax(0, 0.6fr); } }

/* ---------- small utilities ---------- */
[hidden] { display: none !important; }
.section-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 60rem) { .reasons--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) {
  .steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .steps--three li { display: flex; flex-direction: column; gap: 0.6rem; padding-block: 1.25rem 0; border-top: 2px solid var(--gold-400); }
}
.flag { display: inline-flex; align-self: flex-start; width: fit-content; padding: 0.2rem 0.8rem; border: 1px dashed var(--rung); border-radius: 999px; font-size: var(--step--1); font-weight: 700; color: var(--accent-text); }

/* ---------- live sessions ---------- */
.session { display: flex; flex-direction: column; gap: 1rem; min-width: 0; max-width: 44rem; }
.session__state { align-self: flex-start; padding: 0.25rem 0.9rem; border: 1px solid var(--field-line); border-radius: 999px; font-size: var(--step--1); font-weight: 700; }
.session[data-state="live"] .session__state { border-color: var(--gold-400); background: var(--gold-400); color: var(--forest-900); }
.session[data-state="ended"] .session__state { color: var(--muted); }
.session__when { font-size: var(--step-1); line-height: 1.4; }
.session__local { display: block; font-size: var(--step-0); color: var(--muted); }
.session__countdown { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.session__unit { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 4.5rem; padding: 0.75rem 0.5rem 0.55rem; border-radius: 6px; background: var(--forest-800); color: var(--on-dark-soft); font-size: var(--step--1); line-height: 1.2; }
.session__num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--gold-300); font-variant-numeric: tabular-nums; }

/* ---------- blog ---------- */
.posts { max-width: 52rem; list-style: none; border-bottom: 1px solid var(--rule); }
.posts li { display: flex; flex-direction: column; gap: 0.45rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.posts h2, .posts h3 { font-size: var(--step-2); line-height: 1.2; }
.posts h2 a, .posts h3 a { text-decoration: none; }
.posts h2 a:hover, .posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--rung); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.posts__meta { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.post__meta { font-size: 1rem; color: var(--muted); }
.post__body { font-size: 1.1875rem; line-height: 1.7; }
.post__body h2 { margin-top: 1.75rem; font-size: var(--step-3); }
.post__body h3 { margin-top: 1rem; font-size: var(--step-2); }
.post__body ul, .post__body ol { display: grid; gap: 0.45rem; padding-left: 1.4rem; }
.post__body blockquote { padding-left: 1.25rem; border-left: 3px solid var(--rung); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; }
.post__body img { border-radius: 4px; }
.post__foot { display: flex; flex-direction: column; gap: 2rem; max-width: 42rem; margin-top: 2.5rem; }
.byline { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; padding-block: 1.25rem; border-block: 1px solid var(--rule); }
.byline img { width: 4.5rem; height: 4.5rem; border: 2px solid var(--gold-400); border-radius: 50%; }
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 25; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gold-400); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- feedback: one-tap pulse and leaf rating ---------- */
.pulse { padding-block: clamp(2.25rem, 5vw, 3.25rem); background: var(--sage-100); border-top: 1px solid var(--rule); }
.pulse__form { position: relative; max-width: 44rem; }
.pulse h2 { font-size: var(--step-2); }
.pulse__choices { display: flex; flex-wrap: wrap; gap: 0.6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1.5rem; border: 2px solid var(--forest-700); border-radius: 999px; font-weight: 700; cursor: pointer; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill:hover { background: var(--sage-50); }
.pill:has(input:checked) { background: var(--forest-800); color: var(--on-dark); }
.pill:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.pulse__more { display: flex; flex-direction: column; gap: 0.75rem; }
.pulse__more .btn { align-self: flex-start; }
.form__done { padding: 0.9rem 1rem; border-left: 4px solid var(--leaf-600); background: var(--sage-100); font-weight: 700; }
.pulse .form__done, .pulse .form__status { background: var(--sage-50); }

.leaves, .choices { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.leaves legend, .choices legend { padding: 0; font-weight: 700; }
.leaves__row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.leaf { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 3.4rem; padding: 0.5rem 0.3rem 0.35rem; border: 1.5px solid transparent; border-radius: 8px; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.leaf input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.leaf svg { width: 2.875rem; height: 2.875rem; }
.leaf__blade { fill: transparent; stroke: var(--ink-soft); stroke-width: 1.4; }
.leaf__rib { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; stroke-linecap: round; }
.leaf:hover { border-color: var(--field-line); }
.leaf:has(input:checked) .leaf__blade, .leaf:has(~ .leaf input:checked) .leaf__blade { fill: var(--leaf-600); stroke: var(--leaf-600); }
.leaf:has(input:checked) .leaf__rib, .leaf:has(~ .leaf input:checked) .leaf__rib { stroke: var(--sage-50); }
.leaf:has(input:checked) { border-color: var(--leaf-600); background: var(--sage-100); color: var(--ink); }
.leaf:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .pill input, .leaf input { position: static; width: 1.2rem; height: 1.2rem; opacity: 1; }
  .pill { gap: 0.5rem; }
}

/* ---------- WhatsApp: the one way to reach Fatma ---------- */
.wa-float { position: fixed; z-index: 15; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0.55rem 1.1rem 0.55rem 0.9rem; border: 2px solid var(--gold-400); border-radius: 999px; background: var(--forest-800); color: var(--on-dark); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(6, 12, 3, 0.5); transition: background-color 0.15s ease; }
.wa-float:hover { background: var(--forest-700); }
.wa-float:focus-visible { outline-color: var(--gold-600); }
.wa-float svg { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--gold-300); stroke-width: 1.8; stroke-linejoin: round; }
.wa-float.is-compact { width: 3.25rem; height: 3.25rem; padding: 0; justify-content: center; }
.wa-float.is-compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 39.99rem) {
  .wa-float { width: 3.25rem; height: 3.25rem; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.wa-card { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 8px; background: var(--sage-50); scroll-margin-top: 6rem; }
.wa-card h2 { font-size: var(--step-3); }
.wa-card .btn { justify-self: start; }
.copybox { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; border: 1.5px dashed var(--field-line); border-radius: 6px; background: var(--field); }
.copybox__text { font-size: var(--step-1); line-height: 1.4; }
.copybox .btn { justify-self: start; }
.label-h { font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }

/* ---------- motion ----------
   js/boot.js adds .motion to <html> before first paint (never under reduced motion).
   The opening elements wait, hidden, until js/site.js starts the intro and adds .motion-go.
   boot.js also adds .motion-go after 3 seconds as a safety net, so nothing can stay hidden. */
html.motion:not(.motion-go) .hero__text > *,
html.motion:not(.motion-go) .hero__art .rings,
html.motion:not(.motion-go) .page-hero__inner > *,
html.motion:not(.motion-go) .cameo--hero { opacity: 0; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: no-preference) {
  /* soft cross-fade between pages, in browsers that support it */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.16s; }
  ::view-transition-new(root) { animation-duration: 0.3s; }
  .btn:active { transform: scale(0.97); }
  /* questions open and close smoothly, in browsers that support it */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.32s ease, content-visibility 0.32s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .cta, .hero__art, .rings, .wa-float, .read-progress { display: none; }
  body { background: #fff; color: #000; }
}

/* Fatma's channel feed */
.session__state.is-live { color: var(--gold, #c9a24b); }
.yt__heading { margin-top: 1.5rem; }
.yt__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.yt__card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; min-width: 0; }
.yt__thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; background: rgba(0,0,0,.08); }
.yt__title { font-weight: 600; text-wrap: balance; }
.yt__card:hover .yt__title, .yt__card:focus-visible .yt__title { text-decoration: underline; }
