/* ============================================================
   LUSENTINEL.LTD — Surrealist Romantic Stylesheet v4
   Brighter. More vivid. Deeply immersive. Surreal.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400&family=Space+Mono:ital,wght@0,400;1,400&display=swap');

/* ── Tokens ─────────────────────────── */
:root {
  --pine-dk:   #0c1a10;
  --pine-md:   #1e4a2e;
  --pine-lt:   #4aaa62;
  --mist:      #a8d4e8;
  --ember:     #f07828;
  --ember-lt:  #ffb870;
  --gold:      #d4aa28;
  --gold-lt:   #f8ea90;
  --cream:     #f0ece0;
  --spirit:    #88ccff;
  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(0,.55,.45,1);
}

/* ── Reset ──────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth; font-size:16px }
body {
  background: var(--pine-dk);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
}
a { color:inherit; text-decoration:none }
button { border:none; background:none; cursor:pointer; font:inherit; color:inherit }
img, svg { max-width:100% }
::-webkit-scrollbar { width:2px }
::-webkit-scrollbar-track { background:transparent }
::-webkit-scrollbar-thumb { background:rgba(212,170,40,.28); border-radius:2px }

/* ── Custom cursor ──────────────────── */
#cursor-dot {
  position: fixed;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .14s, height .14s, background .2s, box-shadow .2s;
  mix-blend-mode: screen;
  box-shadow: 0 0 14px rgba(212,170,40,.9), 0 0 32px rgba(212,170,40,.4);
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(212,170,40,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .38s var(--ease), height .38s var(--ease), border-color .35s, opacity .3s;
  will-change: transform;
}
body:has(button:hover) #cursor-dot {
  width: 14px; height: 14px;
  background: var(--gold-lt);
}
body:has(button:hover) #cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(212,170,40,.8);
}

/* ── Canvas ─────────────────────────── */
#sim-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: none;
}

/* ── Layout ─────────────────────────── */
#main-experience {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: 52px 1fr auto;
  height: 100dvh;
  overflow: hidden;
}

@media (max-width: 860px) {
  #main-experience {
    grid-template-columns: 1fr;
    grid-template-rows: 48px 48vw 1fr auto;
    height: auto;
    overflow: visible;
  }
}

/* ── HUD ────────────────────────────── */
#hud {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(6,14,8,.96);
  border-bottom: 1px solid rgba(212,170,40,.14);
  z-index: 200;
  gap: 12px;
  backdrop-filter: blur(12px);
}

.hud-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .3s, text-shadow .4s;
  text-shadow: 0 0 22px rgba(212,170,40,.35);
}
.hud-logo:hover {
  opacity: .88;
  text-shadow: 0 0 38px rgba(212,170,40,.65);
}
.hud-logo em {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--ember);
  border-radius: 50%;
  margin: 0 4px 2px;
  vertical-align: middle;
  font-style: normal;
  animation: pulse-dot 2.8s ease-in-out infinite;
  box-shadow: 0 0 9px var(--ember);
}

#stage-title {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .24em;
  color: rgba(240,236,224,.52);
  text-transform: uppercase;
  flex: 1;
  text-align: center;
  transition: opacity .4s;
}

.hud-pts {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(212,170,40,.5);
}
.hud-pts::before {
  content: '✦';
  animation: spin-slow 12s linear infinite;
  display: inline-block;
}
#points-display { min-width: 26px; text-align: right }
#points-display.bump { animation: bump .45s var(--ease) }

#sound-btn {
  font-size: .82rem;
  color: rgba(212,170,40,.6);
  padding: 4px 8px;
  border: 1px solid rgba(212,170,40,.2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: color .25s, border-color .25s, box-shadow .25s;
  letter-spacing: .04em;
  flex-shrink: 0;
}
#sound-btn:hover {
  color: var(--gold);
  border-color: rgba(212,170,40,.48);
  box-shadow: 0 0 14px rgba(212,170,40,.18);
}
#sound-btn.sound-off { color: rgba(255,255,255,.22); border-color: rgba(255,255,255,.07) }

.fire-steps-hint {
  font-family: 'Space Mono', monospace;
  font-size: .55rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .1em;
  margin-left: 6px;
  align-self: center;
}

