/* =========================================================
   JOSEPH DARK — MASTER STYLESHEET
   Full replacement for css/style.css
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-soft: #0c0b0d;
  --bg-panel: rgba(255, 248, 235, 0.03);
  --bg-panel-strong: rgba(255, 248, 235, 0.05);
  --fg: #f7f1e8;
  --muted: rgba(247, 241, 232, 0.72);
  --muted-2: rgba(247, 241, 232, 0.5);
  --muted-3: rgba(247, 241, 232, 0.32);
  --line: rgba(247, 241, 232, 0.12);
  --line-strong: rgba(247, 241, 232, 0.24);
  --accent: #d8b98a;
  --accent-soft: rgba(216, 185, 138, 0.18);
  --shadow: rgba(0, 0, 0, 0.58);
  --max: 1120px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: 260ms ease;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(216, 185, 138, 0.05), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, #090909 0%, #040404 45%, #020202 100%);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

body[data-mode="surface"] .symbolic {
  display: none;
}

body[data-mode="symbol"] .surface {
  display: none;
}

a {
  color: inherit;
}

img,
audio,
iframe {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: rgba(216, 185, 138, 0.24);
  color: var(--fg);
}

body.phase-transitioning {
  overflow: hidden;
}

body > :not(.jd-page-transition) {
  transition:
    opacity 1.2s cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 1.28s cubic-bezier(0.2, 0.82, 0.2, 1),
    transform 1.28s cubic-bezier(0.2, 0.82, 0.2, 1);
  will-change: opacity, filter, transform;
}

body.phase-transitioning > :not(.jd-page-transition) {
  opacity: 0.08;
  filter: brightness(0.01) saturate(0.46) blur(4px);
  transform: scale(0.985) translate3d(0, 18px, 0);
}

body.phase-arriving > :not(.jd-page-transition) {
  opacity: 0.12;
  filter: brightness(0.03) saturate(0.58) blur(7px);
  transform: scale(1.022) translate3d(0, 18px, 0);
}

.jd-page-transition {
  --jd-transition-ink: rgba(3, 5, 13, 0.74);
  --jd-transition-ink-deep: rgba(2, 2, 4, 0.98);
  --jd-transition-accent-a: rgba(147, 186, 255, 0.16);
  --jd-transition-accent-b: rgba(216, 185, 138, 0.18);
  --jd-transition-glow-a: rgba(255, 255, 255, 0.14);
  --jd-transition-glow-b: rgba(255, 230, 180, 0.12);
  --jd-transition-wipe-a: rgba(63, 100, 182, 0.28);
  --jd-transition-wipe-b: rgba(255, 247, 232, 0.48);
  --jd-transition-wipe-c: rgba(214, 166, 55, 0.36);
  --jd-transition-loader-a: rgba(255, 246, 228, 0.96);
  --jd-transition-loader-b: rgba(216, 185, 138, 0.34);
  --jd-transition-card: rgba(5, 5, 5, 0.62);
  --jd-transition-card-border: rgba(247, 241, 232, 0.16);
  --jd-transition-wipe-glow: rgba(93, 126, 194, 0.42);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, var(--jd-transition-accent-a), transparent 24%),
    radial-gradient(circle at 76% 72%, var(--jd-transition-accent-b), transparent 26%),
    linear-gradient(135deg, var(--jd-transition-ink), var(--jd-transition-ink-deep));
  transition: opacity 1s cubic-bezier(0.2, 0.82, 0.2, 1);
}

.jd-page-transition.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.jd-page-transition.is-departing {
  transition: opacity 0.28s linear;
}

.jd-page-transition.is-departing,
.jd-page-transition.is-arriving {
  background:
    radial-gradient(circle at 20% 18%, var(--jd-transition-accent-a), transparent 28%),
    radial-gradient(circle at 76% 72%, var(--jd-transition-accent-b), transparent 30%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.995));
}

.jd-page-transition[data-theme="club"] {
  --jd-transition-ink: rgba(22, 8, 39, 0.86);
  --jd-transition-ink-deep: rgba(5, 2, 13, 0.995);
  --jd-transition-accent-a: rgba(167, 108, 255, 0.24);
  --jd-transition-accent-b: rgba(245, 206, 108, 0.22);
  --jd-transition-glow-a: rgba(220, 191, 255, 0.18);
  --jd-transition-glow-b: rgba(255, 227, 144, 0.18);
  --jd-transition-wipe-a: rgba(147, 88, 255, 0.42);
  --jd-transition-wipe-b: rgba(255, 241, 217, 0.54);
  --jd-transition-wipe-c: rgba(235, 191, 88, 0.42);
  --jd-transition-loader-a: rgba(255, 236, 189, 0.98);
  --jd-transition-loader-b: rgba(179, 113, 255, 0.44);
  --jd-transition-card: rgba(18, 7, 30, 0.7);
  --jd-transition-card-border: rgba(225, 197, 255, 0.22);
  --jd-transition-wipe-glow: rgba(162, 103, 255, 0.56);
}

.jd-page-transition[data-theme="club"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(171, 102, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(255, 214, 116, 0.2), transparent 28%),
    linear-gradient(140deg, rgba(18, 7, 33, 0.9), rgba(4, 2, 12, 0.995));
}

.jd-page-transition[data-theme="club"].is-departing,
.jd-page-transition[data-theme="club"].is-arriving {
  background:
    radial-gradient(circle at 18% 18%, rgba(171, 102, 255, 0.34), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(255, 214, 116, 0.28), transparent 30%),
    linear-gradient(140deg, rgba(20, 8, 38, 0.97), rgba(4, 2, 12, 0.998));
}

.jd-page-transition[data-theme="club"] .jd-page-transition-veil {
  background:
    radial-gradient(circle at center, rgba(255, 231, 174, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(35, 13, 56, 0.18), rgba(7, 2, 18, 0.9));
}

.jd-page-transition[data-theme="cinema"] {
  --jd-transition-accent-a: rgba(124, 160, 255, 0.2);
  --jd-transition-accent-b: rgba(255, 155, 111, 0.18);
  --jd-transition-wipe-a: rgba(99, 136, 227, 0.36);
  --jd-transition-wipe-b: rgba(255, 244, 225, 0.52);
  --jd-transition-wipe-c: rgba(233, 129, 91, 0.34);
}

.jd-page-transition[data-theme="archive"] {
  --jd-transition-accent-a: rgba(106, 145, 207, 0.18);
  --jd-transition-accent-b: rgba(242, 186, 112, 0.18);
  --jd-transition-wipe-a: rgba(75, 111, 178, 0.32);
  --jd-transition-wipe-b: rgba(255, 241, 225, 0.46);
  --jd-transition-wipe-c: rgba(216, 168, 91, 0.32);
}

.jd-page-transition[data-theme="access"] {
  --jd-transition-accent-a: rgba(128, 162, 227, 0.18);
  --jd-transition-accent-b: rgba(215, 190, 140, 0.18);
  --jd-transition-wipe-a: rgba(97, 130, 196, 0.3);
  --jd-transition-wipe-b: rgba(255, 244, 228, 0.44);
  --jd-transition-wipe-c: rgba(214, 176, 108, 0.28);
}

.jd-page-transition::before,
.jd-page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
}

.jd-page-transition::before {
  background:
    radial-gradient(circle at 24% 24%, var(--jd-transition-glow-a), transparent 18%),
    radial-gradient(circle at 78% 68%, var(--jd-transition-glow-b), transparent 22%);
  opacity: 0.9;
}

.jd-page-transition::after {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 56%);
  opacity: 0.34;
  transform: scale(0.78);
}

.jd-page-transition.is-visible::after {
  animation: thresholdNebulaPulse 2.1s ease forwards;
}

.jd-page-transition-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.9px, transparent 0.9px);
  background-size: 5px 5px;
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: thresholdNoise 1.7s steps(2) infinite;
}

.jd-page-transition-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 44%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.88));
  opacity: 0.55;
}

.jd-page-transition.is-departing .jd-page-transition-veil {
  animation: transitionVeilOut 0.62s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

.jd-page-transition.is-arriving .jd-page-transition-veil {
  opacity: 1;
  animation: transitionVeilIn 1.85s cubic-bezier(0.18, 0.84, 0.2, 1) forwards;
}

.jd-page-transition-wipe {
  position: absolute;
  left: -32%;
  top: -14%;
  width: 164%;
  height: 132%;
  border-radius: 38%;
  background:
    linear-gradient(
      102deg,
      rgba(4, 6, 18, 0) 4%,
      var(--jd-transition-wipe-a) 28%,
      var(--jd-transition-wipe-b) 48%,
      var(--jd-transition-wipe-c) 60%,
      rgba(7, 7, 14, 0) 78%
    );
  filter: blur(16px);
  box-shadow:
    0 0 70px rgba(0, 0, 0, 0.34),
    0 0 84px var(--jd-transition-wipe-glow);
  opacity: 0;
  transform: translate3d(-32%, 0, 0) skewX(-22deg) rotate(-9deg) scale(1.02);
  transition:
    opacity 1s ease,
    transform 2.2s cubic-bezier(0.18, 0.88, 0.2, 1);
}

.jd-page-transition.is-visible .jd-page-transition-wipe {
  opacity: 1;
  transform: translate3d(18%, 0, 0) skewX(-17deg) rotate(-4deg) scale(1.12);
}

.jd-page-transition.is-departing .jd-page-transition-wipe {
  transition-duration: 0.34s;
  opacity: 1;
  transform: translate3d(10%, 0, 0) skewX(-18deg) rotate(-5deg) scale(1.08);
}

.jd-page-transition-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: min(90vw, 540px);
  justify-items: center;
  padding: 34px 38px 30px;
  border: 1px solid var(--jd-transition-card-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    var(--jd-transition-card);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.015);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(24px) scale(0.972);
  transition:
    opacity 0.95s ease,
    transform 1.35s cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 1.25s ease;
}

.jd-page-transition.is-visible .jd-page-transition-copy {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 44px rgba(255, 255, 255, 0.04);
}

.jd-page-transition.is-departing .jd-page-transition-copy {
  transition-duration: 0.28s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.jd-page-transition-kicker {
  display: block;
  color: rgba(247, 241, 232, 0.82);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.jd-page-transition-label {
  display: block;
  color: var(--fg);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(247, 241, 232, 0.16),
    0 0 34px rgba(216, 185, 138, 0.16);
}

.jd-page-transition-loader {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 28px;
  padding: 0 16px;
}

.jd-page-transition-loader::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 241, 232, 0.24), transparent);
  transform: translateY(-50%);
}

.jd-page-transition-loader span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--jd-transition-loader-a), var(--jd-transition-loader-b));
  box-shadow:
    0 0 14px rgba(255, 241, 216, 0.18),
    0 0 28px var(--jd-transition-loader-b);
  transform-origin: center bottom;
  animation: signalLoader 1.1s ease-in-out infinite;
}

.jd-page-transition-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.jd-page-transition-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

.jd-page-transition-status {
  display: block;
  color: rgba(247, 241, 232, 0.7);
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.jd-page-transition.is-arriving .jd-page-transition-copy {
  transform: translateY(-10px) scale(1.008);
}

.jd-page-transition.is-arriving .jd-page-transition-wipe {
  animation: thresholdWarpArrival 2.2s cubic-bezier(0.18, 0.88, 0.2, 1) both;
}

@keyframes thresholdNebulaPulse {
  0% {
    transform: scale(0.82);
    opacity: 0.1;
  }
  45% {
    opacity: 0.36;
  }
  100% {
    transform: scale(1.12);
    opacity: 0.12;
  }
}

@keyframes thresholdNoise {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0.6%, -0.5%, 0);
  }
}

@keyframes thresholdWarpArrival {
  0% {
    opacity: 0.46;
    transform: translate3d(-12%, 0, 0) skewX(-21deg) rotate(-7deg) scale(1.02);
  }
  50% {
    opacity: 0.88;
    transform: translate3d(16%, 0, 0) skewX(-17deg) rotate(-4deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(72%, 0, 0) skewX(-12deg) rotate(0deg) scale(1.18);
  }
}

@keyframes cosmicSceneOut {
  0% {
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    filter: saturate(0.86) brightness(0.64) blur(8px);
    transform: scale(1.04) translate3d(0, -1.5%, 0);
  }
}

@keyframes cosmicSceneIn {
  0% {
    opacity: 0;
    filter: saturate(0.88) brightness(0.56) blur(20px);
    transform: scale(1.06) translate3d(0, 2.4%, 0);
  }
  45% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
    filter: saturate(1) brightness(1) blur(0);
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes signalLoader {
  0%,
  100% {
    opacity: 0.34;
    transform: scaleY(0.64);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.45);
  }
}

@keyframes transitionVeilOut {
  0% {
    opacity: 0.08;
  }
  100% {
    opacity: 0.96;
  }
}

@keyframes transitionVeilIn {
  0% {
    opacity: 0.98;
  }
  100% {
    opacity: 0.24;
  }
}

/* ---------- Header ---------- */

