/* ============================================================
   GRAND STRAND PILATES — site.css
   Base: DAIDRA foundation.css v1.0 (2026-08-06), skinned.
   Brand source: extract/logo-original-2048.jpg (measured pixels —
   see extract/brand-manifest.md). References: rsmi.md / motion.md.

   Axis choices (DESIGN.md Part 2, recorded deliberately):
   - Radius language: 2px precise + hairlines (editorial, anti-franchise)
   - Display weight: Playfair 400/500 (Didone contrast carries weight)
   - Headline anatomy: flanked-rule eyebrow (from the logo's own
     "— PILATES —" lockup) + serif claim — THE repeated micro-gesture
   - Dark-band CTA: sand accent on ink
   - Spectacle budget: zero photo, zero video — type, color, and ONE
     drawn gesture (scroll-linked wave line)
   ============================================================ */

/* ---------- 1. BRAND SLOTS ---------- */
:root {
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-mono: "Jost", system-ui, sans-serif;

  --weight-display: 400;
  --weight-body: 400;
  --weight-medium: 500;

  --brand-h: 155;
  --accent: #5e7e6a;            /* lotus sage (measured from screenshot) */
  --accent-strong: #45614f;     /* text-safe deep sage */
  --accent-ink: #45614f;
  --sage-deep: #54725f;         /* band surface — white text 5.3:1 */
  --sage-pale: #aec6b2;         /* pale sage (X 8/26) — STRAND ramp start + topbar */
  --pink: #f2bfc2;              /* truer pink (X: 'more pink' 8/26) */
  --pink-soft: #f8d5d6;
  --pink-deep: #a8545e;         /* text-safe pink — 4.7:1 on paper */
  --pink-dusty: #e0a3ab;        /* decorative line stroke */
  --magenta: #8a2a52;           /* dark magenta (X 8/26) — the offer/price color */
  --paper: #fcf4f3;             /* pink zen white (X 8/26) */
  --ink-0: #22302a;             /* green-ink text */
  --ink-1: #2c3c33;

  --radius: 2px;
  --radius-lg: 2px;
}

/* ---------- 2. NEUTRALS — slate-tinted ---------- */
:root {
  --n-50:  oklch(0.985 0.004 var(--brand-h));
  --n-100: oklch(0.96  0.006 var(--brand-h));
  --n-200: oklch(0.91  0.008 var(--brand-h));
  --n-300: oklch(0.83  0.010 var(--brand-h));
  --n-500: oklch(0.60  0.020 var(--brand-h));
  --n-700: oklch(0.40  0.028 var(--brand-h));
  --n-900: oklch(0.25  0.030 var(--brand-h));
  --n-950: oklch(0.17  0.025 var(--brand-h));
}

/* ---------- 3. SEMANTIC + SECTION MODES ---------- */
:root, .mode-light {
  --surface: var(--paper);
  --surface-2: #f9e9e8;
  --text: #22302a;
  --text-2: #6b625e;
  --line: #eedcd9;
  --line-strong: #d5b7b4;
  --link: var(--pink-deep);
  --wave-stroke: var(--pink-dusty);
  --ghost: rgb(216 122 128 / 0.15);
}
.mode-dark {
  --surface: var(--sage-deep);
  --surface-2: var(--accent);
  --text: #ffffff;
  --text-2: #d9e2da;
  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.30);
  --link: var(--pink-soft);
  --wave-stroke: var(--pink-soft);
  --ghost: rgb(255 255 255 / 0.06);
}

/* ---------- 4. SPACE ---------- */
:root {
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px; --s-20: 160px;
  --px: clamp(24px, 5vw, 96px);
  --measure: 62ch;
  --wrap: 1200px;
}

/* ---------- 5. TYPE SCALE ---------- */
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-hero: clamp(3.25rem, 1rem + 11.5vw, 13.5rem);
}

/* ---------- 6. MOTION — named for the behavior they drive ---------- */
:root {
  --ease-drift: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-tide: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --dur-1: 150ms;
  --dur-2: 240ms;
  --dur-3: 450ms;
  --dur-4: 800ms;
  --stagger: 70ms;
}

