/* =====================================================
   Cymatica Store — landing
   Palette: warm-archival
   Motion: slow, breathing, never snapping
   ===================================================== */

:root {
  --cream:        #F4EDE0;
  --cream-2:      #EBE2D0;
  --cream-3:      #E2D6BC;
  --ink:          #2A2114;
  --ink-soft:     #4A3F2E;
  --ink-mute:     #7B6E58;
  --gold:         #C8A862;
  --gold-bright:  #DEC07A;
  --gold-deep:    #8E7438;
  --violet:       #5B3A8A;
  --violet-glow:  rgba(91, 58, 138, 0.18);
  --hairline:     rgba(42, 33, 20, 0.15);
  --hairline-2:   rgba(42, 33, 20, 0.08);

  --bg:           var(--cream);
  --fg:           var(--ink);
  --fg-soft:      var(--ink-soft);
  --fg-mute:      var(--ink-mute);
  --line:         var(--hairline);
  --line-faint:   var(--hairline-2);

  --serif:        "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:         "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-breath:  cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --dur-slow:     1.6s;
  --dur-slower:   2.4s;

  --max:          1280px;
  --gutter:       clamp(20px, 4vw, 64px);
}

[data-theme="dark"] {
  --bg:        #0A0E1F;
  --fg:        #ECE2CC;
  --fg-soft:   #C6B89A;
  --fg-mute:   #8A7E64;
  --cream:     #0A0E1F;
  --cream-2:   #0E1426;
  --cream-3:   #131B33;
  --line:      rgba(236, 226, 204, 0.18);
  --line-faint:rgba(236, 226, 204, 0.08);
  --violet-glow: rgba(91, 58, 138, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::selection { background: var(--gold); color: var(--ink); }

/* —— typography utilities —— */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: 0.005em; }
.italic { font-style: italic; }
.caps {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
}
.caps-serif {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }

.h-display { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.005em; }

/* —— layout —— */
section { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.dot { width: 4px; height: 4px; border-radius: 999px; background: var(--gold); display: inline-block; }

/* =====================================================
   Top frame: wordmark + nav
   ===================================================== */
.topbar {
  position: fixed; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  z-index: 80;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: background var(--dur-slow) var(--ease);
}
.topbar > * { pointer-events: auto; }
.topbar.scrolled { background: color-mix(in oklab, var(--bg) 92%, transparent); mix-blend-mode: normal; border-bottom: 1px solid var(--line-faint); backdrop-filter: blur(14px); }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 14px;
}
.wordmark .dot { transform: translateY(-3px); }
.wordmark small {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-slow) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.nav .ext::before { content: ""; }
.nav .ext::after { content: " ↗"; opacity: 0.6; }

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  width: 30px; height: 30px;
  border-radius: 999px;
  color: var(--fg-mute);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-slow) var(--ease);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }

/* Mobile variant: surfaces inside the mobile-nav drawer with a label.
   The desktop topbar button is hidden on mobile (via .nav { display: none }). */
