/* ═══════════════════════════════════════════════
   A.A.T. STUDIOS — SHARED STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --void: #08080a;
  --deep: #0f0f13;
  --surface: #16161c;
  --border: #22222c;
  --border-light: #2e2e3a;
  --muted: #a0a0aa;
  --text: #c8c5bc;
  --light: #ece8dc;
  --gold: #c9a84c;
  --gold-dim: #b0913f;
  --gold-glow: #dcc06a;
  --gold-bright: #e8d48a;
  --amber: #b8943f;
  --parchment: #f0e6c8;
  --glow-gold: rgba(196, 162, 78, 0.08);
  --glow-gold-strong: rgba(196, 162, 78, 0.15);
  --shadow-deep: rgba(0, 0, 0, 0.5);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --display: 'Cinzel', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── VIEW TRANSITIONS ── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-fade-out 0.3s ease-out both;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.4s ease-in both;
}
@keyframes vt-fade-out {
  from { opacity: 1; filter: brightness(1); }
  to   { opacity: 0; filter: brightness(0.6); }
}
@keyframes vt-fade-in {
  from { opacity: 0; filter: brightness(0.6); }
  to   { opacity: 1; filter: brightness(1); }
}
/* Fallback page entrance for non-VT browsers */
body {
  animation: page-enter 0.4s ease-out;
}
@keyframes page-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── INTRO SPLASH ── */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--void);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.intro-splash.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-sigil {
  width: min(70vw, 70vh, 500px);
  height: min(70vw, 70vh, 500px);
}
.intro-sigil svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 0px rgba(196, 162, 78, 0));
  animation: intro-glow 2s 4.2s ease forwards;
}
@keyframes intro-glow {
  to { filter: drop-shadow(0 0 30px rgba(196, 162, 78, 0.4)) drop-shadow(0 0 60px rgba(196, 162, 78, 0.15)); }
}
/* Self-drawing lines and circles */
.intro-splash .intro-draw {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  animation: sigil-trace var(--dur, 1.2s) var(--delay, 0s) cubic-bezier(0.4, 0, 0.2, 1) forwards,
             sigil-appear var(--dur, 1.2s) var(--delay, 0s) ease forwards;
}
.intro-splash .intro-dot {
  opacity: 0;
  animation: intro-dot-pulse 0.8s 4.1s ease forwards;
}
@keyframes intro-dot-pulse {
  0% { opacity: 0; r: 1; }
  50% { opacity: 1; r: 5; }
  100% { opacity: 0.7; r: 2; }
}
/* Prevent scroll while splash is visible */
body.intro-active {
  overflow: hidden;
}

.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(196, 162, 78, 0.4);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.intro-skip:hover {
  color: rgba(196, 162, 78, 0.8);
}

/* ── FILM GRAIN TEXTURE (tactile depth over flat surfaces) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--void);
}

body {
  font-family: var(--serif);
  background: var(--void);
  color: var(--text);
  line-height: 1.75;
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ── FOCUS STYLES (Accessibility) ── */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── SACRED GEOMETRY BACKGROUND ── */
.geometry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  will-change: transform;
  contain: layout style;
  transition: opacity 1.5s ease;
}
.geometry-bg svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s linear;
}

/* ── NAVIGATION (shared across all pages) ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--void) 0%, transparent 100%);
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-mark {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-back {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-back:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ── NAV SEARCH BUTTON ── */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--gold-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s;
  font-family: var(--sans);
}
.nav-search-btn:hover { color: var(--gold); }

