:root {
  --void: #07040a;
  --text: #f3eee6;
  --soft: #b6aca0;
  --line: rgba(255, 220, 190, 0.16);
  --ember: #ff8a3c;
  --flame: #ffc46b;
  --spectrum: linear-gradient(90deg, #ff7a3d, #ff4fa8 35%, #a878ff 65%, #2fe0cf);
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Sora', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--text); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
body.in-room { overflow: hidden; }
a { color: var(--flame); }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--flame); outline-offset: 4px; }
.kicker { margin: 0 0 0.8rem; font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--flame); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.note { font-size: 0.82rem; color: var(--soft); line-height: 1.6; }

/* ---------- the chamber behind everything ---------- */
.hero-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.hero-stage { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100vh * 1.7768)); aspect-ratio: 1672 / 941; transform: translate(-50%, -50%); }
@media (max-aspect-ratio: 1/1) { .hero-stage { width: max(100vw, calc(100vh * 0.5628)); aspect-ratio: 941 / 1672; } }
#hero-img, #hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,4,10,.35), rgba(7,4,10,.55) 45%, rgba(7,4,10,.92) 85%); }
body:not([data-page="/"]) .hero-bg::after { background: rgba(7, 4, 10, 0.86); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: max(16px, env(safe-area-inset-top)) 20px 14px; background: linear-gradient(180deg, rgba(7,4,10,.7), rgba(7,4,10,0)); }
.wordmark { font-family: var(--display); font-weight: 300; font-size: 0.76rem; letter-spacing: 0.4em; text-decoration: none; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 8, 16, 0.55); backdrop-filter: blur(8px); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); cursor: pointer; }
.pill:hover { color: var(--text); }