header,
.top-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 241, 232, 0.08);
}

.header-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.logo {
  flex: 0 0 auto;
  letter-spacing: 0.38em;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(247, 241, 232, 0.92);
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}

nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease), opacity var(--ease);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
}

nav a:hover,
nav a:focus-visible {
  color: var(--fg);
}

nav a[aria-current="page"] {
  color: var(--fg);
}

nav a:hover::after,
nav a:focus-visible::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.ambient-candle-button {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, rgba(247, 241, 232, 0.16), rgba(247, 241, 232, 0.02) 58%, transparent 72%),
    rgba(0, 0, 0, 0.01);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition:
    transform 360ms cubic-bezier(0.22, 0.78, 0.2, 1),
    filter 360ms ease,
    opacity 260ms ease;
}

.ambient-candle-button::before,
.ambient-candle-button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.22, 0.78, 0.2, 1),
    box-shadow 420ms ease;
}

.ambient-candle-button::before {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(circle at 50% 68%, rgba(216, 185, 138, 0.14), transparent 58%);
  opacity: 0.34;
  transform: scale(0.86);
  filter: blur(5px);
}

.ambient-candle-button::after {
  inset: 8px;
  border: 1px solid rgba(247, 241, 232, 0.08);
  background: radial-gradient(circle at 50% 50%, rgba(247, 241, 232, 0.035), transparent 72%);
  opacity: 0.46;
}

