/* ==========================================================================
   SPADE Mental Health — styles
   Design language: plaster canvas, embossed relief, editorial serif,
   framed media windows (inspired by immersive-g.com), in SPADE plum.
   ========================================================================== */

:root {
  /* Brand */
  --plum: #4D1E4C;
  --plum-700: #3B1639;
  --plum-deep: #2B1029;
  --ink: #1E141C;
  --ivory: #F4EEE6;
  --plaster: #EAE2D8;
  --brass: #B08A5A;
  --lilac: #D8C6D6;

  /* Semantic */
  --bg: var(--ivory);
  --fg: var(--ink);
  --fg-muted: #5A4A57;          /* 7.6:1 on ivory */
  --line: rgba(30, 20, 28, 0.14);
  --on-dark: var(--ivory);
  --on-dark-muted: rgba(244, 238, 230, 0.74);
  --line-dark: rgba(244, 238, 230, 0.16);
  --danger: #A3253A;

  /* Type */
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space & layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section-y: clamp(96px, 13vw, 200px);
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 900ms;

  /* Layers */
  --z-cursor: 1000;
  --z-loader: 900;
  --z-menu: 300;
  --z-header: 200;
  --z-mini: 150;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--plum); color: var(--ivory); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  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: fixed; top: 12px; left: 12px; z-index: calc(var(--z-loader) + 1);
  background: var(--plum); color: var(--ivory);
  padding: 12px 18px; border-radius: 999px; font-weight: 500;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type primitives ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.label__num { font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--plum); }
[data-theme="dark"] .label { color: var(--on-dark-muted); }
[data-theme="dark"] .label__num { color: var(--lilac); }

.eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.6vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 20px;
}
.h2 em, .statement em, .hero__title em, .footer__statement em { color: var(--plum); }
[data-theme="dark"] .h2 em, .hero__title em, .interlude em, .footer__statement em { color: var(--lilac); }

.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--plum); --btn-fg: var(--ivory); --btn-bd: var(--plum);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg, var(--plum-deep));
  transform: translateY(101%); border-radius: inherit;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-hover-fg, var(--btn-fg)); }
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--block { width: 100%; }

.btn--plum { --btn-bg: var(--plum); --btn-fg: var(--ivory); --btn-bd: var(--plum); --btn-hover-bg: var(--plum-deep); }
.btn--ivory { --btn-bg: var(--ivory); --btn-fg: var(--plum-deep); --btn-bd: var(--ivory); --btn-hover-bg: var(--lilac); }
.btn--outline-ivory { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(244,238,230,.55); --btn-hover-bg: var(--ivory); --btn-hover-fg: var(--plum-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; padding-block: 10px;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 6px) / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.link-arrow:hover { background-size: 0% 1px; background-position: right calc(100% - 6px); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--ivory);
  display: none;
  place-items: center;
}
.js-motion .loader { display: grid; }
.loader__inner { display: grid; justify-items: start; gap: 18px; width: min(420px, 80vw); }
.loader__mark { width: 64px; height: auto; }
.loader__title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--ink); }
.loader__count {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-family: var(--font-serif); font-size: clamp(3rem, 9vw, 7rem); line-height: 1;
  color: var(--plum); font-variant-numeric: tabular-nums;
}