/* ---------- 7. ELEVATION + FOCUS ---------- */
:root {
  --shadow-soft: 0 20px 40px -20px rgb(34 48 42 / 0.16), 0 4px 10px -6px rgb(94 126 106 / 0.12);
  --shadow-lift: 0 32px 64px -24px rgb(34 48 42 / 0.22), 0 10px 24px -12px rgb(94 126 106 / 0.16);
  --focus-ring: 0 0 0 3px rgb(94 126 106 / 0.24);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}
.mode-dark :focus-visible { outline-color: var(--pink-soft); }

/* ---------- 8. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  overflow-x: clip;
}
/* iOS Safari doesn't propagate body clip to the viewport — clip at main,
   where every full-bleed decorative absolute lives */
main { overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.08;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
  hyphens: none;
}
h1 { font-size: var(--text-hero); letter-spacing: -0.015em; line-height: 0.96; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.012em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.008em; }
h4 { font-size: var(--text-lg); font-weight: var(--weight-medium); }
p { margin: 0 0 var(--s-2); max-width: var(--measure); text-wrap: pretty; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }

/* Eyebrow — the flanked-rule lockup from the logo ("— PILATES —").
   THE repeated micro-gesture: every section opens with one. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--line-strong);
}
.eyebrow--start { justify-content: flex-start; }
.eyebrow--start::after { display: none; }

/* ---------- 9. LAYOUT ---------- */
.section {
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
  background: var(--surface);
  color: var(--text);
  position: relative;
}
.section--hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding-top: var(--s-8);
  padding-bottom: var(--s-12);
  background:
    radial-gradient(120% 90% at 80% 8%, rgb(242 191 194 / 0.60), transparent 58%),
    radial-gradient(70% 60% at 10% 30%, rgb(248 213 214 / 0.45), transparent 60%),
    radial-gradient(90% 80% at 4% 96%, rgb(94 126 106 / 0.10), transparent 58%),
    var(--surface);
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--px);
  padding-right: var(--px);
  position: relative;
}
.wrap--wide { max-width: 1400px; }

/* ---------- 10. PRIMITIVES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-0);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--dur-2) var(--ease-drift),
    color var(--dur-2) var(--ease-drift),
    transform var(--dur-2) var(--ease-drift),
    box-shadow var(--dur-2) var(--ease-drift);
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn:active { transform: translateY(0); transition-duration: var(--dur-1); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform var(--dur-2) var(--ease-drift); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }

.mode-dark .btn { background: var(--pink-soft); color: var(--ink-0); }
.mode-dark .btn:hover, .mode-dark .btn:focus-visible { background: var(--pink); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--surface-2);
  border-color: var(--text-2);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: none;
}
.mode-dark .btn--ghost { background: transparent; color: var(--text); }
.mode-dark .btn--ghost:hover, .mode-dark .btn--ghost:focus-visible { background: var(--ink-1); }

.hoverable { --hover: 0; }
.hoverable:hover, .hoverable:focus-visible, .hoverable:focus-within { --hover: 1; }

.link-arrow {
  --hover: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
  text-decoration: none;
}
.link-arrow:hover, .link-arrow:focus-visible { --hover: 1; }
.link-arrow .arrow { transition: transform var(--dur-2) var(--ease-drift); }
.link-arrow .arrow .shaft { opacity: var(--hover); transition: opacity var(--dur-2) var(--ease-drift); }
.link-arrow:hover .arrow, .link-arrow:focus-visible .arrow { transform: translateX(3px); }

/* ---------- 11. REVEAL CHOREOGRAPHY ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-4) var(--ease-drift),
    transform var(--dur-4) var(--ease-drift);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   PROJECT LAYER — Grand Strand Pilates
   ============================================================ */

/* ----- Topbar — pink announcement bar with CTA (X 8/26) ----- */
.topbar { background: var(--sage-pale); color: var(--ink-0); }
.topbar strong { color: var(--magenta); font-weight: var(--weight-medium); }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar p {
  margin: 0;
  max-width: none;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}
