/* =========================================================
   HUSHRIVEN — The Cathedral
   soft · tender · dark · mysterious
   ========================================================= */
:root {
  /* black · gold · emerald — the colours of the original hushriven.com */
  --night: #040605;
  --night-2: #08100d;
  --stone: #2c2522;
  --ink: #efe9dc;          /* parchment */
  --mute: #8e978f;
  --gold: #d4af6a;         /* old gold: titles, numbers, labels */
  --gold-soft: #f0dcaa;
  --emerald: #1fa37f;      /* the emerald crack: light, glow, life */
  --emerald-soft: #8fe3c8;
  --wine: #7a1e2c;
  --rose: #cfd8d2;         /* silver */
  --violet: #6b4bc4;
  --line: rgba(239, 230, 216, .12);
  --f-carve: "Cinzel", "Trajan Pro", serif;
  --f-text: "Cormorant Garamond", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-door: cubic-bezier(.55, .02, .18, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--f-text); font-size: 19px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--wine); color: var(--ink); }
/* the pointer: a rune-cut gold arrowhead (emerald on hover) — a real system cursor, so there's no lag; it clicks at the tip */
@media (pointer: fine) {
  html, body { cursor: url("../assets/cursor.png") 2 2, auto;
    cursor: image-set(url("../assets/cursor.png") 1x, url("../assets/cursor@2x.png") 2x) 2 2, auto; }
  a, button, label, summary, select, [role="button"] {
    cursor: url("../assets/cursor-hover.png") 2 2, pointer;
    cursor: image-set(url("../assets/cursor-hover.png") 1x, url("../assets/cursor-hover@2x.png") 2x) 2 2, pointer; }
  input, textarea { cursor: text; }
}

/* ---------- atmosphere ---------- */
.grain { position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-2%)} }

/* a faint emerald aura that follows the pointer through the dark */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 250; }
.cursor__glow { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; width: 420px; height: 420px; margin: -210px; mix-blend-mode: soft-light;
  background: radial-gradient(circle, rgba(143, 227, 200, .42), rgba(212, 175, 106, .12) 35%, transparent 65%); transition: opacity .4s; }
.cursor.is-hover .cursor__glow { opacity: .55; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- runes (used everywhere) ----------
   dormant: carved, dim gold · awakened: burning emerald with a gold core */
.rune { display: block; width: 14px; height: auto; overflow: visible; }
.rune path { fill: none; stroke: rgba(212, 175, 106, .38); stroke-width: 9; stroke-linecap: square; stroke-linejoin: miter;
  transition: stroke .8s, filter .8s; }
.is-lit > .rune path, .rune.is-lit path { stroke: var(--emerald-soft); filter: drop-shadow(0 0 4px rgba(31, 163, 127, .9)) drop-shadow(0 0 10px rgba(31, 163, 127, .5)); }
.rune--rail { width: 11px; transition: transform .3s var(--ease); }
.is-current > .rune--rail path { stroke: var(--gold-soft); filter: drop-shadow(0 0 5px rgba(212, 175, 106, .9)); }
.rune--altar { width: 44%; }
.rune--altar path { stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-lit > .rune--altar path { animation: runeBurn 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.33s); }
@keyframes runeBurn { 50% { filter: drop-shadow(0 0 2px rgba(31, 163, 127, .6)) drop-shadow(0 0 16px rgba(143, 227, 200, .7)); } }
.rune--inline { display: inline-block; width: 10px; vertical-align: -3px; margin-right: 10px; }
.rune--inline path { stroke: var(--emerald-soft); filter: drop-shadow(0 0 4px rgba(31, 163, 127, .9)); }
.rune--vigil path { stroke: var(--gold); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 106, .5)); }
.vigil.is-in .rune--vigil path, .is-in .rune--vigil path { animation: runeDraw 2.4s var(--ease) forwards .4s; }
@keyframes runeDraw { to { stroke-dashoffset: 0; } }

/* the song's rune window (dark glass, gold tracery, a burning rune) */
.rwin { display: block; width: 100%; height: 100%; }
.rwin__rune { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-on .rwin__rune, .story__art .rwin__rune { animation: runeDraw 2.2s var(--ease) forwards .35s; }
.rwin__stars circle { opacity: .25; animation: star 6s ease-in-out infinite; animation-delay: var(--t); }
@keyframes star { 50% { opacity: .9; } }
.rwin__name { font-family: var(--f-carve); font-size: 7px; letter-spacing: 4px; fill: rgba(212, 175, 106, .55); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; overflow: hidden; isolation: isolate;
  font-family: var(--f-carve); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid rgba(212, 175, 106, .5); border-radius: 999px; color: var(--gold-soft);
  transition: color .4s var(--ease), border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(243, 215, 155, .35) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--gold); transform: scale(0, 1); transform-origin: left; transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover::after { transform: scale(1); }
.btn:hover { color: var(--night); border-color: var(--gold); box-shadow: 0 0 40px -6px rgba(212, 175, 106, .6), 0 0 80px -20px rgba(31, 163, 127, .7); }
.btn:active { transform: scale(.97); }
.btn--gold { background: rgba(212, 175, 106, .08); }
.btn--ghost { border-color: var(--line); color: var(--ink); }

.eyebrow { display: inline-block; font-family: var(--f-carve); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: "✦ "; }

/* =========================================================
   THE GATE — real cathedral at night (facade → door → reveal)
   ========================================================= */
.gate { --grade: brightness(.6) saturate(.78) contrast(1.14);
  position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #010202; perspective: 1600px; }

/* the cathedral, in two halves cut along the crack (clip-paths set in JS) */
.gate__half { position: absolute; inset: 0; overflow: hidden; will-change: transform, filter;
  transition: transform 2.2s cubic-bezier(.7, 0, .2, 1), filter 2s ease, opacity 1.6s ease .6s; }
.facade-photo { position: absolute; inset: 0; background: #040605 50% 50% / cover no-repeat; filter: var(--grade);
  transform-origin: var(--moon-x, 50%) var(--moon-y, 22%); animation: kenburns 38s ease-in-out infinite alternate;
  opacity: 0; transition: opacity 2.4s ease; }
.facade-photo.is-ready { opacity: 1; }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.09; } }
/* the fractured halo logo becomes the moon itself */
.gate__moon { position: absolute; left: var(--moon-x, 50%); top: var(--moon-y, 22%); width: var(--moon-d, 22vh); aspect-ratio: 1; translate: -50% -50%;
  background: url("../assets/halo.jpg") 50% 34% / 232% no-repeat; mix-blend-mode: screen; opacity: .9;
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%);
  filter: drop-shadow(0 0 40px rgba(31, 163, 127, .45)); animation: moonBreathe 9s ease-in-out infinite; }