/* ---------- Cursor (fine pointers only) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ivory);
  mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: width var(--dur) var(--ease-out), height var(--dur) var(--ease-out), margin var(--dur) var(--ease-out), opacity var(--dur);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: transform 500ms var(--ease-out), background-color var(--dur), color var(--dur);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 238, 230, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity var(--dur);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-dark { color: var(--ivory); }
.site-header.is-dark::before { background: rgba(43, 16, 41, 0.82); }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: block; position: relative; height: 40px; aspect-ratio: 2000 / 899; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--dur); }
.brand__logo--ivory { opacity: 0; }
.site-header.is-dark .brand__logo--plum { opacity: 0; }
.site-header.is-dark .brand__logo--ivory { opacity: 1; }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__list a {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding-block: 12px;
  background: linear-gradient(currentColor, currentColor) right calc(100% - 8px) / 0% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { background-size: 100% 1px; background-position: left calc(100% - 8px); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.bag {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
}
.bag__count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--plum); color: var(--ivory);
  font-size: 0.6875rem; font-weight: 600; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform var(--dur) var(--ease-out);
}
.site-header.is-dark .bag__count { background: var(--ivory); color: var(--plum); }
.bag.has-items .bag__count { transform: scale(1); }
.bag.bump .bag__count { animation: bump 500ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Sound toggle (header + stage) */
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 10px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.sound-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle__bars span {
  width: 2px; height: 4px; border-radius: 1px; background: currentColor;
  transition: height var(--dur) var(--ease-out);
}
.is-on .sound-toggle__bars span { animation: soundBar 1.4s var(--ease-in-out) infinite alternate; }
.is-on .sound-toggle__bars span:nth-child(2) { animation-delay: -0.5s; animation-duration: 1.1s; }
.is-on .sound-toggle__bars span:nth-child(3) { animation-delay: -0.9s; animation-duration: 1.7s; }
.is-on .sound-toggle__bars span:nth-child(4) { animation-delay: -0.3s; animation-duration: 1.25s; }
@keyframes soundBar { 0% { height: 3px; } 100% { height: 14px; } }
@media (max-width: 480px) { .sound-toggle__label { display: none; } .sound-toggle { padding: 0 12px; } }

.stage__sound {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(77, 30, 76, 0.35); color: var(--plum);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.stage__sound:hover, .stage__sound.is-on { background: var(--plum); color: var(--ivory); border-color: var(--plum); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 4px 0 12px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--plum-deep); color: var(--ivory);
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__list li { border-top: 1px solid var(--line-dark); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-serif); font-size: clamp(2.75rem, 11vw, 5rem); line-height: 1.15;
  padding-block: 6px;
  transition: color var(--dur), padding var(--dur) var(--ease-out);
}
.menu__list a:hover { color: var(--lilac); padding-left: 8px; }
.menu__num { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--on-dark-muted); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 0.875rem; color: var(--on-dark-muted); }
.menu__foot a { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
/* Header sits above the open menu */
body.menu-open .site-header { color: var(--ivory); z-index: calc(var(--z-menu) + 1); transform: none; }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .brand__logo--plum { opacity: 0; }
body.menu-open .brand__logo--ivory { opacity: 1; }

/* ---------- Video toggle ---------- */
.video-toggle {
  position: absolute; right: calc(var(--gutter) + 8px); bottom: calc(var(--gutter) + 8px); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ivory); background: rgba(43, 16, 41, 0.45);
  border: 1px solid rgba(244, 238, 230, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--dur);
}
.video-toggle:hover { background: rgba(43, 16, 41, 0.75); }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }

/* ==========================================================================
   0. OPENING STAGE — plaster relief revealed by a light that follows the cursor
   ========================================================================== */
.stage {
  position: relative;
  height: 100vh; height: 100svh; min-height: 600px;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  background: var(--ivory);
  overflow: hidden;
  touch-action: pan-y;
}
.stage__art {
  --mx: 50%; --my: 55%; --r: 0px;
  position: relative;
  display: grid;
  width: 100%; max-width: 1280px;
}
/* Soft light on the plaster, travelling with the cursor */
.stage__art::before {
  content: ""; position: absolute; inset: -30% -10%;
  background: radial-gradient(circle calc(var(--r) * 1.9 + 1px) at var(--mx) var(--my), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.stage__layer {
  grid-area: 1 / 1;
  display: grid; justify-items: center; gap: clamp(20px, 3.5vw, 44px);
  position: relative;
}
.stage__mark { width: clamp(56px, 6.5vw, 96px); height: auto; }
.stage__word { display: flex; justify-content: center; gap: clamp(2px, 1.6vw, 28px); width: 100%; }
.stage__letter { display: grid; justify-items: center; gap: clamp(6px, 1vw, 14px); }
.stage__glyph {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(5.25rem, 17.5vw, 17.5rem); line-height: 0.8; letter-spacing: -0.01em;
}
.stage__label {
  font-size: clamp(0.6875rem, 0.95vw, 0.8125rem); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}

/* Relief: ivory on ivory, shaped only by light and shadow */
.stage__layer--relief .stage__glyph {
  color: var(--ivory);
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.95),
    1px 1px 1px rgba(77, 30, 76, 0.16),
    4px 7px 14px rgba(77, 30, 76, 0.12);
}
.stage__layer--relief .stage__mark {
  filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.95)) drop-shadow(1px 2px 2px rgba(77,30,76,.16)) drop-shadow(4px 7px 12px rgba(77,30,76,.10));
}
.stage__layer--relief .stage__label { color: transparent; }