.topbar .link-arrow { color: var(--ink-0); font-size: var(--text-xs); }
.topbar .link-arrow:hover, .topbar .link-arrow:focus-visible { color: var(--accent-ink); }

/* ----- Header — white, sticky, light shadow (X 8/26) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 0 rgb(34 48 42 / 0.05), 0 10px 28px -22px rgb(34 48 42 / 0.30);
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav a {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-0);
  text-decoration: none;
  padding: 10px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease-drift), border-color var(--dur-2) var(--ease-drift);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--pink-deep); border-bottom-color: var(--pink-deep); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink-0);
}
.nav-toggle svg { display: block; }
@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 24px 40px -28px rgb(34 48 42 / 0.35);
    padding: 8px var(--px) 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
}
.brand-mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark img { width: clamp(52px, 5vw, 72px); height: auto; }
/* ----- Logo reflection sweep on load (X 8/26) ----- */
.mark-glint { position: relative; display: inline-flex; flex-shrink: 0; }
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .mark-glint {
    -webkit-mask-image: url("images/lotus2-rosegold.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("images/lotus2-rosegold.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
  }
  .mark-glint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.9) 50%, transparent 78%);
    transform: translateX(-130%);
    pointer-events: none;
  }
  .is-ready .mark-glint::after {
    animation: mark-glint-sweep 1.2s var(--ease-tide) 1.6s 1 both;
  }
}
/* ----- Lotus bloom on load — each petal grows from the base (X 8/26) ----- */
.mark-glint .petal {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: 50% 96%;
  opacity: 0;
  pointer-events: none;
}
.petal--ol { background-image: url("images/petal-ol.png"); --fold: 30deg; }
.petal--ml { background-image: url("images/petal-ml.png"); --fold: 18deg; }
.petal--c  { background-image: url("images/petal-c.png");  --fold: 0deg; }
.petal--mr { background-image: url("images/petal-mr.png"); --fold: -18deg; }
.petal--or { background-image: url("images/petal-or.png"); --fold: -30deg; }
.is-ready .mark-glint:has(.petal) > img {
  opacity: 0;
  animation: mark-img-return var(--dur-3) var(--ease-tide) 1.7s both;
}
@keyframes mark-img-return { from { opacity: 0; } to { opacity: 1; } }
.is-ready .mark-glint .petal { animation: petal-bloom 0.9s var(--ease-tide) both; }
.is-ready .mark-glint .petal--c { animation-delay: 0.25s; }
.is-ready .mark-glint .petal--ml, .is-ready .mark-glint .petal--mr { animation-delay: 0.45s; }
.is-ready .mark-glint .petal--ol, .is-ready .mark-glint .petal--or { animation-delay: 0.65s; }
@keyframes petal-bloom {
  from { opacity: 0; transform: scale(0.2) rotate(var(--fold)); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes mark-glint-sweep {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}
.brand-word {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.header-cta { display: inline-flex; }

/* ----- Hero ----- */
.hero-inner { width: 100%; }
.hero-eyebrow { margin-bottom: var(--s-4); }
.hero-title {
  margin: 0;
  text-transform: uppercase;
  display: grid;
}
.hero-title .word { display: block; }
.hero-title .word--gold {
  /* matches the lotus2-rosegold mark ramp; top layer = load-time sheen sweep */
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.85) 50%, transparent 60%),
    linear-gradient(100deg, #6e4234 0%, #925a48 18%, #b87c66 36%, #e2b4a2 50%, #c48a74 60%, #965e4a 78%, #ae745c 92%, #744636 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: -150% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.is-ready .hero-title .word--gold {
  animation: gold-sheen-sweep 1.4s var(--ease-tide) 1s 1 both;
}
@keyframes gold-sheen-sweep {
  from { background-position: -150% 0, 0 0; }
  to   { background-position: 250% 0, 0 0; }
}
.hero-title .word--wave {
  justify-self: end;
  background: linear-gradient(100deg, var(--sage-pale) 0%, #8aa892 32%, #5e7e6a 62%, #45614f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}
.hero-lede {
  max-width: 34ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}
.hero-ctas { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* PILATES line — scaled-up flanked-rule lockup (X 8/26: bigger) */
.hero-pilates {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.5rem + 2.6vw, 2.4rem);
  letter-spacing: 0.52em;
  color: var(--text);
  margin-top: var(--s-2);
}
.hero-pilates::before, .hero-pilates::after { width: clamp(60px, 9vw, 130px); }

/* ----- Loading screen — big lotus blooms, veil lifts (X 8/26, home only) ----- */
.page-veil--loader { display: grid; place-items: center; }
.veil-lotus { position: relative; width: clamp(170px, 26vw, 300px); }
.veil-lotus > img {
  width: 100%;
  height: auto;
  opacity: 0;
  animation: mark-img-return var(--dur-3) var(--ease-tide) 1.55s both;
}
.veil-lotus .petal {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: 50% 96%;
  opacity: 0;
  animation: petal-bloom 0.9s var(--ease-tide) both;
}
.veil-lotus .petal--c  { animation-delay: 0.15s; }
.veil-lotus .petal--ml, .veil-lotus .petal--mr { animation-delay: 0.35s; }
.veil-lotus .petal--ol, .veil-lotus .petal--or { animation-delay: 0.55s; }
.is-ready .page-veil--loader { transition-delay: 1.9s; }
.has-loader .section--hero .reveal { transition-delay: calc(var(--i, 0) * 140ms + 1.9s); }
.has-loader .hero-title .word { transition-delay: 2.05s; }
.has-loader .hero-title.in .word--wave { transition-delay: 2.2s; }
@media (prefers-reduced-motion: reduce) {
  .page-veil--loader { transition: none !important; opacity: 0 !important; }
  .veil-lotus .petal { display: none; }
  .veil-lotus > img { animation: none; opacity: 1; }
  .has-loader .section--hero .reveal, .has-loader .hero-title .word { transition: none; }
}

/* ----- Hero entrance — silkier than the site-wide reveal (X 8/26) ----- */
.section--hero .reveal {
  transform: translateY(42px);
  filter: blur(7px);
  transition:
    opacity 1150ms var(--ease-drift),
    transform 1150ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms var(--ease-drift);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.section--hero .reveal.in { filter: blur(0); }
.hero-title .word { display: block; transform: translateY(0.18em); transition: transform 1300ms cubic-bezier(0.16, 1, 0.3, 1) 150ms; }
.hero-title.in .word { transform: none; }
.hero-title.in .word--wave { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .section--hero .reveal { filter: none; transform: none; transition: none; }
  .hero-title .word, .hero-title.in .word { transform: none; transition: none; }
}

/* ----- Hero imagery — tilted editorial cards behind the wordmark ----- */
.hero-cards { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-card {
  position: absolute;
  width: clamp(140px, 17vw, 260px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card--1 { top: 5%; right: 3%; aspect-ratio: 3/4; transform: rotate(4deg); }
.hero-card--2 { bottom: 30%; right: -3%; aspect-ratio: 4/3; width: clamp(150px, 18vw, 280px); transform: rotate(-3deg); }
.hero-card--3 { top: 2%; left: 40%; aspect-ratio: 4/3; width: clamp(120px, 13vw, 200px); transform: rotate(3deg); }
.hero-card--4 { top: 9%; left: -3%; aspect-ratio: 4/3; width: clamp(130px, 15vw, 220px); transform: rotate(-3deg); }
.hero-card--5 { top: 50%; left: -2%; aspect-ratio: 4/3; width: clamp(120px, 13vw, 190px); transform: rotate(2deg); }
@media (max-width: 860px) {
  .hero-card--3, .hero-card--4, .hero-card--5 { display: none; }
  .hero-card--1 { top: 2%; right: -4%; }
  .hero-card--2 { bottom: 2%; right: -2%; }
}

/* ----- Pointer light (hero) — transform-only, pointer-driven ----- */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 191 194 / 0.50), rgb(242 191 194 / 0) 65%);
  transform: translate3d(var(--mx, 60vw), var(--my, 10vh), 0) translate(-50%, -50%);
  transition: transform var(--dur-4) var(--ease-drift);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .hero-glow { display: none; }
}

/* ----- Ghost divider words (rsmi move 4) ----- */
.ghost-word {
  position: absolute;
  left: 0;
  right: 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ghost);
  white-space: nowrap;
  z-index: 1;
}
.ghost-word--end { text-align: right; transform: translateX(6%); }
.ghost-word--start { transform: translateX(-4%); }

/* ----- Wave line signature (rsmi move 5 / motion move 3) ----- */
.wave-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.wave-line-svg path {
  fill: none;
  stroke: var(--wave-stroke);
  stroke-width: 2.25;
  stroke-linecap: round;
  opacity: 0.55;
}

/* ----- Method band (rsmi move 2) ----- */
.method-head {
  display: grid;
  gap: var(--s-3);
  max-width: 760px;
  margin-bottom: var(--s-8);
}
.method-list { list-style: none; margin: 0; padding: 0; }
.method-row {
  display: grid;
  grid-template-columns: 88px 1fr 2fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.method-row:last-child { border-bottom: 1px solid var(--line); }
.method-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--magenta);
  font-style: italic;
}
.mode-dark .method-num { color: var(--pink-soft); }
.method-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0;
}
.method-desc { margin: 0; color: var(--text-2); max-width: 52ch; }

/* ----- Join band (rsmi move 3) ----- */
.join-band { overflow: clip; }
.join-band::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 58%;
  aspect-ratio: 864 / 504;
  background-image: url("images/lotus-mark-white-2.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}
.join-logo img { width: min(220px, 50%); height: auto; }
.join-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: var(--s-4) 0 var(--s-2);
  max-width: none;
}
.join-form { display: grid; gap: var(--s-3); max-width: 480px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 2px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color var(--dur-2) var(--ease-drift);
}
.field input::placeholder { color: var(--text-2); opacity: 0.7; }
.field input:focus { outline: none; border-bottom-color: var(--pink-soft); }
.field input:focus-visible { box-shadow: none; outline: none; }
.field.is-error input { border-bottom-color: #c98a7a; }
.field .field-error {
  font-size: var(--text-sm);
  color: #c98a7a;
  display: none;
}
.field.is-error .field-error { display: block; }
.join-form .btn { justify-self: start; }
.join-form.is-loading .btn { opacity: 0.6; pointer-events: none; }
.form-success { display: none; }
.join-form.is-done { display: none; }
.join-band .form-success.is-shown {
  display: grid;
  gap: var(--s-2);
  max-width: 480px;
}
.form-success h3 { margin: 0; }
.form-success p { color: var(--text-2); margin: 0; }

/* ----- Floral accents — vetted Lucide icons (ISC), never self-drawn ----- */
.floral {
  display: inline-flex;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}
.floral--pink { color: var(--pink-deep); }
.floral--magenta { color: var(--magenta); }
.floral--big { font-size: clamp(64px, 8vw, 120px); opacity: 0.16; position: absolute; pointer-events: none; }
.floral--corner-tr { top: var(--s-6); right: var(--px); }
.floral--corner-bl { bottom: var(--s-6); left: var(--px); }
.mode-dark .floral, .mode-dark .floral--pink, .mode-dark .floral--magenta { color: var(--pink-soft); }
.eyebrow .floral { font-size: 15px; margin-inline: 2px; }
.footer-brand .floral { font-size: 18px; }

/* ----- Mission statement band ----- */
.mission-inner { display: grid; justify-items: center; text-align: center; }
.mission-line {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 24ch;
  margin: var(--s-5) 0 0;
}
.mission-line .ink-wave {
  background: linear-gradient(100deg, #45614f 0%, #5e7e6a 45%, #9d6169 80%, #ad6a70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Split band (image + copy) ----- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}
.split--flip > .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > .split-media { order: 0; }
}

/* ----- Class cards ----- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5em, 1fr));
  gap: var(--s-4);
  position: relative;
  z-index: 2;
}
.class-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-4) var(--ease-drift), box-shadow var(--dur-4) var(--ease-drift), border-color var(--dur-2) var(--ease-drift);
}
.class-card:hover, .class-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.class-card .cc-media { aspect-ratio: 16/10; overflow: hidden; }
.class-card .cc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-4) var(--ease-drift);
}
.class-card:hover .cc-media img { transform: scale(1.04); }
.class-card .cc-body { padding: var(--s-4); display: grid; gap: 10px; }
.class-card h3 { margin: 0; font-size: var(--text-lg); }
.cc-meta {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
}
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta svg { flex: none; }
.class-card p { margin: 0; color: var(--text-2); font-size: var(--text-sm); line-height: 1.6; }
.cc-price { font-family: var(--font-display); font-size: var(--text-lg); color: var(--magenta); }

/* ----- Pricing table ----- */
.price-list { list-style: none; margin: 0; padding: 0; max-width: 640px; position: relative; z-index: 2; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-3); padding-bottom: var(--s-3);
  border-top: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row .pr-name { font-weight: var(--weight-medium); }
.price-row .pr-note { color: var(--text-2); font-size: var(--text-sm); }
.price-row .pr-amount { font-family: var(--font-display); font-size: var(--text-xl); white-space: nowrap; }
.price-row--featured { background: var(--surface-2); margin-inline: calc(-1 * var(--s-3)); padding-inline: var(--s-3); border-radius: var(--radius); }
.price-row--featured .pr-amount { color: var(--magenta); }

/* ----- Stats row ----- */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
  gap: var(--s-6); position: relative; z-index: 2;
}
.stat { display: grid; gap: 6px; }
.stat b {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat span { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }

/* ----- Page hero (subpages) ----- */
.page-hero {
  padding-top: var(--s-12);
  padding-bottom: var(--s-8);
  background:
    radial-gradient(110% 100% at 85% 0%, rgb(242 191 194 / 0.50), transparent 55%),
    var(--surface);
}
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem); line-height: 1.02; }
.page-hero .hero-lede { max-width: 46ch; }

/* ----- Footer ----- */
.site-footer {
  padding-top: var(--s-8);
  padding-bottom: var(--s-6);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
  position: relative;
  z-index: 2;
}
.footer-nav { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.footer-nav a {
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--pink-deep); }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); }
.footer-tagline { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 44px; height: auto; flex-shrink: 0; }
.footer-tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.footer-legal { font-size: var(--text-sm); color: var(--text-2); margin: 0; }