/* ── SEARCH MODAL ── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.search-modal-inner {
  width: 90%;
  max-width: 600px;
  background: var(--deep);
  border: 1px solid var(--border);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.search-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--light);
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  outline: none;
}
.search-input::placeholder {
  color: var(--muted);
  font-style: italic;
}
.search-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}
.search-close:hover { color: var(--gold); }
.search-results {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.search-result {
  display: block;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(42, 42, 50, 0.5);
  text-decoration: none;
  transition: background 0.2s;
}
.search-result:hover {
  background: rgba(196, 162, 78, 0.06);
}
.search-result-book {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.25rem;
}
.search-result-title {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--light);
  margin-bottom: 0.3rem;
}
.search-result-excerpt {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.search-result-excerpt mark {
  background: rgba(196, 162, 78, 0.25);
  color: var(--light);
  border-radius: 1px;
  padding: 0 2px;
}
.search-no-results {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}
.search-footer {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  text-align: right;
}
.search-hint {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--border);
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(196, 162, 78, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(196, 162, 78, 0.04) 0%, transparent 70%),
    radial-gradient(circle at 30% 70%, rgba(120, 100, 60, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(120, 100, 60, 0.02) 0%, transparent 40%);
  overflow: hidden;
}
/* Ambient floating particles */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(196, 162, 78, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 65%, rgba(196, 162, 78, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 20%, rgba(196, 162, 78, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 55%, rgba(196, 162, 78, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 80%, rgba(196, 162, 78, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 40%, rgba(196, 162, 78, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(196, 162, 78, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 85%, rgba(196, 162, 78, 0.2) 0%, transparent 100%);
  animation: hero-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-drift {
  0% { transform: translateY(0) translateX(0); opacity: 0.6; }
  50% { opacity: 1; }
  100% { transform: translateY(-30px) translateX(15px); opacity: 0.6; }
}
.hero-sigil {
  width: 160px;
  height: 160px;
  margin-bottom: 3.5rem;
}
.hero-sigil svg {
  width: 100%;
  height: 100%;
}
/* Self-drawing sigil animation */
.hero-sigil .sigil-draw {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  animation: sigil-trace var(--dur, 1.2s) var(--delay, 0s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  animation-name: sigil-trace, sigil-appear;
}
.hero-sigil .sigil-dot {
  opacity: 0;
  animation: sigil-pulse 0.6s 4.1s ease forwards;
}
@keyframes sigil-trace {
  to { stroke-dashoffset: 0; }
}
@keyframes sigil-appear {
  from { opacity: 0; }
  5% { opacity: 1; }
  to { opacity: 1; }
}
@keyframes sigil-pulse {
  0% { opacity: 0; r: 1; }
  50% { opacity: 1; r: 4; }
  100% { opacity: 0.8; r: 2; }
}
/* Glow after drawing completes */
.hero-sigil svg {
  filter: drop-shadow(0 0 0px rgba(196, 162, 78, 0));
  animation: sigil-glow 3s 4.2s ease forwards;
}
@keyframes sigil-glow {
  to { filter: drop-shadow(0 0 18px rgba(196, 162, 78, 0.4)) drop-shadow(0 0 40px rgba(196, 162, 78, 0.15)); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 80px rgba(196, 162, 78, 0.15), 0 0 160px rgba(196, 162, 78, 0.06);
  position: relative;
  z-index: 1;
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.9;
  margin-bottom: 3.5rem;
}
.hero-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  background-size: 200% 100%;
  animation: shimmer-divider 4s ease-in-out infinite;
  margin-bottom: 2.5rem;
  position: relative;
}
.hero-line::after {
  content: '';
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 78, 0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer-divider 4s ease-in-out infinite;
  filter: blur(3px);
}
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
}
.hero-scroll:hover { color: var(--gold-dim); }
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

/* ── SECTIONS — SHARED ── */
section {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--light);
  text-shadow: 0 0 40px rgba(196, 162, 78, 0.06);
  margin-bottom: 1.75rem;
}
.section-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  background-size: 200% 100%;
  animation: shimmer-divider 3s ease-in-out infinite;
  margin-bottom: 3.5rem;
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 78, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer-divider 3s ease-in-out infinite;
  filter: blur(4px);
}
@keyframes shimmer-divider {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

/* ── EPIGRAPHS (between sections) ── */
.epigraph {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(196, 162, 78, 0.07) 0%, transparent 70%),
    var(--void);
  border-top: 1px solid rgba(196, 162, 78, 0.08);
  border-bottom: 1px solid rgba(196, 162, 78, 0.08);
  overflow: hidden;
}
.epigraph::before,
.epigraph::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}
.epigraph::after {
  margin: 2.5rem auto 0;
}
.epigraph blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-glow);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow:
    0 0 40px rgba(196, 162, 78, 0.3),
    0 0 80px rgba(196, 162, 78, 0.12);
}
.epigraph cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.7;
}
.epigraph cite::before {
  content: '\2014\2002';
}

/* ── ABOUT ── */
#about {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196, 162, 78, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(140, 120, 80, 0.02) 0%, transparent 40%);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 780px;
}
.about-text p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  font-weight: 300;
  line-height: 1.85;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.8rem;
  float: left;
  line-height: 0.85;
  margin-right: 0.6rem;
  margin-top: 0.15rem;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(196, 162, 78, 0.2);
}
.about-author-note {
  font-size: 1rem !important;
  font-style: italic;
  color: var(--muted) !important;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* ── WORKS / CATALOG ── */
#works {
  background: var(--void);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(196, 162, 78, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(120, 100, 60, 0.02) 0%, transparent 35%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 100, 60, 0.02) 0%, transparent 35%);
}