.theme-toggle--mobile {
  width: auto; height: auto;
  padding: 12px 22px;
  border-radius: 999px;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 8px;
}
.theme-toggle--mobile .label { line-height: 1; }
.theme-toggle--mobile:active { color: var(--gold); border-color: var(--gold); }
@media (min-width: 769px) {
  .theme-toggle--mobile { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh; /* fallback */
  min-height: 100dvh; /* modern: accounts for mobile browser chrome */
  position: relative;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in oklab, var(--gold) 8%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 60px, color-mix(in oklab, var(--fg) 3%, transparent) 60px 61px);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  width: min(78vmin, 720px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  z-index: 2;
}
.hero-mandala {
  width: 100%; height: 100%;
  animation: breathe 4s var(--ease-breath) infinite;
}
/* OUTER ROTATING SYSTEM — 12-circle outer petal lattice + 3 ripple rings only. 90s/rev linear. */
.hero-mandala .outer-system {
  animation: spin 90s linear infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
/* central luminosity pulses at half-tempo (one cycle every 8s) — independent of scale */
.hero-mandala .inner-pulse { animation: inner-pulse 8s var(--ease-breath) infinite; transform-origin: 50% 50%; transform-box: fill-box; }

/* VERTEX PIP TWINKLES — 6 pips, each starts at its own offset (set inline via animation-delay) */
.hero-mandala .pip {
  animation: pip-twinkle 1.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* RADIAL WAVE EMANATION — expanding gold ring every 6s */
.hero-mandala .emanation {
  animation: emanate 6s ease-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1.000); filter: drop-shadow(0 0 24px transparent); }
  50%      { transform: scale(1.020); filter: drop-shadow(0 0 56px color-mix(in oklab, var(--gold) 22%, transparent)); }
}
@keyframes inner-pulse {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1.00; }
}
@keyframes pip-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1.0; transform: scale(1.15); }
}
@keyframes emanate {
  0%   { r: 4;   opacity: 0; stroke-width: 1.2; }
  10%  { opacity: 0.55; }
  60%  { opacity: 0.20; }
  100% { r: 98;  opacity: 0; stroke-width: 0.3; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-callout {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.hero-callout .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-corners {
  position: absolute; inset: 100px var(--gutter);
  pointer-events: none;
  z-index: 1;
}
.hero-corners span {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
}
.hero-corners span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-corners span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-corners span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-corners span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-meta-l, .hero-meta-r {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.hero-meta-l { left: clamp(16px, 4vw, 56px); text-align: left; }
.hero-meta-r { right: clamp(16px, 4vw, 56px); text-align: right; align-items: flex-end; }
.hero-meta-l b, .hero-meta-r b { color: var(--gold); font-weight: 500; }

.hero-title {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(120px, 18vh, 220px);
  text-align: center;
  z-index: 5;
}
.hero-title h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero-title h1 em { font-style: italic; color: var(--gold); }
.hero-title .sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-soft);
  font-weight: 500;
}

.hero-sine {
  position: absolute;
  left: 0; right: 0; bottom: 28%;
  height: 80px;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}
.hero-sine path { stroke: var(--cream-3); stroke-width: 0.7; fill: none; }
[data-theme="dark"] .hero-sine path { stroke: var(--cream-3); }

.scroll-cue {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 32px;
  width: 40px; height: 60px;
  overflow: hidden;
  z-index: 5;
  opacity: 0.7;
}
.scroll-cue svg { width: 40px; height: 180px; display: block; animation: scroll-wave-fall 3s linear infinite; }
.scroll-cue svg path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; }
@keyframes scroll-wave-fall {
  0%   { transform: translateY(-120px); }
  100% { transform: translateY(-60px); }
}

/* =====================================================
   THE IDEA — essay
   ===================================================== */
.idea {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.idea-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.idea-bg path { fill: none; stroke: var(--gold-deep); stroke-width: 0.5; opacity: 0.4; }
.idea-inner {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  z-index: 1;
}
.idea-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 56px;
}
.idea-eyebrow .num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; color: var(--gold); }
.idea-eyebrow .label { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-soft); }
.idea-eyebrow .line { flex: 1; height: 1px; background: var(--line); }

.idea h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}
.idea h2 em { font-style: italic; color: var(--gold-deep); }

.idea p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 28px;
  color: var(--fg-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.idea p.in { opacity: 1; transform: translateY(0); }
.idea p strong { font-weight: 500; color: var(--fg); }

.freq-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  margin: 48px 0;
  background: color-mix(in oklab, var(--cream-2) 50%, var(--bg));
}
.freq-compare .col { padding: 28px; }
.freq-compare .col:first-child { border-right: 1px solid var(--line); }
.freq-compare .col .hz {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.freq-compare .col .hz sup { font-size: 14px; vertical-align: super; color: var(--fg-mute); letter-spacing: 0.1em; margin-left: 4px; font-family: var(--mono);}
.freq-compare .col .name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--fg-mute); margin-top: 4px; }
.freq-compare .col .desc { font-size: 13px; margin-top: 16px; color: var(--fg-soft); }
.freq-compare .col svg { display: block; width: 100%; height: 32px; margin-top: 18px; }
.freq-compare .col svg path { stroke: var(--gold); stroke-width: 0.8; fill: none; }
.freq-compare .col:first-child svg path { stroke: var(--ink-mute); }

/* =====================================================
   SPECTRUM
   ===================================================== */