/* ----- Page transition veil (house standard) ----- */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--dur-3) var(--ease-tide);
}
.is-ready .page-veil { opacity: 0; }

/* ----- Mobile ----- */
@media (max-width: 600px) {
  /* topbar condenses to one clean row; full offer lives one tap away on Join */
  .topbar .wrap {
    flex-wrap: nowrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .topbar .floral, .topbar-detail { display: none; }
  .topbar p { white-space: nowrap; }
  .topbar .link-arrow { min-height: 0; }
  .brand-mark { gap: 10px; }
  .brand-mark img { width: 44px; }
  .brand-word {
    font-size: clamp(10.5px, 3vw, 13px);
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .header-cta .link-arrow { white-space: nowrap; }
}
@media (max-width: 760px) {
  .section { padding-top: var(--s-12); padding-bottom: var(--s-12); }
  .join-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .method-row { grid-template-columns: 56px 1fr; }
  .method-desc { grid-column: 2; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .btn { min-height: 48px; }
  .link-arrow { min-height: 48px; align-items: center; }
}

/* ---------- 12. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn--ghost, .link-arrow .arrow, .link-arrow .arrow .shaft, .field input {
    transition: none;
  }
  .btn:hover { transform: none; }
  .page-veil { transition: none; opacity: 0; }
  .wave-line-svg path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .mark-glint::after, .hero-title .word--gold { animation: none !important; }
  .mark-glint .petal { display: none; }
  .is-ready .mark-glint > img { opacity: 1; }
}
