/* ==========================================================================
   Cosmothetics Academy — main.css
   Plum & Rose Gold · editorial luxury · motion-first
   Table of contents:
     01. Design tokens
     02. Reset & base
     03. Typography
     04. Layout utilities
     05. Buttons & atoms
     06. Motion / reveal engine
     07. Preloader & scroll progress
     08. Header & navigation
     09. Hero
     10. Marquee / accreditations
     11. About / mission
     12. Stats counters
     13. Courses
     14. Features
     15. Journey timeline
     16. Instructors
     17. Testimonials
     18. FAQ
     19. Insights / blog
     20. CTA band
     21. Footer
     22. Floating UI
     23. Inner pages & WordPress core
     24. Responsive
     25. Reduced motion & print
   ========================================================================== */

/* 01. Design tokens ======================================================= */

:root {
  /*
   * Colour — Cream & Cacao.
   * Contrast against --c-cream (#fdfaf5) is noted where it matters; every
   * value used for body copy clears WCAG AA 4.5:1.
   */
  --c-ink: #3a2e26;        /* espresso body copy — 10.6:1 */
  --c-ink-soft: #6b584b;   /* warm taupe, secondary copy — 5.8:1 */
  --c-ink-mute: #756254;   /* muted meta — 5.6:1 on cream, 4.6:1 on sand */
  --c-cocoa: #6b4a38;      /* primary CTA fill — 7.3:1 against white text */
  --c-cocoa-900: #4a3226;
  --c-cocoa-950: #3a2820;  /* footer */
  --c-cocoa-700: #7d5a44;  /* hover */
  --c-cocoa-500: #9a7358;
  --c-gold: #7d6228;       /* brass for text/icons — 5.5:1 on cream, 4.6:1 on sand */
  --c-gold-soft: #d4b876;  /* light brass, for cocoa backgrounds only */
  --c-terra: #b2724a;      /* terracotta, the italic headline accent */
  --c-clay: #d9b9a3;
  --c-clay-soft: #ecd9c9;
  --c-cream: #fdfaf5;      /* page ground */
  --c-ivory: #f6efe6;      /* alternating band */
  --c-sand: #efe4d6;       /* deeper band, e.g. statistics */
  --c-white: #ffffff;
  --c-line: #e8dccb;
  --c-line-strong: #d9c8b3;

  /* Decorative metal — rules, borders, icon fills. Too light for body text. */
  --grad-metal: linear-gradient(135deg, #b8924a 0%, #cbab7e 45%, #d9b9a3 100%);
  /* Text-safe metal, for gradient numerals sitting on cream or sand. */
  --grad-metal-ink: linear-gradient(135deg, #6b4a38 0%, #9a7a35 55%, #b8924a 100%);
  --grad-cocoa: linear-gradient(150deg, #7d5a44 0%, #5c3e2e 58%, #4a3226 100%);
  /* Warm, bright ground used by the hero, page heroes, preloader and drawer. */
  --grad-cream: linear-gradient(160deg, #fdfaf5 0%, #f6efe6 46%, #efe4d6 100%);
  --grad-sheen: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);

  /* Typography */
  --f-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.75rem, 1.25rem + 6.2vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.9vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.25rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1.15vw, 1.9rem);
  --fs-h4: clamp(1.125rem, 1.03rem + 0.4vw, 1.3rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.42vw, 1.25rem);
  --fs-body: clamp(1rem, 0.975rem + 0.12vw, 1.0625rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation — warm espresso tint, never neutral grey */
  --shadow-sm: 0 1px 2px rgba(58, 46, 38, 0.05), 0 2px 8px rgba(58, 46, 38, 0.04);
  --shadow-md: 0 4px 14px rgba(58, 46, 38, 0.06), 0 14px 36px rgba(58, 46, 38, 0.07);
  --shadow-lg: 0 10px 28px rgba(58, 46, 38, 0.09), 0 32px 70px rgba(58, 46, 38, 0.12);
  --shadow-gold: 0 10px 34px rgba(184, 146, 74, 0.26);

  /* Motion */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-fast: 180ms;
  --d-base: 320ms;
  --d-slow: 600ms;
  --d-reveal: 900ms;
  --d-cine: 1200ms;

  --z-base: 1;
  --z-sticky: 40;
  --z-progress: 50;
  --z-overlay: 80;
  /* The header sits ABOVE the drawer on purpose: the burger doubles as the
     drawer's close button, so it has to stay visible and tappable. */
  --z-header: 90;
  --z-loader: 100;

  --header-h: 84px;
}

/* 02. Reset & base ======================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* Horizontal clipping belongs on the root, whose overflow propagates to the
     viewport. Putting `overflow-x: hidden` on <body> instead computes
     `overflow-y: auto` and turns body into its own scroll container, which
     silently breaks IntersectionObserver reveals and position: sticky. */
  overflow-x: hidden;
}

body {
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` (unlike `hidden`) does not create a scroll container, so body keeps
     overflow-y: visible and the root stays the only scroller. */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg,
video,
canvas { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-cocoa); color: #fff; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: var(--z-loader);
  background: var(--c-cocoa); color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--d-base) var(--e-out);
}
.skip-link:focus { top: 0; }

/* Film grain — the texture that keeps flat colour from looking cheap */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Icon default. Every more specific rule below (.btn svg, .medallion svg, …)
   has higher specificity and wins, so this is only the fallback size. */
.cosmo-icon { width: 24px; height: 24px; flex: none; }

/* 03. Typography ========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

p { text-wrap: pretty; }

/* The signature move: one italic word per headline */
em,
.i { font-style: italic; font-weight: 400; }

.display {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-ink-soft);
  max-width: 62ch;
}

.measure { max-width: 68ch; }

/* Eyebrow label with its gold rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--grad-metal);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--grad-metal);
  flex: none;
}
.on-dark .eyebrow { color: var(--c-gold-soft); }

/* Gradient text — used sparingly on numerals and one headline word */
.metal {
  background: var(--grad-metal-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 04. Layout utilities ==================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--ivory { background: var(--c-ivory); }
.section--white { background: var(--c-white); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.section-head { margin-bottom: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split {
  display: grid;
  gap: var(--sp-6);
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
}

.on-dark { color: rgba(255, 255, 255, 0.78); }
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: #fff; }
.on-dark .lead { color: rgba(255, 255, 255, 0.72); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Decorative hairline divider */
.rule {
  height: 1px;
  background: var(--grad-metal);
  border: 0;
  opacity: 0.55;
}

/* Soft ambient orbs behind hero / CTA */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  animation: drift 22s var(--e-inout) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -34px, 0) scale(1.14); }
}

/* 05. Buttons & atoms ===================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              background-color var(--d-base) var(--e-out),
              color var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d-base) var(--e-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); transition-duration: 90ms; }

/* Gold sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-sheen);
  transform: translateX(-120%);
  transition: transform var(--d-slow) var(--e-inout);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--c-cocoa);
  color: #fff;
  box-shadow: 0 6px 20px rgba(107, 74, 56, 0.24);
}
.btn--primary:hover {
  background: var(--c-cocoa-700);
  box-shadow: 0 12px 34px rgba(107, 74, 56, 0.32);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--grad-metal);
  color: var(--c-cocoa-950);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(184, 146, 74, 0.34); }

.btn--ghost {
  border: 1px solid var(--c-cocoa);
  color: var(--c-cocoa);
}
.btn--ghost:hover { background: var(--c-cocoa); color: #fff; transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--c-cocoa); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18); }

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: var(--fs-xs); }

/* Text link with animated gold underline */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-cocoa);
  padding-bottom: 2px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--grad-metal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-base) var(--e-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u svg { width: 16px; height: 16px; transition: transform var(--d-base) var(--e-out); }
.link-u:hover svg { transform: translateX(4px); }
.on-dark .link-u { color: var(--c-gold-soft); }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-ink-soft);
}
.chip--gold { background: rgba(184, 146, 74, 0.1); border-color: rgba(184, 146, 74, 0.3); color: #8a6f14; }
.on-dark .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

/* Icon medallion */
.medallion {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(184, 146, 74, 0.14), rgba(217, 185, 163, 0.16));
  border: 1px solid rgba(184, 146, 74, 0.24);
  color: var(--c-cocoa);
  flex: none;
  transition: transform var(--d-base) var(--e-spring), box-shadow var(--d-base) var(--e-out);
}
.medallion svg { width: 26px; height: 26px; }

/* Rating stars */
.stars { display: inline-flex; gap: 2px; color: var(--c-gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* 06. Motion / reveal engine ============================================= */

/* Base reveal — JS adds .is-in when the element enters the viewport */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--d-reveal) var(--e-out),
              transform var(--d-reveal) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0); }

[data-reveal="left"]  { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-in { transform: translate3d(0, 0, 0) scale(1); }

/* Clip reveal for imagery — the mask slides away, image un-zooms.
 *
 * The clip lives on the <img>, never on .reveal-img itself. An element whose
 * own clip-path collapses it reports intersectionRatio 0 to IntersectionObserver,
 * so observing the clipped box would never cross a non-zero threshold and the
 * reveal could never fire — the start state would block its own trigger.
 * Keeping the observed box unclipped avoids that deadlock entirely.
 */
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.18);
  transition: clip-path var(--d-cine) var(--e-inout),
              transform 1600ms var(--e-inout);
}
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Word-by-word headline reveal */
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-word {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1000ms var(--e-out);
  transition-delay: var(--w-delay, 0ms);
}
.is-in .split-word { transform: translate3d(0, 0, 0); }

/* Parallax host — JS writes --py */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* Marquee. Animating the independent `translate` property rather than
   `transform` leaves `transform` free for the scroll-direction skew — a CSS
   animation wins over a normal declaration for whatever property it animates,
   so a transform-based keyframe would silently swallow the skew. */
@keyframes marquee {
  from { translate: 0 0; }
  to   { translate: -50% 0; }
}

/* Draw-in line for the timeline */
.draw-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1400ms var(--e-inout);
}
.draw-line.is-in { transform: scaleY(1); }

/* 07. Preloader & scroll progress ======================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--grad-cream);
  transition: opacity 700ms var(--e-inout), visibility 700ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  color: var(--c-ink);
  letter-spacing: 0.02em;
  text-align: center;
}
.preloader__mark span { font-style: italic; }
.preloader__bar {
  width: min(240px, 52vw);
  height: 2px;
  margin: 1.25rem auto 0;
  background: rgba(58, 46, 38, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-metal);
  transition: width 400ms var(--e-out);
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: var(--z-progress);
  background: var(--grad-metal);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}

/* 08. Header & navigation ================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              backdrop-filter var(--d-base) var(--e-out),
              transform var(--d-slow) var(--e-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-h);
  transition: min-height var(--d-base) var(--e-out);
}

/* Solid state once scrolled */
.site-header.is-stuck {
  background: rgba(253, 250, 245, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgba(58, 46, 38, 0.06);
}
.site-header.is-stuck .site-header__inner { min-height: 68px; }
/* Hide on scroll-down, reveal on scroll-up */
.site-header.is-hidden { transform: translateY(-100%); }

/* Transparent-over-hero variant */
/*
 * `--over` marks the header as floating above the hero. Every hero in this
 * theme is now a bright cream band, so the header keeps its normal espresso-on-
 * light styling and needs no inverted overrides — only the transparent
 * background it already has until `.is-stuck`.
 */

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { max-height: 46px; width: auto; transition: max-height var(--d-base) var(--e-out); }
.is-stuck .brand img { max-height: 38px; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-cocoa);
  color: var(--c-gold-soft);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-style: italic;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.4vw, 2rem); }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  /* 0.6rem takes the hit area to 45px tall — clears the 44px guideline
     without changing how the bar looks. */
  padding: 0.6rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  transition: color var(--d-fast) var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--grad-metal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-base) var(--e-out);
}
.nav__link:hover::after,
.nav__item.current-menu-item > .nav__link::after,
.nav__item.current-menu-parent > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: var(--c-cocoa); }
.nav__toggle-icon { width: 14px; height: 14px; transition: transform var(--d-base) var(--e-out); }
.nav__item:hover > .nav__link .nav__toggle-icon { transform: rotate(180deg); }

/* Dropdown */
.nav__sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 250px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity var(--d-base) var(--e-out),
              transform var(--d-base) var(--e-out),
              visibility var(--d-base);
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__sub a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-ink);
  transition: background-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), padding-left var(--d-fast) var(--e-out);
}
.nav__sub a:hover { background: var(--c-ivory); color: var(--c-cocoa); padding-left: 1.1rem; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: none; }

/*
 * While the drawer is open the header must read as part of it: always
 * transparent (whatever the scroll state), never translated off-screen, and
 * with light marks so the burger-turned-X is visible against the plum.
 */
body.is-locked .site-header {
  transform: none !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.is-locked .burger span { background: var(--c-ink); }
body.is-locked .brand__name { color: var(--c-ink); }
body.is-locked .brand__tag { color: var(--c-ink-mute); }

/* Burger */
.burger {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--d-base) var(--e-out), opacity var(--d-fast) var(--e-out), width var(--d-base) var(--e-out);
}
.burger span:nth-child(2) { width: 15px; margin-left: auto; }
.burger:hover span:nth-child(2) { width: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--grad-cream);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 700ms var(--e-inout);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.drawer__list { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer__list > li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out);
  transition-delay: calc(var(--i, 0) * 60ms + 180ms);
  border-bottom: 1px solid var(--c-line);
}
.drawer.is-open .drawer__list > li { opacity: 1; transform: translateY(0); }
.drawer__list a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-ink);
  transition: color var(--d-fast) var(--e-out), padding-left var(--d-base) var(--e-out);
}
.drawer__list a:hover { color: var(--c-cocoa); padding-left: 0.5rem; }
.drawer__sub a { font-family: var(--f-body); font-size: 1rem; color: var(--c-ink-soft); padding: 0.5rem 0 0.5rem 1rem; }
.drawer__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--d-slow) var(--e-out) 520ms;
}
.drawer.is-open .drawer__foot { opacity: 1; }
.drawer__meta { color: var(--c-ink-soft); font-size: var(--fs-sm); display: grid; gap: 0.5rem; }
.drawer__meta a { display: inline-flex; align-items: center; gap: 0.5rem; }
.drawer__meta svg { width: 16px; height: 16px; color: var(--c-gold); }

/* 09. Hero =============================================================== */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--grad-cream);
  color: var(--c-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* A photographic hero sits behind a cream veil rather than a dark one, so the
   band stays bright and the espresso copy keeps its contrast. */
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(217, 185, 163, 0.5), transparent 60%),
    linear-gradient(180deg, rgba(253, 250, 245, 0.72) 0%, rgba(253, 250, 245, 0.35) 44%, rgba(239, 228, 214, 0.75) 100%);
}
.hero .orb--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(217, 185, 163, 0.62); }
.hero .orb--2 { width: 420px; height: 420px; bottom: -140px; left: -110px; background: rgba(212, 184, 118, 0.38); animation-delay: -8s; }

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.hero__title {
  font-family: var(--f-display);
  /* Deliberately smaller than --fs-display: at the full display size the
     headline runs to four lines and pushes the primary CTA below the fold
     on a 900px-tall laptop. */
  font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: var(--sp-6);
}
.hero__title em { color: var(--c-terra); }
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: var(--sp-12); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
}
.hero__proof-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__proof-num {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1;
  color: var(--c-ink);
}
.hero__proof-num sup { font-size: 0.5em; color: var(--c-gold); top: -0.7em; }
.hero__proof-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

/* Hero visual stack */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(58, 46, 38, 0.18);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(184, 146, 74, 0.32);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: -14px; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  /* A hairline keeps the white card legible against the cream hero. */
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
  color: var(--c-ink);
  animation: float 6s var(--e-inout) infinite alternate;
}
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 1.35rem; line-height: 1; }
.hero__badge span { font-size: var(--fs-xs); color: var(--c-ink-mute); }
/* Note: .hero__badge and .hero__accredit use data-reveal="fade", not "scale" —
   this keyframe owns `transform` on them, so a reveal transform would be
   swallowed. Only opacity is left for the entrance. */
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.hero__accredit {
  position: absolute;
  right: -10px; top: 32px;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 146, 74, 0.3);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  color: var(--c-ink);
  animation: float 7s var(--e-inout) infinite alternate-reverse;
}
.hero__accredit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__accredit svg { width: 16px; height: 16px; color: var(--c-gold); }
.hero__accredit em { color: var(--c-cocoa); font-style: normal; font-weight: 600; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--c-gold));
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  animation: scrollcue 2.2s var(--e-inout) infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* 10. Marquee / accreditations =========================================== */

.marquee {
  padding-block: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  background: var(--c-white);
  border-block: 1px solid var(--c-line);
  overflow: hidden;
}
.marquee__label {
  text-align: center;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 1.25rem;
}
.marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  animation: marquee 34s linear infinite;
}
.marquee__viewport:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  color: var(--c-ink-soft);
  white-space: nowrap;
  transition: color var(--d-base) var(--e-out);
}
.marquee__item:hover { color: var(--c-cocoa); }
.marquee__item svg { width: 20px; height: 20px; color: var(--c-gold); flex: none; }

/* 11. About / mission ==================================================== */

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.about__media { position: relative; }
.about__media-main {
  aspect-ratio: 5 / 6;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__media-sub {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid var(--c-cream);
  box-shadow: var(--shadow-lg);
}
/* Gold frame offset behind the image */
.about__media::before {
  content: "";
  position: absolute;
  inset: -18px -18px 40px 30px;
  border: 1px solid rgba(184, 146, 74, 0.45);
  border-radius: var(--r-xl);
  z-index: -1;
}
.about__list { display: grid; gap: 1.1rem; margin-block: var(--sp-8); }
.about__list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.about__list svg { width: 22px; height: 22px; color: var(--c-gold); flex: none; margin-top: 3px; }
.about__list strong { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: 2px; }
.about__list p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin: 0; }

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
}
.signature > svg { width: 34px; height: 34px; color: var(--c-gold); }
.signature__name { font-family: var(--f-display); font-size: 1.2rem; font-style: italic; color: var(--c-cocoa); }
.signature__role { font-size: var(--fs-xs); color: var(--c-ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }

/* 12. Stats counters ===================================================== */

.stats {
  /* A deeper sand band gives the page rhythm without going dark. */
  background: linear-gradient(150deg, var(--c-ivory) 0%, var(--c-sand) 60%, #e7d9c7 100%);
  color: var(--c-ink);
  position: relative;
  overflow: hidden;
}
.stats .orb { width: 460px; height: 460px; top: -180px; left: 12%; background: rgba(217, 185, 163, 0.5); }
.stats__grid {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.stat { text-align: center; position: relative; padding-inline: 1rem; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  width: 1px; height: 76%;
  background: linear-gradient(to bottom, transparent, rgba(58, 46, 38, 0.16), transparent);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 2rem + 3.4vw, 4.75rem);
  line-height: 1;
  font-weight: 500;
  background: var(--grad-metal-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  letter-spacing: 0.04em;
}

/* 13. Courses ============================================================ */

.courses__grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 1.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-slow) var(--e-out), box-shadow var(--d-slow) var(--e-out), border-color var(--d-base) var(--e-out);
  transform-style: preserve-3d;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
/* Gradient hairline that appears on hover */
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-metal);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
  pointer-events: none;
  z-index: 2;
}
.course-card:hover::before { opacity: 1; }

.course-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--c-ivory);
}
.course-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--e-out);
}
.course-card:hover .course-card__media img { transform: scale(1.07); }
.course-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 34, 26, 0.6), transparent 55%);
}
.course-card__tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(253, 250, 245, 0.94);
  backdrop-filter: blur(8px);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-cocoa);
}
.course-card__index {
  position: absolute;
  right: 1rem; bottom: 0.75rem;
  z-index: 1;
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
}

.course-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 1rem + 1vw, 2rem); }
.course-card__title { margin-bottom: 0.7rem; transition: color var(--d-base) var(--e-out); }
.course-card:hover .course-card__title { color: var(--c-cocoa); }
.course-card__excerpt { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: 1.1rem; }
.course-card__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.course-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-line);
}
.course-card__meta { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--c-ink-mute); }
.course-card__meta svg { width: 15px; height: 15px; color: var(--c-gold); }

/* 14. Features =========================================================== */

.feature {
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 146, 74, 0.4);
}
.feature:hover .medallion { transform: scale(1.08) rotate(-4deg); box-shadow: var(--shadow-gold); }
.feature h3 { font-size: 1.2rem; margin: 1.1rem 0 0.5rem; }
.feature p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin: 0; }

/* 15. Journey timeline =================================================== */

.journey { position: relative; }
.journey__track { position: relative; display: grid; gap: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.journey__line {
  position: absolute;
  left: 27px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--grad-metal);
  opacity: 0.6;
}
.journey__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(1rem, 0.7rem + 1vw, 1.75rem);
  align-items: start;
}
.journey__dot {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-cream);
  border: 1px solid rgba(184, 146, 74, 0.5);
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-cocoa);
  position: relative;
  z-index: 1;
  transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out), transform var(--d-base) var(--e-spring);
}
.journey__step:hover .journey__dot { background: var(--grad-metal); color: var(--c-cocoa-950); transform: scale(1.08); }
.section--ivory .journey__dot { background: var(--c-ivory); }
.journey__body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.journey__body p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin: 0; max-width: 58ch; }

/* 16. Instructors ======================================================== */

.team__grid {
  display: grid;
  gap: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.member {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-cocoa-900);
  isolation: isolate;
}
.member__media { aspect-ratio: 3 / 4; overflow: hidden; }
.member__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--e-out), filter var(--d-slow) var(--e-out);
}
.member:hover .member__media img { transform: scale(1.06); }
.member__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 34, 26, 0.94) 0%, rgba(46, 34, 26, 0.55) 34%, transparent 68%);
  transition: background var(--d-slow) var(--e-out);
}
.member:hover .member__scrim { background: linear-gradient(to top, rgba(46, 34, 26, 0.97) 10%, rgba(46, 34, 26, 0.7) 52%, rgba(46, 34, 26, 0.2) 100%); }
.member__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  color: #fff;
}
.member__name { font-family: var(--f-display); font-size: 1.3rem; color: #fff; margin-bottom: 0.15rem; }
.member__role { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold-soft); }
.member__creds {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  transition: max-height var(--d-slow) var(--e-out), opacity var(--d-slow) var(--e-out), margin-top var(--d-slow) var(--e-out);
}
.member:hover .member__creds,
.member:focus-within .member__creds { max-height: 220px; opacity: 1; margin-top: 0.7rem; }

/* 17. Testimonials ======================================================= */

.testi { position: relative; overflow: hidden; }
.testi__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.testi__rating {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.25rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.testi__rating-num { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--c-cocoa); }
.testi__rating-meta { font-size: var(--fs-xs); color: var(--c-ink-mute); }

.testi__viewport {
  overflow: hidden;
  cursor: grab;
  /* Hand vertical panning back to the browser. Without this, capturing the
     pointer on touch swallows the gesture and the page cannot be scrolled
     while the finger starts on a testimonial card. */
  touch-action: pan-y;
}
.testi__viewport.is-dragging { cursor: grabbing; }
.testi__track {
  display: flex;
  gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  transition: transform var(--d-slow) var(--e-out);
  will-change: transform;
}
.testi__track.no-anim { transition: none; }

.quote {
  flex: 0 0 auto;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
}
.quote:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
/* Only the draggable rail suppresses selection — on the Testimonials page the
   reviews must stay selectable and copyable. */
.testi__track .quote { user-select: none; }
.quote__mark {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.6;
  color: rgba(184, 146, 74, 0.3);
  margin-bottom: 0.75rem;
}
.quote__text { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: 1.5rem; flex: 1; }
.quote__foot { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.1rem; border-top: 1px solid var(--c-line); }
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-cocoa);
  color: var(--c-gold-soft);
  font-family: var(--f-display);
  font-size: 1.05rem;
  flex: none;
  overflow: hidden;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__name { font-weight: 600; font-size: var(--fs-sm); }
.quote__meta { font-size: var(--fs-xs); color: var(--c-ink-mute); }

.testi__nav { display: flex; gap: 0.5rem; }
.testi__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  color: var(--c-cocoa);
  background: var(--c-white);
  transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}
.testi__btn:hover:not(:disabled) { background: var(--c-cocoa); color: #fff; border-color: var(--c-cocoa); transform: translateY(-2px); }
.testi__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.testi__btn svg { width: 18px; height: 18px; }

/* 18. FAQ ================================================================ */

.faq { display: grid; gap: 0.75rem; max-width: 880px; margin-inline: auto; }
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.faq__item.is-open { border-color: rgba(184, 146, 74, 0.5); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 0.9rem + 0.5vw, 1.4rem) clamp(1.1rem, 1rem + 0.5vw, 1.6rem);
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--c-ink);
  transition: color var(--d-base) var(--e-out);
}
.faq__q:hover { color: var(--c-cocoa); }
.faq__icon {
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  color: var(--c-cocoa);
  transition: transform var(--d-base) var(--e-out), background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--d-base) var(--e-out), opacity var(--d-base) var(--e-out);
}
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 12px; }
.faq__item.is-open .faq__icon { background: var(--grad-metal); color: var(--c-cocoa-950); border-color: transparent; transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { opacity: 0; transform: rotate(90deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-slow) var(--e-inout);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 clamp(1.1rem, 1rem + 0.5vw, 1.6rem) clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  margin: 0;
}

/* 19. Insights / blog ==================================================== */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-ivory); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--e-out); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.post-card__date {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.6rem;
}
.post-card__title { font-size: 1.22rem; line-height: 1.28; margin-bottom: 0.6rem; transition: color var(--d-base) var(--e-out); }
.post-card:hover .post-card__title { color: var(--c-cocoa); }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: 1.25rem; }
.post-card__body .link-u { margin-top: auto; align-self: flex-start; }

/* 20. CTA band =========================================================== */

.cta {
  position: relative;
  background: var(--grad-cocoa);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta .orb--1 { width: 480px; height: 480px; top: -170px; right: 4%; background: rgba(184, 146, 74, 0.32); }
.cta .orb--2 { width: 380px; height: 380px; bottom: -160px; left: 2%; background: rgba(217, 185, 163, 0.24); animation-delay: -6s; }
.cta__inner { position: relative; text-align: center; max-width: 780px; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: var(--sp-8); }
.cta__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.72); /* 0.5 alpha measured 3.74:1 on cocoa */
  letter-spacing: 0.06em;
}

/* 21. Footer ============================================================= */

.site-footer {
  background: var(--c-cocoa-950);
  color: rgba(255, 255, 255, 0.64);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: rgba(255, 255, 255, 0.45); }
.footer__about { margin-block: 1.25rem; max-width: 42ch; }
.footer__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer__list { display: grid; gap: 0.6rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--d-fast) var(--e-out), transform var(--d-base) var(--e-out);
}
.footer__list a:hover { color: var(--c-gold-soft); transform: translateX(4px); }
.footer__contact { display: grid; gap: 0.9rem; }
.footer__contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--c-gold); flex: none; margin-top: 3px; }
.footer__contact a:hover { color: #fff; }

.socials { display: flex; gap: 0.55rem; margin-top: 1.5rem; }
.socials a {
  /* 44px is the minimum comfortable touch target (Apple HIG / WCAG 2.5.5). */
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out), transform var(--d-base) var(--e-spring), border-color var(--d-base) var(--e-out);
}
.socials a:hover {
  background: var(--grad-metal);
  color: var(--c-cocoa-950);
  border-color: transparent;
  transform: translateY(-3px) scale(1.06);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* The component's default marks are light for the espresso footer; inside the
   cream drawer they need the espresso treatment instead. */
.drawer .socials a { border-color: var(--c-line-strong); color: var(--c-ink-soft); }
.drawer .socials a:hover { color: var(--c-cocoa-950); }

.footer__map {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: grayscale(1) invert(0.9) contrast(0.85);
  transition: filter var(--d-slow) var(--e-out);
  aspect-ratio: 16 / 10;
}
.footer__map:hover { filter: grayscale(0) invert(0) contrast(1); }
.footer__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.62); /* 0.45 alpha measured 4.08:1 on espresso */
}
.footer__bar a:hover { color: var(--c-gold-soft); }

/* 22. Floating UI ======================================================== */

.to-top,
.wa-float {
  position: fixed;
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--d-base) var(--e-spring), opacity var(--d-base) var(--e-out), visibility var(--d-base);
}
.to-top {
  right: var(--gutter);
  bottom: calc(var(--gutter) + 72px);
  width: 46px; height: 46px;
  background: var(--c-white);
  color: var(--c-cocoa);
  border: 1px solid var(--c-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 18px; height: 18px; }

.wa-float {
  right: var(--gutter);
  bottom: var(--gutter);
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s var(--e-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.65; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* 23. Inner pages & WordPress core ======================================= */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2.5rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--grad-cream);
  color: var(--c-ink);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero .orb { width: 440px; height: 440px; top: -160px; right: 6%; background: rgba(217, 185, 163, 0.55); }
.page-hero__inner { position: relative; max-width: 780px; margin-inline: auto; }
.page-hero h1 { color: var(--c-ink); margin-bottom: var(--sp-4); }
.page-hero h1 em { color: var(--c-terra); }
.page-hero p { color: var(--c-ink-soft); font-size: var(--fs-lead); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
}
.breadcrumbs a:hover { color: var(--c-cocoa); }
.breadcrumbs span[aria-hidden] { opacity: 0.4; }

/* Long-form content */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.75em; }
.prose a:not(.btn) {
  color: var(--c-cocoa);
  text-decoration: underline;
  text-decoration-color: rgba(184, 146, 74, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--d-fast) var(--e-out);
}
.prose a:not(.btn):hover { text-decoration-color: var(--c-gold); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--c-gold); }
.prose img, .prose figure { border-radius: var(--r-md); }
.prose blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--c-gold);
  background: var(--c-ivory);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--c-cocoa);
}
.prose code {
  background: var(--c-ivory);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose pre { background: var(--c-cocoa-950); color: #fff; padding: 1.25rem; border-radius: var(--r-md); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.75rem 1rem; border: 1px solid var(--c-line); text-align: left; }
.prose th { background: var(--c-ivory); font-weight: 600; }

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }
.alignwide { width: min(100vw - 2 * var(--gutter), 1100px); margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--c-ink-mute); margin-top: 0.5rem; text-align: center; }
.sticky .post-card { border-color: var(--c-gold); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: var(--sp-16); }
.pagination .page-numbers {
  min-width: 46px; height: 46px;
  display: grid; place-items: center;
  padding-inline: 0.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-white);
  font-size: var(--fs-sm);
  transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
}
.pagination .page-numbers:hover { border-color: var(--c-cocoa); color: var(--c-cocoa); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--c-cocoa); border-color: var(--c-cocoa); color: #fff; }

/* Forms */
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-soft); }
.field label .req { color: #c0392b; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  background: var(--c-white);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.18);
}
input::placeholder, textarea::placeholder { color: var(--c-ink-mute); }
.field__help { font-size: var(--fs-xs); color: var(--c-ink-mute); }
.field__error { font-size: var(--fs-xs); color: #c0392b; }

/* Contact split */
.contact__grid { display: grid; gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact__card {
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.contact__info { display: grid; gap: 1.25rem; }
.contact__info li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__info .medallion { width: 46px; height: 46px; border-radius: var(--r-sm); }
.contact__info .medallion svg { width: 20px; height: 20px; }
.contact__info strong { display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-mute); margin-bottom: 2px; }
.contact__info a, .contact__info span { color: var(--c-ink); font-weight: 500; }
.contact__info a:hover { color: var(--c-cocoa); }

/* Single course layout */
.course-single__grid { display: grid; gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.course-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.course-aside__facts { display: grid; gap: 0.9rem; margin-bottom: 1.5rem; }
.course-aside__facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.course-aside__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.course-aside__facts span:first-child { color: var(--c-ink-mute); display: inline-flex; align-items: center; gap: 0.5rem; }
.course-aside__facts svg { width: 16px; height: 16px; color: var(--c-gold); }
.course-aside__facts strong { font-weight: 600; text-align: right; }

.module-list { display: grid; gap: 0.6rem; }
.module-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
}
.module-list li:hover { border-color: rgba(184, 146, 74, 0.5); transform: translateX(4px); }
.module-list svg { width: 18px; height: 18px; color: var(--c-gold); flex: none; margin-top: 3px; }

/* Empty state */
.empty {
  text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--gutter);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  background: var(--c-white);
}
.empty svg { width: 44px; height: 44px; color: var(--c-line-strong); margin-inline: auto; margin-bottom: 1rem; }

/* Feature card doubling as a link (post navigation) */
a.feature { display: block; }
a.feature h3 { transition: color var(--d-base) var(--e-out); }
a.feature:hover h3 { color: var(--c-cocoa); }

/* Search form */
.search-form .search-field { min-height: 52px; }
.search-form .btn svg { width: 20px; height: 20px; }

/* Widgets */
.widget { margin-bottom: var(--sp-8); }
.widget__title { font-size: 1.15rem; margin-bottom: 1rem; }
.widget ul { display: grid; gap: 0.6rem; }
.widget ul a { font-size: var(--fs-sm); color: var(--c-ink-soft); transition: color var(--d-fast) var(--e-out); }
.widget ul a:hover { color: var(--c-cocoa); }

/* Comments */
.comment-list .comment-body {
  padding: 1.25rem 1.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.comment-list .children { padding-left: clamp(1rem, 0.5rem + 2vw, 2.5rem); margin-top: 1rem; display: grid; gap: 1rem; }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--fs-xs); color: var(--c-ink-mute); }
.comment-respond { margin-top: var(--sp-12); }
.comment-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.comment-form .form-submit { margin: 0; }
.comment-reply-title { font-family: var(--f-display); font-size: var(--fs-h3); }

/* Testimonials page — grid instead of the homepage rail */
.quote-grid {
  display: grid;
  gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  align-items: start;
}
/* .quote is sized for the flex rail; in a grid it should fill its track. */
.quote-grid .quote { width: auto; flex: initial; }

.rating-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 0.8rem + 1.2vw, 2rem);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.rating-banner__score .stat__num { font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); }
.rating-banner__meta { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-top: 0.25rem; }
.rating-banner__note {
  margin-left: auto;
  max-width: 34ch;
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  padding-left: clamp(0rem, -1rem + 2vw, 1.5rem);
  border-left: 1px solid var(--c-line);
}

/* ----- Added motion --------------------------------------------------- */

/* Blur-in reveal, for long-form intros and prose blocks */
[data-reveal="blur"] {
  filter: blur(10px);
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--d-reveal) var(--e-out),
              transform var(--d-reveal) var(--e-out),
              filter var(--d-reveal) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="blur"].is-in { filter: blur(0); }

/* Cursor spotlight on cards. JS writes --mx / --my. */
[data-spotlight] { position: relative; }
[data-spotlight] > * { position: relative; z-index: 1; }
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              rgba(184, 146, 74, 0.18), transparent 68%);
  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
}
[data-spotlight]:hover::after { opacity: 1; }

/* Hero visual drifts with the pointer for a little depth. JS writes --hx/--hy. */
.hero__frame {
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  transition: transform 600ms var(--e-out);
}

/* Hero content eases away as the page scrolls past it. JS writes --hero-out. */
.hero__content,
.hero__visual {
  opacity: calc(1 - var(--hero-out, 0) * 0.7);
  transform: translate3d(0, calc(var(--hero-out, 0) * -40px), 0);
}

/* The journey line now fills in step with scroll progress rather than once. */
.journey__line.draw-line {
  transform: scaleY(var(--draw, 0));
  transition: none;
}
.journey__line.draw-line.is-in { transform: scaleY(var(--draw, 1)); }

/* Marquee leans into the scroll direction. JS writes --skew. */
.marquee__track { transform: skewX(var(--skew, 0deg)); transition: transform 500ms var(--e-out); }

/* Cross-page veil, so navigating between the five pages is a fade not a flash. */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--grad-cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms var(--e-out), visibility 280ms;
}
body.is-leaving .page-veil { opacity: 1; visibility: visible; }

/* 24. Responsive ========================================================= */

@media (min-width: 600px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--split { grid-template-columns: minmax(0, 1.4fr) auto; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .hero__scroll { display: flex; }
  .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .course-single__grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
}

@media (max-width: 899px) {
  .about__media-sub { width: 40%; right: 0; bottom: -6%; }
  .stat + .stat::before { display: none; }
  .journey__line { left: 22px; }
  .journey__step { grid-template-columns: 46px minmax(0, 1fr); }
  .journey__dot { width: 46px; height: 46px; font-size: 0.95rem; }
  .course-aside { position: static; }
}

@media (max-width: 479px) {
  /* The tagline wraps to two lines on a 375px screen and inflates the header;
     the wordmark alone is enough at this size. */
  .brand__tag { display: none; }
}

@media (max-width: 599px) {
  .hero__badge { left: 0; bottom: 16px; padding: 0.7rem 0.95rem; }
  .hero__accredit { right: 0; top: 16px; }
  .quote { width: min(100%, 320px); }
  .footer__bar { justify-content: center; text-align: center; }
}

/* 25. Reduced motion & print ============================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Render everything at its final state rather than leaving it hidden */
  [data-reveal],
  [data-reveal].is-in { opacity: 1 !important; transform: none !important; }
  .reveal-img img { clip-path: none !important; transform: none !important; }
  .split-word { transform: none !important; }
  .draw-line { transform: none !important; }
  [data-parallax] { transform: none !important; }
  [data-reveal="blur"] { filter: none !important; }
  [data-spotlight]::after { display: none !important; }
  .hero__frame { transform: none !important; }
  .hero__content, .hero__visual { opacity: 1 !important; transform: none !important; }
  .journey__line.draw-line { transform: scaleY(1) !important; }
  .marquee__track { transform: none !important; }
  .page-veil { display: none !important; }
  .marquee__track { animation: none !important; transform: none !important; translate: none !important; }
  .orb, .hero__badge, .hero__accredit, .wa-float::after { animation: none !important; }
  .preloader { display: none !important; }
  .drawer { clip-path: none !important; transition: opacity var(--d-fast) linear, visibility var(--d-fast); opacity: 0; }
  .drawer.is-open { opacity: 1; }
  .drawer__list > li { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .drawer, .to-top, .wa-float, .preloader, .progress, .grain, .cta, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