.spectrum {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
[data-theme="dark"] .spectrum { background: var(--cream-2); }

.spectrum-head {
  max-width: var(--max);
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.spectrum-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 68px);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.01em;
}
.spectrum-head h2 em { font-style: italic; color: var(--gold-deep); }
.spectrum-head p {
  font-size: 14.5px;
  color: var(--fg-soft);
  max-width: 38ch;
  margin: 0;
}
.spectrum-head .meta {
  display: flex; gap: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 18px;
}
.spectrum-head .meta b { color: var(--gold); font-weight: 500; }

.grid-9 {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--dur-slow) var(--ease);
}
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-last-child(-n+3) { border-bottom: 0; }
[data-theme="dark"] .cell { background: var(--cream); }

.cell .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 2s var(--ease), filter 1.6s var(--ease);
  will-change: transform;
}
.cell:hover .poster, .cell.playing .poster {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.05);
}

.cell .cell-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 55%, transparent 40%, color-mix(in oklab, var(--ink) 55%, transparent) 100%),
    linear-gradient(to top, color-mix(in oklab, var(--ink) 70%, transparent) 0%, transparent 40%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}
.cell:hover .cell-veil, .cell.playing .cell-veil { opacity: 1; }

.cell::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--violet-glow), transparent 65%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.cell:hover::before, .cell.playing::before { opacity: 1; }

.cell .corner {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--cream);
  text-transform: uppercase;
  padding: 4px 8px;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  z-index: 3;
}
.cell:hover .corner, .cell.playing .corner { opacity: 1; }
.cell .corner b { color: var(--gold-bright); font-weight: 500; }

.cell .cell-actions {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 20px;
  z-index: 3;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.cell:hover .cell-actions, .cell.playing .cell-actions { opacity: 1; transform: translateY(0); }
.cell .chip-listen,
.cell .chip-open {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 8px 12px;
  border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent);
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
}
.cell .chip-listen { color: var(--gold-bright); }

.cell .playing-bar {
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--gold-bright);
  transform-origin: left; transform: scaleX(0);
  z-index: 4;
}
.cell.playing .playing-bar { animation: tone-pulse 2.6s linear forwards; }
@keyframes tone-pulse {
  0% { transform: scaleX(0); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* drawer */
.drawer-shade {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink) 50%, transparent);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.drawer-shade.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 96vw);
  background: var(--bg);
  z-index: 201;
  transform: translateX(101%);
  transition: transform var(--dur-slower) var(--ease);
  overflow-y: auto;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }

.drawer-inner { padding: 40px clamp(28px, 4vw, 56px) 80px; }
.drawer-close {
  background: transparent; border: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--fg-mute);
  cursor: pointer; padding: 8px 0;
}
.drawer-close:hover { color: var(--fg); }

.drawer-hero {
  margin: 22px -8px 28px;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: var(--cream-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.drawer-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-hero svg { width: 78%; height: 78%; }

.drawer h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  margin: 0;
}
.drawer h3 sup { font-family: var(--mono); font-size: 13px; letter-spacing: 0.15em; color: var(--fg-mute); vertical-align: top; margin-left: 6px; }
.drawer .theme-row {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep);
  margin: 8px 0 28px;
}
.drawer .theme-row .pip { width: 6px; height: 6px; background: var(--gold); border-radius: 999px; }

.drawer p { font-size: 14.5px; color: var(--fg-soft); margin: 0 0 14px; }
.drawer .pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); margin: 20px 0;
}
.drawer .pillars > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.drawer .pillars > div:last-child { border-right: 0; }
.drawer .pillars dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--fg-mute); text-transform: uppercase; }
.drawer .pillars dd { font-family: var(--serif); font-size: 18px; margin: 6px 0 0; color: var(--fg); }

.drawer .tone-player {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--cream-2);
  margin: 24px 0 32px;
}
.drawer .tone-player button {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--dur-slow) var(--ease);
}
.drawer .tone-player button:hover { background: var(--gold); color: var(--ink); }
.drawer .tone-player .pwave { flex: 1; height: 30px; }
.drawer .tone-player .pwave path { stroke: var(--gold); stroke-width: 0.8; fill: none; }
.drawer .tone-player .pmeta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--fg-mute); text-transform: uppercase; }

