/* Fonts served from this site: Inter & Cormorant Garamond (SIL Open Font License) */
@font-face { font-family: "Inter"; src: url("fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
:root {
  --obsidian: #0A0A0C;
  --charcoal: #121216;
  --panel: #16161B;
  --line: rgba(244, 244, 246, 0.08);
  --line-strong: rgba(244, 244, 246, 0.16);
  --text: #F4F4F6;
  --muted: #9CA3AF;
  --gold: #D4AF37;
  --gold-soft: #E5C07B;
  --amber: #F5A524;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 6vw, 58px); }
h3 { font-size: clamp(24px, 3.4vw, 32px); }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 18px); max-width: 620px; margin: 20px 0 0; }
section { position: relative; }
.section { padding: clamp(80px, 12vw, 140px) 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font: 500 14px/1 var(--sans);
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--obsidian); box-shadow: 0 0 0 0 var(--gold-glow); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -8px var(--gold-glow); }
.btn-ghost { background: rgba(244,244,246,0.03); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,12,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: none; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 13px; letter-spacing: .08em; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta { padding: 10px 16px; min-height: 40px; font-size: 12px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 80px; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, transparent 30%, rgba(10,10,12,.55) 75%, var(--obsidian) 100%),
    linear-gradient(180deg, rgba(10,10,12,.2) 0%, transparent 25%, transparent 70%, var(--obsidian) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; margin: 0 auto; }
.hero h1 { font-size: clamp(48px, 11vw, 120px); font-weight: 400; line-height: .98; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.mantra {
  font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.8vw, 26px);
  color: var(--text); opacity: .86; max-width: 760px; margin: 26px auto 0; line-height: 1.45;
}
.mantra span { display: inline; }
@media (min-width: 720px) { .mantra span { display: block; } }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 42px; }
@media (min-width: 560px) { .hero-ctas { flex-direction: row; } }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Genesis ---------- */
.genesis-head { max-width: 760px; }
.chapters { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 0; }
.chapter {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .chapter { grid-template-columns: 260px 1fr; gap: 60px; } }
.chapter-num { font-family: var(--display); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.chapter-num b { display: block; font-size: clamp(64px, 9vw, 96px); font-weight: 400; letter-spacing: 0; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(229,192,123,.55); margin-bottom: 8px; }
.chapter-sub { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 8px; }
.chapter-body h3 { margin-bottom: 18px; }
.chapter-body p { color: #C9CCD3; margin: 0 0 16px; max-width: 680px; }
.chapter-body p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 28px); line-height: 1.35;
  color: var(--gold-soft); border-left: 1px solid var(--gold); padding: 4px 0 4px 22px; margin: 26px 0 !important; max-width: 620px;
}
.ref { color: var(--text); font-style: italic; }

