/* ============================================================
   Tantra for the Soul — Natalie
   ============================================================ */

:root {
  --bg: #140a17;
  --bg-soft: #1c1020;
  --surface: #221327;
  --ink: #f4e9dd;
  --ink-dim: #c4ad9f;
  --ink-faint: rgba(244, 233, 221, 0.45);
  --hairline: rgba(244, 233, 221, 0.14);
  --rose: #d96f5e;
  --rose-soft: #e8a87c;
  --gold: #ddb98a;
  --plum: #4b2240;
  --grad-warm: linear-gradient(115deg, #e8a87c 0%, #d96f5e 48%, #c95f7d 100%);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rose); color: var(--bg); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rose-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}
.container-narrow { width: min(880px, 100% - 3rem); }

.section { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; }

/* Pre-hide animated elements so pages don't flash fully-rendered content
   before GSAP starts the entrance/reveal tweens. Gated on the `js` class
   (set inline in <head>) and motion preference, so content is never hidden
   for no-JS or reduced-motion visitors. GSAP's inline styles take over from here. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-entrance],
  html.js [data-reveal] { opacity: 0; }
}

/* ---------- typography ---------- */

h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: 'opsz' 100;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }

h2 em, h1 em, blockquote em {
  font-style: italic;
  font-weight: 340;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* italic glyphs overhang the box (descenders kick left) — pad so the clipped
     gradient still paints them; the negative margin keeps layout unchanged */
  padding: 0 0.06em 0.08em 0.1em;
  margin-left: -0.1em;
}

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-bottom: 1.6rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1em 2.1em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.45s;
  will-change: transform;
}

.btn-primary {
  background: var(--grad-warm);
  border-color: transparent;
  color: #2a1018;
  font-weight: 500;
  box-shadow: 0 8px 32px -8px rgba(217, 111, 94, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -8px rgba(217, 111, 94, 0.6);
}

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover {
  border-color: var(--rose-soft);
  color: var(--rose-soft);
  transform: translateY(-2px);
}

.btn-small { padding: 0.7em 1.5em; font-size: 0.82rem; }

/* ---------- entry veil ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  /* bias the lockup above true center; padding keeps GSAP's transform animation untouched */
  padding-bottom: 16vh;
  background: var(--bg);
  overflow: hidden;
}
.veil-inner { text-align: center; }
.veil-mark {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-top: -0.5rem;
}
.brand-text.veil-brand {
  color: var(--gold);
  gap: 0.5em;
  transform: translateY(-12px);
}
.veil-brand .brand-row1 { font-size: 1.7rem; }
.veil-brand .brand-row2 { font-size: 1.15rem; }

/* Center the surrounding mandala on the lotus below the text lockup. */
.veil-mark-anchor {
  position: relative;
  display: inline-block;
}

.veil-ornament {
  --veil-orn-size: min(560px, 92vw, 80vh);
  /* centered on the lotus anchor (left/top 50% resolve against it) */
  left: 50%;
  top: 50%;
  width: var(--veil-orn-size);
  /* center via margins so the animated transform stays a pure rotation —
     mixing translate into the spin makes the pivot drift off-center */
  margin-left: calc(var(--veil-orn-size) / -2);
  margin-top: calc(var(--veil-orn-size) / -2);
  transform-box: border-box;
  transform-origin: 50% 50%;
  opacity: 0.07;
}
@media (prefers-reduced-motion: no-preference) {
  /* opacity fade only — the rotation is driven by GSAP (initEntry), which
     handles SVG transform origins correctly where CSS keyframes drift */
  .veil-ornament { animation: veil-fade-in 1.6s ease-out backwards; }
  /* `backwards` only — a forward fill would outrank GSAP's inline exit styles */
  .veil-inner { animation: veil-enter 1.1s var(--ease-out) backwards; }
}
@keyframes veil-fade-in { from { opacity: 0; } }
@keyframes veil-enter {
  from { opacity: 0; transform: translateY(14px); }
}

html.is-loaded .veil { pointer-events: none; }