/* Lit: plum, masked to a soft circle of light */
.stage__layer--lit .stage__glyph { color: var(--plum); }
.stage__layer--lit .stage__label { color: var(--plum-700); }
.js-motion .stage__layer--lit {
  -webkit-mask-image: radial-gradient(circle calc(var(--r) + 1px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0) 100%);
          mask-image: radial-gradient(circle calc(var(--r) + 1px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0) 100%);
}

.stage__foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--gutter);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted);
}
.stage__hint { display: inline-flex; align-items: center; gap: 10px; }
.stage__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plum); animation: pulse-plum 2s infinite; }
.stage__tag { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-style: italic; }
.stage__scroll { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.stage__scroll .hero__scroll-line { background: rgba(30, 20, 28, 0.2); }
.stage__scroll .hero__scroll-line::after { background: var(--plum); }

@media (max-width: 640px) {
  .stage__glyph { font-size: 27vw; }
  .stage__label { display: none; }
  .stage__foot { grid-template-columns: 1fr; justify-items: center; bottom: 20px; gap: 10px; }
  .stage__hint { order: 2; }
  .stage__scroll { display: none; }
}

/* Intro state */
.js-motion .stage__mark, .js-motion .stage__letter { opacity: 0; transform: translateY(40px); }
/* Without motion everything is already lit, so the hint has nothing to point at */
html:not(.js-motion) .stage__hint { visibility: hidden; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  background: var(--ivory);
  color: var(--ivory);
  overflow: hidden;
}
.hero__frame {
  position: absolute; inset: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
}
.js-motion .hero__frame { clip-path: inset(18% 22% 18% 22% round 18px); }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(43, 16, 41, 0.86) 0%, rgba(43, 16, 41, 0.35) 45%, rgba(43, 16, 41, 0.15) 70%, rgba(43, 16, 41, 0.45) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(88px, 13vh, 140px);
  padding-inline: calc(var(--gutter) + 10px);
  max-width: calc(var(--maxw) + 20px); margin-inline: auto;
  z-index: 2;
}
.hero__content .eyebrow { color: var(--lilac); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero__content .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(3.25rem, 9.2vw, 9.5rem);
  line-height: 0.94; letter-spacing: -0.02em;
}
.hero__sub {
  margin-top: 24px; max-width: 34ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: var(--on-dark-muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: calc(10px + 22px); z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-inline: calc(var(--gutter) + 10px);
  padding-right: calc(var(--gutter) + 72px);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll-line { position: relative; width: 48px; height: 1px; background: rgba(244,238,230,.3); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ivory);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.hero .video-toggle { right: calc(var(--gutter) + 10px); bottom: 22px; }

@media (max-width: 640px) {
  .hero__meta span:first-child { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__content { bottom: 84px; }
}

/* ==========================================================================
   2. ABOUT
   ========================================================================== */
.about {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ivory);
  overflow: hidden;
}
/* Plaster relief of the SMH monogram — ivory on ivory with light & shadow */
.relief {
  position: absolute; top: -20px; right: var(--gutter);
  width: min(30vw, 400px); height: auto;
  filter:
    drop-shadow(-2px -2px 1px rgba(255, 255, 255, 0.95))
    drop-shadow(2px 3px 2px rgba(77, 30, 76, 0.13))
    drop-shadow(8px 12px 18px rgba(77, 30, 76, 0.06));
  pointer-events: none; user-select: none;
}
.about__intro { position: relative; }
.about__intro > :not(.relief) { position: relative; }
@media (max-width: 899px) {
  .relief { width: 46vw; top: -40px; right: -8vw; opacity: 0.9; }
}
.statement {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 17ch; margin-top: 24px;
}
.statement .word { display: inline-block; }

.about__grid {
  position: relative;
  display: grid; gap: 48px;
  margin-top: clamp(64px, 9vw, 140px);
}
.media-window {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--plaster);
}
.media-window img { width: 100%; height: 100%; object-fit: cover; }
.about__media { aspect-ratio: 4 / 3; }
.about__media img, .courses__media img { height: 116%; margin-top: -8%; }
.media-caption {
  position: absolute; left: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(244, 238, 230, 0.88); color: var(--ink);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }

.about__copy { display: grid; gap: 24px; align-content: end; }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1.18;
  color: var(--ink);
}
.about__copy > p:not(.lead) { color: var(--fg-muted); max-width: 52ch; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; }
.pillars li {
  font-size: 0.875rem; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink);
}
.pillars li:nth-child(n+2) { border-bottom-color: var(--line); color: var(--fg-muted); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .about__media { grid-column: 1 / span 7; }
  .about__copy { grid-column: 9 / span 4; padding-bottom: 8px; }
}