/* ── Sim pane ───────────────────────── */
#sim-pane {
  position: relative;
  overflow: hidden;
  background: var(--pine-dk);
}

.sim-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: .55rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.24);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Right panel ────────────────────── */
#right-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8,18,10,.97);
  border-left: 1px solid rgba(255,255,255,.05);
}

@media (max-width: 860px) {
  #right-panel {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.05);
    max-height: none;
    overflow: visible;
  }
}

/* ── Stage scroll ───────────────────── */
#stage-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px 16px;
  scroll-behavior: smooth;
}
#stage-scroll::-webkit-scrollbar { width: 2px }

/* ── Stage panels ───────────────────── */
.stage-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn .6s var(--ease-out) both;
}
.stage-panel.stage--visible { display: flex }

.stage-tag {
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .3em;
  color: var(--pine-lt);
  text-transform: uppercase;
}

.stage-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem,3.8vw,2.1rem);
  font-weight: 300;
  color: var(--gold-lt);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-shadow: 0 0 45px rgba(212,170,40,.22);
}

.stage-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(.96rem,2vw,1.08rem);
  color: rgba(240,236,224,.7);
  line-height: 1.9;
}

.sep {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,170,40,.32), transparent);
  margin: 2px 0;
}

/* ── Choice labels ──────────────────── */
.choice-label {
  font-family: 'Space Mono', monospace;
  font-size: .57rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.32);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.choices, .approach-list { display: flex; flex-direction: column; gap: 6px }

/* ── Buttons ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(212,170,40,.28);
  background: rgba(212,170,40,.03);
  color: rgba(240,236,224,.84);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color .3s, background .3s, color .3s, transform .22s, box-shadow .3s;
  width: 100%;
  text-align: left;
  position: relative;
  user-select: none;
  line-height: 1.4;
}
.btn:hover {
  border-color: var(--gold);
  background: rgba(212,170,40,.1);
  color: var(--gold-lt);
  transform: translateX(4px);
  box-shadow: -4px 0 0 rgba(212,170,40,.45), 0 0 22px rgba(212,170,40,.08);
}
.btn:active { transform: translateX(2px) }

.btn--selected {
  border-color: var(--gold) !important;
  background: rgba(212,170,40,.12) !important;
  color: var(--gold-lt) !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn--selected::after {
  content: '✦';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  font-style: normal;
  color: var(--gold);
  animation: fadeIn .3s both;
}

.btn--primary {
  width: auto;
  padding: 14px 38px;
  border-color: rgba(212,170,40,.52);
  background: rgba(212,170,40,.05);
  font-size: 1.1rem;
  justify-content: center;
  letter-spacing: .08em;
}
.btn--primary:hover {
  box-shadow: 0 0 38px rgba(212,170,40,.22), inset 0 0 20px rgba(212,170,40,.06);
  transform: translateY(-2px);
}

.btn--next {
  width: auto;
  align-self: flex-end;
  padding: 10px 22px;
  font-size: .9rem;
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.52);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .05em;
}
.btn--next:hover {
  border-color: rgba(212,170,40,.55);
  color: var(--gold-lt);
  transform: none;
  box-shadow: none;
}

.btn--lit {
  border-color: var(--ember) !important;
  background: rgba(240,120,40,.14) !important;
  color: var(--ember-lt) !important;
  cursor: default;
  font-style: normal;
  box-shadow: 0 0 20px rgba(240,120,40,.18) !important;
}
.btn--lit::after { content: none !important }
.btn--lit:hover { transform: none; }

/* ── Tent grid ──────────────────────── */
.tent-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.tent-opt {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: all .35s;
  font-style: normal;
  font-size: .65rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: .1em;
  color: rgba(255,255,255,.36);
  text-align: center;
  width: 100%;
}
.tent-icon { font-size: 1.55rem; transition: transform .3s }
.tent-opt:hover {
  border-color: rgba(212,170,40,.42);
  background: rgba(212,170,40,.05);
  color: rgba(255,255,255,.62);
  transform: translateX(0) translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.38);
}
.tent-opt:hover .tent-icon { transform: scale(1.12) }
.tent-opt.btn--selected {
  border-color: var(--gold);
  background: rgba(212,170,40,.1);
  color: var(--gold-lt);
}
.tent-opt.btn--selected::after { top:6px; right:6px; font-size:.55rem }
.tent-opt.btn--selected .tent-icon { transform: scale(1.1) }