/* ---------- Framework ---------- */
.framework { background: var(--charcoal); }
.framework::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212,175,55,.07), transparent 70%); pointer-events: none; }
.stages { position: relative; display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: clamp(44px, 6vw, 70px); }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.stage {
  position: relative; background: linear-gradient(180deg, var(--panel), rgba(22,22,27,.6));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px 32px; overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
}
.stage:hover { border-color: rgba(229,192,123,.35); transform: translateY(-3px); }
.stage::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.13), transparent 65%); pointer-events: none; }
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.stage-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(229,192,123,.3); color: var(--gold-soft); background: rgba(212,175,55,.06); }
.stage-icon svg { width: 22px; height: 22px; }
.stage-n { font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--muted); }
.stage h3 { font-size: 30px; }
.stage-role { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 10px 0 20px; }
.stage p { color: #C2C6CE; margin: 0; font-size: 15px; }
.stage-mech { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stage-wave { margin-top: 26px; height: 34px; width: 100%; opacity: .75; }

/* ---------- Safe Room Library ---------- */
.library::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 85% 10%, rgba(212,175,55,.06), transparent 70%); pointer-events: none; }
.lib-sub { font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: #C9CCD3; max-width: 720px; margin: 22px 0 0; }
.lib-tools { margin-top: clamp(36px, 5vw, 52px); display: grid; gap: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 0; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(244,244,246,.02);
  color: var(--muted); font: 500 13px/1 var(--sans); letter-spacing: .02em; cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: rgba(229,192,123,.4); }
.chip[aria-pressed="true"] { color: var(--gold-soft); border-color: rgba(229,192,123,.55); background: rgba(212,175,55,.1); }
.chip-n { font-family: var(--display); font-size: 15px; color: var(--gold); }
.chip-c { font-size: 11px; color: var(--muted); opacity: .8; }
.lib-search { position: relative; max-width: 420px; }
.lib-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.lib-search input {
  width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(244,244,246,.03);
  color: var(--text); padding: 0 18px 0 46px; font: 400 15px var(--sans);
}
.lib-search input::placeholder { color: #6B7280; }
.lib-search input:focus { outline: none; border-color: var(--gold-soft); }
.lib-privacy { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lib-privacy svg { width: 15px; height: 15px; color: var(--gold-soft); }
@media (min-width: 760px) { .lib-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; } .lib-search { flex: 1; } }

.doors { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door {
  position: relative; text-align: left; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; min-height: 300px; padding: 26px 24px 22px;
  border-radius: 22px 22px 22px 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,27,.85), rgba(18,18,22,.6));
  overflow: hidden; isolation: isolate;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.door::before { /* arched doorway frame */
  content: ""; position: absolute; inset: 12px; border-radius: 120px 120px 12px 12px;
  border: 1px solid rgba(229,192,123,.12); pointer-events: none; z-index: -1; transition: border-color .35s;
}
.door::after { /* light leaking through the doorway */
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 70%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,.16), transparent 65%); opacity: .5; z-index: -1; transition: opacity .4s;
}
.door:hover, .door:focus-visible { border-color: rgba(229,192,123,.4); transform: translateY(-3px); box-shadow: 0 18px 50px -20px rgba(212,175,55,.35); }
.door:hover::before, .door:focus-visible::before { border-color: rgba(229,192,123,.35); }
.door:hover::after, .door:focus-visible::after { opacity: 1; }
.door-cat { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); text-align: center; margin-top: 18px; }
.door-num { font-family: var(--display); font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(229,192,123,.55); text-align: center; margin-top: 10px; }
.door-quote { font-family: var(--display); font-size: clamp(22px, 2.4vw, 25px); line-height: 1.3; color: var(--text); text-align: center; margin: auto 0; padding: 22px 6px; }
.door-foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.door-foot svg { width: 15px; height: 15px; }
.door:hover .door-foot { color: var(--gold-soft); }
.door.sealed { cursor: default; border-style: dashed; background: rgba(18,18,22,.4); }
.door.sealed:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.door.sealed .door-quote { color: var(--muted); font-style: italic; font-size: 20px; }
.lib-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 20px; border: 1px dashed var(--line-strong); border-radius: 22px; }