/* SPADE acronym */
.acronym { position: relative; margin-top: clamp(96px, 12vw, 180px); }
.acronym__head { display: grid; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.acronym__head .label { margin: 0; }
.acronym__text { max-width: 46ch; color: var(--fg-muted); }
.acronym__list { display: grid; }
.acronym__list li {
  display: grid; grid-template-columns: clamp(64px, 18vw, 96px) 1fr; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.acronym__letter {
  font-family: var(--font-serif); font-size: clamp(3.5rem, 15vw, 5rem); line-height: 0.9;
  color: var(--plum); transition: transform var(--dur) var(--ease-out);
}
.acronym__word { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.15; color: var(--ink); }
.acronym__body { display: grid; gap: 8px; }
.acronym__msg { font-size: 0.9375rem; line-height: 1.55; color: var(--fg-muted); }
.acronym__list li { align-items: start; }
.acronym__close {
  margin-top: clamp(48px, 6vw, 88px); max-width: 30ch;
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.15; color: var(--ink);
}
.acronym__close em { color: var(--plum); }
.acronym__list li:hover .acronym__letter { transform: translateY(-6px); font-style: italic; }

@media (min-width: 900px) {
  .acronym__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .acronym__text { justify-self: end; }
  .acronym__list { grid-template-columns: repeat(5, 1fr); }
  .acronym__list li {
    grid-template-columns: 1fr; align-content: start; align-items: start; gap: 18px;
    padding: 36px 24px 40px 0; border-bottom: 0;
  }
  .acronym__list li + li { border-left: 1px solid var(--line); padding-left: 24px; }
  .acronym__letter { font-size: clamp(5rem, 9vw, 9.5rem); }
  .acronym__word { font-size: clamp(1.25rem, 1.7vw, 1.625rem); max-width: 12ch; }
}

/* ==========================================================================
   2b. FOUNDER
   ========================================================================== */
.founder { padding-block: var(--section-y); background: var(--plaster); overflow: clip; } /* clip (not hidden) keeps the sticky portrait working */
.founder__grid { display: grid; gap: clamp(40px, 6vw, 64px); }
.founder__media { aspect-ratio: 4 / 5; }
.founder__media img { height: 112%; margin-top: -6%; object-position: 50% 20%; }
.founder__copy { display: grid; gap: 20px; align-content: start; }
.founder__name {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.75rem); line-height: 0.95; letter-spacing: -0.02em;
  margin-top: 4px;
}
.founder__name em { color: var(--plum); }
.founder__role { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.founder__quote {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.12;
  padding: 24px 0; margin: 8px 0; border-block: 1px solid var(--line);
  max-width: 20ch;
}
.founder__quote em { color: var(--plum); }
.founder__bio { display: grid; gap: 18px; color: var(--fg-muted); max-width: 56ch; }
@media (min-width: 900px) {
  .founder__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .founder__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .founder__copy { grid-column: 7 / span 6; padding-top: clamp(40px, 8vw, 120px); }
}

/* ==========================================================================
   3. INTERLUDE
   ========================================================================== */
.interlude {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--plum-deep);
  color: var(--ivory);
  display: grid; place-items: center;
  overflow: hidden;
}
.interlude__window { position: absolute; inset: 0; overflow: hidden; }
.js-motion .interlude__window { clip-path: inset(30% 34% 30% 34% round 18px); }
.interlude__window video { width: 100%; height: 100%; object-fit: cover; }
.interlude__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(43,16,41,.55) 0%, rgba(43,16,41,.35) 55%, rgba(43,16,41,.6) 100%); }
.interlude__quote {
  position: relative; z-index: 2; text-align: center;
  padding-inline: var(--gutter);
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 7.5rem); line-height: 1; letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(43, 16, 41, 0.45);
}