.ambient-candle-button:hover,
.ambient-candle-button:focus-visible {
  transform: translateY(-1px) scale(1.03);
}

.ambient-candle-button:focus-visible {
  outline: none;
}

.ambient-candle-button:focus-visible::after {
  border-color: rgba(216, 185, 138, 0.26);
}

.ambient-candle-button[data-busy="true"] {
  pointer-events: none;
}

.ambient-candle-button[data-mode="playing"]::before {
  opacity: 0.78;
  transform: scale(1.06);
  box-shadow:
    0 0 24px rgba(216, 185, 138, 0.42),
    0 0 46px rgba(216, 185, 138, 0.18);
  animation: ambientCandleAura 2.8s ease-in-out infinite;
}

.ambient-candle-button[data-mode="paused"]::before {
  opacity: 0.52;
  transform: scale(0.98);
}

.ambient-candle-button[data-mode="stopped"]::before {
  opacity: 0.36;
}

.ambient-candle-stack {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
}

.ambient-candle-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(3px) scale(0.9);
  transform-origin: center;
  transition:
    opacity 480ms ease,
    transform 520ms cubic-bezier(0.22, 0.78, 0.2, 1),
    filter 480ms ease;
  pointer-events: none;
  user-select: none;
}

.ambient-candle-icon--clipart {
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.12));
}