/* ── Fire builder ───────────────────── */
.fire-builder {
  padding: 16px;
  border: 1px solid rgba(240,120,40,.2);
  border-radius: 4px;
  background: rgba(38,10,4,.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fire-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fire-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(240,120,40,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
  transition: all .5s;
}
.fire-dot--done {
  border-color: var(--ember);
  background: rgba(240,120,40,.24);
  color: var(--ember-lt);
  box-shadow: 0 0 16px rgba(240,120,40,.35);
  animation: dotPop .4s var(--ease-out) both;
}
#fire-status {
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .1em;
  color: rgba(240,120,40,.72);
  min-height: 1em;
  transition: opacity .4s;
}

.btn--fire {
  border-color: rgba(240,120,40,.42);
  color: rgba(255,185,90,.88);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  width: auto;
  align-self: flex-start;
  padding: 9px 18px;
  letter-spacing: .04em;
}
.btn--fire:hover {
  border-color: var(--ember);
  color: var(--ember-lt);
  transform: none;
  box-shadow: 0 0 20px rgba(240,120,40,.25);
}

/* ── Night themes ───────────────────── */
.night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.night-card {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 3px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: all .35s;
  text-align: left;
  font-style: normal;
  width: 100%;
}
.night-card:hover {
  border-color: rgba(168,212,232,.38);
  background: rgba(168,212,232,.05);
  transform: translateX(0) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.night-card.btn--selected {
  border-color: var(--mist);
  background: rgba(168,212,232,.09);
  color: var(--cream);
  transform: none;
  box-shadow: none;
}
.night-card.btn--selected::after { top:8px; right:10px; color:var(--mist) }
.nc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .98rem;
  color: var(--gold-lt);
  margin-bottom: 3px;
  line-height: 1.3;
}
.nc-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.34);
  font-family: 'DM Sans', sans-serif;
}

/* ── Reflection choices ─────────────── */
.reflection-choices { display: flex; flex-direction: column; gap: 6px }

/* ── Seed reward ────────────────────── */
#seed-reward {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  border: 1px solid rgba(212,170,40,.2);
  border-radius: 5px;
  background: rgba(10,22,12,.6);
  text-align: center;
  gap: 10px;
}
#seed-reward.seed--visible {
  display: flex;
  animation: fadeIn .9s var(--ease-out) both;
}
.seed-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #e0bc30, #8c6814, #42300a);
  box-shadow: 0 0 42px rgba(212,170,40,.55), 0 0 90px rgba(212,170,40,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  animation: seedFloat 4s ease-in-out infinite, seedGlow 4s ease-in-out infinite;
  transition: transform .3s;
}
.seed-orb:hover { transform: scale(1.1) }
.seed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
}
.seed-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .9rem;
  color: rgba(255,255,255,.44);
  max-width: 260px;
  line-height: 1.7;
}
.seed-orb-modal { font-size: 3.5rem; margin: 16px 0 }

/* ── Ending lines ───────────────────── */
.ending-lines { display: flex; flex-direction: column; gap: 10px }
.ending-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(240,236,224,.72);
  line-height: 1.9;
  padding-left: 16px;
  border-left: 2px solid rgba(212,170,40,.24);
}

/* ── Progress ───────────────────────── */
#progress-bar {
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(6,14,8,.98);
}
.progress-track {
  height: 1px;
  background: rgba(255,255,255,.07);
  border-radius: 1px;
  margin-bottom: 10px;
  overflow: visible;
}
#progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--pine-lt), var(--gold));
  border-radius: 1px;
  width: 0%;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 12px rgba(212,170,40,.45);
}
.pdots { display: flex; justify-content: space-between }
.pdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  transition: all .4s;
}
.pdot:hover { border-color: rgba(212,170,40,.48) }
.pdot--done { background: rgba(212,170,40,.42); border-color: rgba(212,170,40,.55) }
.pdot--active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: scale(1.45);
}