.gate__moon::after { content: ""; position: absolute; inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(143, 227, 200, .14), transparent 60%); }
@keyframes moonBreathe { 50% { opacity: .62; } }
.gate__sky { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; z-index: 4; }
.fog { position: absolute; inset: auto 0 0; height: 55%; pointer-events: none; }
.fog i { position: absolute; left: -50%; width: 200%; height: 60%; bottom: 0; border-radius: 50%; filter: blur(40px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(150, 200, 180, .14), transparent 70%); animation: fogDrift 46s linear infinite alternate; }
.fog i:nth-child(2) { bottom: 18%; height: 45%; animation-duration: 64s; animation-direction: alternate-reverse; opacity: .7; }
.fog i:nth-child(3) { bottom: -10%; height: 70%; animation-duration: 90s; opacity: .9; background: radial-gradient(50% 50% at 50% 50%, rgba(31, 163, 127, .12), transparent 70%); }
@keyframes fogDrift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.scene__shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 65% at 50% 45%, transparent 35%, rgba(2, 3, 3, .85) 100%), linear-gradient(rgba(2,3,3,.35), transparent 30%, transparent 65%, rgba(2,3,3,.75)); }

.gate__title { position: absolute; left: 50%; top: 56%; translate: -50% -50%; width: min(640px, 88vw); text-align: center; z-index: 6;
  transition: opacity 1s ease, filter 1s ease, transform 1.4s var(--ease); }
.gate__title::before { content: ""; position: absolute; inset: -30% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 3, 3, .72), transparent); }
.gate__wordmark { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; mix-blend-mode: screen; margin: 0 auto 1vh; animation: rise 2.4s var(--ease) both .4s;
  filter: brightness(1.05) contrast(1.6) drop-shadow(0 0 30px rgba(212, 175, 106, .2));
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent); mask-image: radial-gradient(closest-side, #000 75%, transparent); }
.gate__intro { margin: 0 0 3.4vh; font-size: clamp(18px, 2.6vh, 26px); font-style: italic; color: var(--ink); font-weight: 300; animation: rise 2.4s var(--ease) both .9s; text-shadow: 0 2px 20px #000; }
.gate__intro em { color: var(--gold-soft); }
.gate__approach { animation: rise 2.4s var(--ease) both 1.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

/* the ring of twelve runes */
.gate__ring { position: absolute; left: 50%; top: 50%; width: min(62vmin, 520px); aspect-ratio: 1; translate: -50% -50%; z-index: 5; pointer-events: none; opacity: 0;
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.7, 0, .3, 1), filter 1s; }
.gate__ring svg { width: 100%; height: 100%; overflow: visible; animation: ringSpin 60s linear infinite; }
@keyframes ringSpin { to { rotate: 360deg; } }
.ring__line { fill: none; stroke: var(--gold); stroke-width: .6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.ring__line--thin { stroke: var(--emerald-soft); stroke-width: .3; opacity: .5; }
.gate__ring g path { fill: none; stroke: var(--gold-soft); stroke-width: 10; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(212, 175, 106, .9)); }
.gate.is-waking .gate__ring { opacity: 1; }
.gate.is-waking .ring__line { animation: runeDraw 1.3s var(--ease) forwards; }
.gate.is-waking .gate__ring g path { animation: runeDraw .5s ease-out forwards; animation-delay: calc(.15s + var(--i) * 75ms); }
/* the ring is drawn into the crack */
.gate.is-cracking .gate__ring { transform: scale(.08, 1.6); filter: blur(2px) brightness(2); opacity: 0; transition-delay: .1s, 0s, 0s; }

/* the crack of light */
.gate__crack { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible;
  clip-path: inset(0 0 100% 0); visibility: hidden; }
.gate__crack path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: bevel; }
.gate__crack-core { stroke: #f4fff9; stroke-width: 2; }
.gate__crack-glow { stroke: var(--emerald); stroke-width: 14; filter: blur(8px); opacity: .9; }
.gate.is-cracking .gate__crack { visibility: visible; clip-path: inset(-5% -5% -5% -5%); transition: clip-path .7s cubic-bezier(.6, 0, .4, 1); }
.gate.is-cracking .gate__crack-glow { animation: crackPulse 1.2s ease-in-out .7s infinite alternate; }
@keyframes crackPulse { to { stroke-width: 40; opacity: .6; } }
.gate.is-parting .gate__crack { opacity: 0; transition: opacity .9s ease .3s; }

/* the halves part */
.gate.is-waking .gate__title { opacity: 0; filter: blur(12px); transform: translateY(-20px) scale(.96); pointer-events: none; }
.gate.is-cracking .gate__half { filter: brightness(.8); }
.gate.is-parting .gate__half--l { transform: translateX(-62%) rotateY(14deg); filter: brightness(.25) blur(2px); }
.gate.is-parting .gate__half--r { transform: translateX(62%) rotateY(-14deg); filter: brightness(.25) blur(2px); }
.gate.is-parting { background: transparent; transition: background 1s; }
/* a bloom of light pours through the opening */
.gate::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(18% 70% at 50% 50%, rgba(240, 255, 248, .9), rgba(143, 227, 200, .45) 35%, rgba(31, 163, 127, .12) 70%, transparent); }
.gate.is-cracking::after { opacity: .35; transition: opacity .8s ease .4s; }
.gate.is-parting::after { opacity: 0; transform: scaleX(4); transition: opacity 2s ease .4s, transform 2.2s cubic-bezier(.7, 0, .2, 1); }
.gate.is-cracking .gate__skip, .gate.is-cracking .gate__sound, .gate.is-waking .gate__sound { opacity: 0; pointer-events: none; transition: opacity .6s; }

.gate__skip { position: fixed; left: 24px; bottom: 14px; z-index: 7; font-size: 16px; font-style: italic; color: var(--mute); opacity: .7; transition: opacity .3s, color .3s; }
.gate__skip:hover { opacity: 1; color: var(--ink); }
.gate__sound { position: absolute; right: 24px; bottom: 18px; z-index: 7; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--mute); opacity: .6; text-transform: uppercase; }
.gate.is-gone { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
@media (max-width: 700px) { .gate__title { top: 60%; } }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 18px; left: 24px; right: 24px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  opacity: 0; transform: translateY(-20px); transition: opacity 1s var(--ease) .6s, transform 1s var(--ease) .6s; pointer-events: none; }
body.is-inside .nav { opacity: 1; transform: none; pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 4px; font-family: var(--f-carve); font-weight: 800; letter-spacing: .3em; font-size: 14px; }
.nav__logo img { width: 46px; height: 46px; object-fit: cover; object-position: 50% 35%; mix-blend-mode: screen; transform: scale(1.5); margin-right: 6px; }
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; gap: clamp(16px, 2vw, 28px); padding: 10px 26px; border-radius: 999px; background: rgba(15, 12, 18, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.nav__links a { font-family: var(--f-carve); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); transition: color .3s; position: relative; white-space: nowrap; }
.nav__links a:hover, .nav__links a.is-active { color: var(--gold-soft); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); box-shadow: 0 0 8px var(--gold); }
.sound-btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15,12,18,.55); backdrop-filter: blur(14px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: var(--gold); border-radius: 2px; }
.sound-btn[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s !important; } .eq i:nth-child(3) { animation-delay: -.7s !important; }
@keyframes eq { 50% { height: 12px; } }