.ambient-candle-icon--gold {
  filter:
    saturate(1.08)
    drop-shadow(0 0 14px rgba(216, 185, 138, 0.45))
    drop-shadow(0 0 28px rgba(216, 185, 138, 0.18));
}

.ambient-candle-icon--white {
  filter:
    brightness(1.02)
    drop-shadow(0 0 12px rgba(247, 241, 232, 0.25))
    drop-shadow(0 0 22px rgba(247, 241, 232, 0.14));
}

.ambient-candle-button[data-mode="stopped"] .ambient-candle-icon--clipart,
.ambient-candle-button[data-mode="playing"] .ambient-candle-icon--gold,
.ambient-candle-button[data-mode="paused"] .ambient-candle-icon--white {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ambient-candle-button[data-mode="playing"] .ambient-candle-icon--gold {
  animation: ambientCandleGlow 3.8s ease-in-out infinite;
}

@keyframes ambientCandleGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter:
      saturate(1.08)
      drop-shadow(0 0 12px rgba(216, 185, 138, 0.34))
      drop-shadow(0 0 26px rgba(216, 185, 138, 0.16));
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    filter:
      saturate(1.12)
      drop-shadow(0 0 16px rgba(231, 188, 103, 0.54))
      drop-shadow(0 0 34px rgba(216, 185, 138, 0.24));
  }
}

@keyframes ambientCandleAura {
  0%,
  100% {
    opacity: 0.54;
  }
  50% {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body > :not(.jd-page-transition) {
    transition: none !important;
  }

  .jd-page-transition,
  .jd-page-transition.is-departing,
  .jd-page-transition.is-arriving {
    transition: opacity 140ms linear !important;
  }

  .jd-page-transition-noise,
  .jd-page-transition-wipe,
  .jd-page-transition::after {
    display: none !important;
  }

  .jd-page-transition-copy,
  .jd-page-transition.is-visible .jd-page-transition-copy,
  .jd-page-transition.is-arriving .jd-page-transition-copy {
    transform: none !important;
  }

  .ambient-candle-button[data-mode="playing"] .ambient-candle-icon--gold {
    animation: none !important;
  }
}

.ghost-button,
.mode-button,
.seal-button,
.nugget,
.aotw-button,
.story-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.22);
  color: var(--fg);
  padding: 11px 15px;
  border-radius: 999px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  transition:
    border-color var(--ease),
    background var(--ease),
    transform var(--ease),
    opacity var(--ease),
    box-shadow var(--ease);
}

.ghost-button:hover,
.mode-button:hover,
.seal-button:hover,
.nugget:hover,
.aotw-button:hover,
.story-button:hover {
  border-color: rgba(216, 185, 138, 0.55);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.ghost-button.active {
  border-color: rgba(216, 185, 138, 0.58);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.ghost-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.hero,
.dark-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.dark-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 80% 16%, rgba(216, 185, 138, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  z-index: 0;
}

.hero::after,
.dark-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.035;
  mix-blend-mode: screen;
  z-index: 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  text-align: center;
  background:
    linear-gradient(rgba(4, 4, 4, 0.4), rgba(4, 4, 4, 0.82)),
    url("../images/darkimg.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
}

.hero-title-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroLineReveal 1s ease forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.12s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.48s;
}

.hero-line:nth-child(3) {
  animation-delay: 0.84s;
}

.hero-final {
  letter-spacing: 0.06em;
  text-shadow:
    0 0 14px rgba(247, 241, 232, 0.08),
    0 0 30px rgba(216, 185, 138, 0.08);
  animation:
    heroLineReveal 1s ease forwards,
    heroFinalGlow 6s ease-in-out 1.9s infinite;
}

.hero-stars {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  z-index: 3;
}

.star-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.95);
  box-shadow:
    0 0 8px rgba(255, 248, 235, 0.6),
    0 0 18px rgba(216, 185, 138, 0.24);
  opacity: 0;
  animation: starFade 1.2s ease-out forwards;
}