.btn-out {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 14px 22px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 500;
  background: transparent; cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-slow) var(--ease);
}
.btn-out:hover { background: var(--violet); border-color: var(--violet); color: var(--cream); }
.btn-out::after { content: "↗"; font-family: var(--serif); font-size: 14px; letter-spacing: 0; opacity: 0.8; }

/* =====================================================
   PRACTICE — manifesto
   ===================================================== */
.practice {
  padding: clamp(120px, 22vh, 240px) var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.practice-bg {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.practice-bg svg {
  width: min(90vmin, 800px);
  height: min(90vmin, 800px);
  opacity: 0.16;
  animation: practice-bloom 28s var(--ease-breath) infinite;
}
.practice-bg svg path { stroke: var(--gold-deep); fill: none; stroke-width: 0.5; }
@keyframes practice-bloom {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.08; }
  50%      { transform: scale(1.04) rotate(20deg); opacity: 0.22; }
}
.practice-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.practice .eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 32px;
}
.practice blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.005em;
}
.practice blockquote em { font-style: italic; color: var(--gold-deep); }
.practice cite {
  display: block;
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
  font-weight: 400;
}

/* =====================================================
   CATALOG
   ===================================================== */
.catalog {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}
.catalog-head {
  max-width: var(--max);
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.catalog-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0; line-height: 1;
}
.catalog-head h2 em { font-style: italic; color: var(--gold-deep); }
.catalog-head .tally {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--fg-mute);
  text-align: right;
}
.catalog-head .tally b { color: var(--gold); font-weight: 500; }

.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--cream);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: background var(--dur-slow) var(--ease);
  cursor: pointer;
}
.card:hover { background: color-mix(in oklab, var(--violet) 5%, var(--cream)); }
.card .frame {
  aspect-ratio: 4 / 5;
  background: var(--cream-3);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.card .frame svg { width: 70%; height: 70%; transition: transform var(--dur-slower) var(--ease); }
.card:hover .frame svg { transform: scale(1.04) rotate(2deg); }
.card .frame .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--ink); text-transform: uppercase;
  background: var(--gold);
  padding: 4px 8px;
}
.card .row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; line-height: 1.1; }
.card h3 em { font-style: italic; color: var(--gold-deep); }
.card .price { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-deep); }
.card .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-mute); text-transform: uppercase; margin-top: 10px; }
.card .desc { font-size: 14px; color: var(--fg-soft); margin: 14px 0 22px; }
.card .link {
  margin-top: auto;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  transition: color var(--dur-slow) var(--ease);
}
.card:hover .link { color: var(--violet); }
.card .link span:last-child { transition: transform var(--dur-slow) var(--ease); }
.card:hover .link span:last-child { transform: translateX(4px); }

/* =====================================================
   MAKER
   ===================================================== */
.maker {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.maker-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}
.maker-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-3);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
}
.maker-portrait::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in oklab, var(--gold) 8%, transparent) 22px 23px);
}
.maker-portrait .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--fg-mute); text-transform: uppercase; text-align: center;
  position: relative; z-index: 1;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.maker-portrait .corner {
  position: absolute;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--fg-mute); text-transform: uppercase;
}
.maker-portrait .corner.tl { top: 14px; left: 14px; }
.maker-portrait .corner.br { bottom: 14px; right: 14px; color: var(--gold-deep); }
.maker-portrait img.portrait {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.maker-portrait.has-photo .corner {
  z-index: 2;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  padding: 4px 8px;
  backdrop-filter: blur(2px);
}

.maker .eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 24px;
}
.maker h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.5vw, 56px); line-height: 1.1;
  margin: 0 0 28px; letter-spacing: -0.01em;
}
.maker h2 em { font-style: italic; color: var(--gold-deep); }
.maker p {
  font-size: 15.5px; line-height: 1.75;
  color: var(--fg-soft); margin: 0 0 16px;
}

.maker-player {
  margin-top: 36px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  background: var(--cream-2);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px; align-items: center;
}
.maker-player .play-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--dur-slow) var(--ease);
}
.maker-player .play-btn:hover { background: var(--gold); color: var(--ink); }
.maker-player .wave { height: 36px; width: 100%; }
.maker-player .wave path { stroke: var(--gold); stroke-width: 0.8; fill: none; }
.maker-player .wave .played { stroke: var(--gold-bright); stroke-width: 1.2; }
.maker-player .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute);
  text-align: right;
}
.maker-player .meta b { color: var(--gold); font-weight: 500; }