/* ---------- video lightbox ---------- */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(12, 6, 14, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}
.video-lightbox-frame {
  position: relative;
  width: min(960px, 92vw, calc(78vh * 16 / 9));
  transform: scale(0.96) translateY(10px);
  transition: transform 0.4s var(--ease-out);
}
.video-lightbox.is-open .video-lightbox-frame {
  transform: scale(1) translateY(0);
}
.video-lightbox-player {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.video-lightbox-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(34, 19, 39, 0.6);
  color: var(--ink-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.video-lightbox-close:hover,
.video-lightbox-close:focus-visible {
  color: var(--rose-soft);
  border-color: var(--rose-soft);
}
html.lightbox-open { overflow: hidden; }

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20, 10, 23, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  width: min(1200px, 100% - 3rem); /* match .container so the brand aligns with the page grid */
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: auto;
}
/* The header starts quiet; its entrance glimmer brings the lettering up to full light. */
.js .brand-intro > .brand-text { opacity: 0.24; }
/* Stacked wordmark matching the channel logo: TANTRA / for the SOUL */
.brand-text {
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.34em;
  color: var(--ink);
}
.brand-row1 {
  font-size: 1.04rem;
  font-weight: 430;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* balance trailing letter-space so the row centers true */
}
.brand-row2 {
  font-size: 0.72rem;
  font-weight: 430;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}
.brand-row2 em {
  font-family: 'Great Vibes', var(--font-display);
  font-style: normal; /* the script face is already cursive; italic would double-slant it */
  font-weight: 400;
  font-size: 1.8em;
  text-transform: none;
  letter-spacing: normal;
  line-height: 0.5; /* tall script ascenders must not stretch the nav row */
}

.nav-links { display: flex; gap: 2.2rem; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
/* primary nav links + the account links ("Log in" / "My courses" / "Sign out")
   share the same look, including the animated underline on hover/active. */
.nav-links a, .nav-login {
  position: relative;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  transition: color 0.3s;
  padding: 0.4rem 0;
}
.nav-links a::after, .nav-login::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-login:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-login:hover::after { transform: scaleX(1); transform-origin: left; }

/* keep the account links on a single line, and space them like the primary nav
   links: nav-actions' own gap is 0.6rem, so +1.6rem makes the 2.2rem used between
   "About" and "Courses" (e.g. "Log in" → "Watch on YouTube"). */
.nav-login { white-space: nowrap; margin-right: 1.6rem; }

/* Gradient outline ring, faded in on hover: a subtler echo of the nav-link
   underline. The button face stays clear; on hover the whole outline fades from the
   faint hairline into the warm gradient — no sweep. Shared by the nav CTAs ("Watch
   on YouTube" / "Book a call") and any button tagged .btn-ring (the ghost CTAs in
   the hero and the "begin" section on the home page). */
.nav-cta, .btn-ring { position: relative; }
.nav-cta::after, .btn-ring::after {
  content: '';
  position: absolute;
  inset: -1px;                 /* sit on the 1px border rather than inside it */
  border-radius: inherit;
  padding: 1px;                /* ring thickness == the button's border width */
  /* full gradient ring, faded in on hover. the palette is mirrored
     (peach -> rose -> peach) so the two ends meet on the same colour and the
     loop closes with no hard seam. */
  background: conic-gradient(from 180deg,
    #e8a87c, #d96f5e, #c95f7d, #d96f5e, #e8a87c);
  /* keep only the 1px frame: full layer XOR the content-box layer */
  -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;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.nav-cta:hover::after, .btn-ring:hover::after { opacity: 1; }
/* the nav CTAs also brighten their faint label on hover */
.nav-cta { color: var(--ink-dim); }
.nav-cta:hover { color: var(--ink); }

/* members sign-in landing (/members) */
.members { width: min(620px, 100% - 3rem); }
.members h1 { margin-bottom: 0.6rem; }
.members > .book-sub { margin-bottom: 2.4rem; max-width: 34em; }
.members-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2rem 1.9rem;
  background: linear-gradient(165deg, rgba(244, 233, 221, 0.045), rgba(244, 233, 221, 0.01));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}
.members-note { margin: 0; color: var(--ink-dim); line-height: 1.6; }
.members-alt { margin-top: 1.9rem; color: var(--ink-dim); font-size: 0.95rem; }
.members-alt a { color: var(--rose-soft); }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, 3px); }
html.menu-open .menu-toggle span:nth-child(1) { transform: translate(-50%, -1px) rotate(45deg); }
html.menu-open .menu-toggle span:nth-child(2) { transform: translate(-50%, -1px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  /* near-opaque plain background: a backdrop blur here is invisible at this
     alpha but forces per-frame recompositing that makes the menu lag on phones */
  background: rgba(18, 9, 21, 0.985);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}
html.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-out);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 1.25;
  padding: 0.35rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
}
.mobile-menu nav a i {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--rose-soft);
}
.mobile-menu-foot {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  opacity: 0;
}
.mobile-menu-foot a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* a warm backdrop behind the canvas: it normally sits hidden under the opaque
     smoke, but when the canvas fades out during an ornament ignite (a perf move
     — see js/ornament-egg.js) this keeps the hero warm instead of flat dark */
  background:
    radial-gradient(120% 90% at 70% 20%, #3d1c33 0%, transparent 60%),
    radial-gradient(100% 80% at 20% 85%, #34182c 0%, transparent 55%),
    var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 90% at 70% 20%, #3d1c33 0%, transparent 60%),
    radial-gradient(100% 80% at 20% 85%, #34182c 0%, transparent 55%),
    var(--bg);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,10,23,0.55) 0%, transparent 26%, transparent 76%, var(--bg) 100%);
}

.ornament {
  position: absolute;
  color: var(--rose-soft);
  pointer-events: none;
  /* the ignite sweep's breath ring and glow paint just past the viewBox */
  overflow: visible;
}
.ornament-sweep {
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-ornament {
  top: 50%;
  right: -8vw;
  width: clamp(340px, 44vw, 720px);
  transform: translateY(-50%);
  opacity: 0.16;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}

.hero-label { margin-bottom: 2.2rem; }

.hero-title {
  font-size: clamp(3.2rem, 10.5vw, 8.8rem);
  font-weight: 370;
  line-height: 0.99;
  margin-bottom: 2.2rem;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  /* room for italic descenders (the "y" in body.) below the tight line-height */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.hero-title .line-inner { display: inline-block; }

.hero-sub {
  max-width: 34em;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
  margin-bottom: 2.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.scroll-cue-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue-line {
  width: 1px;
  height: 52px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  left: 0; top: -50%;
  width: 100%;
  height: 50%;
  background: var(--grad-warm);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

/* ---------- marquee (word strip) ---------- */

.word-strip {
  position: relative;
  padding: 1.7rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-soft);
  overflow: hidden;
}
/* soft fades so the words emerge / dissolve into the strip at both edges */
.word-strip::before,
.word-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}
.word-strip::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.word-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg-soft), transparent); }

/* Two identical sets sit side by side; sliding the track by -50% (exactly one set)
   loops seamlessly. Each word owns its trailing space (padding-right), so the gap
   across the set boundary matches the gap between words. */