/* ==========================================================================
   4. PODCAST
   ========================================================================== */
.podcast {
  position: relative;
  padding-block: var(--section-y);
  background: var(--plum-deep);
  color: var(--on-dark);
}
.section-head { display: grid; gap: 4px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head__text { margin-top: 20px; max-width: 46ch; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; }
  .section-head .label { grid-column: 1 / -1; }
  .section-head__text { justify-self: end; margin-bottom: 10px; }
}

.player {
  display: grid;
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(244, 238, 230, 0.035);
  overflow: hidden;
}
.player__screen { position: relative; aspect-ratio: 16 / 10; background: #1a0a19; }
.player__screen video { width: 100%; height: 100%; object-fit: cover; }
.player__badge {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(43, 16, 41, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 0 rgba(216,198,214,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216,198,214,0); } 100% { box-shadow: 0 0 0 0 rgba(216,198,214,0); } }

.player__body { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 18px; align-content: center; }
.player__meta { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.player__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
.player__desc { color: var(--on-dark-muted); max-width: 46ch; }

.player__controls { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.play-btn {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); color: var(--plum-deep);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur);
}
.play-btn:hover { background: var(--lilac); }
.play-btn:active { transform: scale(0.94); }
.play-btn .icon-pause, .mini-player__btn .icon-pause { display: none; }
.is-playing .play-btn .icon-pause, .mini-player.is-playing .icon-pause { display: block; }
.is-playing .play-btn .icon-play, .mini-player.is-playing .icon-play { display: none; }

.scrub { flex: 1; display: grid; gap: 6px; }
.scrub__range {
  --p: 0%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; background: transparent; cursor: pointer;
}
.scrub__range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--ivory) var(--p), rgba(244,238,230,.22) var(--p));
}
.scrub__range::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(244,238,230,.22); }
.scrub__range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ivory); }
.scrub__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px;
  border-radius: 50%; background: var(--ivory); border: 0;
}
.scrub__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 0; }
.scrub__times { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }

.speed-btn {
  flex: none; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-dark); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: border-color var(--dur), background-color var(--dur);
}
.speed-btn:hover { border-color: var(--ivory); }

.player__status { min-height: 1.5em; font-size: 0.9375rem; color: var(--lilac); }
.player__status:empty { display: none; }

.notes { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.notes summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  min-height: 44px; font-weight: 500;
}
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; transition: transform var(--dur) var(--ease-out); }
.notes[open] summary::after { transform: rotate(45deg); }
.notes ul { display: grid; gap: 8px; padding: 6px 0 4px; color: var(--on-dark-muted); }
.notes li { padding-left: 18px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--lilac); }

.player__platforms { font-size: 0.875rem; color: var(--on-dark-muted); }
.player__platforms a { color: var(--ivory); text-decoration: underline; text-decoration-color: rgba(244,238,230,.4); text-underline-offset: 4px; }
.player__platforms a:hover { text-decoration-color: var(--ivory); }

@media (min-width: 1024px) {
  .player { grid-template-columns: 7fr 5fr; }
  .player__screen { aspect-ratio: auto; min-height: 520px; }
}