/* ── Character response ─────────────── */
#char-response {
  position: fixed;
  bottom: 28px;
  left: 28px;
  max-width: 340px;
  background: rgba(8,18,10,.93);
  border: 1px solid rgba(212,170,40,.22);
  border-radius: 4px;
  padding: 13px 16px;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(212,170,40,.04);
}
#char-response.resp-visible {
  opacity: 1;
  transform: translateY(0);
}
.resp-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .97rem;
  color: rgba(240,236,224,.85);
  line-height: 1.75;
}

/* ── Ambient log ────────────────────── */
#ambient-log {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  font-family: 'Space Mono', monospace;
  font-size: .57rem;
  letter-spacing: .15em;
  color: rgba(168,212,232,.62);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .6s, transform .6s;
  pointer-events: none;
  z-index: 250;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(168,212,232,.45);
}
#ambient-log.ambient-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Toast ──────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 24px;
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  letter-spacing: .12em;
  padding: 9px 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: rgba(8,20,10,.95);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  z-index: 400;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 22px rgba(0,0,0,.45);
}
.toast--in { opacity: 1; transform: translateY(0) }
.toast--info { color: rgba(240,236,224,.52); border-color: rgba(255,255,255,.08) }
.toast--reward { color: var(--gold); border-color: rgba(212,170,40,.28); box-shadow: 0 4px 22px rgba(212,170,40,.12) }
.toast--seed { color: #88ccff; border-color: rgba(136,204,255,.26); box-shadow: 0 0 24px rgba(136,204,255,.12) }

/* ── Modal ──────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,10,6,.84);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
#modal-overlay.modal--open { display: flex; animation: fadeIn .3s both }
.modal-box {
  background: rgba(10,22,12,.98);
  border: 1px solid rgba(212,170,40,.2);
  border-radius: 6px;
  padding: 32px 28px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 22px 65px rgba(0,0,0,.65), 0 0 0 1px rgba(212,170,40,.04);
}
#modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--gold-lt);
  margin-bottom: 16px;
}
#modal-body p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(240,236,224,.68);
  line-height: 1.8;
  margin-bottom: 10px;
}
#modal-body strong { color: var(--gold); font-style: normal }
.modal-close {
  margin-top: 20px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  color: rgba(255,255,255,.48);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  cursor: pointer;
  display: block;
  background: transparent;
  transition: border-color .25s, color .25s;
}
.modal-close:hover { border-color: rgba(212,170,40,.45); color: var(--gold-lt) }

/* ── Footer ─────────────────────────── */
footer {
  grid-column: 1/-1;
  padding: 18px 24px 16px;
  background: rgba(4,10,6,.98);
  border-top: 1px solid rgba(255,255,255,.04);
  z-index: 100;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: .88rem;
  color: rgba(212,170,40,.65);
  letter-spacing: .18em;
}
.brand-tag {
  font-family: 'Space Mono', monospace;
  font-size: .52rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .1em;
  margin-top: 2px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: .75rem;
  color: rgba(255,255,255,.34);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .04em;
  transition: color .25s;
  cursor: pointer;
}
.footer-nav a:hover { color: var(--gold) }
.footer-x {
  color: rgba(212,170,40,.55) !important;
  letter-spacing: .06em;
}
.footer-x:hover { color: var(--gold) !important }
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: .56rem;
  color: rgba(255,255,255,.16);
  letter-spacing: .08em;
  width: 100%;
  margin-top: 4px;
}