/* =========================================================
   THE NAVE (3D journey)
   ========================================================= */
.journey { position: relative; height: 1400vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1000px; perspective-origin: 50% 46%;
  background: #050607; }
.stage__world { position: absolute; left: 50%; top: 46%; transform-style: preserve-3d; }
.stage__world > * { position: absolute; left: 0; top: 0; will-change: transform, opacity; backface-visibility: hidden; }

/* the real nave: one photograph we walk into as you scroll */
.nave-photo { position: absolute; inset: -2%; background: #050607 50% 47% / cover no-repeat; transform-origin: 50% 47%; will-change: transform, filter;
  filter: brightness(.42) saturate(.72) contrast(1.15) sepia(.12); }
.nave-tint { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 72% 45%, rgba(31, 163, 127, .14), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(212, 175, 106, .1), transparent 70%),
    linear-gradient(90deg, rgba(3, 5, 4, .75), rgba(3, 5, 4, .2) 50%, rgba(3, 5, 4, .35)),
    linear-gradient(rgba(3, 5, 4, .55), rgba(3, 5, 4, .1) 35%, rgba(3, 5, 4, .2) 60%, rgba(3, 5, 4, .9)); }
.nave-tint::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: .35;
  background: radial-gradient(30% 38% at 50% 46%, var(--glass, transparent), transparent 70%); }

.stage__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.stage__fog { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%, transparent 40%, rgba(5, 4, 7, .75) 100%), linear-gradient(transparent 70%, rgba(5,4,7,.8)); }