.listen {
  display: grid; gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-dark); border-radius: calc(var(--radius) + 4px);
}
.listen__label { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.listen__list { display: flex; flex-wrap: wrap; gap: 10px; }
.listen__list a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(244, 238, 230, 0.3);
  font-size: 0.9375rem; font-weight: 500;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.listen__list a:hover { background: var(--ivory); color: var(--plum-deep); border-color: var(--ivory); }
.listen__list a svg { transition: transform var(--dur) var(--ease-out); }
.listen__list a:hover svg { transform: translate(2px, -2px); }
@media (min-width: 1024px) {
  .listen { grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
  .listen__list { justify-content: flex-end; }
}

.episodes { margin-top: clamp(56px, 7vw, 96px); }
.episodes__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.episodes__list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.episode {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px;
  min-height: 88px; padding: 16px 4px;
  border-bottom: 1px solid var(--line-dark);
  transition: padding var(--dur) var(--ease-out), color var(--dur);
}
.episode__art {
  width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover;
  background: var(--plum); transition: transform var(--dur) var(--ease-out);
}
.episode__body { display: grid; gap: 4px; min-width: 0; }
.episode__num { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.episode__title { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.1vw, 1.875rem); line-height: 1.15; overflow-wrap: anywhere; }
.episode__len { font-size: 0.8125rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.episode:hover { padding-left: 14px; }
.episode:hover .episode__art { transform: scale(1.06); }
.episode:hover .episode__title, .episode.is-active .episode__title { color: var(--lilac); }
.episode.is-active .episode__num { color: var(--lilac); }
.episode.is-active .episode__len::before { content: "Selected · "; }
@media (max-width: 560px) {
  .episode { grid-template-columns: 48px 1fr; gap: 14px; }
  .episode__art { width: 48px; height: 48px; }
  .episode__len { grid-column: 2; margin-top: -8px; }
  .episode.is-active .episode__len::before { content: none; }
}
.episodes__title span { color: var(--lilac); letter-spacing: 0.04em; }
.episodes__more { margin-top: 32px; }
.episodes__more[hidden] { display: none; }

.player__desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.notes__body { display: grid; gap: 12px; padding: 6px 0 8px; color: var(--on-dark-muted); max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
.notes[hidden] { display: none; }
.play-btn:disabled { opacity: 0.45; cursor: progress; }
.player.is-loading .player__title { opacity: 0.6; }

/* ==========================================================================
   5. COURSES
   ========================================================================== */
.courses { padding-block: var(--section-y); background: var(--ivory); }
.courses__grid { display: grid; gap: 64px; }
.courses__text { margin-top: 24px; color: var(--fg-muted); max-width: 44ch; }
.formats { margin: 40px 0; border-top: 1px solid var(--line); }
.formats li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.formats__num { font-family: var(--font-serif); font-size: 1.25rem; color: var(--plum); }
.formats h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; }
.formats p { color: var(--fg-muted); font-size: 0.9375rem; margin-top: 4px; }

.courses__visual { position: relative; }
.courses__media { aspect-ratio: 3 / 2; }
.feature-card {
  position: relative;
  margin: -64px 16px 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(43, 16, 41, 0.35);
  display: grid; gap: 12px;
}
.badge {
  justify-self: start;
  padding: 6px 12px; border-radius: 999px;
  background: var(--plum); color: var(--ivory);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.feature-card__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.625rem); line-height: 1.02; margin-top: 6px; }
.feature-card__sub { color: var(--fg-muted); font-style: italic; font-family: var(--font-serif); font-size: 1.25rem; }
.feature-card__list { display: grid; gap: 6px; margin: 8px 0 12px; font-size: 0.9375rem; }
.feature-card__list li { display: flex; gap: 10px; align-items: baseline; }
.feature-card__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); transform: translateY(-2px); }