.word-strip-track {
  display: flex;
  width: max-content;
}
.word-strip-set {
  display: flex;
  align-items: center;
  margin: 0;
}
.ws-item {
  display: inline-flex;
  align-items: center;
  gap: 2.2em;            /* between a word and its separator */
  padding-right: 2.2em;  /* between this item and the next word */
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.word-strip-set i {
  font-style: normal;
  font-size: 0.85em;
  color: var(--rose);
  opacity: 0.5;
}
@media (max-width: 900px) {
  .word-strip { padding: 1.2rem 0; }
  .ws-item { font-size: 0.68rem; letter-spacing: 0.2em; gap: 1.7em; padding-right: 1.7em; }
}
@media (max-width: 420px) {
  .ws-item { font-size: 0.64rem; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: no-preference) {
  .word-strip-track { animation: word-strip-scroll 55s linear infinite; will-change: transform; }
  .word-strip:hover .word-strip-track { animation-play-state: paused; } /* let visitors read */
}
/* No motion preference: don't scroll — centre a single set and drop the clone. */
@media (prefers-reduced-motion: reduce) {
  .word-strip { overflow: visible; padding-inline: 1.5rem; }
  .word-strip::before, .word-strip::after { display: none; }
  .word-strip-track { display: block; width: 100%; }
  .word-strip-set { flex-wrap: wrap; justify-content: center; column-gap: 2.2em; row-gap: 0.9em; }
  .word-strip-set + .word-strip-set { display: none; }
  .ws-item { padding-right: 0; }
}
@keyframes word-strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- manifesto ---------- */

.manifesto {
  position: relative;
  padding: clamp(7rem, 14vw, 12rem) 0;
  overflow: hidden;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.9vw, 3.3rem);
  font-weight: 350;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.manifesto-text .w {
  display: inline-block;
  opacity: 0.13;
  will-change: opacity;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.orb-a {
  width: 420px; height: 420px;
  right: -140px; top: 8%;
  background: radial-gradient(circle, rgba(217,111,94,0.22), transparent 65%);
}
.orb-b {
  width: 360px; height: 360px;
  left: -120px; bottom: 4%;
  background: radial-gradient(circle, rgba(75,34,64,0.55), transparent 65%);
}
.orb-c {
  width: 460px; height: 460px;
  left: 50%; top: 50%;
  margin: -230px 0 0 -230px;
  background: radial-gradient(circle, rgba(221,185,138,0.10), transparent 65%);
}

/* ---------- the path ---------- */

.path { background: var(--bg-soft); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.path-card {
  position: relative;
  padding: 2.6rem 2.2rem 2.4rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(244,233,221,0.035), rgba(244,233,221,0.006));
  transition: transform 0.55s var(--ease-out), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% -10%, rgba(217,111,94,0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.path-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 168, 124, 0.35);
}
.path-card:hover::before { opacity: 1; }

.path .path-card {
  display: flex;
  flex-direction: column;
}
.path .path-card p { flex-grow: 1; }

.path-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose-soft);
  margin-bottom: 2.6rem;
}
.path-card h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.path-card p {
  font-size: 0.98rem;
  color: var(--ink-dim);
  position: relative;
}
.path-key {
  display: inline-block;
  align-self: flex-start;
  margin-top: 1.8rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5em 1.2em;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  /* 50% of width = 40% of height at 4:5, so the top is a true semicircular arch */
  border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px;
  background:
    radial-gradient(140% 110% at 30% 12%, rgba(232,168,124,0.32) 0%, transparent 52%),
    radial-gradient(120% 100% at 80% 90%, rgba(201,95,125,0.30) 0%, transparent 58%),
    linear-gradient(170deg, #3a1b33 0%, #1c1020 78%);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* The arch's arc is centered 50%-of-width below the top edge (40% of height at 4:5);
   ornament and letter share that center so the circle runs concentric with the arch. */
.portrait-ornament {
  width: 94%;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
}
.portrait-letter {
  position: absolute;
  left: 48%; top: 38%;
  /* the right-heavy swash padding skews the box; nudge right to optically center the glyph */
  transform: translate(calc(-50% + 0.13em), -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 340;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  /* italic swash overhangs the em box — pad so background-clip:text still paints it */
  padding: 0.15em 0.3em 0.05em 0.05em;
}
.portrait-caption {
  position: absolute;
  bottom: 1.6rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.about-copy h2 { margin-bottom: 1.8rem; }
.about-copy p { color: var(--ink-dim); max-width: 36em; }
.about-copy p + p { margin-top: 1.2rem; }

.about-stat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--hairline);
}
.about-stat-num, .about-stat-plus {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 360;
  line-height: 1;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stat-num { letter-spacing: -0.02em; }
.about-stat-plus { margin-left: -0.9rem; }
.about-stat-text {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.7;
}

.signature {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink) !important;
}

/* ---------- quote ---------- */

.quote {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  text-align: center;
}
.quote blockquote p {
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  font-weight: 350;
  line-height: 1.28;
}
.quote blockquote em { white-space: nowrap; } /* keep "To our body." on one line */

/* ---------- teachings ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.video-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(75,34,64,0.18), rgba(20,10,23,0.42));
  mix-blend-mode: multiply;
  transition: opacity 0.5s;
}
.video-card:hover .video-thumb img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.02);
}
.video-card:hover .video-thumb::after { opacity: 0.4; }

.video-play {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ink);
  padding-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(244,233,221,0.4);
  background: rgba(20,10,23,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(217,111,94,0.85);
  border-color: transparent;
}

.video-watched {
  position: absolute;
  z-index: 2;
  left: 0.7rem;
  top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 10, 23, 0.72);
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
}
.video-card.is-watched .video-thumb img { opacity: 0.55; }
.video-card.is-watched:hover .video-thumb img { opacity: 0.85; }
.video-card.is-last-watched .video-thumb {
  border-color: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
}
.video-card.is-last-watched .video-thumb img { opacity: 0.8; }
.video-card.is-last-watched .video-watched {
  color: var(--rose-soft);
  border-color: rgba(217, 111, 94, 0.6);
}

.video-tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-soft);
}
.video-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.3;
  max-width: 22em;
  transition: color 0.3s;
}
.video-card:hover .video-title { color: var(--rose-soft); }

.teachings-note {
  margin-top: 3rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-faint);
  font-size: 1.1rem;
}

/* ---------- begin / cta ---------- */

.begin {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(90% 90% at 50% 110%, rgba(75,34,64,0.6) 0%, transparent 65%),
    var(--bg);
  border-top: 1px solid var(--hairline);
  padding: clamp(7rem, 14vw, 13rem) 0;
}
.begin-ornament {
  /* the 92vw cap keeps the whole circle on screen on phones */
  --begin-orn-size: min(92vw, clamp(480px, 62vw, 900px));
  left: 50%;
  top: 50%;
  width: var(--begin-orn-size);
  /* center via margins, like the veil ornament: gsap's spin owns the
     transform, and a translate % would get baked to load-time pixels */
  margin-left: calc(var(--begin-orn-size) / -2);
  margin-top: calc(var(--begin-orn-size) / -2);
  transform-box: border-box;
  transform-origin: 50% 50%;
  opacity: 0.1;
}
.begin-content { position: relative; z-index: 2; }
.begin h2 { font-size: clamp(2.8rem, 7vw, 5.8rem); margin-bottom: 1.6rem; }
.begin-sub {
  color: var(--ink-dim);
  max-width: 30em;
  margin: 0 auto 2.8rem;
}
.begin-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: var(--bg-soft);
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  /* brand (left) · grouped links (centered) · copyright (far right) */
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2.5rem 4rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  /* shrink the brand block to the wordmark's width and centre "with Natalie" under
     it, sitting just below the logo */
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
}
.footer-with {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: -5px; /* nudge it up snug under the wordmark */
}
.footer-brand-trigger {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.brand-glimmer {
  --glimmer-position: 82%;
  position: absolute;
  /* Include the script's descenders and glow without moving the cloned text. */
  inset: -0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(248, 216, 177, 0.65);
  /* Move one soft band across the wordmark, from upper left to lower right. */
  -webkit-mask-image: linear-gradient(135deg, transparent 43%, #000 50%, transparent 57%);
  mask-image: linear-gradient(135deg, transparent 43%, #000 50%, transparent 57%);
  -webkit-mask-size: 300% 300%;
  mask-size: 300% 300%;
  -webkit-mask-origin: content-box;
  mask-origin: content-box;
  -webkit-mask-position: var(--glimmer-position) var(--glimmer-position);
  mask-position: var(--glimmer-position) var(--glimmer-position);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.brand-glimmer .brand-text,
.brand-glimmer .footer-with { color: #f8d8b1; }
.brand-glimmer.is-still {
  -webkit-mask-image: none;
  mask-image: none;
}
/* grouped link columns, centered between the brand and the copyright */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem 3.5rem;
  justify-content: center;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col-head {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  width: fit-content;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--rose-soft); }
/* right-hand column: copyright + back-to-top, aligned to the far right */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  text-align: right;
}
.footer-fine {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.8;
}
.footer-totop {
  flex: none;
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.3s;
}
.footer-totop:hover { color: var(--rose-soft); }

.footer-soul {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  left: 50%;
  top: 50%;
  /* shifted left of center so the footer links sit in the o-u valley */
  transform: translate(-65%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 26vw, 22rem);
  /* Match the drawing paths, including on small screens. */
  font-variation-settings: 'opsz' 144;
  line-height: 1;
  text-align: left;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,233,221,0.07);
  pointer-events: none;
  white-space: nowrap;
}

.footer-soul.is-interactive {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}
/* Let taps reach the word through the empty areas of the navigation grid.
   Actual links stay above it and keep their own touch targets. */
.has-soul-drawing .footer-grid { pointer-events: none; }
.has-soul-drawing .footer-grid :is(a, button) { pointer-events: auto; }
.footer-soul-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  fill: none;
  stroke: #f8d8b1;
  stroke-width: 1.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(248, 216, 177, 0.4));
  pointer-events: none;
}

/* ---------- reveal defaults (pre-JS state set in JS) ---------- */

/* `.hero-sub br` is covered too: an admin edit renders a plain <br> (no class),
   and it should behave like the original `<br class="br-desktop">` — a line break
   on desktop that collapses on narrow screens. */
.br-desktop, .hero-sub br { display: inline; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  /* five links + two CTAs need room — switch to the hamburger early */
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }

  .path-grid { grid-template-columns: 1fr; max-width: 560px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-card:last-child { grid-column: span 2; max-width: calc(50% - 0.7rem); }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .hero { min-height: 100svh; }
  .hero-ornament {
    top: 30%;
    right: -52vw;
    width: 110vw;
    opacity: 0.07;
  }
  .hero-sub { max-width: 28em; }
  .br-desktop, .hero-sub br { display: none; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin-inline: auto; width: 100%; }

  .video-grid { grid-template-columns: 1fr; }
  .video-card:last-child { grid-column: auto; max-width: none; }

  .section-head-row .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; justify-content: start; gap: 1.6rem 2rem; }
  .footer-bottom { align-items: flex-start; text-align: left; }

  .begin-actions { flex-direction: column; align-items: stretch; }
  .begin-actions .btn { width: 100%; }
}

/* ---------- book-a-call page ---------- */

.nav-links a.is-active, .nav-login[aria-current="page"] { color: var(--rose-soft); }
.nav-links a.is-active::after, .nav-login[aria-current="page"]::after { transform: scaleX(1); }

.book-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(4.5rem, 9vw, 8rem)) 0 clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(110% 90% at 78% 10%, #3d1c33 0%, transparent 58%),
    radial-gradient(90% 70% at 12% 95%, #34182c 0%, transparent 52%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.book-ornament {
  top: 50%;
  right: -10vw;
  width: clamp(320px, 38vw, 620px);
  transform: translateY(-50%);
  opacity: 0.12;
}
.book-hero h1 {
  font-size: clamp(3rem, 8.5vw, 7rem);
  margin-bottom: 1.6rem;
}
.book-sub {
  max-width: 30em;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
}
.book-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding: 0;
  list-style: none;
}
.book-chips li {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.55em 1.3em;
}