/* ── Sub-pages ──────────────────────── */
#sub-pages { display: none }
.sub-page {
  display: none;
  min-height: 100dvh;
  padding: 72px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn .5s var(--ease-out) both;
}
.sub-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem,5vw,3rem);
  font-weight: 300;
  color: var(--gold-lt);
  margin-bottom: 8px;
  line-height: 1.15;
  text-shadow: 0 0 50px rgba(212,170,40,.18);
}
.page-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--pine-lt);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.18rem;
  color: rgba(240,236,224,.74);
  line-height: 1.88;
  margin-bottom: 32px;
  padding-left: 18px;
  border-left: 2px solid rgba(212,170,40,.35);
}
.sub-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-lt);
  margin: 28px 0 10px;
}
.sub-page p, .sub-page li {
  font-size: .93rem;
  color: rgba(240,236,224,.64);
  line-height: 1.88;
  margin-bottom: 10px;
}
.sub-page ul, .sub-page ol { padding-left: 18px; margin-bottom: 14px }
.sub-page li { margin-bottom: 5px }
.sub-page strong { color: rgba(240,236,224,.9); font-weight: 500 }
.sub-page a:not([data-page]) { color:var(--gold); text-decoration:underline; text-underline-offset:3px }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.32);
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s;
  margin-bottom: 36px;
  background: none;
  border: none;
}
.page-back:hover { color: var(--gold) }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 14px;
  margin: 20px 0;
}
.how-card {
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px;
  background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s;
}
.how-card:hover { border-color: rgba(212,170,40,.22); background: rgba(212,170,40,.025) }
.how-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: rgba(212,170,40,.28);
  line-height: 1;
  margin-bottom: 8px;
}
.how-card-title { font-family:'Cormorant Garamond',serif; font-size:1.02rem; color:var(--gold-lt); margin-bottom:6px }
.how-card p { font-size:.82rem; color:rgba(240,236,224,.52); line-height:1.7; margin-bottom:0 }

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 12px;
  margin: 20px 0;
}
.value-card {
  padding: 16px 14px;
  border: 1px solid rgba(212,170,40,.14);
  border-radius: 4px;
  background: rgba(212,170,40,.03);
  transition: border-color .3s, box-shadow .3s;
}
.value-card:hover { border-color: rgba(212,170,40,.32); box-shadow: 0 4px 22px rgba(212,170,40,.07) }
.value-icon { font-size: 1.3rem; margin-bottom: 7px }
.value-title { font-family:'Cormorant Garamond',serif; font-size:.98rem; color:var(--gold-lt); margin-bottom:4px }
.value-desc { font-size:.8rem; color:rgba(240,236,224,.5); line-height:1.65; margin:0 }

.legal-section { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.05) }
.legal-section:last-child { border-bottom: none }
.cookie-type {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cookie-type:last-child { border-bottom: none }
.cookie-badge {
  padding: 3px 9px;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
  font-size: .55rem;
  letter-spacing: .08em;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}
.badge-essential { background:rgba(50,110,65,.28); color:#7ad498; border:1px solid rgba(50,110,65,.42) }
.badge-optional  { background:rgba(168,212,232,.1); color:var(--mist); border:1px solid rgba(168,212,232,.22) }

/* ── Intro Overlay ──────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #030810;
}
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 24px;
  max-width: 520px;
}
.intro-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(160,210,180,.45);
  animation: introFadeDown .9s .2s both;
}
#intro-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem,9vw,5.5rem);
  font-weight: 300;
  color: var(--gold-lt);
  letter-spacing: .05em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(212,170,40,.25), 0 0 120px rgba(212,170,40,.08);
  opacity: 0;
  transform: translateY(18px);
  margin: 0;
}
.intro-dot {
  color: var(--ember);
  animation: pulse-dot 2.8s ease-in-out infinite;
  display: inline-block;
  text-shadow: 0 0 20px rgba(240,120,40,.6);
}
.intro-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem,2.8vw,1.22rem);
  color: rgba(240,236,224,.55);
  line-height: 1.7;
  min-height: 2.2em;
  letter-spacing: .01em;
  animation: introFadeDown .7s .8s both;
  max-width: 380px;
}
.intro-tagline::after {
  content: '|';
  opacity: 1;
  animation: cursorBlink .72s step-end infinite;
  margin-left: 2px;
  color: rgba(212,170,40,.6);
}
/* ── Intro X handle ─────────────────── */
.intro-x-handle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid rgba(212,170,40,.22);
  border-radius: 2px;
  background: rgba(212,170,40,.04);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .2s;
  backdrop-filter: blur(4px);
  opacity: 0;
}
.intro-x-handle:hover {
  border-color: rgba(212,170,40,.48);
  background: rgba(212,170,40,.09);
  transform: translateY(-1px) !important;
}
.intro-x-icon {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  line-height: 1;
  flex-shrink: 0;
}
.intro-x-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.intro-x-label {
  font-family: 'Space Mono', monospace;
  font-size: .52rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--pine-lt);
}
.intro-x-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-lt);
  letter-spacing: .04em;
}
.intro-x-arrow {
  font-size: .78rem;
  color: rgba(212,170,40,.45);
  margin-left: auto;
  transition: transform .25s, color .25s;
}
.intro-x-handle:hover .intro-x-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