.works-filter {
  display: flex;
  gap: 0;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  display: inline-flex;
}
.works-filter button {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-quart);
}
.works-filter button:last-child { border-right: none; }
.works-filter button:hover {
  color: var(--gold);
  background: var(--glow-gold);
}
.works-filter button.active {
  color: var(--gold);
  background: var(--glow-gold-strong);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

a.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.work-card {
  background: linear-gradient(145deg, rgba(22, 22, 28, 0.9) 0%, rgba(15, 15, 19, 0.95) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-dim), transparent 90%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.work-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-gold) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.work-card:hover {
  border-color: rgba(196, 162, 78, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(196, 162, 78, 0.06),
    inset 0 1px 0 rgba(196, 162, 78, 0.08);
}
.work-card:hover::before { opacity: 1; }
.work-card:hover::after { opacity: 1; }

/* Book cover illustrations */
.work-cover {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0.7;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}
.work-card:hover .work-cover {
  opacity: 0.9;
  transform: scale(1.05);
}
.work-cover svg {
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 0 0px rgba(196, 162, 78, 0));
  transform: scale(1) rotate(0deg) translateY(0);
  transform-origin: center;
  transition: filter 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.work-card:hover .work-cover svg {
  filter: drop-shadow(0 0 12px rgba(196, 162, 78, 0.2)) drop-shadow(0 0 30px rgba(196, 162, 78, 0.1));
}

/* ── Unique SVG hover behaviors per work ── */

/* Tree of Life: ascends — stretches upward along the Middle Pillar */
[href="invisible-college.html"]:hover .work-cover svg {
  transform: scaleY(1.07) scaleX(0.97);
  filter: drop-shadow(0 0 8px rgba(196, 162, 78, 0.35)) drop-shadow(0 0 30px rgba(196, 162, 78, 0.12));
}

/* Zodiac Wheel: the wheel turns */
[href="worst-astrologer.html"]:hover .work-cover svg {
  transform: rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(196, 162, 78, 0.25)) drop-shadow(0 0 28px rgba(196, 162, 78, 0.1));
}

/* Alchemical Mandala: the Stone awakens, expands from prima materia */
[href="great-work.html"]:hover .work-cover svg {
  transform: scale(1.09);
  filter: drop-shadow(0 0 18px rgba(196, 162, 78, 0.35)) drop-shadow(0 0 50px rgba(196, 162, 78, 0.18));
}

/* Concentric spheres: the cosmic spheres expand outward */
[href="hermetic-comedy.html"]:hover .work-cover svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(196, 162, 78, 0.2)) drop-shadow(0 0 20px rgba(196, 162, 78, 0.1));
}

/* Tree of Knowledge: the Fruit blazes with forbidden light */
[href="keeper-of-questions.html"]:hover .work-cover svg {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 14px rgba(196, 162, 78, 0.5)) drop-shadow(0 0 45px rgba(196, 162, 78, 0.2));
}

/* Gnostic Cosmos: the Monad ascends, light streams downward */
[href="light-bringers.html"]:hover .work-cover svg {
  transform: translateY(-7px) scale(1.03);
  filter: drop-shadow(0 0 20px rgba(196, 162, 78, 0.4)) drop-shadow(0 0 55px rgba(196, 162, 78, 0.2));
}

.work-type {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}
.work-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--light);
  margin-bottom: 0.9rem;
  transition: color 0.3s ease;
}
.work-card:hover .work-title { color: var(--gold-glow); }
.work-desc {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.work-format {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
}
.work-format span {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.work-card:hover .work-format span {
  border-color: var(--border-light);
}
.work-arrow {
  color: var(--gold-dim);
  font-size: 1.3rem;
  transition: transform 0.4s var(--ease-out-expo), color 0.3s;
}
.work-card:hover .work-arrow {
  transform: translateX(6px);
  color: var(--gold);
}

/* ── EPISODIC ── */
#episodic {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(ellipse at 80% 30%, rgba(196, 162, 78, 0.035) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(100, 100, 140, 0.025) 0%, transparent 40%);
}
.episodic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
a.episode-item {
  text-decoration: none;
  color: inherit;
}
.episode-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}
.episode-item:first-child { border-top: 1px solid var(--border); }
.episode-item:hover {
  padding-left: 1.25rem;
  background: linear-gradient(90deg, var(--glow-gold), transparent 40%);
}

.episode-number {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--border-light);
  transition: color 0.4s;
}
.episode-item:hover .episode-number { color: var(--gold); }

.episode-info h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}
.episode-item:hover .episode-info h3 { color: var(--gold-glow); }
.episode-info p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}
.episode-date {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.episode-start {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.85rem 2.5rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.episode-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out-expo);
}
.episode-start:hover {
  color: var(--void);
  border-color: var(--gold);
}
.episode-start:hover::before {
  transform: translateX(0);
}
.episode-start span, .episode-start {
  position: relative;
  z-index: 1;
}