.book-body { padding-top: clamp(4rem, 7vw, 6rem); }

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.book-steps {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.book-steps .path-num { margin-bottom: 0.75rem; }

.book-topics { margin-top: clamp(3rem, 6vw, 4.5rem); }
.book-topics h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.6rem; }
.book-topics ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.book-topics li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.55em 1.4em;
  transition: border-color 0.3s, color 0.3s;
}
.book-topics li:hover { border-color: var(--rose-soft); color: var(--ink); }

.book-card {
  position: sticky;
  container-type: inline-size;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 2.8rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(232, 168, 124, 0.25);
  background:
    radial-gradient(130% 100% at 20% 0%, rgba(232,168,124,0.12) 0%, transparent 55%),
    linear-gradient(170deg, #2b1530 0%, #1c1020 80%);
  text-align: left;
}
.book-card h2 {
  font-size: clamp(1.25rem, 11.5cqi, 2.7rem);
  margin-bottom: 1rem;
}
.book-card > p { color: var(--ink-dim); font-size: 0.98rem; }
.book-cta {
  width: 100%;
  margin-top: 1.8rem;
}
.book-fine {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}
.book-card hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 1.8rem 0;
}
.book-alt { font-size: 0.92rem; color: var(--ink-dim); }
.book-alt a {
  color: var(--rose-soft);
  border-bottom: 1px solid rgba(232, 168, 124, 0.4);
  padding-bottom: 0.1em;
}

/* ---------- scheduler (Calendly inline embed) ---------- */