/* light falling through the high windows — slow emerald & gold beams */
.rays { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
.rays i { position: absolute; top: -20%; left: 62%; width: 22vw; height: 150%; transform-origin: 50% 0; filter: blur(30px);
  background: linear-gradient(rgba(240, 220, 170, .16), rgba(31, 163, 127, .06) 55%, transparent 85%);
  animation: ray 22s ease-in-out infinite alternate; }
.rays i:nth-child(2) { left: 30%; width: 12vw; animation-duration: 31s; animation-delay: -9s; opacity: .7;
  background: linear-gradient(rgba(143, 227, 200, .14), transparent 75%); }
.rays i:nth-child(3) { left: 80%; width: 8vw; animation-duration: 27s; animation-delay: -4s; opacity: .55; }
@keyframes ray { from { transform: rotate(14deg); opacity: .5; } to { transform: rotate(4deg); opacity: 1; } }

/* the shrine — one window, beside the words */
.shrine { --h: min(70vh, 640px); position: absolute; right: clamp(24px, 8vw, 150px); top: 50%; height: var(--h); aspect-ratio: 2 / 3;
  transform: translateY(-46%); perspective: 1400px; opacity: 0; transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.shrine.is-on { opacity: 1; transform: translateY(-50%); }
.shrine__halo { position: absolute; inset: -30% -40%; z-index: -1; pointer-events: none; filter: blur(30px);
  background: radial-gradient(40% 40% at 50% 40%, color-mix(in srgb, var(--c2, #1fa37f) 45%, transparent), transparent 70%),
    radial-gradient(30% 25% at 50% 95%, rgba(212, 175, 106, .25), transparent 70%);
  transition: background 1.4s; animation: halo 7s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .7; scale: 1.05; } }
.shrine__tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.shrine__frame { position: absolute; inset: 0; clip-path: url(#archClip); background: #030504; }
.shrine__pane { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; opacity: 0; visibility: hidden;
  clip-path: inset(100% 0 0 0); transform: scale(1.12); filter: blur(6px) brightness(.6);
  background: radial-gradient(70% 55% at 50% 35%, color-mix(in srgb, var(--c2) 25%, transparent), #030504 75%);
  transition: clip-path 1.5s var(--ease-door), transform 2.4s var(--ease), filter 1.6s var(--ease), opacity .8s, visibility 0s 1.6s; }
.shrine__pane.is-on { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transform: scale(1); filter: none; transition-delay: 0s; z-index: 1; }
.shrine__pane img { width: 100%; height: 100%; object-fit: cover; animation: artBreath 20s ease-in-out infinite alternate; }
.shrine__pane svg { height: 92%; width: auto; margin-top: 6%; filter: brightness(.82) saturate(.85) drop-shadow(0 0 30px color-mix(in srgb, var(--c2) 60%, transparent)); }
.shrine__pane::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 55%, rgba(3, 5, 4, .65)), radial-gradient(80% 50% at 50% 0%, rgba(240, 220, 170, .14), transparent 70%); }
.shrine__pane:hover { filter: brightness(1.12); }
.shrine__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.shrine__outline path { fill: none; stroke: var(--gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .75;
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, .6)); }
.shrine__outline path.inner { stroke: var(--emerald-soft); stroke-width: .8; opacity: .35; }
/* a line of light runs up the glass whenever a new window is lit */
.shrine__sweep { position: absolute; inset: 0; clip-path: url(#archClip); pointer-events: none; z-index: 2; overflow: hidden; }
.shrine__sweep::before { content: ""; position: absolute; left: -10%; right: -10%; height: 30%; top: 100%; mix-blend-mode: screen;
  background: linear-gradient(transparent, rgba(240, 220, 170, .5) 50%, rgba(143, 227, 200, .25) 60%, transparent); }
.shrine__sweep.is-on::before { animation: sweep 1.6s var(--ease-door); }
@keyframes sweep { from { top: 100%; } to { top: -35%; } }
.shrine__plinth { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); display: flex; gap: 12px; align-items: flex-end; }
.shrine__plinth .candle { height: 26px; width: 8px; } .shrine__plinth .candle--tall { height: 38px; }
.shrine__plinth .candle i { width: 8px; height: 15px; margin-left: -4px; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud__top { position: absolute; top: 90px; left: 32px; right: 32px; display: flex; justify-content: space-between; font-family: var(--f-carve); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.hud__count b { color: var(--gold-soft); font-weight: 400; }
.hud__intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(760px, 90vw); transition: opacity .6s, transform .6s var(--ease); padding: 40px 20px; }
.hud__intro::before { content: ""; position: absolute; inset: -60px -120px; z-index: -1; background: radial-gradient(closest-side, rgba(5,6,7,.88), rgba(5,6,7,.6) 55%, transparent); }
.hud__sigil, .nav__logo img, .altar__sigil { -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.hud__sigil { width: 120px; height: 120px; object-fit: cover; object-position: 50% 36%; mix-blend-mode: screen; transform: scale(1.5); margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(63,207,174,.4)); }
.hud__intro h1 { margin: 0 0 18px; font-family: var(--f-carve); font-weight: 400; font-size: clamp(30px, 5vw, 64px); line-height: 1.12; letter-spacing: .04em; }
.hud__intro h1 em { font-family: var(--f-text); font-weight: 300; color: var(--rose); letter-spacing: 0; }
.hud__intro p { color: var(--mute); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); margin: 0 0 34px; }
.hud__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hud__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hud__intro.is-hidden { opacity: 0; transform: translate(-50%, -60%); }

/* the chapter — the words for each song, on their own side of the nave */
.hud__caption { position: absolute; left: clamp(24px, 8vw, 150px); top: 50%; width: min(560px, 42vw); text-align: left; opacity: 0;
  transform: translateY(calc(-50% + var(--dir, 1) * 30px + var(--drift, 0) * -18px)); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.hud__caption.is-on { opacity: 1; filter: none; transform: translateY(calc(-50% + var(--drift, 0) * -18px)); pointer-events: auto; }
.hud__caption::before { content: ""; position: absolute; inset: -50% -40% -50% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(3, 5, 4, .85), rgba(3, 5, 4, .5) 60%, transparent); }
.chapter__num { position: absolute; left: -.06em; top: -.72em; z-index: -1; font-family: var(--f-carve); font-size: clamp(120px, 17vw, 260px); line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 106, .28); pointer-events: none;
  transform: translateY(calc(var(--drift, 0) * 30px)); transition: transform .2s linear; }
.hud__whose { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--emerald-soft); }
.hud__whose::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--emerald)); }
.hud__caption h2 { margin: 14px 0 12px; font-family: var(--f-carve); font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; letter-spacing: .03em;
  color: var(--ink); text-shadow: 0 2px 30px rgba(0,0,0,.9); }
.hud__caption h2 .w { display: inline-block; white-space: nowrap; }
.hud__caption h2 .l { display: inline-block; opacity: 0; transform: translateY(.35em) rotateX(70deg); filter: blur(6px); transform-origin: 50% 100%;
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--k) * 35ms + .1s); }
.hud__caption.is-on h2 .l { opacity: 1; transform: none; filter: none; }
.hud__caption p { margin: 0 0 28px; max-width: 30em; font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--gold-soft); opacity: .9; text-shadow: 0 2px 20px #000; }
.chapter__rune { margin: -14px 0 24px !important; font-style: normal !important; font-size: 15px !important; color: var(--mute) !important; letter-spacing: .02em; }
.chapter__rune b { font-family: var(--f-carve); font-weight: 400; font-size: 12px; letter-spacing: .24em; color: var(--emerald-soft); text-transform: uppercase; }
.chapter__row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.chapter__dur { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--mute); }