.feature-card__sub { color: var(--plum); }
.feature-card__text { font-size: 0.9375rem; line-height: 1.6; color: var(--fg-muted); }
.feature-card__text strong { color: var(--ink); font-weight: 600; }
.feature-card__parts { display: grid; margin: 4px 0; border-top: 1px solid var(--line); }
.feature-card__parts li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink);
}
.feature-card__num { font-family: var(--font-serif); color: var(--plum); font-size: 1.0625rem; }
.feature-card__note { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--ink); margin: 4px 0 8px; }

.follow-cta { display: grid; gap: 14px; justify-items: start; }
.follow-cta__alt { font-size: 0.875rem; color: var(--fg-muted); max-width: 40ch; }
.follow-cta__alt a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.courses__statement { display: grid; gap: 20px; margin-top: clamp(80px, 10vw, 160px); }
.courses__big {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 6.25rem); line-height: 1; letter-spacing: -0.02em;
  max-width: 16ch;
}
.courses__big em { color: var(--plum); }

@media (min-width: 1024px) {
  .courses__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .courses__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
  .courses__visual { grid-column: 7 / span 6; }
  .courses__media { aspect-ratio: 4 / 5; }
  .feature-card { margin: -180px 0 0 -18%; width: min(480px, 88%); }
}

/* ==========================================================================
   6. SHOP
   ========================================================================== */
.shop { padding-block: var(--section-y); background: var(--plaster); }
.shop__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.shop__text { color: var(--fg-muted); max-width: 42ch; }
@media (min-width: 900px) {
  .shop__head { grid-template-columns: 1fr auto; align-items: end; }
  .shop__text { margin-bottom: 12px; }
}
.products { display: grid; gap: clamp(48px, 5vw, 64px) clamp(20px, 3vw, 40px); }
@media (min-width: 760px) { .products { grid-template-columns: 1fr 1fr; } .product:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); } }

.soon-pill {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--plum); color: var(--plum);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.soon-pill .dot { animation: pulse-plum 2s infinite; }
@keyframes pulse-plum { 0% { box-shadow: 0 0 0 0 rgba(77,30,76,.45); } 70% { box-shadow: 0 0 0 8px rgba(77,30,76,0); } 100% { box-shadow: 0 0 0 0 rgba(77,30,76,0); } }
.courses__intro .soon-pill { margin-top: 28px; }
.courses__intro .soon-pill + .courses__text { margin-top: 16px; }
.shop__intro { display: grid; gap: 16px; }
@media (min-width: 900px) { .shop__intro { justify-items: start; margin-bottom: 12px; } .shop__intro .shop__text { margin-bottom: 0; } }

.shop__notify {
  display: grid; gap: 20px; align-items: center;
  margin-top: clamp(64px, 8vw, 112px); padding-top: 32px; border-top: 1px solid var(--line);
}
.shop__notify p { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.shop__notify-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 900px) { .shop__notify { grid-template-columns: 1fr auto; } }