.book-schedule { padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.book-schedule .label { color: var(--rose-soft); }
.book-schedule h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.4rem 0 clamp(1.6rem, 3vw, 2.4rem);
}
.book-schedule-frame {
  border-radius: 24px;
  border: 1px solid rgba(232, 168, 124, 0.25);
  background:
    radial-gradient(130% 100% at 20% 0%, rgba(232,168,124,0.10) 0%, transparent 55%),
    linear-gradient(170deg, #2b1530 0%, #1c1020 80%);
  padding: clamp(0.5rem, 1.2vw, 1rem);
  overflow: hidden;
}
/* Calendly's own min-width is 320px; height is fixed per their embed, taller on
   mobile where the date picker and booking form stack vertically. */
.book-schedule .calendly-inline-widget {
  min-width: 320px;
  height: 720px;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .book-ornament { right: -42vw; width: 95vw; opacity: 0.08; }
}

@media (max-width: 640px) {
  .book-schedule .calendly-inline-widget { height: 1040px; }
}

/* ---------- legal pages (privacy / terms) ---------- */

.legal { padding-top: clamp(5.5rem, 10vw, 8rem); }
.legal-container { width: min(760px, 100% - 3rem); }
.legal-updated { color: var(--ink-faint); font-size: 0.9rem; margin-top: 0.6rem; }
.legal-body { margin-top: clamp(2rem, 4vw, 3rem); color: var(--ink-dim); line-height: 1.75; }
.legal-body h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 2.4rem 0 0.8rem;
}
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a {
  color: var(--rose-soft);
  border-bottom: 1px solid rgba(232, 168, 124, 0.4);
  padding-bottom: 0.05em;
}
.legal-callout {
  margin: 1.8rem 0 2rem;
  padding: 1.3rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 168, 124, 0.3);
  background: linear-gradient(170deg, rgba(43,21,48,0.7), rgba(28,16,32,0.7));
  color: var(--ink-dim);
}
.legal-callout strong { color: var(--ink); }

/* ---------- words / posts page ---------- */

.posts-container { width: min(760px, 100% - 3rem); }

.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.posts-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 3rem 0;
}
.posts-status a {
  color: var(--rose-soft);
  border-bottom: 1px solid rgba(232, 168, 124, 0.4);
}

/* Infinite scroll (videos + posts feeds): a thin sentinel the IntersectionObserver
   watches, a "Loading…" note shown only while a page is in flight, and a centered
   "Load more" button used as the fallback where IntersectionObserver is unavailable. */
.feed-sentinel { height: 1px; }
.feed-loading {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 2.2rem 0 0.4rem;
}
.feed-sentinel.is-loading .feed-loading { display: block; }

.feed-more { display: block; margin: 2.6rem auto 0; }

.post-card {
  padding: 2.4rem 2.3rem 2rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(244,233,221,0.035), rgba(244,233,221,0.006));
  transition: border-color 0.4s;
}
.post-card:hover { border-color: rgba(232, 168, 124, 0.3); }

.post-body p {
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.75;
}
.post-body p + p { margin-top: 1em; }
.post-body p:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
}

.post-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.post-more {
  margin-top: 1.1rem;
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-soft);
  cursor: pointer;
  border-bottom: 1px solid rgba(232, 168, 124, 0.4);
}
.post-more:hover { color: var(--ink); border-bottom-color: var(--ink); }

.post-figure { margin: 1.6rem 0 0; }
.post-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post-meta a {
  margin-left: auto;
  color: var(--rose-soft);
  transition: color 0.3s;
}
.post-meta a:hover { color: var(--ink); }

.posts-foot {
  margin-top: 3.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-faint);
}
.posts-foot a {
  color: var(--rose-soft);
  border-bottom: 1px solid rgba(232, 168, 124, 0.4);
}

@media (max-width: 768px) {
  .post-card { padding: 1.8rem 1.4rem 1.6rem; }
  .post-meta a { margin-left: 0; }
}

/* ---------- thoughts page ---------- */

.thoughts-container { width: min(1040px, 100% - 3rem); }

.thoughts-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.thoughts-count {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.thought-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}

.thought-filter {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-faint);
  padding: 0.58em 1.15em;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.thought-filter:hover,
.thought-filter.is-active {
  color: var(--ink);
  border-color: rgba(232, 168, 124, 0.45);
  background: rgba(232, 168, 124, 0.07);
}

.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.thoughts-grid .posts-status { grid-column: 1 / -1; }

.thought-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.8rem 1.7rem 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background:
    radial-gradient(115% 90% at 20% 0%, rgba(232,168,124,0.08) 0%, transparent 56%),
    linear-gradient(165deg, rgba(244,233,221,0.035), rgba(244,233,221,0.006));
  transition: transform 0.5s var(--ease-out), border-color 0.35s;
}
.thought-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 168, 124, 0.32);
}

.thought-theme {
  margin-bottom: 1.35rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.thought-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 350;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.thought-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.thought-basis {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.thought-source {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-soft);
  transition: color 0.3s;
}
.thought-source:hover { color: var(--ink); }

@media (max-width: 1020px) {
  .thoughts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .thoughts-topline { display: block; }
  .thought-filters { gap: 0.45rem; }
  .thought-filter {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    padding-inline: 0.95em;
  }
  .thoughts-grid { grid-template-columns: 1fr; }
  .thought-card {
    min-height: 0;
    padding: 1.55rem 1.35rem 1.35rem;
  }
}

/* ---------- videos page ---------- */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem 1.4rem;
}
/* The loading/resting status (and "Gathering videos…") is a grid item — span the full
   row so its centered text is centered across the page, not within one column. */
.videos-grid .posts-status { grid-column: 1 / -1; }

.video-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--bg-soft);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.video-duration {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(20, 10, 23, 0.75);
  border-radius: 6px;
  padding: 0.25em 0.6em;
}

.video-card.is-playing .video-thumb {
  border-color: rgba(232, 168, 124, 0.45);
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.video-meta a {
  margin-left: auto;
  color: var(--rose-soft);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.video-meta a:hover { color: var(--ink); }

/* ---------- floating subscribe ---------- */

.float-subscribe {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #2a1018;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 36px -6px rgba(217, 111, 94, 0.55);
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.4s;
}
.float-subscribe.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: subscribe-bob 3.6s ease-in-out 1.2s infinite;
}
.float-subscribe:hover {
  box-shadow: 0 16px 44px -6px rgba(217, 111, 94, 0.75);
  animation-play-state: paused;
}
.float-subscribe-icon { font-size: 0.7em; }

@keyframes subscribe-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .float-subscribe {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85em 1.5em;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .manifesto-text .w { opacity: 1; }
}

/* ============================================================
   Admin editor (private /admin page only)
   ============================================================ */

/* admin top-nav (navigation between admin pages) */
.admin-nav { display: flex; align-items: center; }
.admin-nav-links { display: flex; align-items: center; gap: 1.8rem; }
.admin-nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease-out);
}
.admin-nav-links a:hover { color: var(--ink); }
.admin-nav-links a.is-active { color: var(--rose-soft); }