/* the rune rail — twelve runes carved in a glass strip */
.hud__candles { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: clamp(6px, 1.4vw, 16px); align-items: flex-end; pointer-events: auto;
  padding: 12px 18px 8px; border-radius: 999px; border: 1px solid rgba(212, 175, 106, .16);
  background: linear-gradient(rgba(8, 16, 13, .55), rgba(3, 5, 4, .75)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hud__candles button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 4px; }
.hud__candles small { font-family: var(--f-carve); font-size: 8.5px; letter-spacing: .1em; color: var(--mute); transition: color .3s; }
.hud__candles button.is-current small { color: var(--gold-soft); }
.hud__candles button.is-current::before { content: ""; position: absolute; top: -9px; width: 14px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hud__candles button:hover .rune { transform: translateY(-2px); }

/* =========================================================
   STORY (manuscript)
   ========================================================= */
.story { position: fixed; inset: 0; z-index: 90; overflow-y: auto; clip-path: circle(0% at var(--sx, 50%) var(--sy, 50%)); transition: clip-path 1s var(--ease); }
.story.is-open { clip-path: circle(150% at var(--sx, 50%) var(--sy, 50%)); }
.story__bg { position: fixed; inset: 0; background: radial-gradient(80% 70% at 30% 50%, var(--tint, #2a1630) 0%, #0b080e 60%, #050407 100%); }
.story__close { position: fixed; top: 22px; right: 26px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; color: var(--ink); background: rgba(5,4,7,.5); transition: transform .4s var(--ease), border-color .3s; }
.story__close:hover { transform: rotate(90deg); border-color: var(--gold); }
.story__inner { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.25fr); gap: clamp(30px, 6vw, 100px); align-items: center; padding: 90px clamp(24px, 7vw, 120px); max-width: 1400px; margin: 0 auto; }
.story__glass { position: sticky; top: 90px; filter: drop-shadow(0 0 60px var(--glow, rgba(63, 207, 174,.4))); animation: glassIn 1.4s var(--ease) both .3s; }
.story__glass svg { width: 100%; max-height: 78vh; }
@keyframes glassIn { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(10px); } }
.story__text { animation: glassIn 1.2s var(--ease) both .5s; }
.story__num { font-family: var(--f-carve); font-size: 15px; letter-spacing: .4em; color: var(--gold); }
.story__whose { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.story__text h2 { margin: 10px 0 28px; font-family: var(--f-carve); font-weight: 400; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; letter-spacing: .04em; }
.story__body p { margin: 0 0 1.1em; font-size: clamp(19px, 1.5vw, 22px); font-weight: 300; color: rgba(239,230,216,.88); }
.story__body p:first-child::first-letter { float: left; font-family: var(--f-carve); font-size: 4.4em; line-height: .82; padding: 6px 12px 0 0; color: var(--gold); text-shadow: 0 0 24px rgba(63, 207, 174,.4); }
.story__text h2 { margin-bottom: 14px; }
.story__lede { margin: 0 0 22px; font-style: italic; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; color: var(--gold-soft); text-shadow: 0 0 30px var(--glow, transparent); }
.story__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; }
.story__facts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); background: rgba(5,4,7,.35); }
.story__facts li:first-child { color: var(--gold); border-color: rgba(212,175,106,.4); }

/* artwork in an arched frame, like a window of its own */
.story__glass.has-art { margin: 0; }
.story__art { position: relative; aspect-ratio: 2 / 3; max-height: 76vh; margin: 0 auto; border-radius: 999px 999px 10px 10px; overflow: hidden;
  border: 1px solid rgba(212,175,106,.45); box-shadow: 0 0 0 8px rgba(5,4,7,.5), 0 0 0 9px rgba(212,175,106,.22), 0 40px 120px rgba(0,0,0,.7); }
.story__art img { width: 100%; height: 100%; object-fit: cover; animation: artBreath 18s ease-in-out infinite alternate; }
.story__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,4,7,.55)), radial-gradient(70% 50% at 50% 0%, var(--glow, transparent), transparent 70%); mix-blend-mode: screen; opacity: .5; pointer-events: none; }
.story__glass figcaption { margin-top: 22px; text-align: center; font-family: var(--f-carve); letter-spacing: .4em; color: var(--gold); font-size: 13px; }
.story__glass figcaption small { display: block; margin-top: 6px; font-family: var(--f-text); font-style: italic; letter-spacing: .02em; font-size: 16px; color: var(--mute); }
.story__why { display: block; max-width: 30ch; margin: 10px auto 0; font-family: var(--f-text); font-size: 16px; line-height: 1.4; letter-spacing: 0; color: var(--ink); opacity: .75; }
.story__glass .story__rune svg { width: 16px; max-height: none; margin: 0 auto 12px; }
.story__glass .story__rune path { stroke: var(--emerald-soft); filter: drop-shadow(0 0 6px rgba(31, 163, 127, .9)); }
.story__art .rwin { height: 100%; max-height: none; }
.shrine__pane .rwin { width: 100%; height: 100%; margin: 0; filter: none; }
@keyframes artBreath { from { scale: 1.02; } to { scale: 1.09; } }

/* carved lyrics, one line at a time */
.story__label { display: block; margin-bottom: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.story__lyrics { margin: 46px 0; padding: 34px 0; border-block: 1px solid var(--line); }
.story__lyrics p { margin: 0; padding: 14px 0; font-family: var(--f-carve); font-size: clamp(19px, 1.9vw, 27px); line-height: 1.35; letter-spacing: .03em; color: var(--ink); }
.story__lyrics p span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--k) * .9s); }
.story__lyrics p:nth-child(2) span { color: var(--rose); }
.story__lyrics p:last-child span { color: var(--gold-soft); text-shadow: 0 0 26px var(--glow, transparent); }
.story__lyrics.is-in p span { opacity: 1; filter: none; transform: none; }

/* the shape of the song */
.story__shape { margin: 0 0 40px; }
.shape { position: relative; padding-bottom: 64px; }
.shape svg { display: block; width: 100%; height: clamp(90px, 11vw, 140px); overflow: visible; }
.shape__body { opacity: 0; transform-origin: 0 50%; transform: scaleX(.02); transition: opacity 1.2s, transform 2.6s var(--ease); filter: drop-shadow(0 0 14px var(--glow, transparent)); }
.shape__edge { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease) .3s; }
.shape__axis { stroke: rgba(239,230,216,.12); vector-effect: non-scaling-stroke; }
.story__shape.is-in .shape__body { opacity: .78; transform: none; }
.story__shape.is-in .shape__edge { stroke-dashoffset: 0; }
.shape__marks { position: absolute; inset: 0 0 64px 0; pointer-events: none; }
.shape__m { position: absolute; top: 0; bottom: -10px; width: 0; opacity: 0; transition: opacity .8s 2.2s; }
.story__shape.is-in .shape__m { opacity: 1; }
.shape__m i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(239,230,216,.35); }
.shape__m b, .shape__m em { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; }
.shape__m b { top: calc(100% + 6px); font-family: var(--f-mono); font-weight: 400; font-size: 10px; color: var(--gold); }
.shape__m em { top: calc(100% + 24px); font-size: 15px; line-height: 1.2; color: var(--ink); }
.shape__m:first-child b, .shape__m:first-child em { transform: none; }
.shape__m:last-child b, .shape__m:last-child em { transform: translateX(-100%); }
.shape__note { margin: 0; font-style: italic; font-size: 15px; color: var(--mute); }