.star-particle::before,
.star-particle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 248, 235, 0.64);
  transform: translate(-50%, -50%);
}

.star-particle::before {
  width: 1px;
  height: 8px;
}

.star-particle::after {
  width: 8px;
  height: 1px;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.subtext {
  margin: 28px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: subtextReveal 1s ease 1.3s forwards;
}

.dark-hero {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 24px 72px;
  background:
    linear-gradient(rgba(6, 6, 6, 0.58), rgba(6, 6, 6, 0.9)),
    url("../images/dcbanner.jpg") center / cover no-repeat;
}

.dark-hero h1 {
  text-shadow:
    0 0 18px rgba(247, 241, 232, 0.07),
    0 0 40px rgba(216, 185, 138, 0.04);
}

.dark-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 0 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ---------- Shared content blocks ---------- */

.manifesto,
.cinema-intro,
.vault-intro,
.vault-note,
.cinema-note,
.home-footer {
  width: min(100% - 40px, 820px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.manifesto {
  padding: 78px 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.home-footer {
  padding: 64px 0 86px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 1120px);
  margin: 74px auto 42px;
}

.site-footer-shell {
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 18%, rgba(101, 134, 195, 0.12), transparent 26%),
    radial-gradient(circle at 84% 24%, rgba(216, 185, 138, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(6, 6, 8, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 50px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.site-footer-shell::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 185, 138, 0.42), transparent);
}

.site-footer-top {
  display: grid;
  gap: 10px;
  padding: 28px 28px 18px;
  text-align: center;
}

.site-footer-kicker {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.site-footer-copy {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 22px 22px;
}

.site-footer-action,
.site-footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 232, 0.12);
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  transition:
    transform var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    background var(--ease),
    color var(--ease),
    opacity var(--ease);
}

.site-footer-action {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.22);
}

.site-footer-action.is-primary {
  border-color: rgba(216, 185, 138, 0.3);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.12), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.28);
}

.site-footer-action:hover,
.site-footer-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 185, 138, 0.54);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  padding: 0 22px 24px;
}

.site-footer-column {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(247, 241, 232, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.site-footer-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer-chip {
  background: rgba(255, 255, 255, 0.02);
}

.site-footer-chip:not(.is-placeholder):hover,
.site-footer-chip:not(.is-placeholder):focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 185, 138, 0.54);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.site-footer-chip.is-placeholder,
.site-footer-chip[aria-disabled="true"] {
  color: var(--muted-2);
  opacity: 0.84;
  cursor: default;
}

.site-footer-note {
  margin: 0;
  padding: 0 24px 24px;
  text-align: center;
  color: var(--muted-3);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Homepage ---------- */

.explore-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 55;
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.explore-bar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.explore-left {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.explore-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.explore-links a {
  color: var(--fg);
  opacity: 0.76;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity var(--ease), color var(--ease);
}

.explore-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.gallery {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 30px 0 10px;
}

.panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(255, 248, 235, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    border-color var(--ease),
    background var(--ease);
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel:hover {
  border-color: rgba(216, 185, 138, 0.32);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(255, 248, 235, 0.024);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 185, 138, 0.4), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-label,
.panel-tag {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.28em;
}

.panel-label {
  color: var(--muted);
}

.panel-tag {
  color: var(--muted-2);
  text-align: right;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.panel p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.panel-still {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 260px;
  margin: 18px 0 24px;
  border: 1px solid rgba(247, 241, 232, 0.1);
  border-radius: calc(var(--radius) - 8px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(108%) contrast(108%) brightness(82%);
  transform: scale(1.02);
  transition: transform 1.2s ease, filter 1.2s ease;
}

.panel.visible .panel-still {
  transform: scale(1);
}

.panel-still::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
}

.panel-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.05;
  mix-blend-mode: screen;
}

.panel-nuggets {
  margin-top: 20px;
}

.panel-cta {
  margin-top: 24px;
}

.panel-button,
.vault-button,
.confirm-link,
.confirm-button,
.lock-button,
.member-link,
.cinema-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    opacity var(--ease),
    box-shadow var(--ease);
}

.panel-button,
.vault-button,
.confirm-button,
.lock-button,
.aotw-button {
  border: 1px solid rgba(216, 185, 138, 0.42);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.12), rgba(216, 185, 138, 0.04)),
    rgba(255, 248, 235, 0.02);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-button:hover,
.vault-button:hover,
.confirm-button:hover,
.lock-button:hover,
.aotw-button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 185, 138, 0.68);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.22), rgba(216, 185, 138, 0.08)),
    rgba(255, 248, 235, 0.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.cinema-link,
.member-link,
.confirm-link,
.vault-link {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 248, 235, 0.02);
}