/* Keep the header "Sign out" visible on the admin page: the public nav hides
   .nav-actions below 1120px (it moves into the site's hamburger), but the admin
   header has its own breakpoint. On phones it moves into the admin menu instead. */
.admin-topnav .nav-actions { display: flex; }
.admin-nav-signout { display: none; } /* only appears inside the mobile menu */

.admin-nav-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.admin-nav-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.admin-nav-toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.admin-nav-toggle span:nth-child(2) { transform: translate(-50%, 4px); }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 720px) {
  .admin-nav-toggle { display: inline-block; }
  /* the inline links become a dropdown panel under the fixed header */
  .admin-nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 10, 23, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.4rem 0 0.7rem;
  }
  .admin-nav.is-open .admin-nav-links { display: flex; }
  .admin-nav-links a {
    padding: 0.85rem clamp(1.5rem, 6vw, 2rem);
    font-size: 1.02rem;
  }
  /* on phones the header "Sign out" button is hidden; it moves into the menu */
  .admin-topnav .nav-actions { display: none; }
  .admin-nav-signout {
    display: block;
    margin-top: 0.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--hairline);
    color: var(--ink-dim);
  }
}

.admin { padding-top: calc(var(--nav-h) + 3rem); }
.admin > .container { width: min(820px, 100% - 3rem); }
.admin h1 { margin-bottom: 0.6rem; }
.admin > .container > .book-sub { margin-bottom: 2rem; max-width: 40em; }

/* admin landing: pick-a-task cards */
.admin-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.admin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.9rem 1.7rem;
  background: rgba(244, 233, 221, 0.02);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.admin-card:hover {
  border-color: var(--rose-soft);
  background: rgba(244, 233, 221, 0.04);
  transform: translateY(-3px);
}
.admin-card-mark { font-size: 1.6rem; line-height: 1; color: var(--gold); }
.admin-card h2 { margin: 0; font-size: 1.5rem; }
.admin-card p { margin: 0; color: var(--ink-dim); font-size: 0.97rem; line-height: 1.55; }
.admin-card-go {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-display);
  color: var(--rose-soft);
  font-size: 0.95rem;
}

/* formatting help disclosure */
.admin-help {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 2.5rem;
  background: rgba(244, 233, 221, 0.02);
}
.admin-help summary {
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--gold);
  padding: 0.5rem 0;
  list-style-position: inside;
}
.admin-help ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; color: var(--ink-dim); font-size: 0.95rem; }
.admin-help li { margin: 0.3rem 0; }
.admin-help code, .admin-help kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.admin-loading, .admin-notice { color: var(--ink-dim); }
.admin-spinner { display: flex; justify-content: center; padding: 3rem 0; }
.admin-spinner::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--rose-soft);
  animation: admin-spin 0.7s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .admin-spinner::after { animation-duration: 2.4s; } }
.admin-notice {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rose-soft);
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
/* The Feeds-page result box sits directly under the "Refresh now" button (whose
   wrapper has no bottom margin), so give it some air. */
#feeds-result { margin-top: 1.6rem; }

/* Scrape sync health — alert panel (admin home) + recent-syncs list (Feeds page). */
.scrape-alert {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(221, 185, 138, 0.07);
  padding: 1rem 1.2rem;
  margin: 0 0 2.4rem;
  font-size: 0.95rem;
}
.scrape-alert.is-error {
  border-left-color: var(--rose);
  background: rgba(217, 111, 94, 0.08);
}
.scrape-alert-head { margin: 0 0 0.4rem; color: var(--ink); }
.scrape-alert-when { color: var(--ink-faint); }
.scrape-alert ul { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; color: var(--ink-dim); }
.scrape-alert li { margin: 0.2rem 0; }
.scrape-alert-foot { margin: 0.4rem 0 0; }
.scrape-alert-foot a { color: var(--rose-soft); border-bottom: 1px solid rgba(232, 168, 124, 0.4); }