.story__when { margin: 0 0 18px; font-size: clamp(22px, 2vw, 28px); font-style: italic; line-height: 1.35; color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.story__when span { display: block; margin-bottom: 6px; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.story__when.is-in { opacity: 1; transform: none; }
.story__care { margin: 0 0 26px; padding: 14px 18px; border-left: 2px solid var(--gold); background: rgba(212,175,106,.07); font-size: 17px; color: var(--ink); }
.story__actions { margin-top: 26px; }

/* tracklist at the altar */
.altar__tracks { list-style: none; width: min(720px, 92vw); margin: 34px auto 8px; padding: 0; text-align: left; counter-reset: none; position: relative; z-index: 2; }
.altar__tracks button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1.15fr) minmax(0, 1fr) 48px; gap: 18px; align-items: baseline; text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .3s, padding .4s var(--ease); }
.altar__tracks button:hover, .altar__tracks button:focus-visible { background: rgba(212,175,106,.06); padding-left: 14px; }
.t__n { font-family: var(--f-mono); font-size: 11px; color: var(--gold); }
.t__title { font-family: var(--f-carve); font-size: 17px; letter-spacing: .05em; }
.t__whose { font-style: italic; font-size: 15px; color: var(--mute); }
.t__dur { font-family: var(--f-mono); font-size: 11px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.story__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.story__lit { font-style: italic; color: var(--gold-soft); opacity: 0; transform: translateY(6px); transition: opacity .8s, transform .8s; }
.story__lit.is-on { opacity: 1; transform: none; }
.story__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.story__nav button { font-style: italic; font-size: 18px; color: var(--mute); transition: color .3s; }
.story__nav button:hover { color: var(--gold-soft); }

/* =========================================================
   ALTAR, SECTIONS, FOOTER
   ========================================================= */
/* the meaning — the band's manifesto, revealed line by line */
.meaning { position: relative; text-align: center; padding: clamp(120px, 16vw, 220px) 6vw; overflow: hidden; }
.meaning__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--night), rgba(5,6,7,.55) 25%, rgba(5,6,7,.55) 75%, var(--night)), url("../assets/bg-veins.jpg") center / cover fixed; opacity: .75; }
.meaning__text { max-width: 760px; margin: 0 auto; }
.meaning__text p { margin: 0 0 2.2em; font-family: var(--f-carve); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .14em; line-height: 2; text-transform: uppercase; color: rgba(236,232,224,.82); }
.meaning__text b { font-weight: 400; color: var(--gold); text-shadow: 0 0 18px rgba(63,207,174,.5); }
.meaning__text .riven { display: inline-block; animation: riven 6s ease-in-out infinite; }
@keyframes riven { 0%, 88%, 100% { transform: none; filter: none; } 90% { transform: translateX(-2px) skewX(-8deg); filter: blur(.5px); } 93% { transform: translateX(2px); } }
.meaning__text .ln { display: inline-block; opacity: .08; filter: blur(4px); transform: translateY(8px); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); }
.meaning__text .ln.on { opacity: 1; filter: none; transform: none; }
.meaning__end { font-size: clamp(18px, 2vw, 26px) !important; color: var(--ink) !important; margin-top: 3em !important; }
.meaning__end::before { content: "✦"; display: block; color: var(--gold); margin-bottom: 1.2em; }

.altar { position: relative; text-align: center; padding: clamp(110px, 16vw, 200px) 6vw; overflow: hidden;
  background: linear-gradient(var(--night), rgba(5,6,7,.35) 30%, rgba(5,6,7,.7) 80%, var(--night)), url("../assets/bg-crags.jpg") center / cover; }
.altar__reveal { display: block; width: min(560px, 88vw); height: auto; margin: 0 auto 10px; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent);
  filter: drop-shadow(0 0 40px rgba(63,207,174,calc(.15 + var(--lit, 0) * .03))); }
.altar__glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 207, 174,calc(.05 + var(--lit, 0) * .02)), transparent 60%); pointer-events: none; }
.altar__title { margin: 0; font-family: var(--f-carve); font-weight: 400; font-size: clamp(44px, 8vw, 120px); letter-spacing: .06em; line-height: 1; }
.altar__sub { font-style: italic; color: var(--mute); font-size: 22px; margin: 18px 0 60px; }
.altar__sub em { color: var(--rose); }
.altar__runes { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.8vw, 22px); flex-wrap: wrap; margin: 50px auto 26px; max-width: 900px; position: relative; z-index: 2; }
.altar__rune { position: relative; display: grid; place-items: center; width: clamp(46px, 6vw, 64px); aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px;
  border: 1px solid rgba(212, 175, 106, .14); background: linear-gradient(rgba(8, 16, 13, .7), rgba(3, 5, 4, .9)); transition: border-color .5s, transform .5s var(--ease), box-shadow .5s; }
.altar__rune:hover { transform: translateY(-4px); border-color: rgba(212, 175, 106, .5); }
.altar__rune.is-lit { border-color: rgba(143, 227, 200, .4); box-shadow: 0 0 30px -8px rgba(31, 163, 127, .8), inset 0 0 20px rgba(31, 163, 127, .15); }
.altar__count { color: var(--mute); font-style: italic; margin: 0 0 40px; }
.altar__count span { color: var(--gold-soft); font-family: var(--f-carve); font-style: normal; }
.altar__count small { display: block; font-size: 15px; opacity: .7; }
.runekey { position: relative; z-index: 2; max-width: 900px; margin: 10px auto 70px; padding: clamp(26px, 4vw, 44px); text-align: left;
  border: 1px solid rgba(212, 175, 106, .16); border-radius: 18px; background: linear-gradient(rgba(8, 16, 13, .72), rgba(3, 5, 4, .85)); backdrop-filter: blur(8px); }