/* reading drawer */
.reading {
  width: min(860px, calc(100% - 24px)); max-height: min(88vh, 900px); margin: auto; padding: 0;
  border: 1px solid rgba(229,192,123,.3); border-radius: 26px; color: var(--text);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212,175,55,.08), transparent 70%), var(--charcoal);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(212,175,55,.25);
  overflow: hidden;
}
.reading::backdrop { background: rgba(5,5,7,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reading[open] { display: flex; flex-direction: column; animation: openDoor .5s cubic-bezier(.2,.7,.2,1); }
@keyframes openDoor { from { opacity: 0; transform: perspective(1200px) rotateX(8deg) translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reading[open] { animation: none; } }
@media (max-width: 639px) {
  .reading { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
}
.reading-head { position: relative; padding: 30px 24px 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .reading-head { padding: 40px 44px 30px; } }
.reading-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; }
.reading-cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0 50px 16px 0; }
.reading-quote { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; margin: 0; padding-right: 30px; }
.reading-body { overflow-y: auto; padding: 8px 24px 30px; overscroll-behavior: contain; }
@media (min-width: 640px) { .reading-body { padding: 10px 44px 40px; } }
.layer { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.layer:last-child { border-bottom: 0; }
@media (min-width: 640px) { .layer { grid-template-columns: 190px 1fr; gap: 28px; } }
.layer-label { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); padding-top: 4px; }
.layer-label svg { width: 16px; height: 16px; flex: none; margin-top: -1px; }
.layer-label small { display: block; color: var(--muted); letter-spacing: .12em; font-size: 10px; margin-top: 5px; }
.layer p { margin: 0; color: #D2D5DB; font-size: 16px; }
.compass { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.compass li { font-size: 13px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(229,192,123,.28); background: rgba(212,175,55,.05); color: var(--text); }
.compass-note { margin-top: 12px !important; font-size: 12px !important; color: var(--muted) !important; }
.reading-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: rgba(10,10,12,.5); }
@media (min-width: 640px) { .reading-nav { padding: 18px 44px; } }
.reading-nav .btn { min-height: 42px; padding: 10px 16px; font-size: 13px; }
.reading-nav .btn:disabled { opacity: .3; pointer-events: none; }
body.reading-open { overflow: hidden; }

/* ---------- Breathing pacer ---------- */
.breathe-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .breathe-grid { grid-template-columns: 1fr 1.1fr; } }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; color: #C2C6CE; font-size: 15px; }
.facts svg { flex: none; width: 18px; height: 18px; color: var(--gold-soft); margin-top: 4px; }
.facts b { color: var(--text); font-weight: 500; }

.pacer {
  position: relative; border: 1px solid var(--line); border-radius: 28px; padding: 28px 20px 24px;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(212,175,55,.06), transparent 70%), var(--charcoal);
}
@media (min-width: 640px) { .pacer { padding: 36px 32px 30px; } }
.orb-stage { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orb-track { position: absolute; inset: 0; }
.orb-track circle { fill: none; }
.orb {
  --s: .55;
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  transform: scale(var(--s));
  background: radial-gradient(circle at 50% 45%, rgba(245,215,150,.95) 0%, rgba(229,192,123,.55) 22%, rgba(212,175,55,.18) 52%, rgba(212,175,55,0) 72%);
  box-shadow: 0 0 80px 10px rgba(212,175,55,.12);
  will-change: transform;
}
.orb-ring {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(229,192,123,.55);
  transform: scale(var(--s, .55)); will-change: transform;
}
.orb-ring.r2 { border-color: rgba(229,192,123,.22); width: 86%; }
.orb-label { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.orb-phase { font-family: var(--display); font-size: clamp(30px, 6vw, 40px); line-height: 1; color: var(--text); text-shadow: 0 2px 18px rgba(10,10,12,.7); }
.orb-hint { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text); font-weight: 600; min-height: 18px; text-shadow: 0 1px 12px rgba(10,10,12,.9), 0 0 3px rgba(10,10,12,.8); }
.orb-count { display: block; margin-top: 6px; font: 500 13px/1 var(--sans); color: var(--text); opacity: .8; font-variant-numeric: tabular-nums; min-height: 13px; text-shadow: 0 1px 10px rgba(10,10,12,.9); }
.pacer.idle .orb-hint, .pacer.idle .orb-count { color: var(--muted); }

.pacer-stats { display: flex; justify-content: center; gap: 28px; margin: 18px 0 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pacer-stats b { display: block; font: 500 20px/1.2 var(--sans); letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: center; }
.pacer-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(244,244,246,.02); }
.seg button {
  font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; min-height: 38px; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: rgba(212,175,55,.16); color: var(--gold-soft); }
.seg button:disabled { opacity: .4; cursor: default; }
.icon-btn { width: 48px; height: 48px; padding: 0; }
.pacer-note { text-align: center; color: var(--muted); font-size: 12px; margin: 18px auto 0; max-width: 420px; line-height: 1.6; }

/* ---------- Listen ---------- */
.listen { background: var(--charcoal); }
.listen-head { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .listen-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sets { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: clamp(40px, 6vw, 60px); }
@media (min-width: 760px) { .sets { grid-template-columns: repeat(3, 1fr); } }
.set {
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden;
  display: flex; flex-direction: column;
}
.set-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.set-art canvas { width: 100%; height: 100%; }
.set-bpm { position: absolute; left: 14px; top: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(10,10,12,.6); border: 1px solid var(--line-strong); color: var(--gold-soft); backdrop-filter: blur(6px); }
.set-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.set h3 { font-size: 26px; }
.set p { color: var(--muted); font-size: 14px; margin: 10px 0 18px; flex: 1; }
.set-embed { border-radius: 12px; overflow: hidden; }
.set-embed iframe { width: 100%; height: 152px; border: 0; display: block; }
.set-soon {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px 16px;
}
.set-soon svg { width: 16px; height: 16px; color: var(--gold-soft); flex: none; }

.move-call {
  margin-top: 22px; border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(229,192,123,.28);
  background: linear-gradient(120deg, rgba(212,175,55,.12), rgba(212,175,55,.02) 55%, transparent), var(--panel);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .move-call { grid-template-columns: auto 1fr; gap: 40px; } }
.move-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,175,55,.14); color: var(--gold-soft); animation: sway 5.5s ease-in-out infinite; }
.move-icon svg { width: 32px; height: 32px; }
@keyframes sway { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.move-call h3 { font-size: clamp(26px, 4vw, 38px); }
.move-call p { color: #C9CCD3; margin: 12px 0 0; max-width: 680px; }
.move-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.move-steps span { font-size: 12px; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }

/* ---------- Footer ---------- */
footer { padding: clamp(70px, 10vw, 110px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.signup { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 480px; }
@media (min-width: 520px) { .signup { flex-direction: row; } }
.signup input {
  flex: 1; min-height: 50px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(244,244,246,.03);
  color: var(--text); padding: 0 20px; font: 400 15px var(--sans);
}
.signup input::placeholder { color: #6B7280; }
.signup input:focus { outline: none; border-color: var(--gold-soft); }
.signup-msg { font-size: 13px; color: var(--gold-soft); margin-top: 12px; min-height: 20px; }
.links { display: grid; gap: 12px; }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, background .25s;
}
.links a:hover { border-color: rgba(229,192,123,.4); background: rgba(212,175,55,.04); }
.links .l { display: flex; align-items: center; gap: 14px; }
.links .l svg { width: 20px; height: 20px; color: var(--gold-soft); }
.links small { display: block; color: var(--muted); font-size: 12px; }
.links .arrow { width: 18px; height: 18px; color: var(--muted); }
.sovereign { margin-top: clamp(60px, 9vw, 100px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 12px; }
@media (min-width: 760px) { .sovereign { flex-direction: row; justify-content: space-between; align-items: center; } }
.sovereign em { font-family: var(--display); font-size: 17px; color: var(--text); opacity: .8; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .move-icon, .scroll-cue i { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Clean Room additions ---------- */
.lib-privacy a, .sovereign a, .signup-note a { color: var(--gold-soft); text-decoration: underline; text-decoration-color: rgba(229,192,123,.4); text-underline-offset: 3px; }
.lib-privacy a:hover, .sovereign a:hover { text-decoration-color: var(--gold-soft); }
.lib-privacy a { white-space: nowrap; }
.signup-note { font-size: 12px; color: var(--muted); max-width: 480px; margin: 4px 0 0; line-height: 1.6; }

/* tap-to-load music player: nothing contacts Spotify until the visitor asks */
.spotify-gate {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; background: rgba(244,244,246,.02);
  color: var(--text); font: 400 13px/1.45 var(--sans); transition: border-color .2s, background .2s;
}
.spotify-gate:hover { border-color: rgba(229,192,123,.45); background: rgba(212,175,55,.05); }
.spotify-gate .g-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,175,55,.14); color: var(--gold-soft); }
.spotify-gate .g-icon svg { width: 16px; height: 16px; }
.spotify-gate b { display: block; font-weight: 500; }
.spotify-gate small { display: block; color: var(--muted); font-size: 11px; }

/* ---------- Clean Room Promise page ---------- */
.promise-hero { padding: 140px 0 60px; position: relative; }
.promise-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(212,175,55,.09), transparent 70%); pointer-events: none; }
.promise-hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 400; }
.promise-hero h1 em { color: var(--gold-soft); }
.promise-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(229,192,123,.4); color: var(--gold-soft); background: rgba(212,175,55,.07); margin-bottom: 28px; }
.promise-seal svg { width: 28px; height: 28px; }
.vows { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
@media (min-width: 720px) { .vows { grid-template-columns: repeat(2, 1fr); } }
.vow { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; background: var(--panel); }
.vow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vow-head svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }
.vow h3 { font-size: 23px; }
.vow p { margin: 0; color: #C2C6CE; font-size: 15px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 18px; }
.prose p, .prose li { color: #C9CCD3; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-soft); text-underline-offset: 3px; }
.prose code { font: 13px/1.4 ui-monospace, Consolas, monospace; background: rgba(244,244,246,.06); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.honest { border-left: 1px solid var(--gold); padding: 4px 0 4px 22px; margin: 26px 0; }
.live { border: 1px solid rgba(229,192,123,.3); border-radius: 22px; padding: clamp(22px, 4vw, 34px); background: var(--charcoal); margin-top: 26px; }
.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 12px rgba(74,222,128,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .live-grid { grid-template-columns: repeat(4, 1fr); } }
.live-stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.live-stat b { display: block; font: 500 26px/1.1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.live-stat span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live-stat.ok b { color: #86EFAC; }
.live-list { margin: 18px 0 0; padding: 0; list-style: none; max-height: 220px; overflow: auto; font: 12px/1.6 ui-monospace, Consolas, monospace; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.live-list li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.live-list li span:last-child { color: #86EFAC; flex: none; }
.live-list li.ext span:last-child { color: #FCA5A5; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.back-link:hover { color: var(--gold-soft); }
.back-link svg { width: 16px; height: 16px; }
.vows-section { padding-top: 0; }
.prose h3 { font-size: clamp(24px, 3.4vw, 30px); margin: 40px 0 12px; }

/* ---------- Genesis voice ---------- */
.ref-link { color: var(--text); font-style: italic; text-decoration: underline; text-decoration-color: rgba(229,192,123,.45); text-underline-offset: 3px; }
.ref-link:hover { color: var(--gold-soft); }
.signature { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--gold-soft) !important; margin-top: 22px !important; }

/* ---------- Library credits & threads ---------- */
.lib-hoodie { font-family: var(--display); font-size: clamp(20px, 2.6vw, 26px); color: var(--gold-soft); margin: 14px 0 0; }
.lib-hoodie span { font-size: .75em; color: var(--muted); font-style: italic; }
.door-quote.is-question { font-style: italic; }
.door-credit { display: block; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin: -10px 0 18px; }
.reading-credit { margin: 14px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--gold-soft); }
.compass a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.compass a svg { width: 13px; height: 13px; opacity: .55; }
.compass li { transition: border-color .2s, background .2s; }
.compass li:hover { border-color: rgba(229,192,123,.6); background: rgba(212,175,55,.12); }
.related { display: grid; gap: 8px; }
.related-door {
  text-align: left; cursor: pointer; font: 400 17px/1.35 var(--display); color: var(--text);
  background: rgba(244,244,246,.02); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
.related-door span { display: block; font: 500 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.related-door:hover { border-color: rgba(229,192,123,.45); background: rgba(212,175,55,.05); }
.layer[hidden] { display: none; }

/* ---------- The Stacks ---------- */
.stacks { margin-top: clamp(56px, 8vw, 90px); border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 60px); }
.stacks-head { max-width: 680px; }
.stacks-head h3 { font-size: clamp(28px, 4vw, 40px); }
.stacks-head p:last-child { color: var(--muted); margin: 14px 0 0; }
.shelves { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
@media (min-width: 720px) { .shelves { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .shelves { grid-template-columns: repeat(3, 1fr); } }
.shelf { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(22,22,27,.6); }
.shelf h4 { margin: 0 0 14px; font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.shelf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.shelf li b { display: block; font: 500 18px/1.25 var(--display); color: var(--text); }
.shelf li span { font-size: 12.5px; color: var(--muted); }

/* ---------- Playlists ---------- */
.sets { grid-template-columns: 1fr; }
@media (min-width: 760px) { .sets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sets { grid-template-columns: repeat(3, 1fr); } }
.set-featured { border-color: rgba(229,192,123,.35); }
.set-embed.is-loaded iframe { height: 450px; border-radius: 12px; }
.set-out { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.set-out:hover { color: var(--gold-soft); }
.set-out svg { width: 14px; height: 14px; }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 60px); }
@media (min-width: 680px) { .voices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .voices { grid-template-columns: repeat(3, 1fr); } }
.voice { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: linear-gradient(180deg, var(--panel), rgba(22,22,27,.55)); }
.voice-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.voice-mark { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font: 500 18px/1 var(--display); letter-spacing: .04em; color: var(--gold-soft); border: 1px solid rgba(229,192,123,.35); background: radial-gradient(circle, rgba(212,175,55,.14), transparent 70%); }
.voice-kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.voice h3 { font-size: 28px; }
.voice-title { color: var(--gold-soft) !important; font-size: 13px !important; letter-spacing: .04em; margin: 6px 0 0 !important; }
.voice p { color: #C2C6CE; font-size: 15px; margin: 12px 0 0; }
.voice blockquote { margin: 16px 0 0; padding-left: 14px; border-left: 1px solid var(--gold); font: italic 400 19px/1.4 var(--display); color: var(--text); }
.voice-links { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.voice-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.voice-links a:hover { border-color: rgba(229,192,123,.5); color: var(--gold-soft); }
.voice-links svg { width: 15px; height: 15px; }
.voice-soon { font-size: 12px; color: var(--muted); font-style: italic; }
.voice-invite { border-style: dashed; background: rgba(18,18,22,.4); }
.voice-invite > svg { width: 26px; height: 26px; color: var(--gold-soft); margin-bottom: 16px; }
.voice-invite h3 { font-size: 24px; }
.lib-more { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }

/* ---------- The Reading Rooms ---------- */
.stacks-head p b { color: var(--text); font-weight: 500; }
.tier-legend { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 24px; font-size: 12.5px; color: var(--muted); }
@media (min-width: 760px) { .tier-legend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tier-legend { grid-template-columns: repeat(4, 1fr); } }
.tier-legend > span { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.tier { flex: none; display: inline-block; font: 600 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid; margin-top: 1px; }
.tier-D { color: #86EFAC; border-color: rgba(134,239,172,.45); background: rgba(134,239,172,.06); }
.tier-T { color: #93C5FD; border-color: rgba(147,197,253,.45); background: rgba(147,197,253,.06); }
.tier-R { color: var(--gold-soft); border-color: rgba(229,192,123,.5); background: rgba(212,175,55,.07); }
.tier-L { color: #C4B5FD; border-color: rgba(196,181,253,.45); background: rgba(196,181,253,.06); }
.rooms { display: grid; gap: 10px; margin-top: 28px; }
.room { border: 1px solid var(--line); border-radius: 18px; background: rgba(22,22,27,.6); transition: border-color .25s; }
.room[open] { border-color: rgba(229,192,123,.35); background: var(--panel); }
.room summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 18px 18px; }
@media (min-width: 760px) { .room summary { grid-template-columns: 64px 1fr auto; padding: 20px 24px; } }
.room summary::-webkit-details-marker { display: none; }
.room summary:hover .room-text b { color: var(--gold-soft); }
.room-n { font-family: var(--display); font-size: 30px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(229,192,123,.6); padding-top: 4px; }
.room-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.room-text b { font: 500 22px/1.2 var(--display); color: var(--text); transition: color .2s; }
.room-college { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.room-echo { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.room-count { grid-column: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 760px) { .room-count { grid-column: auto; padding-top: 6px; } }
.room-body { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 18px 22px; }
@media (min-width: 900px) { .room-body { grid-template-columns: repeat(2, 1fr); padding: 0 24px 26px 102px; } }
@media (min-width: 1200px) { .room-body { grid-template-columns: repeat(3, 1fr); } }
.shelf-col { border-top: 1px solid var(--line); padding-top: 14px; }
.shelf-col h4 { margin: 0 0 12px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.shelf-col.is-counter h4 { color: #93C5FD; }
.shelf-col.is-lore h4 { color: #C4B5FD; }
.shelf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.shelf-col li b { display: block; font: 500 17px/1.3 var(--display); color: var(--text); }
.shelf-col li .by { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.shelf-col li em { display: block; font-style: normal; font-size: 13px; color: #B9BDC6; line-height: 1.55; margin-top: 4px; }
.shelf-col li .tier { margin-bottom: 6px; }
.archives { margin-top: 34px; border: 1px solid rgba(229,192,123,.28); border-radius: 20px; padding: clamp(20px, 4vw, 30px); background: linear-gradient(120deg, rgba(212,175,55,.08), transparent 60%), var(--panel); }
.archives h4 { margin: 0; font: 500 24px/1.2 var(--display); }
.archives > p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.archives ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px 24px; }
@media (min-width: 760px) { .archives ul { grid-template-columns: repeat(2, 1fr); } }
.archives a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; text-decoration: none; }
.archives a:hover { color: var(--gold-soft); }
.archives a svg { width: 14px; height: 14px; color: var(--gold-soft); }
.archives li span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Clean Room at Home ---------- */
.prose h3 { color: var(--text); }
.live.caution { border-color: rgba(245,165,36,.45); }
.live.caution .live-head svg { width: 18px; height: 18px; color: var(--amber); }
.live.caution ul { margin: 0; padding-left: 18px; }
.live.caution li { margin-bottom: 10px; font-size: 15px; }
.prose ol li strong, .prose ul li strong { color: var(--text); font-weight: 500; }
.signup-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Podcast ---------- */
.podcast { margin-top: 22px; border-radius: 24px; padding: clamp(24px, 4.5vw, 40px); border: 1px solid var(--line-strong); background: var(--panel); display: grid; gap: 22px; }
@media (min-width: 860px) { .podcast { grid-template-columns: auto 1fr; gap: 36px; } }
.podcast-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(212,175,55,.12); color: var(--gold-soft); border: 1px solid rgba(229,192,123,.3); }
.podcast-icon svg { width: 28px; height: 28px; }
.podcast h3 { font-size: clamp(26px, 3.6vw, 34px); }
.podcast-body > p:not(.eyebrow) { color: #C9CCD3; margin: 12px 0 0; max-width: 680px; }
.episodes { list-style: none; counter-reset: ep; padding: 0; margin: 20px 0 4px; display: grid; gap: 8px; }
.episodes li { counter-increment: ep; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.episodes li::before { content: counter(ep, decimal-leading-zero); font: 500 12px/1 var(--sans); color: var(--gold); width: 22px; }
.episodes b { font: 500 18px/1.3 var(--display); color: var(--text); }
.episodes span { font-size: 13px; color: var(--muted); }

/* ---------- Breath patterns ---------- */
.pattern-seg { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 18px; flex-wrap: wrap; justify-content: center; }
.pattern-info { margin-top: 26px; border: 1px solid rgba(229,192,123,.28); border-radius: 18px; padding: 20px 22px; background: linear-gradient(120deg, rgba(212,175,55,.07), transparent 65%), var(--panel); }
.pattern-info h3 { font-size: 26px; margin: 0 0 8px; }
.pattern-info p { margin: 0 0 8px; color: #C9CCD3; font-size: 15px; }
.pattern-info .pi-when b { color: var(--gold-soft); font-weight: 500; }
.pattern-info .pi-source { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- The Earth's Heartbeat ---------- */
.earth { background: var(--charcoal); }
.earth .pattern-info a { color: var(--gold-soft); text-underline-offset: 3px; }
.earth-stage { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto 14px; }
.earth-stage canvas { width: 100%; height: 100%; }
.mode-seg { display: flex; width: fit-content; max-width: 100%; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.earth-readout { text-align: center; margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.earth-readout b { display: block; font: 500 28px/1.2 var(--display); color: var(--text); }

/* ---------- Search everything ---------- */
.search-extra { margin-top: 22px; border: 1px solid rgba(229,192,123,.28); border-radius: 20px; padding: 20px 22px; background: var(--panel); }
.search-extra[hidden] { display: none; }
.sx-summary { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.sx-group { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.sx-group h4 { margin: 0 0 10px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.sx-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 760px) { .sx-group ul { grid-template-columns: repeat(2, 1fr); } }
.sx-group a, .sx-book { display: block; width: 100%; text-align: left; cursor: pointer; text-decoration: none; color: var(--text); background: rgba(244,244,246,.02); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 13px; font: inherit; transition: border-color .2s, background .2s; }
.sx-group a:hover, .sx-book:hover { border-color: rgba(229,192,123,.5); background: rgba(212,175,55,.05); }
.sx-group b { display: block; font: 500 16px/1.3 var(--display); }
.sx-group span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sx-more { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.sx-suggest { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.sx-suggest a { color: var(--gold-soft); text-underline-offset: 3px; }
.shelf-col li.flash { animation: flashLi 2.2s ease-out; border-radius: 10px; }
@keyframes flashLi { 0%, 30% { background: rgba(212,175,55,.22); box-shadow: 0 0 0 6px rgba(212,175,55,.22); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* ---------- The Rest Stop ---------- */
.rest-stop { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212,175,55,.08), transparent 70%), var(--obsidian); }
.rest-head { max-width: 820px; }
.rest-note { margin-top: 24px; border-left: 1px solid var(--gold); padding: 4px 0 4px 24px; }
.rest-note p { font-family: var(--display); font-size: clamp(20px, 2.6vw, 25px); line-height: 1.45; color: #DADCE1; margin: 0 0 14px; }
.rest-note .rest-sign { color: var(--gold-soft); font-style: italic; margin: 0; }
.rest-note .rest-sign span { color: var(--muted); font-size: .8em; }
.triage { margin-top: clamp(40px, 6vw, 60px); border: 1px solid rgba(229,192,123,.3); border-radius: 26px; padding: clamp(22px, 4vw, 36px); background: var(--panel); }
.triage h3 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 18px; }
.triage-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.triage-choices button { font: 400 15px/1.3 var(--sans); color: var(--text); background: rgba(244,244,246,.03); border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 18px; cursor: pointer; min-height: 46px; transition: border-color .2s, background .2s, color .2s; }
.triage-choices button:hover { border-color: rgba(229,192,123,.5); }
.triage-choices button[aria-pressed="true"] { border-color: var(--gold-soft); background: rgba(212,175,55,.14); color: var(--gold-soft); }
.triage-path { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.triage-path[hidden] { display: none; }
.tp-reassure { font-family: var(--display); font-size: clamp(21px, 2.8vw, 26px); line-height: 1.4; color: var(--text); margin: 0 0 18px; }
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .tp-steps { grid-template-columns: repeat(3, 1fr); } }
.tp-steps li { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(10,10,12,.35); display: flex; flex-direction: column; }
.tp-kind { font: 600 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.tp-steps b { font: 500 20px/1.25 var(--display); color: var(--text); }
.tp-steps p { color: #C2C6CE; font-size: 14.5px; margin: 8px 0 14px; flex: 1; }
.tp-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--obsidian); background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border: 0; border-radius: 999px; padding: 11px 16px; text-decoration: none; cursor: pointer; }
.tp-go svg { width: 15px; height: 15px; }
.tp-safety { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Everyone is welcome ---------- */
.welcome { padding-bottom: clamp(30px, 5vw, 50px); }
.welcome-head { max-width: 820px; }
.welcome-doors { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }
@media (min-width: 640px) { .welcome-doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .welcome-doors { grid-template-columns: repeat(4, 1fr); } }
.wdoor { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--panel); transition: border-color .25s, transform .25s; }
.wdoor:hover { border-color: rgba(229,192,123,.45); transform: translateY(-2px); }
.wdoor svg { width: 22px; height: 22px; color: var(--gold-soft); margin-bottom: 6px; }
.wdoor b { font: 500 22px/1.2 var(--display); }
.wdoor span { font-size: 14px; color: var(--muted); }
.welcome-next { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.welcome-next a { color: var(--gold-soft); text-underline-offset: 3px; }
.rest-stop { padding-top: clamp(50px, 8vw, 90px); }

.prose .letter { font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.5; color: var(--text); margin: 6px 0 0; }

.prose .pull { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.8vw, 26px); line-height: 1.45; color: var(--gold-soft); border-left: 1px solid var(--gold); padding: 4px 0 4px 22px; margin: 26px 0; }
.prose .pull-sign { display: block; margin-top: 8px; font-size: .75em; color: var(--muted); }

/* ---------- The Hallway ---------- */
.prose .hallway-voice, .lede.hallway-voice { font-family: var(--display); font-size: clamp(20px, 2.5vw, 24px); line-height: 1.5; color: #DADCE1; }
.prose .science { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(22,22,27,.6); }
.prose .science b { color: var(--gold-soft); font-weight: 500; }
.prose .filter-report { border: 1px solid rgba(229,192,123,.35); border-radius: 14px; padding: 14px 18px; margin: 18px 0 22px; background: rgba(229,192,123,.05); }
.prose .filter-report .fr-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 8px; }
.prose .filter-report ul { margin: 0; padding-left: 0; list-style: none; }
.prose .filter-report li { font-size: 14.5px; margin: 6px 0; }
.prose .filter-report li b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Figures ---------- */
.prose figure.shell { margin: 18px 0 26px; }
.prose figure.shell img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }
.prose figure.shell figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

.lib-sub .lib-sign { color: var(--gold-soft); font-style: italic; white-space: nowrap; }

/* ---------- Search at the top of the home page ---------- */
.hero-search { display: flex; gap: 10px; justify-content: center; align-items: center; max-width: 520px; margin: 22px auto 0; }
.hero-search .lib-search { flex: 1; max-width: none; }
.hero-search .lib-search input { background: rgba(10,10,12,.55); }
.hero-search .btn { flex: none; }
@media (max-width: 420px) { .hero-search .btn { padding-left: 16px; padding-right: 16px; } }
.hero-search { margin-bottom: 56px; }
.lib-tools { scroll-margin-top: 96px; }
.site-search { padding: 34px 0 0; }
.site-search .hero-search { margin: 0 auto; }

/* ---------- Search in the menu bar ---------- */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search-btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.nav-search-btn svg { width: 17px; height: 17px; }
.nav-search-btn[aria-expanded="true"] { border-color: var(--gold-soft); color: var(--gold-soft); }
.nav-search { border-top: 1px solid var(--line); padding: 12px 0 14px; }
.nav-search[hidden] { display: none; }
.nav-search-inner { display: flex; gap: 10px; align-items: center; }
.nav-search .lib-search { flex: 1; max-width: none; }
.nav-search .btn { flex: none; }

/* ---------- Guided paths, content notes, dates ---------- */
.paths { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.paths-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-right: 6px; }
.path { font: 500 13px var(--sans); color: var(--text); background: rgba(229,192,123,.06); border: 1px solid rgba(229,192,123,.35); border-radius: 999px; padding: 9px 15px; cursor: pointer; }
.path:hover { border-color: var(--gold-soft); }
.path[aria-pressed="true"] { background: var(--gold-soft); color: #0A0A0C; border-color: var(--gold-soft); }
.path-intro { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--gold-soft); margin: 0 0 14px; }
.door-note { display: block; font-size: 11px; color: var(--muted); text-align: center; margin-top: -8px; padding: 0 10px 8px; }
.reading-note { font-size: 13px; color: var(--amber, #E5C07B); margin: 8px 0 0; }
.reading-asof, .prose .reviewed { font-size: 12px; color: var(--muted); font-style: italic; }
.reading-asof { margin: 18px 0 4px; }
.prose .content-note { font-size: 13px; color: var(--muted); font-style: italic; border-left: 2px solid rgba(229,192,123,.4); padding-left: 12px; }
.house { padding-top: 0; }
.lib-search input::placeholder { color: #8B91A0; }

/* ---------- Meditation timer ---------- */
.sit-lengths { display: flex; flex-wrap: wrap; gap: 8px; }
.sit-lengths button { font: 500 13px var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 15px; cursor: pointer; }
.sit-lengths button[aria-pressed="true"] { border-color: var(--gold-soft); color: var(--gold-soft); }
.sit-time { font-family: var(--display); font-size: clamp(48px, 9vw, 72px); color: var(--text); margin: 14px 0 10px !important; line-height: 1; }
.sit-controls { display: flex; gap: 10px; flex-wrap: wrap; }