.scrape-history { margin-top: 3rem; }
.scrape-history-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.scrape-history-empty { color: var(--ink-faint); font-size: 0.95rem; line-height: 1.6; }
.scrape-list { list-style: none; margin: 0; padding: 0; }
.scrape-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
}
.scrape-row:last-child { border-bottom: 1px solid var(--hairline); }
.scrape-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.scrape-dot.is-ok { background: #86b08a; }
.scrape-dot.is-warn { background: var(--gold); }
.scrape-dot.is-error { background: var(--rose); }
.scrape-when { color: var(--ink-dim); font-size: 0.9rem; min-width: 9rem; }
.scrape-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.scrape-badge {
  font-size: 0.74rem;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  white-space: nowrap;
}
.scrape-badge.is-ok { border-color: rgba(134, 176, 138, 0.5); color: #9cc49f; }
.scrape-badge.is-warn { border-color: rgba(221, 185, 138, 0.5); color: var(--gold); }
.scrape-badge.is-error { border-color: rgba(217, 111, 94, 0.55); color: var(--rose-soft); }
.scrape-badge.is-none { opacity: 0.6; }

@media (max-width: 560px) {
  .scrape-badges { margin-left: 0; width: 100%; }
  .scrape-when { min-width: 0; }
}

/* Buyers & access reconciliation (/admin/buyers). */
.buyers-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; }
.buyers-filter {
  flex: 1 1 16rem;
  max-width: 22rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
}
.buyers-filter::placeholder { color: var(--ink-faint); }
.buyers-filter:focus-visible { outline: none; border-color: var(--rose-soft); }
.buyers { margin-top: 1.6rem; }
.buyers-legend {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(244, 233, 221, 0.012);
  display: grid;
  gap: 0.5rem;
}
.buyers-legend div { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: baseline; }
.buyers-legend dt {
  flex: 0 0 6.5rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 0.9rem;
}
.buyers-legend dd { margin: 0; flex: 1 1 14rem; color: var(--ink-dim); font-size: 0.9rem; }
.buyers-legend a { color: var(--rose-soft); border-bottom: 1px solid rgba(232, 168, 124, 0.4); }
.buyers-legend a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.buyers-links { margin: 0 0 1rem; font-size: 0.88rem; color: var(--ink-faint); }
.buyers-links a { color: var(--rose-soft); border-bottom: 1px solid rgba(232, 168, 124, 0.4); }
.buyers-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.buyers-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.4rem 0 0.2rem; }
.buyers-tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.buyers-tab:hover { color: var(--ink); }
.buyers-tab.is-active { color: var(--ink); border-color: var(--rose-soft); }
.buyers-tab-n { color: var(--ink-faint); margin-left: 0.15em; }
.buyers-tab.is-active .buyers-tab-n { color: var(--rose-soft); }
.buyers-summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.buyers-summary.has-issues { color: var(--rose-soft); }
.buyers-note { margin: 0.2rem 0; color: var(--ink-faint); font-size: 0.9rem; }
.buyers-note.is-warn { color: var(--gold); }
.buyers-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.buyer {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--hairline);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  background: rgba(244, 233, 221, 0.012);
}
.buyer.has-issue { border-left-color: var(--rose); background: rgba(217, 111, 94, 0.05); }
.buyer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  margin-bottom: 0.6rem;
}
.buyer-email { font-family: var(--font-body); color: var(--ink); font-size: 0.98rem; }
.buyer-access {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.16em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.buyer-access.ok { border-color: rgba(134, 176, 138, 0.5); color: #9cc49f; }
.buyer-access.warn { border-color: rgba(221, 185, 138, 0.5); color: var(--gold); }
.buyer-access.bad { border-color: rgba(217, 111, 94, 0.55); color: var(--rose-soft); }
.buyer-empty { margin: 0; color: var(--ink-faint); font-size: 0.88rem; }
.buyer-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.bp {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.bp-name { flex: 1 1 12rem; color: var(--ink); }
.bp-date { color: var(--ink-faint); font-size: 0.82rem; }
.bp-cols { white-space: nowrap; color: var(--ink-faint); }
.bp-stripe { color: var(--rose-soft); text-decoration: none; }
.bp-stripe:hover { text-decoration: underline; }
.bx-yes { color: #86b08a; }
.bx-no { color: var(--rose); }
.bp-issue {
  flex-basis: 100%;
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  color: var(--rose-soft);
}

/* admin: webhook delivery health */
.webhooks { margin-top: 1.6rem; }
.wh-modeline { margin: 0 0 1rem; font-size: 0.9rem; color: var(--ink-faint); }
.wh-mode {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.wh-mode.is-test { border-color: rgba(221, 185, 138, 0.5); color: var(--gold); }
.wh-mode.is-live { border-color: rgba(134, 176, 138, 0.5); color: #9cc49f; }
.wh-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1rem; }
.wh-stat {
  flex: 1 1 12rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  background: rgba(244, 233, 221, 0.012);
}
.wh-stat.is-warn { border-color: rgba(217, 111, 94, 0.45); background: rgba(217, 111, 94, 0.05); }
.wh-num { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.wh-stat.is-warn .wh-num { color: var(--rose-soft); }
.wh-label { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-dim); }
.wh-h { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin: 1.8rem 0 0.8rem; }
.wh-eps, .wh-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.wh-ep, .wh-event {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: rgba(244, 233, 221, 0.012);
}
.wh-event.is-bad { border-color: rgba(217, 111, 94, 0.45); background: rgba(217, 111, 94, 0.05); }
.wh-ep-url { flex: 1 1 16rem; font-family: var(--font-body); color: var(--ink); word-break: break-all; }
.wh-ep-meta { font-size: 0.85rem; color: var(--ink-faint); }
.wh-event-type { flex: 1 1 14rem; font-family: var(--font-body); color: var(--ink); word-break: break-all; }
.wh-event-when { font-size: 0.85rem; color: var(--ink-faint); }
.wh-event-detail { flex-basis: 100%; margin: 0.1rem 0 0; font-size: 0.82rem; color: var(--ink-faint); }
.wh-link { color: var(--rose-soft); text-decoration: none; white-space: nowrap; font-size: 0.85rem; }
.wh-link:hover { text-decoration: underline; }

/* page accordions */
.admin-page {
  border-top: 1px solid var(--hairline);
  padding: 0.4rem 0;
}
.admin-page > summary {
  cursor: pointer;
  list-style-position: inside;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  padding: 1.1rem 0;
}
.admin-page > summary::marker { color: var(--rose-soft); }
.admin-page[open] > summary { color: var(--rose-soft); }

.admin-section {
  border: none;
  margin: 0 0 1.6rem;
  padding: 0 0 0 0.2rem;
}
.admin-section > legend {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.4rem 0;
  margin-bottom: 0.4rem;
}

/* a single editable field */
.admin-field { margin-bottom: 1.5rem; }
.admin-field > label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.admin-field.is-dirty > label::after {
  content: "• edited";
  color: var(--rose-soft);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-left: 0.55rem;
  vertical-align: middle;
}
.admin-field-help {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}
.admin-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 2.8rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}
.admin-field textarea:focus-visible {
  outline: none;
  border-color: var(--rose-soft);
  box-shadow: 0 0 0 2px rgba(232, 168, 124, 0.25);
}
.admin-field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.admin-preview {
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-style: italic;
  min-height: 1em;
}
.admin-preview em { color: var(--rose-soft); font-style: italic; }
.admin-preview a { color: var(--rose-soft); text-decoration: underline; }
.admin-reset {
  flex: none;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0;
  white-space: nowrap;
}
.admin-reset:hover { color: var(--rose-soft); }
.admin-reset[hidden] { display: none; }

/* sticky save bar */
.admin-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: linear-gradient(0deg, var(--bg) 60%, rgba(20, 10, 23, 0));
  padding: 1rem 0 1.1rem;
}
.admin-bar[hidden] { display: none; }
.admin-bar-inner {
  width: min(820px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.admin-dirty { flex: 1; color: var(--ink-dim); font-size: 0.88rem; }
.admin-bar .btn { flex: none; }

/* toast */
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(0.6rem);
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rose-soft);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  color: var(--ink);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.admin-toast[hidden] { display: none; }
.admin-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.is-error { border-left-color: var(--rose); }
.admin-toast a { color: var(--rose-soft); text-decoration: underline; pointer-events: auto; }

/* ---------- courses (Stripe) ---------- */
.courses-intro { margin-top: 0.9rem; max-width: 48ch; color: var(--ink-dim); }
.courses-grid { margin-top: 2.6rem; }
.courses-status { grid-column: 1 / -1; color: var(--ink-dim); padding: 0.8rem 0; }

/* Teachings → Courses read as one "what's offered" pair, so collapse the full
   double-section gap between them (it left a big empty band on wide screens,
   especially when the teaser grid is empty). */
.teachings { padding-bottom: clamp(3rem, 6vw, 5rem); }
.courses-teaser { padding-top: 0; }
.course-card { display: flex; flex-direction: column; }
.course-card h3 { margin: 0 0 0.7rem; }
.course-price {
  align-self: flex-start;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-soft);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.4em 0.9em; margin-bottom: 1.3rem;
}
.course-desc { color: var(--ink-dim); margin: 0 0 1.8rem; }
.course-cta { margin-top: auto; align-self: flex-start; }
.course-cta[disabled] { opacity: 0.6; cursor: progress; }
/* already-owned course (signed-in buyer): ownership note + a way into /learn */
.course-cta-group { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.course-owned { margin: 0; font-family: var(--font-body); font-size: 0.9rem; color: var(--rose-soft); letter-spacing: 0.01em; }
.course-card.is-owned .course-price { opacity: 0.6; }
.courses-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 1rem);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 0.9rem 1.3rem; font-size: 0.95rem; max-width: min(92vw, 460px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s; z-index: 60;
}
.courses-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- courses teaser (homepage) ---------- */
.course-card-link { text-decoration: none; color: inherit; }
.course-card-link .course-more {
  margin-top: auto; padding-top: 0.4rem;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--rose-soft);
  transition: color 0.3s var(--ease-out);
}
.course-card-link:hover .course-more { color: var(--ink); }

/* ---------- /learn member area ---------- */
.learn-app { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 3rem; }
.learn-course-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--hairline); padding-bottom: 0.8rem; margin-bottom: 1.6rem; }
.learn-course-head h2 { margin: 0; }
.learn-count { color: var(--ink-dim); font-family: var(--font-body); font-size: 0.9rem; white-space: nowrap; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); }
.lesson h4 { margin: 0 0 0.6rem; font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink); }
.lesson-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--hairline); background: #000; }
@media (max-width: 768px) { .lesson-list { grid-template-columns: 1fr; } }