/* =====================================================
   CLOSING CTA
   ===================================================== */
.closing {
  padding: clamp(120px, 22vh, 260px) var(--gutter);
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.closing-ornament {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(70vmin, 600px); height: min(70vmin, 600px);
  opacity: 0.08;
  animation: spin 200s linear infinite;
}
.closing-ornament svg { width: 100%; height: 100%; }
.closing-ornament svg path, .closing-ornament svg circle { stroke: var(--gold-deep); fill: none; stroke-width: 0.5; }
.closing-inner { position: relative; z-index: 1; }
.closing .eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 36px;
}
.closing h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.05; margin: 0 0 52px;
  letter-spacing: -0.015em;
}
.closing h2 em { font-style: italic; color: var(--gold-deep); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter);
  background: var(--bg);
}
footer .row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
footer .links { display: flex; gap: 22px; }
footer a {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-mute);
  text-decoration: none;
  transition: color var(--dur-slow) var(--ease);
}
footer a:hover { color: var(--gold); }
footer .fineprint {
  max-width: var(--max);
  margin: 14px auto 0;
  font-family: var(--serif); font-style: italic;
  font-size: 12px; color: var(--fg-mute);
  text-align: center;
  border-top: 1px solid var(--line-faint);
  padding-top: 14px;
}

/* =====================================================
   CURSOR RIPPLE
   ===================================================== */
.cursor-ripple {
  position: fixed;
  pointer-events: none;
  width: 16px; height: 16px;
  margin-left: -8px; margin-top: -8px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  z-index: 999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  border: 0.5px solid var(--gold);
  z-index: 998;
  animation: ripple-out 1.8s var(--ease) forwards;
}
@keyframes ripple-out {
  0% { width: 8px; height: 8px; margin-left: -4px; margin-top: -4px; opacity: 0.6; }
  100% { width: 60px; height: 60px; margin-left: -30px; margin-top: -30px; opacity: 0; }
}

/* =====================================================
   HAMBURGER + MOBILE NAV
   ===================================================== */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center; justify-content: center;
  transition: border-color var(--dur-slow) var(--ease);
}
.hamburger:hover, .hamburger:focus-visible { border-color: var(--gold); outline: none; }
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--fg);
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease), top var(--dur-slow) var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
  padding: 80px 24px 40px;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--fg);
  text-decoration: none;
  position: relative;
}
.mobile-nav a em { font-style: italic; color: var(--gold-deep); }
.mobile-nav .ext::after { content: " ↗"; color: var(--gold-deep); }
.mobile-nav .mnav-foot {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: center;
}

/* =====================================================
   HERO META \u2014 mobile stacked block (hidden on desktop)
   ===================================================== */