.runekey h3 { margin: 0 0 10px; font-family: var(--f-carve); font-weight: 400; font-size: 14px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.runekey__intro { margin: 0 0 26px; color: var(--ink); opacity: .82; font-size: 18px; }
.runekey__intro em { color: var(--emerald-soft); }
.runekey__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 26px; }
.runekey__list button { width: 100%; display: grid; grid-template-columns: 22px 1fr; gap: 0 14px; align-items: center; padding: 10px 6px; text-align: left;
  border-bottom: 1px solid var(--line); transition: background .3s; }
.runekey__list button:hover { background: rgba(212, 175, 106, .05); }
.rune--key { width: 14px; grid-row: span 3; justify-self: center; }
.rune--key path { stroke: var(--gold); }
.rk__name { font-family: var(--f-carve); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--emerald-soft); }
.rk__sense { font-style: italic; font-size: 16px; color: var(--ink); line-height: 1.3; }
.rk__song { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.altar__secret { max-width: 620px; margin: 0 auto 44px; font-size: 26px; font-style: italic; color: var(--gold-soft); animation: glassIn 2s var(--ease); }
.altar__listen { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section { max-width: 1100px; margin: 0 auto; padding: clamp(90px, 12vw, 150px) 6vw; }
.section h2 { margin: 0 0 18px; font-family: var(--f-carve); font-weight: 400; font-size: clamp(36px, 5.5vw, 76px); letter-spacing: .04em; line-height: 1.05; }
.section h2 em { font-family: var(--f-text); color: var(--rose); font-weight: 300; letter-spacing: 0; }
.section__lead { color: var(--mute); font-style: italic; font-size: 22px; margin: 0 0 44px; }

.vigil { display: flex; gap: 50px; align-items: center; margin-top: 40px; padding: 50px; border: 1px solid var(--line); border-radius: 200px 200px 24px 24px;
  background: radial-gradient(60% 80% at 15% 60%, rgba(63, 207, 174,.1), transparent 60%), var(--night-2); }
.vigil h3 { margin: 0 0 8px; font-family: var(--f-carve); font-weight: 400; font-size: 26px; letter-spacing: .04em; }
.vigil p { margin: 0 0 24px; color: var(--mute); font-style: italic; }
.vigil .rune--vigil { flex: none; width: 70px; margin: 0 20px; }

.letter { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; padding: clamp(28px, 5vw, 56px); border-radius: 6px;
  background: linear-gradient(170deg, rgba(239,230,216,.06), rgba(239,230,216,.02)); border: 1px solid var(--line); }
.chips { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-family: var(--f-carve); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 17px; font-style: italic; transition: all .35s var(--ease); }
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--gold); color: var(--night); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 22px; padding: 26px 0 8px; outline: none; resize: vertical; transition: border-color .3s; }
.field label { position: absolute; left: 0; top: 26px; color: var(--mute); font-style: italic; pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-style: normal; font-family: var(--f-carve); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.field.is-error input, .field.is-error textarea { border-color: #c4475a; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.btn--seal { justify-self: start; }

/* A story of your own */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.offer { position: relative; padding: 46px 30px 34px; text-align: center; border: 1px solid var(--line); border-radius: 160px 160px 14px 14px;
  background: radial-gradient(70% 60% at 50% 0%, rgba(63, 207, 174,.08), transparent 70%), var(--night-2); transition: border-color .5s var(--ease), transform .5s var(--ease); }
.offer:hover { border-color: var(--gold); transform: translateY(-4px); }
.offer--crown { border-color: rgba(201,162,39,.55); box-shadow: 0 0 40px rgba(201,162,39,.08) inset; }
.offer__rune { width: 34px; height: 54px; margin: 0 auto 18px; display: block; fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.offer h3 { margin: 0 0 12px; font-family: var(--f-carve); font-weight: 400; font-size: 24px; letter-spacing: .06em; }
.offer p { margin: 0; color: var(--mute); font-style: italic; font-size: 18px; line-height: 1.5; }
.offers__note { max-width: 720px; margin: 34px auto 0; text-align: center; color: var(--gold-soft); font-style: italic; font-size: 19px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 64px 0 56px; padding: 30px 0 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps span { display: block; font-family: var(--f-carve); color: var(--gold); font-size: 13px; letter-spacing: .3em; margin-bottom: 10px; }
.steps h4 { margin: 0 0 6px; font-family: var(--f-carve); font-weight: 400; font-size: 18px; letter-spacing: .05em; }
.steps p { margin: 0; color: var(--mute); font-style: italic; font-size: 17px; line-height: 1.45; }
.letter .consent--form { grid-column: 1 / -1; justify-content: flex-start; max-width: none; margin: 4px 0 0; }
@media (max-width: 860px) { .offers { grid-template-columns: minmax(0, 1fr); } .offer { border-radius: 120px 120px 14px 14px; } .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .letter { grid-template-columns: minmax(0, 1fr); } }

.newsletter { text-align: center; }
.newsletter__form { display: flex; gap: 8px; max-width: 540px; margin: 0 auto; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.35); transition: border-color .3s, box-shadow .3s; }
.newsletter__form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(63, 207, 174,.1); }
.newsletter__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 19px; padding: 0 20px; }
.newsletter__form.is-error { animation: shake .4s; border-color: #c4475a; }

.footer { padding: 60px 6vw 34px; border-top: 1px solid var(--line); text-align: center; }
.footer__word { margin: 0; font-family: var(--f-carve); font-weight: 800; font-size: clamp(36px, 11vw, 170px); letter-spacing: .08em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(239,230,216,.25); transition: color 1s; }
.footer__word span { -webkit-text-stroke-color: rgba(63, 207, 174,.5); }
.footer__word:hover { color: rgba(239,230,216,.08); }
.footer__emblem { display: block; width: min(420px, 80vw); height: auto; margin: 0 auto; mix-blend-mode: screen; opacity: .85; transition: filter 1s; }
.footer__emblem:hover { filter: drop-shadow(0 0 30px rgba(54,214,208,.5)) brightness(1.15); }
/* words from hushriven.com */
.gate__genre { margin: 0 0 1vh; font-family: var(--f-carve); font-size: clamp(10px, 1.3vh, 12px); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--gold-soft);
  text-shadow: 0 2px 14px #000; animation: rise 2.4s var(--ease) both .2s; }
.gate__still { margin: 0 0 .6vh; font-family: var(--f-carve); font-size: clamp(10px, 1.3vh, 12px); letter-spacing: .32em; text-transform: uppercase; color: var(--mute);
  text-shadow: 0 2px 14px #000; animation: rise 2.4s var(--ease) both .7s; }
.hud__discover { pointer-events: auto; display: inline-block; margin: -14px 0 30px; font-family: var(--f-carve); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-soft); border-bottom: 1px solid rgba(63, 207, 174, .4); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.hud__discover:hover { color: var(--ink); border-color: var(--gold); }
.hud__intro { pointer-events: none; }
.meaning__title { position: relative; margin: 0 0 1.4em; font-family: var(--f-carve); font-weight: 400; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .04em; line-height: 1.1; }
.sound { text-align: center; }
.sound .section__lead { max-width: 680px; margin-inline: auto; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.pillar-card { padding: 38px 26px 34px; border: 1px solid var(--line); border-radius: 160px 160px 14px 14px; text-align: center;
  background: radial-gradient(80% 60% at 50% 0%, rgba(63, 207, 174, .1), transparent 70%), var(--night-2); transition: border-color .5s, transform .6s var(--ease); }
.pillar-card:hover { border-color: rgba(63, 207, 174, .5); transform: translateY(-6px); }
.pillar-card h3 { margin: 26px 0 10px; font-family: var(--f-carve); font-weight: 400; font-size: 14px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--gold-soft); }
.pillar-card p { margin: 0; font-size: 21px; font-style: italic; color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; justify-content: center; max-width: 540px; margin: 18px auto 0; text-align: left; color: var(--mute); font-size: 16px; font-style: italic; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); }
.consent.is-error { color: #e07a8a; }
.footer__tag { display: flex; flex-direction: column; gap: 4px; }
.footer__tag small { font-family: var(--f-carve); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar-card { border-radius: 120px 120px 14px 14px; } }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; color: var(--mute); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.socials a { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(212,175,106,.45); color: var(--gold); background: rgba(4,6,5,.5);
  transition: color .3s, background .3s, border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.socials span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.socials a:hover, .socials a:focus-visible { color: var(--night); background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 22px rgba(212,175,106,.45); transform: translateY(-2px); }
.footer__again { font-style: italic; color: var(--mute); transition: color .3s; }
.footer__again:hover { color: var(--gold-soft); }
.footer__small { margin: 26px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: rgba(154,143,134,.6); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, calc(100% + 60px)); padding: 12px 24px; border-radius: 999px;
  background: var(--ink); color: var(--night); font-style: italic; font-size: 18px; transition: transform .6s var(--ease); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.toast.is-on { transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
/* the nave on phones / tall screens: window above, words below — stacked, never overlapping */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .hud__top { top: 76px; }
  .shrine { --h: min(calc(100svh - 470px), 62vw * 1.5); right: auto; left: 50%; top: 108px; transform: translate(-50%, 12px); min-height: 150px; }
  .shrine.is-on { transform: translate(-50%, 0); }
  .shrine__plinth { display: none; }
  .rays i { width: 40vw; left: 40%; }
  .hud__caption { left: 20px; right: 20px; width: auto; top: auto; bottom: 92px; text-align: center;
    transform: translateY(calc(var(--dir, 1) * 24px)); }
  .hud__caption.is-on { transform: none; }
  .hud__caption::before { inset: -20% -10%; }
  .chapter__num { display: none; }
  .hud__whose::before { display: none; }
  .hud__caption h2 { font-size: clamp(28px, 8.4vw, 40px); margin: 8px 0; }
  .hud__caption p { font-size: 17px; margin: 0 auto 16px; }
  .chapter__row { justify-content: center; }
  .chapter__dur { display: none; }
}
/* too short to stack both: the words win */
@media (max-width: 700px) and (max-height: 640px), (max-aspect-ratio: 4/5) and (max-height: 640px) {
  .shrine { display: none; }
  .hud__caption { top: 50%; bottom: auto; transform: translateY(calc(-50% + var(--dir, 1) * 24px)); }
  .hud__caption.is-on { transform: translateY(-50%); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hud__top { top: 76px; left: 20px; right: 20px; }
  .hud__candles { gap: 8px; padding: 18px 12px 10px; }
  .hud__candles small { display: none; }
  .story__inner { grid-template-columns: 1fr; padding-top: 80px; }
  .story__glass { position: relative; top: 0; width: min(260px, 70vw); margin: 0 auto; }
  .story__glass.has-art { width: min(300px, 76vw); }
  .shape { padding-bottom: 104px; } .shape__marks { bottom: 104px; }
  .shape__m:nth-child(even) b { top: calc(100% + 58px); }
  .shape__m:nth-child(even) em { top: calc(100% + 74px); }
  .shape__m:nth-child(even) i { bottom: -52px; }
  .shape__m em { font-size: 12.5px; white-space: normal; width: 96px; text-align: center; }
  .shape__m:first-child em { text-align: left; } .shape__m:last-child em { text-align: right; }
  .altar__tracks button { grid-template-columns: 28px 1fr 44px; row-gap: 2px; }
  .t__n { grid-row: 1; }
  .t__title { grid-column: 2; grid-row: 1; }
  .t__whose { grid-column: 2; grid-row: 2; font-size: 14px; }
  .t__dur { grid-column: 3; grid-row: 1; }
  .letter { grid-template-columns: 1fr; }
  .vigil { flex-direction: column; text-align: center; border-radius: 160px 160px 24px 24px; padding: 40px 26px; gap: 20px; }
  .footer__row { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .newsletter__form { flex-direction: column; border-radius: 24px; }
  .newsletter__form input { padding: 14px; }
  .newsletter__form .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