.cinema-link:hover,
.member-link:hover,
.confirm-link:hover,
.vault-link:hover {
  color: var(--fg);
  border-color: rgba(247, 241, 232, 0.26);
  transform: translateY(-1px);
}

.vault-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  transition: all var(--ease);
}

.nugget {
  position: relative;
  overflow: hidden;
}

.nugget::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(216, 185, 138, 0.22), transparent 55%);
  opacity: 0;
  transform: scale(0.55);
  transition: opacity var(--ease), transform var(--ease);
}

.nugget:hover::after {
  opacity: 0.8;
  transform: scale(1);
}

.nugget-body {
  display: none;
  margin-top: 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(216, 185, 138, 0.26);
}

.smoke-note {
  max-width: 760px;
}

.smoke-text {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(247, 241, 232, 0.08);
  border-radius: 16px;
  background: rgba(255, 248, 235, 0.02);
  color: var(--muted);
}

.smoke-under {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1s ease, transform 1s ease;
}

.smoke-over {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 82% 72%, rgba(216, 185, 138, 0.1) 0%, rgba(216, 185, 138, 0) 60%),
    linear-gradient(rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.22));
  filter: blur(10px);
  opacity: 0.95;
}

.smoke-note[data-state="hidden"] .smoke-over {
  animation: smokeIdle 4.2s ease-in-out infinite;
}

.smoke-note[data-state="reveal"] .smoke-under {
  opacity: 0.95;
  transform: translateY(0);
}

.smoke-note[data-state="reveal"] .smoke-over {
  animation: smokeReveal 1.6s ease forwards;
}

.stillness {
  max-width: 760px;
  margin: 0 auto;
  padding: 82px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.stillness.visible {
  opacity: 1;
  transform: translateY(0);
}

.stillness-line {
  width: 140px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, rgba(216, 185, 138, 0.55), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 1s ease, transform 1s ease;
}

.stillness.visible .stillness-line {
  opacity: 1;
  transform: scaleX(1);
}

.stillness-text {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.stillness.visible .stillness-text {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Roots ---------- */

.roots-band {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 0 0 24px;
}

.roots-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(216, 185, 138, 0.08), rgba(255, 188, 88, 0.05)),
    rgba(255, 248, 235, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    border-color var(--ease);
}

.roots-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.roots-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 185, 138, 0.42), transparent);
}

.roots-kicker {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}

.roots-card h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.14;
}

.roots-lead {
  max-width: 820px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
}

.roots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.roots-block {
  padding: 22px;
  border: 1px solid rgba(247, 241, 232, 0.08);
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.16);
}

.roots-block h3 {
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.roots-block p,
.roots-tail {
  margin: 0;
  color: var(--muted);
}

.roots-tail {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
}

/* ---------- Music ---------- */

.music-vault {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 78px 0 110px;
}

.vault-intro {
  margin-bottom: 52px;
}

.vault-feature,
.vault-section {
  margin-top: 68px;
}

.feature-card,
.vault-item,
.cinema-card,
.member-strip,
.aotw,
.archive-controls,
.artifact,
.confirm-card,
.vault-card,
.member-gate-card,
.chamber-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(255, 248, 235, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 38px rgba(0, 0, 0, 0.18);
}

.feature-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 28px;
  padding: 30px;
}

.feature-text h2,
.section-head h3,
.cinema-card h2,
.confirm-title,
.aotw-title,
.vault-header h2,
.vault-card h3,
.lock-title {
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.15;
}

.feature-text p,
.section-head p,
.vault-item p,
.cinema-card p,
.confirm-body,
.aotw-desc,
.lock-desc,
.member-left,
.member-meta,
.story-meta,
.reflection-meta,
.archive-hint {
  color: var(--muted);
}

.feature-actions,
.item-actions,
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.feature-badge {
  min-width: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  padding-left: 24px;
  border-left: 1px solid rgba(247, 241, 232, 0.1);
  text-align: center;
}

.badge-top,
.badge-bot,
.tag,
.confirm-kicker,
.aotw-kicker,
.member-tag,
.lock-title,
.artifact-state,
.panel-label,
.panel-tag,
.explore-left {
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.badge-top,
.badge-bot,
.tag,
.confirm-kicker,
.aotw-kicker,
.member-tag,
.lock-title,
.artifact-state {
  font-size: 11px;
}

.badge-mid {
  font-size: 44px;
  line-height: 1;
  margin: 6px 0;
  color: var(--accent);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.vault-item {
  padding: 22px;
}

.vault-item.bundle {
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.06), rgba(255, 255, 255, 0.014)),
    rgba(255, 248, 235, 0.024);
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.vault-item h4 {
  margin: 0;
  font-weight: 400;
  font-size: 1.05rem;
}

.tag {
  color: var(--muted-2);
  white-space: nowrap;
}

.item-desc {
  margin: 14px 0 18px;
}

.item-details {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 241, 232, 0.09);
  color: var(--muted);
}

.item-details ul {
  margin: 0;
  padding-left: 18px;
}