.hero-meta-mobile {
  display: none;
  margin-top: 28px;
  width: 100%; max-width: 360px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.hero-meta-mobile .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-meta-mobile .row > div {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-faint);
}
.hero-meta-mobile .row > div:nth-child(odd) { border-right: 1px solid var(--line-faint); }
.hero-meta-mobile .row:last-child > div { border-bottom: 0; }
.hero-meta-mobile b { color: var(--gold-deep); font-weight: 500; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  :root { --gutter: 18px; }

  /* topbar: hide desktop nav, show hamburger */
  .nav { display: none; }
  .hamburger { display: inline-flex; pointer-events: auto; }
  .topbar { padding: 14px 18px; }
  .wordmark { font-size: 14px; letter-spacing: 0.3em; }
  .wordmark small { display: none; }

  /* hero: flex column, mandala caps at 280px, metadata stacks below */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px 18px 56px;
    min-height: 100vh; /* fallback */
    min-height: 100dvh; /* modern: accounts for mobile URL bar */
  }
  .hero-bg-grid, .hero-corners { display: none; }
  .hero-meta-l, .hero-meta-r { display: none; }
  .hero-stage {
    width: min(78vw, 280px);
    margin: 0 auto;
    order: 1;
  }
  .hero-title {
    position: static;
    transform: none;
    margin-top: 32px;
    order: 2;
  }
  .hero-title h1 { font-size: 40px; line-height: 1.04; }
  .hero-title .sub { font-size: 11px; letter-spacing: 0.26em; margin-top: 10px; }
  .hero-sine { display: none; }
  .scroll-cue { bottom: 20px; }
  .hero-meta-mobile { display: block; order: 3; }

  /* idea */
  .idea { padding: 64px 18px; }
  .idea h2 { font-size: 30px; line-height: 1.1; margin-bottom: 32px; }
  .idea p { font-size: 15px; line-height: 1.7; }
  .idea-eyebrow { margin-bottom: 36px; }
  .freq-compare { grid-template-columns: 1fr; margin: 32px 0; }
  .freq-compare .col { padding: 22px; }
  .freq-compare .col:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .freq-compare .col .hz { font-size: 32px; }

  /* spectrum */
  .spectrum { padding: 64px 18px; }
  .spectrum-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .spectrum-head h2 { font-size: 30px; }
  .spectrum-head p { font-size: 14px; }
  .spectrum-head .meta { flex-wrap: wrap; gap: 12px; }
  .grid-9 { grid-template-columns: 1fr; }
  .cell { aspect-ratio: 5 / 4; border-right: 0 !important; min-height: 280px; }
  .cell:not(:last-child) { border-bottom: 1px solid var(--line); }
  .cell .mandala-wrap { inset: 14%; }
  /* on touch, surface the theme word at low opacity so it's discoverable without hover */
  .cell .corner { font-size: 11px; }
  .cell .index { font-size: 11px; }
  .cell .theme { font-size: 11px; letter-spacing: 0.28em; }
  .cell .hz-label { font-size: 16px; }

  /* practice */
  .practice { padding: 96px 18px; }
  .practice blockquote { font-size: 26px; line-height: 1.22; }
  .practice cite { font-size: 13px; margin-top: 24px; }

  /* catalog */
  .catalog { padding: 64px 18px; }
  .catalog-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .catalog-head h2 { font-size: 30px; }
  .catalog-head .tally { text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card h3 { font-size: 22px; }
  .card .price { font-size: 20px; }
  .card .frame { aspect-ratio: 4 / 4; }
  .card .desc { font-size: 13.5px; }

  /* maker */
  .maker { padding: 64px 18px; }
  .maker-grid { grid-template-columns: 1fr; gap: 32px; }
  .maker-portrait { order: 1; aspect-ratio: 4 / 5; max-width: 100%; }
  .maker > .maker-grid > div:last-child { order: 2; }
  .maker h2 { font-size: 28px; line-height: 1.15; }
  .maker p { font-size: 14.5px; }
  .maker-player { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .maker-player .meta { grid-column: 1 / -1; text-align: left; padding-top: 6px; border-top: 1px solid var(--line-faint); }
  .maker-player .play-btn { width: 48px; height: 48px; }

  /* closing */
  .closing { padding: 96px 18px; }
  .closing h2 { font-size: 44px; line-height: 1.05; }
  .btn-out { padding: 16px 24px; font-size: 11px; }

  /* footer */
  footer { padding: 24px 18px; }
  footer .row { flex-direction: column; align-items: flex-start; gap: 18px; }
  footer .links { flex-wrap: wrap; gap: 14px 22px; }
  footer .fineprint { text-align: left; font-size: 11.5px; }

  /* drawer */
  .drawer { width: 100vw; border-left: 0; }
  .drawer-inner { padding: 32px 22px 60px; }
  .drawer h3 { font-size: 36px; }
  .drawer .pillars { grid-template-columns: 1fr 1fr; }

  /* tap targets */
  .nav a, .mobile-nav a, .btn-out, .card .link, .theme-toggle, .play-btn { min-height: 44px; }
  .cell { min-height: 280px; }
}

/* tighter at small phone (\u2264 380px) */
@media (max-width: 380px) {
  .hero-title h1 { font-size: 36px; }
  .idea h2, .spectrum-head h2, .catalog-head h2 { font-size: 26px; }
  .practice blockquote { font-size: 23px; }
  .closing h2 { font-size: 38px; }
  .mobile-nav a { font-size: 28px; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-cue .breath { transform: scaleY(0.8); }
}