/* ── AUDIO ── */
#audio {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(ellipse at 50% 80%, rgba(196, 162, 78, 0.035) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 20%, rgba(140, 110, 60, 0.02) 0%, transparent 35%);
}
/* Audio intro */
.audio-intro {
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.audio-intro p {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
}

/* Embedded Spotify players */
.audio-embeds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.audio-embed-card {
  border-radius: 12px;
  overflow: hidden;
}
.audio-embed-card iframe {
  display: block;
}

/* Platform links below embeds */
.audio-platforms {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}
.audio-platform-link {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.audio-platform-link:hover {
  color: var(--gold);
}

/* Subscribe platform cards */
.subscribe-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.subscribe-platform {
  display: block;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, rgba(12, 12, 16, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  text-decoration: none;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}
.subscribe-platform:hover {
  background: linear-gradient(145deg, rgba(22, 22, 28, 0.95) 0%, rgba(15, 15, 19, 0.98) 100%);
  box-shadow: inset 0 0 30px rgba(196, 162, 78, 0.03);
}
.subscribe-platform::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 1px;
  background: var(--gold-dim);
  transition: transform 0.4s var(--ease-out-expo);
}
.subscribe-platform:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.subscribe-platform-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.subscribe-platform:hover .subscribe-platform-name {
  color: var(--gold-glow);
}
.subscribe-platform-desc {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}


/* ── COMMISSION ── */
.commission-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.04) 0%, rgba(196, 162, 78, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.4s var(--ease-out-expo);
}
.commission-card:hover {
  border-color: var(--gold-dim);
}
.commission-headline {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--light);
  margin-bottom: 1.25rem;
}
.commission-detail {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.commission-link {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.commission-link:hover {
  color: var(--gold-glow);
  border-bottom-color: var(--gold-glow);
}
.commission-fragments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0 2rem;
}
.commission-fragment {
  border-left: 2px solid var(--gold-dim);
  padding: 1rem 1.25rem;
  background: rgba(196, 162, 78, 0.03);
}
.commission-fragment p {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.commission-fragment em {
  color: var(--gold);
  font-style: normal;
}
.commission-fragment-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.commission-cta {
  text-align: center;
  padding-top: 0.5rem;
}
.commission-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(196, 162, 78, 0.15);
}
.commission-btn:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 32px rgba(196, 162, 78, 0.35);
}
@media (max-width: 640px) {
  .commission-fragments {
    grid-template-columns: 1fr;
  }
}

/* ── SUBSCRIBE ── */
#subscribe {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 162, 78, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 162, 78, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(120, 100, 60, 0.03) 0%, transparent 60%),
    var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
#subscribe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(196, 162, 78, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(196, 162, 78, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(196, 162, 78, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 80%, rgba(196, 162, 78, 0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 20%, rgba(196, 162, 78, 0.15) 0%, transparent 100%);
  animation: subscribe-drift 15s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes subscribe-drift {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { opacity: 1; }
  100% { transform: translateY(-20px) scale(1.1); opacity: 0.5; }
}
.subscribe-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.subscribe-inner p {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.85rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  z-index: 1;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}
.btn-gold:hover {
  color: var(--void);
  border-color: var(--gold);
}
.btn-gold:hover::before {
  transform: scaleX(1);
}

/* Alias for detail page CTA buttons */
.cta-button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.85rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  z-index: 1;
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}
.cta-button:hover {
  color: var(--void);
  border-color: var(--gold);
}
.cta-button:hover::before {
  transform: scaleX(1);
}

/* ── COLOPHON FOOTER ── */
.colophon {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 162, 78, 0.025) 0%, transparent 50%),
    var(--void);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2.5rem;
}
.colophon-sigil {
  width: 44px;
  height: 44px;
  margin: 0 auto 3rem;
  opacity: 0.5;
  animation: sigil-breathe 6s ease-in-out infinite;
}
@keyframes sigil-breathe {
  0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 0px rgba(196, 162, 78, 0)); }
  50% { opacity: 0.65; filter: drop-shadow(0 0 8px rgba(196, 162, 78, 0.12)); }
}
.colophon:hover .colophon-sigil {
  opacity: 0.8;
}
.colophon-sigil svg {
  width: 100%;
  height: 100%;
}
.colophon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}
.colophon-section h4 {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}
.colophon-section a {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
  padding: 0.25rem 0;
}
.colophon-section a:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.colophon-note p {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.colophon-note em {
  font-style: italic;
  color: var(--text);
}
.colophon-copy {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--border-light);
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .colophon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .colophon-grid {
    grid-template-columns: 1fr;
  }
}