.vault-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.vault-sub {
  margin: 0;
  color: var(--muted);
}

.vault-locked,
.vault-unlocked {
  display: none;
  margin-top: 26px;
}

.vault-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

.vault-unlocked .vault-item {
  margin-bottom: 18px;
}

.vault-unlocked audio {
  width: 100%;
  margin-top: 16px;
  filter: sepia(1) saturate(0.5) brightness(0.95);
}

/* ---------- Lore ---------- */

.lore-wrap {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 74px 0 110px;
}

.lore-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 24px;
}

.mode-button.active {
  border-color: rgba(216, 185, 138, 0.65);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.14), rgba(216, 185, 138, 0.06)),
    rgba(255, 248, 235, 0.02);
}

.member-strip,
.archive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.member-left {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.member-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-tag {
  padding: 9px 12px;
  border: 1px solid rgba(216, 185, 138, 0.28);
  border-radius: 999px;
  background: rgba(216, 185, 138, 0.08);
  color: var(--fg);
}

.aotw {
  padding: 30px;
  margin-bottom: 26px;
  text-align: center;
}

.archive-search,
.form-group input,
.membership input,
.submission-form input,
.submission-form textarea,
.reflection-form textarea,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(247, 241, 232, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.16)),
    rgba(255, 248, 235, 0.014);
  color: var(--fg);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.archive-search:focus,
.form-group input:focus,
.membership input:focus,
.submission-form input:focus,
.submission-form textarea:focus,
.reflection-form textarea:focus,
textarea:focus {
  border-color: rgba(216, 185, 138, 0.58);
  box-shadow: 0 0 0 1px rgba(216, 185, 138, 0.18);
}

.archive-controls {
  margin-bottom: 22px;
}

.archive-search {
  max-width: 540px;
}

.archive-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.artifact {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease, filter var(--ease);
}

.artifact.visible {
  opacity: 1;
  transform: translateY(0);
}

.artifact-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
}

.artifact-title {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.artifact-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(247, 241, 232, 0.08);
}

.artifact.open .artifact-body {
  display: block;
}

.artifact-body p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footnote {
  margin-top: 16px;
}

.fn {
  display: inline-block;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid rgba(247, 241, 232, 0.2);
  padding-bottom: 2px;
}

.fn-text {
  display: none;
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}

.artifact.locked {
  filter: grayscale(0.12);
}

.lock-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(4, 4, 4, 0.8), rgba(4, 4, 4, 0.94)),
    radial-gradient(circle at top, rgba(216, 185, 138, 0.08), transparent 28%);
}

.lock-desc {
  max-width: 320px;
  margin: 0 0 18px;
}

.artifact.shake {
  animation: artifactShake 0.35s ease;
}

/* ---------- Cinema ---------- */

.cinema-section {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 78px 0 110px;
}

.cinema-intro {
  margin-bottom: 54px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cinema-card {
  padding: 28px;
}

.cinema-card p {
  margin: 0 0 20px;
}

/* ---------- Membership / login ---------- */

.membership {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 50px 0 100px;
  text-align: center;
}

.membership h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
}

.membership p {
  color: var(--muted);
}

.membership button {
  margin-top: 14px;
}

.initiation {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 88px 0 110px;
  text-align: center;
}

.initiation-text {
  margin-bottom: 54px;
  color: var(--muted);
}

.initiation-statement {
  margin-bottom: 16px;
  font-size: 1.22rem;
  color: var(--fg);
}

.initiation-warning,
.initiation-note {
  color: var(--muted-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.initiation-form {
  max-width: 520px;
  margin: 42px auto 0;
}

.form-group {
  margin-bottom: 22px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.initiate-button {
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 185, 138, 0.42);
  background:
    linear-gradient(180deg, rgba(216, 185, 138, 0.12), rgba(216, 185, 138, 0.04)),
    rgba(255, 248, 235, 0.02);
  color: var(--fg);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  transition: all var(--ease);
}

.initiate-button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 185, 138, 0.64);
}

/* ---------- Overlay ---------- */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  width: min(100%, 640px);
  padding: 34px;
  text-align: center;
}

.confirm-body {
  margin: 0 0 24px;
}

/* ---------- Dark Club / chamber fallback support ---------- */

.darkclub-shell {
  background:
    radial-gradient(circle at top center, rgba(216, 185, 138, 0.05), transparent 24%),
    linear-gradient(180deg, #09090b 0%, #040405 48%, #020202 100%);
}

.darkclub-public,
.chamber-wrap {
  position: relative;
}

.chamber-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 10%, rgba(216, 185, 138, 0.04), transparent 28%);
  opacity: 0.8;
}

.chamber-veil {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 248, 235, 0.018);
}

.chamber-kicker {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.chamber-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.chamber-intro {
  max-width: 820px;
  color: var(--muted);
}

.member-console {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.member-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.02);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-feed {
  display: grid;
  gap: 20px;
}

.story-card {
  padding: 22px;
}

.story-title {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 400;
}

.story-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-body {
  color: var(--muted);
}

.reflection-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 241, 232, 0.08);
}