.product { display: grid; gap: 18px; align-content: start; }
.product__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ivory); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.04); }
.product__tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px; background: var(--ivory); color: var(--plum);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.product__info { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.product__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.08; }
.product__material { font-size: 0.875rem; color: var(--fg-muted); margin-top: 6px; }
.product__price { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes legend { padding: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizes span {
  display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px;
  border: 1px solid rgba(30,20,28,.28); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.sizes span:hover { border-color: var(--ink); }
.sizes input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 3px; }
.sizes.has-error span { border-color: var(--danger); }

.product__msg { min-height: 1.5em; font-size: 0.9375rem; }
.product__msg.is-error { color: var(--danger); }
.product__msg.is-success { color: var(--plum); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
  background: var(--plum); color: var(--on-dark);
  padding-top: var(--section-y); padding-bottom: 32px;
}
.footer__top { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-dark); }
.footer__statement {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 15rem); line-height: 0.88; letter-spacing: -0.03em;
}
.newsletter { display: grid; gap: 12px; align-content: end; max-width: 520px; }
.connect { display: grid; gap: 24px; align-content: end; max-width: 540px; }
.connect__links { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__label { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
.newsletter__row { display: flex; gap: 8px; margin-top: 8px; }
.newsletter__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid rgba(244,238,230,.45);
  background: rgba(244,238,230,.06); color: var(--ivory);
  font-size: 1rem;
  transition: border-color var(--dur), background-color var(--dur);
}
.newsletter__input::placeholder { color: rgba(244,238,230,.6); }
.newsletter__input:focus { outline: none; border-color: var(--ivory); background: rgba(244,238,230,.1); }
.newsletter__input:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.newsletter__input[aria-invalid="true"] { border-color: #F2B8C2; }
.field-error { color: #F7CAD2; font-size: 0.9375rem; min-height: 0; }
.field-error:empty { display: none; }
.newsletter__help { font-size: 0.875rem; color: var(--on-dark-muted); }
.newsletter.is-success .newsletter__help { color: var(--ivory); }

@media (min-width: 1024px) {
  .footer__top { grid-template-columns: 1.3fr 1fr; align-items: end; }
}

.footer__grid { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
.footer__logo { width: 180px; height: auto; }
.footer__col h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 4px; }
.footer__col a { display: inline-block; padding-block: 6px; background: linear-gradient(currentColor, currentColor) right calc(100% - 4px) / 0% 1px no-repeat; transition: background-size var(--dur) var(--ease-out); overflow-wrap: anywhere; }
.footer__col a:hover { background-size: 100% 1px; background-position: left calc(100% - 4px); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.crisis {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 20px 24px; font-size: 0.9375rem; color: var(--on-dark-muted);
  background: rgba(43,16,41,.25);
}
.crisis strong { color: var(--ivory); font-weight: 600; }
.crisis a { color: var(--ivory); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: 32px; font-size: 0.875rem; color: var(--on-dark-muted);
}
.footer__bottom a { color: var(--ivory); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.footer__parent { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8125rem; font-weight: 500; }

/* ---------- Legal pages (privacy policy) ---------- */
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
}
.legal { max-width: 760px; margin-inline: auto; padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(64px, 8vw, 120px); }
.legal__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 16px;
}
.legal__title em { color: var(--plum); }
.legal__meta { margin-top: 18px; font-size: 0.875rem; color: var(--fg-muted); }
.legal__body { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 16px; color: var(--fg-muted); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__lead { font-family: var(--font-serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.legal__lead strong { font-weight: 400; color: var(--plum); }
.legal__body h2 {
  font-family: var(--font-serif); font-weight: 400; color: var(--ink);
  font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.legal__body h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-top: 8px; }
.legal__body ul { display: grid; gap: 10px; padding-left: 0; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }
.legal__body a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__crisis { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--plaster); color: var(--ink); }
.legal-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--gutter); background: var(--plum); color: var(--on-dark-muted); font-size: 0.875rem;
}
.legal-footer a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mini player ---------- */
.mini-player {
  position: fixed; left: var(--gutter); bottom: 16px; z-index: var(--z-mini);
  display: flex; align-items: center; gap: 12px;
  max-width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--plum); color: var(--ivory);
  box-shadow: 0 16px 40px -16px rgba(43,16,41,.6);
  transform: translateY(140%); transition: transform 600ms var(--ease-out);
}
.mini-player.is-visible { transform: translateY(0); }
.mini-player[hidden] { display: none; }
.mini-player__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--plum); }
.mini-player__title { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player__bar { position: absolute; left: 56px; right: 18px; bottom: 6px; height: 2px; background: rgba(244,238,230,.2); border-radius: 2px; overflow: hidden; }
.mini-player__bar span { display: block; height: 100%; width: 0; background: var(--lilac); }

/* ---------- Reveal initial states (only when motion JS is active) ---------- */
.js-motion [data-reveal="lines"] .line > span,
.js-motion .hero__title .line > span { transform: translateY(110%); }
.js-motion [data-reveal="fade"],
.js-motion [data-hero-fade] { opacity: 0; transform: translateY(32px); }
.js-motion .statement .word { opacity: 0.14; }
.js-motion [data-reveal="split"] { opacity: 0; }
.js-motion [data-curtain] { clip-path: inset(100% 0% 0% 0%); }
.js-motion .interlude__quote .line > span { transform: translateY(110%); }
/* Line masks created by SplitText */
.split-line-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