/* ── START HERE SECTION ── */
.start-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2.5rem 0;
}
.start-path {
  display: block;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(15, 15, 19, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}
.start-path:hover {
  background: linear-gradient(145deg, rgba(22, 22, 28, 0.95) 0%, rgba(12, 12, 16, 0.98) 100%);
  box-shadow: inset 0 0 40px rgba(196, 162, 78, 0.03);
}
.start-path::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold-dim);
  transition: height 0.4s var(--ease-out-expo);
}
.start-path:hover::before {
  height: 100%;
}
.start-path-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}
.start-path-title {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.start-path:hover .start-path-title {
  color: var(--gold-glow);
}
.start-path-desc {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .start-paths {
    grid-template-columns: 1fr;
  }
}

/* ── SCROLL ANIMATIONS ── */

/* Default fade-up */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-expo);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card reveal (work cards, episode items) */
.work-card.fade-in {
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-expo);
}
.work-card.fade-in.visible {
  transform: translateY(0) scale(1);
}
.work-card.fade-in:nth-child(2) { transition-delay: 0.12s; }
.work-card.fade-in:nth-child(3) { transition-delay: 0.24s; }
.work-card.fade-in:nth-child(4) { transition-delay: 0.36s; }
.work-card.fade-in:nth-child(5) { transition-delay: 0.48s; }
.work-card.fade-in:nth-child(6) { transition-delay: 0.60s; }

/* Section titles: slide from left */
.section-title.fade-in {
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease-out-quart) 0.1s, transform 0.7s var(--ease-out-expo) 0.1s;
}
.section-title.fade-in.visible {
  transform: translateX(0);
}

/* Section labels: fade only (no movement) */
.section-label.fade-in {
  transform: none;
  transition: opacity 1.2s var(--ease-out-quart);
}
.section-label.fade-in.visible {
  opacity: 1;
}

/* Dividers: scale in from center */
.section-divider.fade-in {
  transform: scaleX(0);
  transition: opacity 0.5s ease 0.2s, transform 0.7s var(--ease-out-expo) 0.2s;
}
.section-divider.fade-in.visible {
  transform: scaleX(1);
}

/* Epigraphs: gentle fade, no translate */
.epigraph.fade-in {
  transform: none;
  transition: opacity 1.4s var(--ease-out-quart);
}
.epigraph.fade-in.visible {
  opacity: 1;
}

/* Episode items: cascade */
.episode-item { transition-delay: calc(var(--i, 0) * 0.07s); }

/* Subscribe section: scale up */
.subscribe-inner .btn-gold.fade-in {
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.7s var(--ease-out-quart) 0.3s, transform 0.7s var(--ease-out-expo) 0.3s;
}
.subscribe-inner .btn-gold.fade-in.visible {
  transform: translateY(0) scale(1);
}

/* Start-path cards: cascade */
.start-path.fade-in {
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-expo);
}
.start-path.fade-in:nth-child(2) { transition-delay: 0.1s; }
.start-path.fade-in:nth-child(3) { transition-delay: 0.2s; }
.start-path.fade-in:nth-child(4) { transition-delay: 0.3s; }
.start-path.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(10, 10, 11, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.25em;
  }
  .nav-toggle {
    display: block;
    z-index: 101;
  }
  .about-layout { grid-template-columns: 1fr; }
  .audio-embeds {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .episode-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  .episode-date { display: none; }
  .footer-links {
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  section { padding: 6rem 1.5rem; }
  .works-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: 0.06em; }
  .audio-embeds { grid-template-columns: 1fr; }
  .audio-platforms { flex-direction: column; gap: 0.75rem; }
  .subscribe-platforms { grid-template-columns: 1fr; }
  .colophon { padding: 4rem 1.5rem 2rem; }
}

/* ═══════════════════════════════════════════════
   DETAIL PAGE STYLES
   (used on invisible-college.html, etc.)
   ═══════════════════════════════════════════════ */
.detail-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 3rem 4rem;       /* top padding accounts for fixed nav */
}

.detail-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  border-image: linear-gradient(to right, var(--border), var(--gold-dim), var(--border)) 1;
}
.detail-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(196, 162, 78, 0.1);
}
.detail-subtitle {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.detail-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

.detail-description {
  margin: 2.5rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.04) 0%, rgba(196, 162, 78, 0.01) 100%);
  border-left: 3px solid var(--gold-dim);
  border-radius: 0 4px 4px 0;
}
.detail-description p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
}

.detail-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--void);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(196, 162, 78, 0.2);
}
.detail-cta:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(196, 162, 78, 0.3);
}

/* TOC styling for detail pages */
.toc-section {
  margin: 3rem 0;
}
.toc-heading {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.toc-list {
  list-style: none;
  background: linear-gradient(135deg, var(--deep) 0%, rgba(22, 22, 28, 0.8) 100%);
  border-left: 3px solid var(--gold-dim);
  padding: 2rem 2.5rem;
  border-radius: 0 4px 4px 0;
}
.toc-item {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
}
.toc-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.7rem;
  top: 0.15em;
}
.toc-item a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
  display: block;
}
.toc-item a:hover {
  color: var(--gold);
}
.toc-chapter-num {
  font-family: var(--display);
  color: var(--gold-dim);
  margin-right: 0.75rem;
}
.toc-chapter-title {
  font-weight: 400;
}