main { position: relative; z-index: 1; }
.btn {
  display: inline-block; padding: 0.95rem 1.9rem; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #ffd48a, #ff9a3c); color: #1a0b00;
  font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 0 36px rgba(255, 150, 60, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.5s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(255, 150, 60, 0.65); }
.ghost { padding: 0.95rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(12,8,16,.4); cursor: pointer; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.ghost:hover { color: var(--text); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- home ---------- */
.hero-copy { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px max(20px, 6vw) 8vh; max-width: 760px; }
.hero-copy h1, .ritual h1 { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: 0.02em; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.lede { margin: 1rem 0 1.6rem; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.6; color: #efe6da; text-shadow: 0 1px 12px #000; }
.tonight { max-width: 520px; padding: 1.4rem 1.5rem; border-radius: 20px; border: 1px solid rgba(255, 200, 140, 0.3); background: rgba(12, 8, 16, 0.62); backdrop-filter: blur(14px); }
.tonight p { margin: 0 0 1rem; line-height: 1.6; color: #e2d8cc; }
.tonight-moon { font-family: var(--display); font-weight: 300; font-size: 1.05rem; color: #fff !important; }
.band { position: relative; padding: 5rem max(20px, 6vw); max-width: 1180px; margin: 0 auto; }
.band h2, .altar-teaser h2, .room-teaser h2 { margin: 0 0 1.4rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.15; }
.band-lede { margin: -0.6rem 0 1.8rem; max-width: 40rem; color: var(--soft); line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards.pro { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(14, 9, 18, 0.72); backdrop-filter: blur(12px); color: var(--text); text-decoration: none; transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.6s; }
.card h3 { margin: 0 0 0.6rem; font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: 0.06em; }
.card p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.6; color: #d8cfc3; }
.ritual-card:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 44px color-mix(in srgb, var(--c) 30%, transparent); }
.ritual-card .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 1rem; background: var(--c); box-shadow: 0 0 18px var(--c); }
.more { margin-top: auto; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.room-teaser { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 2.4rem; align-items: center; padding: 2rem; border-radius: 26px; border: 1px solid rgba(255, 180, 110, 0.3); background: radial-gradient(ellipse at 20% 50%, rgba(255, 140, 50, 0.16), rgba(14, 9, 18, 0.8) 60%); backdrop-filter: blur(12px); }
.room-teaser p { line-height: 1.7; color: #e0d6ca; }
.room-flame { height: 340px; }
.room-flame canvas { width: 100%; height: 100%; display: block; }
.altar-teaser { padding: 2.4rem; border-radius: 26px; text-align: center; border: 1px solid rgba(255, 200, 140, 0.25); background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 60, 0.18), rgba(14, 9, 18, 0.78) 70%); }
.altar-teaser p { max-width: 36rem; margin: 0 auto 1.6rem; color: #e0d6ca; line-height: 1.7; }
.pro-card .wait { margin-top: auto; display: grid; gap: 8px; }
.wait input[type=email] { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,4,10,.6); color: var(--text); font: inherit; font-size: 0.9rem; outline: none; }
.wait input:focus { border-color: var(--flame); }
.wait button { padding: 0.75rem 1rem; border: 1px solid rgba(255,196,107,.5); border-radius: 999px; background: none; color: var(--flame); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.wait-msg { margin: 0 !important; font-size: 0.82rem !important; color: var(--flame) !important; }
.wait-msg:empty { display: none; }
.foot { position: relative; padding: 3rem max(20px, 6vw) 4rem; max-width: 900px; margin: 0 auto; text-align: center; color: var(--soft); font-size: 0.8rem; line-height: 1.7; }

/* ---------- a ritual ---------- */
.ritual { max-width: 860px; margin: 0 auto; padding: 100px 20px 80px; }
.crumb { display: inline-block; margin-bottom: 2rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.crumb:hover { color: var(--text); }
.ritual .kicker { color: var(--c); }
.personal { padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, rgba(14,9,18,.7)); line-height: 1.6; }
.ritual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.4rem; }
.panel { padding: 1.4rem 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(14, 9, 18, 0.7); backdrop-filter: blur(12px); margin-top: 12px; }
.ritual-grid .panel { margin-top: 0; }
.panel h2 { margin: 0 0 0.8rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c); }
.panel p, .panel li { font-size: 0.96rem; line-height: 1.75; color: #e2d8cc; }
.panel ul, .panel ol { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.6rem; }
.steps li::marker { color: var(--c); font-family: var(--display); }
.words blockquote { margin: 0; font-family: 'Dancing Script', cursive; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.45; color: #fff; }
.guided-btn { margin-top: 1.6rem; }
.safety { margin-top: 2rem; font-size: 0.78rem; color: var(--soft); line-height: 1.6; }

/* ---------- guided mode ---------- */
.guided { position: fixed; inset: 0; z-index: 40; background: radial-gradient(ellipse at 50% 70%, #1c0f10, #07040a 70%); display: grid; }
.g-candle { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-close { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(12,8,16,.5); color: var(--soft); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.g-panel { position: absolute; left: 50%; top: 8vh; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); text-align: center; }
.g-panel .kicker { color: var(--c); }
.g-text { margin: 0 0 1.6rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.55; color: #fff; text-shadow: 0 1px 14px #000; }
.g-text.big { font-family: 'Dancing Script', cursive; font-size: clamp(1.8rem, 4.6vw, 2.8rem); line-height: 1.35; }
.g-nav { display: flex; gap: 10px; justify-content: center; }
.g-prev { padding: 0.95rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--soft); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }

/* ---------- the Ritual Room ---------- */
.room, .altar { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: #07040a; touch-action: none; }
.room-bg { position: absolute; inset: -6%; background: url('../assets/rituals-tall.webp') center / cover; filter: blur(30px) brightness(0.28) saturate(1.2); }
.room-candle, .altar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 16px; padding: max(16px, env(safe-area-inset-top)) 20px 14px; }
.room-top .kicker { margin: 0; }
.room-preview { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 20px; z-index: 3; margin: 0; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255,196,107,.35); background: rgba(40, 24, 8, 0.55); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--flame); white-space: nowrap; }
.room-panel { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; width: min(620px, calc(100% - 32px)); padding: 1.5rem 1.6rem; border-radius: 22px; border: 1px solid var(--line); background: rgba(12, 8, 16, 0.72); backdrop-filter: blur(16px); text-align: center; }
.room-panel h2 { margin: 0 0 1rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.1rem, 2.6vw, 1.5rem); line-height: 1.3; }
.room-panel .row { justify-content: center; }
.int-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.int-chips button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, #444); background: rgba(7,4,10,.5); cursor: pointer; font-size: 0.82rem; transition: background 0.3s, box-shadow 0.4s; }
.int-chips button:hover { box-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.int-chips i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); border: 1px solid rgba(255,255,255,.3); }
.int-text { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,4,10,.6); color: var(--text); font-family: 'Dancing Script', cursive; font-size: 1.4rem; line-height: 1.4; resize: none; outline: none; }
.int-text:focus { border-color: var(--flame); }
.spoken { margin: 0 0 0.8rem; font-family: 'Dancing Script', cursive; font-size: 1.6rem; color: #fff; }
.yours { margin: 0 0 1rem; color: var(--soft); font-style: italic; }
.match { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 150px; cursor: grab; touch-action: none; }
.match:active { cursor: grabbing; }
.match::before { content: ''; position: absolute; left: 8px; top: 14px; width: 6px; height: 136px; border-radius: 3px; background: linear-gradient(90deg, #c8a06a, #e8c690, #b88a52); }
.match-head { position: absolute; left: 4px; top: 0; width: 14px; height: 20px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 40% 35%, #ff5a4a, #9a1a14); }
.match-fire { position: absolute; left: -6px; top: -34px; width: 34px; height: 46px; border-radius: 50% 50% 45% 45%; opacity: 0; background: radial-gradient(ellipse at 50% 75%, #fff6d8, #ffb24a 45%, rgba(255,90,20,0) 72%); filter: blur(1px); transition: opacity 0.3s; animation: matchflick 0.12s infinite alternate; }
.match.struck .match-fire { opacity: 1; }
.match.spent { opacity: 0; transition: opacity 1s ease 0.2s; }
@keyframes matchflick { to { transform: scale(1.08, 0.94) translateY(1px); } }
.paper { position: absolute; left: 0; top: 0; z-index: 5; cursor: grab; touch-action: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
.paper canvas { display: block; border-radius: 4px; }
.breath { position: absolute; left: 50%; top: 42%; z-index: 2; width: 300px; height: 300px; transform: translate(-50%, -50%); pointer-events: none; }
.breath i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 200, 140, 0.45); box-shadow: 0 0 40px rgba(255, 170, 80, 0.25), inset 0 0 40px rgba(255, 170, 80, 0.15); animation: breath 10s ease-in-out infinite; }
@keyframes breath { 0% { transform: scale(0.55); } 40% { transform: scale(1); } 60% { transform: scale(1); } 100% { transform: scale(0.55); } }
.seal { display: grid; gap: 10px; justify-items: center; }
.check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: #e2d8cc; cursor: pointer; }
.check input { accent-color: var(--flame); width: 1rem; height: 1rem; }
.initial { font-size: 0.8rem; color: var(--soft); }
.initial input { width: 2.6rem; margin-left: 0.4rem; padding: 0.4rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(7,4,10,.6); color: var(--text); font: inherit; text-transform: uppercase; }

/* ---------- the Collective Altar ---------- */
.altar { background: radial-gradient(ellipse at 50% 100%, #2a1410, #07040a 65%); }
.altar-copy { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); z-index: 3; width: min(760px, calc(100% - 32px)); text-align: center; pointer-events: none; }
.altar-copy > * { pointer-events: auto; }
.altar-copy h1 { margin: 0 0 1rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 3.6vw, 2.4rem); }
.a-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 1.2rem; font-size: 0.76rem; color: var(--soft); }
.a-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.a-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.altar-tip { position: fixed; left: 0; top: 0; z-index: 5; margin: 0; padding: 0.4rem 0.8rem; border-radius: 10px; background: rgba(12, 8, 16, 0.88); border: 1px solid var(--line); font-size: 0.78rem; white-space: nowrap; pointer-events: none; }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; background: var(--void); }

@media (max-width: 900px) { .cards, .cards.pro { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards, .cards.pro, .ritual-grid { grid-template-columns: 1fr; }
  .room-teaser { grid-template-columns: 1fr; }
  .room-flame { height: 240px; }
  .breath { width: 220px; height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .breath i, .match-fire { animation: none; } }