.intro-form {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  opacity: 0;
  transform: translateY(12px);
}
.intro-form input[type="email"] {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,170,40,.28);
  border-radius: 3px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  letter-spacing: .03em;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  text-align: center;
}
.intro-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 24px rgba(212,170,40,.12);
}
.intro-form input[type="email"]::placeholder {
  color: rgba(255,255,255,.22);
  font-style: italic;
}
#intro-create-btn {
  width: 100%;
  padding: 14px 38px;
  background: rgba(212,170,40,.08);
  border: 1px solid rgba(212,170,40,.45);
  border-radius: 3px;
  color: var(--gold-lt);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .35s, transform .2s;
}
#intro-create-btn:hover {
  background: rgba(212,170,40,.15);
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(212,170,40,.2), inset 0 0 20px rgba(212,170,40,.05);
  transform: translateY(-2px);
}
#intro-create-btn:active { transform: translateY(0) }
.intro-skip {
  display: none;
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .16em;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s;
  margin-top: -4px;
}
.intro-skip:hover { color: rgba(255,255,255,.45) }
#intro-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: .52rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.14);
  text-transform: uppercase;
  animation: introFadeDown .8s 3.5s both;
  pointer-events: none;
}

/* ── Whispering tree tooltip ────────── */
.tree-whisper {
  position: fixed;
  pointer-events: none;
  z-index: 260;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .88rem;
  color: rgba(160,220,180,.75);
  text-shadow: 0 0 18px rgba(100,200,130,.35);
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s, transform .7s;
  padding: 7px 14px;
  border: 1px solid rgba(100,200,130,.14);
  border-radius: 3px;
  background: rgba(4,12,6,.82);
  backdrop-filter: blur(8px);
  max-width: 280px;
  white-space: normal;
}
.tree-whisper.whisper--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ──────────────────────── */
@keyframes introFadeDown {
  from { opacity:0; transform:translateY(-10px) }
  to   { opacity:1; transform:translateY(0) }
}
@keyframes cursorBlink {
  0%,100% { opacity:1 } 50% { opacity:0 }
}
/* ── Keyframes ──────────────────────── */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(14px) }
  to   { opacity:1; transform:translateY(0) }
}
@keyframes pulse-dot {
  0%,100% { opacity:.4; transform:scale(1) }
  50%     { opacity:1;  transform:scale(1.45) }
}
@keyframes spin-slow { to { transform:rotate(360deg) } }
@keyframes bump {
  0%  { transform:scale(1) }
  40% { transform:scale(1.62) translateY(-3px) }
  70% { transform:scale(.9) }
  100%{ transform:scale(1) }
}
@keyframes dotPop {
  from { transform:scale(.6); opacity:0 }
  to   { transform:scale(1);  opacity:1 }
}
@keyframes seedFloat {
  0%,100% { transform:translateY(0) }
  50%     { transform:translateY(-10px) }
}
@keyframes seedGlow {
  0%,100% { box-shadow:0 0 42px rgba(212,170,40,.55),0 0 90px rgba(212,170,40,.18) }
  50%     { box-shadow:0 0 62px rgba(212,170,40,.8),0 0 130px rgba(212,170,40,.32) }
}

/* ── Mobile ─────────────────────────── */
@media (max-width: 600px) {
  footer { padding:18px 14px 14px }
  #stage-title { display:none }
  .night-grid { grid-template-columns:1fr }
  .modal-box { padding:22px 18px }
  .sub-page { padding:60px 14px 40px }
  .how-grid { grid-template-columns:1fr }
  .about-values { grid-template-columns:1fr 1fr }
  #char-response { display:none }
  .sim-caption { display:none }
  #cursor-dot, #cursor-ring { display:none }
}
@media (max-width: 380px) {
  .tent-grid { gap:5px }
  .about-values { grid-template-columns:1fr }
}