/* Story list for anthologies */
.story-list {
  list-style: none;
}
.story-list-item {
  margin-bottom: 1rem;
}
.story-list-item a {
  display: block;
  padding: 1.5rem 1.75rem;
  background: rgba(196, 162, 78, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: 3px;
}
.story-list-item a:hover {
  background: rgba(196, 162, 78, 0.08);
  border-color: var(--gold-dim);
  transform: translateX(4px);
}
.story-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.story-name {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--light);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.story-blurb {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Planetary Spheres Diagram ── */
.spheres-diagram {
  margin: 3rem 0 4rem;
  text-align: center;
}
.spheres-diagram-title {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}
.spheres-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.spheres-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
/* Sphere rings */
.sphere-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 0.5;
  transition: stroke 0.4s ease, stroke-width 0.4s ease;
  cursor: pointer;
}
.sphere-ring.reached {
  stroke: var(--gold-dim);
  stroke-width: 0.7;
}
.sphere-ring:hover,
.sphere-group:hover .sphere-ring {
  stroke: var(--gold);
  stroke-width: 1.2;
}
/* Sphere labels */
.sphere-label {
  font-family: 'Cinzel', serif;
  font-size: 3.2px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  fill: var(--border);
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.4s ease;
}
.sphere-label.reached {
  fill: var(--gold-dim);
}
.sphere-group:hover .sphere-label {
  fill: var(--gold);
}
/* Sphere symbol (planetary glyph) */
.sphere-glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5px;
  fill: var(--border);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill 0.4s ease, font-size 0.3s ease;
}
.sphere-glyph.reached {
  fill: var(--gold-dim);
}
.sphere-group:hover .sphere-glyph {
  fill: var(--gold-glow);
  font-size: 5.8px;
}
/* Ascending path */
.ascent-path {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 0.6;
  stroke-dasharray: 2, 2;
  opacity: 0.4;
}
.ascent-path.active {
  stroke: var(--gold);
  opacity: 0.8;
  stroke-dasharray: none;
  stroke-width: 0.8;
  filter: drop-shadow(0 0 3px rgba(196, 162, 78, 0.3));
}
/* Earth dot */
.earth-dot {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(196, 162, 78, 0.6));
}
/* Soul marker (current position) */
.soul-marker {
  fill: var(--gold-glow);
  filter: drop-shadow(0 0 6px rgba(196, 162, 78, 0.8));
  animation: soul-pulse 2.5s ease-in-out infinite;
}
@keyframes soul-pulse {
  0%, 100% { opacity: 0.8; r: 1.5; }
  50% { opacity: 1; r: 2.2; }
}
/* Stars beyond Saturn */
.star-dot {
  fill: var(--muted);
  opacity: 0.3;
}
/* Info panel */
.sphere-info {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}
.sphere-info.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(100%);
  pointer-events: auto;
}
.sphere-info-name {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.sphere-info-garment {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.sphere-info-stories {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
/* Diagram legend */
.spheres-legend {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.spheres-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0.75rem;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.legend-dot.gold { background: var(--gold); }
.legend-dot.dim { background: var(--border); }

/* Compact spheres progress (index.html episodic section) */
.spheres-progress {
  margin: 1.5rem auto 2.5rem;
  max-width: 680px;
  overflow-x: auto;
}
.spheres-caption {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.spheres-progress-svg {
  width: 100%;
  height: auto;
  min-width: 420px;
  display: block;
}

/* Volume headers (Hermetic Comedy) */
.volume-header {
  margin: 3rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.volume-number {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}
.volume-title {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.volume-subtitle {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}

/* Design notes */
.design-note {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--deep);
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.design-note strong {
  color: var(--gold-dim);
}

/* ── Seven Garments Service Page ── */
/* ═══════════════════════════════════════════════
   SEVEN GARMENTS PAGE — VISUAL LAYER
   ═══════════════════════════════════════════════ */

/* ── Scroll reveal system ── */
.g-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out-expo);
}
.g-reveal.g-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.garments-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: visible;
}
.garments-hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 162, 78, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.garments-hero .detail-title,
.garments-hero .detail-subtitle,
.garments-hero .detail-meta {
  position: relative;
  z-index: 1;
}

/* ── Inline planetary spheres ── */
.g-sphere {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem auto;
  position: relative;
}
.g-sphere svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px rgba(196, 162, 78, 0.15));
  transition: filter 0.6s ease;
}
.g-sphere.g-visible svg {
  filter: drop-shadow(0 0 20px rgba(196, 162, 78, 0.25));
}
.g-sphere--sun svg {
  width: 80px;
  height: 80px;
}
.g-sphere--sun.g-visible svg {
  filter: drop-shadow(0 0 30px rgba(196, 162, 78, 0.35)) drop-shadow(0 0 60px rgba(196, 162, 78, 0.12));
}
.g-sphere-label {
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.5;
}
@keyframes g-pulse {
  0%, 100% { r: 30; opacity: 0; }
  50% { r: 34; opacity: 0.2; }
}
@keyframes g-pulse-sun {
  0%, 100% { r: 38; opacity: 0; }
  50% { r: 43; opacity: 0.2; }
}
.g-sphere.g-visible .g-sphere-pulse {
  animation: g-pulse 4s ease-in-out infinite;
}
.g-sphere--sun.g-visible .g-sphere-pulse {
  animation: g-pulse-sun 4s ease-in-out infinite;
}

/* ── Intro / Hook ── */
.garments-intro {
  margin: 0 0 1rem;
}
.garments-intro p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.garments-intro p:last-child {
  margin-bottom: 0;
}
.g-lead {
  font-family: var(--serif);
  font-size: 1.35rem !important;
  font-weight: 400;
  line-height: 1.75 !important;
  color: var(--light) !important;
  letter-spacing: 0.01em;
}

/* ── Pull quotes ── */
.g-pullquote {
  font-family: var(--serif) !important;
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--gold) !important;
  line-height: 1.7 !important;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--gold-dim);
  margin: 1.75rem 0 !important;
  background: linear-gradient(90deg, rgba(196, 162, 78, 0.03) 0%, transparent 60%);
}