.reflection-item {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(216, 185, 138, 0.22);
}

.chamber-empty {
  color: var(--muted-2);
}

.member-gate-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

/* ---------- Utility ---------- */

.convertkit-hidden {
  display: none !important;
}

/* ---------- Animations ---------- */

@keyframes heroLineReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFinalGlow {
  0% {
    text-shadow:
      0 0 10px rgba(247, 241, 232, 0.06),
      0 0 24px rgba(216, 185, 138, 0.04);
  }
  50% {
    text-shadow:
      0 0 18px rgba(247, 241, 232, 0.14),
      0 0 34px rgba(216, 185, 138, 0.12);
  }
  100% {
    text-shadow:
      0 0 10px rgba(247, 241, 232, 0.06),
      0 0 24px rgba(216, 185, 138, 0.04);
  }
}

@keyframes subtextReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starFade {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  25% {
    opacity: 0.9;
    transform: scale(1);
  }
  72% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

@keyframes smokeIdle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.92;
  }
  50% {
    transform: translateY(-6px) translateX(4px);
    opacity: 0.97;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.92;
  }
}

@keyframes smokeReveal {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.95;
    filter: blur(10px);
  }
  55% {
    transform: translateY(-18px) scale(1.06);
    opacity: 0.55;
    filter: blur(14px);
  }
  100% {
    transform: translateY(-42px) scale(1.12);
    opacity: 0;
    filter: blur(18px);
  }
}

@keyframes artifactShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  header,
  .top-header {
    padding: 16px 20px;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-badge {
    min-width: 100%;
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(247, 241, 232, 0.08);
  }

  .vault-grid,
  .cinema-grid,
  .roots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .archive-controls,
  .member-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-hint {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .explore-bar {
    display: none;
  }

  .explore-left {
    display: none;
  }

  .gallery,
  .roots-band,
  .music-vault,
  .lore-wrap,
  .cinema-section,
  .membership,
  .initiation {
    width: min(100% - 24px, 100%);
  }

  .panel,
  .cinema-card,
  .feature-card,
  .vault-item,
  .artifact,
  .aotw,
  .confirm-card {
    border-radius: 18px;
  }

  .panel {
    padding: 24px;
    margin-bottom: 38px;
  }

  .panel-still {
    height: 210px;
  }

  .vault-grid,
  .cinema-grid,
  .roots-grid {
    grid-template-columns: 1fr;
  }

  .panel-meta,
  .item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .stillness {
    padding: 82px 0;
  }

  .roots-card {
    padding: 24px;
  }
}

@media (max-width: 540px) {
  header,
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
  }

  .header-brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px 10px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .ambient-candle-button {
    width: 46px;
    height: 46px;
  }

  .jd-page-transition {
    padding: 18px;
  }

  .jd-page-transition-copy {
    min-width: min(92vw, 420px);
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .jd-page-transition-label {
    font-size: clamp(1.2rem, 8vw, 1.8rem);
    letter-spacing: 0.1em;
  }

  .jd-page-transition-wipe {
    left: -44%;
    width: 194%;
    height: 148%;
    filter: blur(14px);
  }

  .ambient-candle-stack {
    width: 36px;
    height: 36px;
  }

  nav a,
  .ghost-button {
    font-size: 9px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .hero {
    min-height: 92vh;
    padding: 104px 18px 70px;
  }

  .dark-hero {
    min-height: 46vh;
    padding: 92px 18px 58px;
  }

  .subtext,
  .dark-hero p,
  .stillness-text {
    letter-spacing: 0.18em;
  }

  .hero-invocation,
  .manifesto,
  .roots-band,
  .cinema-intro,
  .vault-intro,
  .vault-note,
  .cinema-note,
  .home-footer,
  .site-footer {
    width: min(100% - 28px, 100%);
  }

  .gallery,
  .music-vault,
  .lore-wrap,
  .cinema-section,
  .membership,
  .initiation {
    width: min(100% - 20px, 100%);
  }

  .panel {
    padding: 22px 18px;
  }

  .panel h2 {
    line-height: 1.22;
  }

  .panel-still {
    height: 180px;
  }

  .stillness {
    padding: 92px 0;
  }

  .stillness-text {
    max-width: 290px;
    margin: 0 auto;
    line-height: 1.8;
  }

  .feature-actions,
  .item-actions,
  .confirm-actions,
  .member-right,
  .site-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-button,
  .vault-button,
  .vault-link,
  .cinema-link,
  .member-link,
  .confirm-link,
  .confirm-button,
  .aotw-button,
  .lock-button,
  .ghost-button,
  .mode-button,
  .seal-button {
    width: 100%;
  }

  .confirm-card,
  .aotw,
  .feature-card,
  .vault-item,
  .artifact,
  .cinema-card,
  .site-footer-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
}