/* "More courses" upsell sits close under the owned courses, with a container-width
   hairline divider so it's clear there's more to explore below. */
.learn-owned { padding-bottom: clamp(2rem, 5vw, 3rem); }
.learn-more-section { padding-top: 0; }
.learn-more-section > .container {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.4rem, 6vw, 4rem);
}
/* "Your courses." matches the "More courses to explore" heading size; each owned
   course title below it reads as a sub-heading, clearly smaller than the header. */
.learn-owned h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.learn-course-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* ---------- admin: course content uploads ---------- */
.admin-uploads { margin-top: 2rem; display: flex; flex-direction: column; gap: 2.4rem; }
.upload-course > h3 { margin: 0 0 1rem; }
.upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.upload-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--hairline); border-radius: 14px; background: linear-gradient(165deg, rgba(244,233,221,0.035), rgba(244,233,221,0.006)); }
.upload-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.upload-title { font-family: var(--font-body); font-weight: 500; color: var(--ink); }
.upload-file { font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-dim); word-break: break-all; }
.upload-r2 { color: var(--rose-soft); text-decoration: none; white-space: nowrap; }
.upload-r2:hover { text-decoration: underline; }
/* match the sibling "View in Stripe ↗" size in the course header (the file-row link
   keeps inheriting the smaller .upload-file size) */
.upload-course-meta .upload-r2 { font-size: 0.85rem; }
.upload-state { display: flex; align-items: center; gap: 0.8rem; }
.upload-badge { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.upload-badge.is-up { color: var(--rose-soft); }
.upload-pick { cursor: pointer; }
.upload-pick.is-busy { opacity: 0.6; pointer-events: none; }
.upload-progress { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.upload-bar { height: 100%; width: 0; background: var(--grad-warm); transition: width 0.2s ease; }
@media (max-width: 560px) { .upload-row { grid-template-columns: 1fr; } .upload-state { justify-content: space-between; } }

/* editable lesson title + description (sit at the top of the row) */
.upload-row { align-items: start; }
.upload-meta { gap: 0.5rem; }
.upload-state { align-items: start; }
.upload-title-input,
.upload-desc-input {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-body);
  line-height: 1.5;
}
.upload-title-input { font-size: 1rem; font-weight: 500; }
.upload-desc-input { font-size: 0.92rem; resize: vertical; min-height: 2.6rem; }
.upload-title-input::placeholder,
.upload-desc-input::placeholder { color: var(--ink-faint); }
.upload-title-input:focus-visible,
.upload-desc-input:focus-visible { outline: none; border-color: var(--rose-soft); }
.upload-save:disabled { opacity: 0.4; cursor: default; }

/* lesson description shown to buyers on /learn */
.lesson-desc { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-dim); }

/* how-to-add-a-course note */
.upload-note { margin: 0; padding: 1rem 1.2rem; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(244,233,221,0.02); color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; }
.upload-note a { color: var(--rose-soft); }
.upload-note code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--surface); border: 1px solid var(--hairline); border-radius: 5px; padding: 0.1em 0.4em; }

/* ---------- admin uploads: course head + add control ---------- */
.upload-course-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.upload-course-head h3 { margin: 0; }
.upload-course-meta { display: flex; align-items: baseline; gap: 1rem; white-space: nowrap; }
.upload-stripe { font-family: var(--font-body); font-size: 0.85rem; color: var(--rose-soft); text-decoration: none; }
.upload-stripe:hover { text-decoration: underline; }
.upload-count { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-dim); white-space: nowrap; }
.upload-empty { color: var(--ink-faint); font-family: var(--font-body); font-size: 0.9rem; padding: 0.4rem 0.2rem; }
.upload-add { margin-top: 1rem; cursor: pointer; }