/* ── Cosmology ── */
.garments-cosmology {
  margin: 0 0 1rem;
}
.garments-cosmology p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.garments-cosmology p:last-child {
  margin-bottom: 0;
}

/* ── Section titles ── */
.garments-section-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ── Showcase sections ── */
.garments-showcase {
  margin: 0 0 1rem;
  padding: 2rem 0;
}
.garments-showcase p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.garments-showcase p:last-child {
  margin-bottom: 0;
}
/* Featured showcase — card treatment */
.garments-showcase--featured {
  padding: 2.5rem 2.5rem;
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.03) 0%, rgba(196, 162, 78, 0.01) 50%, transparent 100%);
  border: 1px solid rgba(196, 162, 78, 0.1);
  border-radius: 4px;
  position: relative;
}
.garments-showcase--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(ellipse at 30% 0%, rgba(196, 162, 78, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Practice system ── */
.garments-practice {
  margin: 0 0 2rem;
  padding: 2rem 0;
}
.garments-practice > p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.g-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.g-tool {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.02) 0%, var(--deep) 100%);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.g-tool:hover {
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.05) 0%, var(--deep) 100%);
}
.g-tool:nth-child(2n) {
  border-right: none;
}
.g-tool:nth-last-child(-n+2) {
  border-bottom: none;
}
.g-tool h4 {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.g-tool p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Manifesto / blockquote ── */
.garments-manifesto {
  margin: 3rem 0;
  padding: 0;
}
.garments-manifesto blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--light);
  padding: 2.5rem 3rem;
  margin: 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at center, rgba(196, 162, 78, 0.03) 0%, transparent 70%);
}
.garments-manifesto blockquote::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
}
.garments-manifesto blockquote::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
}

/* ── Practical details ── */
.garments-process {
  margin: 2rem 0;
}
.garments-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.garments-detail-block {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(196, 162, 78, 0.02) 0%, var(--deep) 100%);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.garments-detail-block:nth-child(2n) {
  border-right: none;
}
.garments-detail-block:nth-last-child(-n+2) {
  border-bottom: none;
}
.garments-detail-block h4 {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.garments-detail-block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}
.garments-price {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem !important;
}

/* ── CTA section ── */
.garments-cta-section {
  text-align: center;
  margin: 3rem 0 0;
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}
.garments-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 162, 78, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.garments-cta-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--light);
  margin-bottom: 2rem;
  position: relative;
}
.garments-cta-button {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 2px;
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 30px rgba(196, 162, 78, 0.2), 0 0 60px rgba(196, 162, 78, 0.05);
}
.garments-cta-button:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 40px rgba(196, 162, 78, 0.35), 0 0 80px rgba(196, 162, 78, 0.1);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .garments-details-grid {
    grid-template-columns: 1fr;
  }
  .garments-detail-block:nth-child(2n) {
    border-right: none;
  }
  .garments-detail-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .garments-detail-block:last-child {
    border-bottom: none;
  }
  .g-tools-grid {
    grid-template-columns: 1fr;
  }
  .g-tool {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .g-tool:last-child {
    border-bottom: none;
  }
  .garments-showcase--featured {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.75rem 1.5rem;
  }
  .garments-manifesto blockquote {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
  }
  .g-sphere svg {
    width: 52px;
    height: 52px;
  }
  .g-sphere--sun svg {
    width: 64px;
    height: 64px;
  }
  .g-lead {
    font-size: 1.2rem !important;
  }
  .garments-cta-section {
    padding: 3.5rem 1.5rem;
  }
}

/* Detail page CTA box */
.detail-subscribe {
  margin: 4rem 0;
  padding: 3rem;
  background: radial-gradient(ellipse at center, rgba(196, 162, 78, 0.04) 0%, var(--deep) 70%);
  border: 1px solid var(--border);
  text-align: center;
  border-radius: 4px;
}
.detail-subscribe h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 1rem;
}
.detail-subscribe p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.detail-subscribe-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.detail-subscribe-also {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.detail-subscribe-also a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.detail-subscribe-also a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* Detail page footer (matching main site) */
.detail-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  margin-top: 4rem;
  background: var(--void);
}
.detail-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.detail-footer-section h4 {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.detail-footer-section ul {
  list-style: none;
}
.detail-footer-section li {
  margin-bottom: 0.6rem;
}
.detail-footer-section a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.detail-footer-section a:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.detail-footer-copy {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--border);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .detail-main {
    padding: 6rem 1.5rem 2rem;
  }
  .detail-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .toc-list {
    padding: 1.5rem;
  }
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--void);
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10001;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::after { opacity: 0 !important; } /* disable film grain */
  .hero::before { animation: none !important; } /* disable particles */
  #subscribe::before { animation: none !important; }
  .section-divider { animation: none !important; }
  .section-divider::after { animation: none !important; }
  .hero-line { animation: none !important; }
  .hero-line::after { animation: none !important; }
  .colophon-sigil { animation: none !important; }
  .intro-splash { display: none !important; } /* skip animated intro */
  .sigil-draw, .intro-draw {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .intro-splash {
    display: none !important;
  }
  .g-sphere-pulse, .soul-pulse {
    animation: none !important;
  }
  .shimmer-divider::after,
  .hero::before,
  .geometry-bg {
    animation: none !important;
    transform: none !important;
  }
}

/* ── NOSCRIPT FALLBACK — make animated elements visible without JS ── */
.no-js .fade-in,
.no-js .g-reveal,
.no-js .intro-splash {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}
.no-js .intro-splash {
  display: none !important;
}

/* ── HERO CTA ROW ── */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--void);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.hero-cta-btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(196,162,78,0.35), 0 0 60px rgba(196,162,78,0.12);
  transform: translateY(-1px);
}
.hero-cta-link {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0.85;
}
.hero-cta-link:hover {
  color: var(--gold-glow);
  opacity: 1;
}

/* ── EPISODE LATEST HIGHLIGHT ── */
.episode-item--latest {
  border-color: rgba(196,162,78,0.25) !important;
  background: linear-gradient(135deg, rgba(196,162,78,0.04) 0%, transparent 60%) !important;
}
.episode-item--latest .episode-title,
.episode-item--latest h3 {
  color: var(--gold-glow) !important;
}
.episode-new {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  padding: 0.15em 0.55em 0.1em;
  margin-left: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}

/* ── AUDIO CARDS ── */
.audio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .audio-cards {
    grid-template-columns: 1fr;
  }
}
.audio-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--deep);
  text-decoration: none;
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
  overflow: hidden;
}
.audio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,162,78,0.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.audio-card:hover {
  border-color: rgba(196,162,78,0.35);
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 30px rgba(196,162,78,0.06);
}
.audio-card:hover::before {
  opacity: 1;
}
.audio-card-symbol {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: opacity 0.25s, transform 0.25s;
}
.audio-card:hover .audio-card-symbol {
  opacity: 1;
  transform: scale(1.1);
}
.audio-card-body {
  flex: 1;
}
.audio-card-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}
.audio-card-title {
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--light);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.audio-card-desc {
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1rem;
}
.audio-card-arrow {
  display: block;
  font-size: 1rem;
  color: var(--gold-dim);
  margin-top: auto;
  padding-top: 0.75rem;
  transition: color 0.2s, transform 0.2s;
}
.audio-card:hover .audio-card-arrow {
  color: var(--gold-glow);
  transform: translateX(4px);
}

/* ── PRINT ── */
@media print {
  body::after,
  .geometry-bg,
  .hero::before,
  #subscribe::before,
  .intro-splash,
  nav,
  .hero-scroll,
  .nav-toggle,
  .nav-search-btn,
  .search-modal,
  .skip-link,
  .spheres-progress,
  .audio-embeds,
  .subscribe-platforms,
  .colophon-sigil,
  .work-cover { display: none !important; }

  body {
    background: white !important;
    color: #1a1a1a !important;
  }
  * {
    color: #1a1a1a !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
  }
  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666 !important; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
  .hero { min-height: auto !important; padding: 2rem !important; }
  .section-inner { padding: 1.5rem 0 !important; }
  .works-grid { display: block !important; }
  .work-card { page-break-inside: avoid; margin-bottom: 1rem; border: 1px solid #ccc !important; padding: 1rem !important; }
}
