@charset "utf-8";

:root {
  color-scheme: dark;
  --wt-void: #090d12;
  --wt-slate: #17212a;
  --wt-gold: #d6a75c;
  --wt-cyan: #75c6c9;
  --wt-moss: #a7b29c;
  --wt-paper: #eee7d8;
  --wt-ink: #18211e;
  --wt-surface: #111a20;
  --wt-surface-ink: #eee7d8;
  --wt-muted: #b9b8ad;
  --wt-line: rgb(214 167 92 / 32%);
  --wt-panel: rgb(9 13 18 / 76%);
  --wt-serif: Georgia, "Times New Roman", serif;
  --wt-sans: "Segoe UI", Arial, sans-serif;
  --wt-mono: "Cascadia Code", Consolas, monospace;
  font-family: var(--wt-sans);
  background: var(--wt-void);
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body.world-tree-site { margin: 0; min-width: 0; background: var(--wt-void); color: var(--wt-paper); font-family: var(--wt-sans); font-size: 16px; line-height: 1.65; }
body.world-tree-site[data-theme="light"] {
  color-scheme: light;
  --wt-void: #e9e1d1;
  --wt-slate: #d3c6ae;
  --wt-gold: #795322;
  --wt-cyan: #347d7d;
  --wt-moss: #52633f;
  --wt-paper: #242921;
  --wt-ink: #242921;
  --wt-surface: #f5f0e5;
  --wt-surface-ink: #242921;
  --wt-muted: #55594f;
  --wt-line: rgb(107 82 43 / 38%);
  --wt-panel: rgb(245 240 229 / 83%);
}
[hidden] { display: none !important; }
a { color: inherit; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--wt-cyan); outline-offset: 5px; }
.wt-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.wt-skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--wt-surface); color: var(--wt-surface-ink); }
.wt-skip-link:focus { transform: translateY(0); }

.wt-header { position: sticky; z-index: 12; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; width: 100%; min-height: 88px; padding: 15px clamp(22px, 5.3vw, 88px); border-bottom: 1px solid var(--wt-line); background: color-mix(in srgb, var(--wt-void) 94%, transparent); }
.wt-wordmark { display: flex; width: max-content; flex-direction: column; gap: 2px; color: var(--wt-paper); text-decoration: none; font-family: var(--wt-serif); font-size: 17px; letter-spacing: .18em; line-height: 1.25; }
.wt-wordmark small { color: var(--wt-muted); font: 8px/1.5 var(--wt-mono); letter-spacing: .11em; }
.wt-main-nav { display: flex; gap: clamp(19px, 3vw, 44px); }
.wt-main-nav a { color: var(--wt-muted); font: 10px/1 var(--wt-mono); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.wt-main-nav a:hover, .wt-main-nav a:focus-visible { color: var(--wt-gold); }
body.world-tree-site .wt-tools { display: none; }
body.world-tree-site:not([data-enhanced]) .wt-realm-map, body.world-tree-site:not([data-enhanced]) .wt-realm-detail { display: none; }
body.world-tree-site[data-enhanced] .wt-tools { display: flex; justify-content: flex-end; gap: 8px; }
.wt-tools button { min-height: 34px; padding: 0 12px; border: 1px solid var(--wt-line); border-radius: 0; background: transparent; color: var(--wt-muted); cursor: pointer; font: 9px/1 var(--wt-mono); letter-spacing: .08em; text-transform: uppercase; }
.wt-tools button:hover, .wt-tools button[aria-pressed="true"] { border-color: var(--wt-gold); color: var(--wt-gold); }

.world-stage { display: none; }
.wt-atmosphere { position: absolute; inset: 0; }
.wt-atmosphere { background: linear-gradient(90deg, var(--wt-void) 0%, var(--wt-void) 30%, transparent 78%), radial-gradient(ellipse at 72% 49%, rgb(214 167 92 / 13%), transparent 23%), radial-gradient(ellipse at 76% 56%, rgb(117 198 201 / 7%), transparent 42%); }
.wt-rune { position: absolute; z-index: 2; color: var(--wt-gold); font: 12px var(--wt-serif); letter-spacing: .5em; opacity: .72; }
.wt-rune-one { top: 19%; right: 19%; transform-origin: 50% 12rem; transform: rotate(calc(27deg + var(--rune-turn, 0deg))); }
.wt-rune-two { bottom: 18%; right: 13%; transform-origin: 50% -12rem; transform: rotate(calc(-22deg - var(--rune-turn, 0deg))); }

main#journey { display: block; }
.scene { position: relative; min-height: 76vh; padding: clamp(70px, 11vh, 130px) clamp(24px, 8vw, 130px); border-bottom: 1px solid var(--wt-line); scroll-margin-top: 86px; }
.scene-panel { position: relative; z-index: 2; width: min(100%, 690px); }
.wt-kicker { display: flex; align-items: center; gap: 15px; margin: 0 0 28px; color: var(--wt-gold); font: 10px/1.5 var(--wt-mono); letter-spacing: .13em; text-transform: uppercase; }
.wt-index { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--wt-line); border-radius: 50%; font-size: 9px; }
.scene h1, .scene h2 { margin: 0; color: var(--wt-paper); font-family: var(--wt-serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.07; }
.scene h1 { max-width: 780px; font-size: clamp(48px, 7.7vw, 104px); }
.scene h2 { font-size: clamp(40px, 5.4vw, 72px); }
.wt-lede { max-width: 570px; margin: 28px 0 0; color: var(--wt-muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }
.wt-text-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 32px; padding-bottom: 7px; border-bottom: 1px solid var(--wt-line); color: var(--wt-gold); font: 10px/1.5 var(--wt-mono); letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.wt-text-link span, .wt-contact-link span { font-size: 15px; transition: transform .2s ease; }
.wt-text-link:hover span { transform: translate(3px, 3px); }
.wt-note { max-width: 470px; margin: 27px 0 0; padding-left: 17px; border-left: 1px solid var(--wt-gold); color: var(--wt-moss); font-family: var(--wt-serif); font-size: 19px; font-style: italic; }
.wt-stage-caption { margin: 70px 0 0; color: var(--wt-moss); font: 9px/1.6 var(--wt-mono); letter-spacing: .12em; text-transform: uppercase; }

.scene-constellation { min-height: 100vh; }
.scene-constellation .scene-panel { width: min(100%, 780px); }
.wt-realm-map { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 740px; margin: 42px 0 0; padding: 20px 0; }
.wt-realm-map::before { position: absolute; top: 50%; right: 8%; left: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--wt-line), var(--wt-gold), var(--wt-line), transparent); content: ""; }
.wt-realm-node { position: relative; z-index: 1; display: flex; min-width: 132px; flex-direction: column; align-items: center; gap: 7px; padding: 0 8px; border: 0; background: transparent; cursor: pointer; text-align: center; }
.wt-node-orbit { display: block; width: 21px; height: 21px; margin: 0 0 6px; border: 1px solid var(--wt-gold); border-radius: 50%; background: var(--wt-void); box-shadow: 0 0 0 6px var(--wt-void), 0 0 16px rgb(214 167 92 / 20%); transition: box-shadow .25s, background .25s; }
.wt-realm-node:hover .wt-node-orbit, .wt-realm-node[aria-expanded="true"] .wt-node-orbit { background: var(--wt-gold); box-shadow: 0 0 0 6px var(--wt-void), 0 0 26px rgb(214 167 92 / 55%); }
.wt-node-name { color: var(--wt-paper); font-family: var(--wt-serif); font-size: 19px; }
.wt-node-kind { color: var(--wt-muted); font: 8px/1.5 var(--wt-mono); letter-spacing: .11em; }
.wt-realm-detail { max-width: 620px; min-height: 140px; margin-top: 18px; padding: 19px 0 0 22px; border-left: 1px solid var(--wt-line); }
.wt-detail-label { margin: 0 0 5px; color: var(--wt-gold); font: 8px/1.4 var(--wt-mono); letter-spacing: .13em; }
.wt-realm-detail h3, .wt-reading-realm h3 { margin: 0; color: var(--wt-paper); font: 28px/1.2 var(--wt-serif); font-weight: 400; }
.wt-realm-detail > p:not(.wt-detail-label):not(.wt-sr-only) { margin: 6px 0 8px; color: var(--wt-muted); font-size: 14px; }
.wt-realm-detail > a, .wt-reading-realm > a { color: var(--wt-gold); font: 9px/1.6 var(--wt-mono); letter-spacing: .06em; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wt-reading-realms { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--wt-line); }
.wt-reading-realm { padding: 19px 0; border-bottom: 1px solid var(--wt-line); }
.wt-reading-realm h3 { font-size: 23px; }
.wt-reading-realm p { max-width: 570px; margin: 7px 0; color: var(--wt-muted); font-size: 14px; }
.wt-reading-realm .wt-private-note { color: var(--wt-moss); font: 9px/1.5 var(--wt-mono); letter-spacing: .08em; text-transform: uppercase; }

.wt-process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 53px 0 0; padding: 0; list-style: none; }
.wt-process::before { position: absolute; top: 16px; right: 7%; left: 1%; height: 1px; background: linear-gradient(90deg, var(--wt-gold), var(--wt-line), transparent); content: ""; }
.wt-process li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 14px 0 0; }
.wt-process-number { display: grid; width: 33px; height: 33px; margin-bottom: 17px; place-items: center; border: 1px solid var(--wt-gold); border-radius: 50%; background: var(--wt-void); color: var(--wt-gold); font: 9px var(--wt-mono); }
.wt-process-title { color: var(--wt-paper); font-family: var(--wt-serif); font-size: 18px; }
.wt-process-copy { max-width: 140px; margin-top: 5px; color: var(--wt-muted); font-size: 12px; line-height: 1.65; }
.wt-contact-link { display: inline-flex; max-width: 100%; overflow-wrap: anywhere; align-items: center; gap: 14px; margin-top: 34px; color: var(--wt-gold); font-family: var(--wt-serif); font-size: clamp(20px, 2.5vw, 29px); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.wt-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(24px, 8vw, 130px); color: var(--wt-muted); font: 9px/1.6 var(--wt-mono); letter-spacing: .06em; }
.wt-scene-nav, .wt-scene-status, .wt-progress { display: none; }
.wt-fallback:not([hidden]) { display: block; max-width: 760px; margin: 16px auto; padding: 13px 20px; border: 1px solid var(--wt-line); background: var(--wt-surface); color: var(--wt-surface-ink); font-size: 13px; }

/* Immersive presentation is enabled only after the client confirms it can run. */
body.world-tree-site[data-mode="immersive"] { height: 100svh; overflow: hidden; }
body.world-tree-site[data-mode="immersive"] .wt-header { position: fixed; inset: 0 0 auto; background: linear-gradient(var(--wt-void), transparent); border-color: transparent; }
body.world-tree-site[data-mode="immersive"] .world-stage { position: fixed; z-index: 0; inset: 0; display: block; overflow: hidden; background: var(--wt-void); }
body.world-tree-site[data-mode="immersive"] #world-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
body.world-tree-site[data-mode="immersive"] main#journey { position: fixed; z-index: 2; inset: 0; }
body.world-tree-site[data-mode="immersive"] .scene { position: absolute; inset: 0; display: flex; min-height: 0; align-items: center; padding: 120px clamp(34px, 9vw, 145px) 100px; border: 0; opacity: var(--scene-opacity, 0); transform: translateY(var(--scene-shift, 0px)); pointer-events: none; visibility: hidden; scroll-margin: 0; }
body.world-tree-site[data-mode="immersive"] .scene[data-active], body.world-tree-site[data-mode="immersive"] .scene[data-visible] { visibility: visible; }
body.world-tree-site[data-mode="immersive"] .scene[data-active] { pointer-events: auto; }
body.world-tree-site[data-mode="immersive"] .scene-panel { width: min(45vw, 610px); max-height: calc(100dvh - 220px); overflow-y: auto; padding: 0; }
body.world-tree-site[data-mode="immersive"] .scene-constellation .scene-panel { width: min(52vw, 740px); scrollbar-width: thin; scrollbar-color: var(--wt-line) transparent; }
body.world-tree-site[data-mode="immersive"] .scene-constellation h2 { font-size: clamp(40px, 4vw, 58px); }
body.world-tree-site[data-mode="immersive"] .scene-constellation .wt-kicker { margin-bottom: 18px; }
body.world-tree-site[data-mode="immersive"] .scene-constellation .wt-lede { margin-top: 18px; }
body.world-tree-site[data-mode="immersive"] .scene-constellation .wt-realm-map { margin-top: 24px; padding-top: 12px; padding-bottom: 12px; }
body.world-tree-site[data-mode="immersive"] .scene-constellation .wt-realm-detail { margin-top: 12px; padding-top: 12px; }
body.world-tree-site[data-mode="immersive"] .scene h1 { font-size: clamp(46px, 5vw, 72px); }
body.world-tree-site[data-mode="immersive"] .scene-awakening .scene-panel { width: min(54vw, 780px); }
body.world-tree-site[data-mode="immersive"] .scene h2 { font-size: clamp(44px, 5vw, 70px); }
body.world-tree-site[data-mode="immersive"] .scene-constellation { align-items: flex-start; padding-top: 18vh; }
body.world-tree-site[data-mode="immersive"] .scene-constellation .wt-realm-map { max-width: 760px; }
body.world-tree-site[data-mode="immersive"] .wt-reading-realms { display: none; }
body.world-tree-site[data-mode="immersive"] .wt-stage-caption { position: absolute; left: clamp(34px, 9vw, 145px); right: auto; bottom: 42px; max-width: 43%; margin: 0; }
body.world-tree-site[data-mode="immersive"] .wt-scene-nav { position: fixed; z-index: 8; top: 50%; left: clamp(18px, 3.3vw, 48px); display: flex; flex-direction: column; gap: 14px; transform: translateY(-50%); }
body.world-tree-site[data-mode="immersive"] .wt-scene-nav a { display: flex; min-height: 28px; min-width: 26px; padding: 6px 2px; align-items: center; gap: 9px; color: var(--wt-muted); font: 8px/1 var(--wt-mono); text-decoration: none; }
body.world-tree-site[data-mode="immersive"] .wt-scene-nav a i { width: 6px; height: 6px; border: 1px solid var(--wt-gold); border-radius: 50%; transition: background .2s, box-shadow .2s; }
body.world-tree-site[data-mode="immersive"] .wt-scene-nav a:hover, body.world-tree-site[data-mode="immersive"] .wt-scene-nav a[aria-current="step"] { color: var(--wt-gold); }
body.world-tree-site[data-mode="immersive"] .wt-scene-nav a[aria-current="step"] i { background: var(--wt-gold); box-shadow: 0 0 12px var(--wt-gold); }
body.world-tree-site[data-mode="immersive"] .wt-scene-status { position: fixed; z-index: 8; right: clamp(24px, 5.5vw, 82px); bottom: 42px; display: flex; align-items: center; gap: 12px; color: var(--wt-muted); font: 9px/1 var(--wt-mono); letter-spacing: .12em; text-transform: uppercase; }
body.world-tree-site[data-mode="immersive"] #current-number { color: var(--wt-gold); }
body.world-tree-site[data-mode="immersive"] .wt-status-divider { width: 34px; height: 1px; background: var(--wt-line); }
body.world-tree-site[data-mode="immersive"] .wt-progress { position: fixed; z-index: 11; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 2px; appearance: none; border: 0; background: transparent; }
body.world-tree-site[data-mode="immersive"] .wt-progress::-webkit-progress-bar { background: transparent; }
body.world-tree-site[data-mode="immersive"] .wt-progress::-webkit-progress-value { background: var(--wt-gold); }
body.world-tree-site[data-mode="immersive"] .wt-progress::-moz-progress-bar { background: var(--wt-gold); }
body.world-tree-site[data-mode="immersive"] .wt-footer { display: none; }
body.world-tree-site[data-mode="immersive"] .wt-fallback:not([hidden]) { position: fixed; z-index: 15; right: 20px; bottom: 20px; max-width: 360px; margin: 0; padding: 13px 16px; background: var(--wt-surface); color: var(--wt-surface-ink); font-size: 12px; }

body.world-tree-site[data-theme="light"] .world-stage { background: var(--wt-void); }
body.world-tree-site[data-theme="light"] .wt-atmosphere { background: linear-gradient(90deg, var(--wt-void) 0%, var(--wt-void) 34%, transparent 82%), radial-gradient(ellipse at 72% 49%, rgb(139 100 43 / 13%), transparent 25%), radial-gradient(ellipse at 76% 56%, rgb(52 125 125 / 9%), transparent 42%); }
body.world-tree-site[data-theme="light"] .wt-node-orbit, body.world-tree-site[data-theme="light"] .wt-process-number { background-color: var(--wt-void); }
body.world-tree-site[data-theme="light"] .wt-realm-node[aria-expanded="true"] .wt-node-orbit,
body.world-tree-site[data-theme="light"] .wt-realm-node:hover .wt-node-orbit { background-color: var(--wt-gold); }

@media (max-width: 850px) {
  .wt-header { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .wt-main-nav { grid-column: 1; grid-row: 2; gap: 24px; padding: 5px 0 4px; }
  .wt-tools { grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; max-width: 240px; }
  body.world-tree-site[data-mode="immersive"] .scene { padding-right: 8vw; padding-left: 12vw; }
  body.world-tree-site[data-mode="immersive"] .scene-panel { width: min(53vw, 560px); }
  body.world-tree-site[data-mode="immersive"] .scene-constellation .scene-panel { width: min(77vw, 760px); }
}
@media (max-width: 600px) {
  .wt-header { min-height: 102px; padding: 12px 18px; }
  .wt-wordmark { font-size: 14px; }
  .wt-wordmark small { max-width: 180px; font-size: 7px; }
  .wt-main-nav { gap: 17px; }
  .wt-main-nav a { font-size: 8px; }
  .wt-tools { max-width: 158px; gap: 5px; }
  .wt-tools button { min-height: 30px; padding: 0 8px; font-size: 8px; }
  .scene { min-height: auto; padding: 64px 22px 72px; }
  .scene h1 { font-size: clamp(45px, 13vw, 66px); }
  .scene h2 { font-size: clamp(39px, 11vw, 58px); }
  .scene .wt-kicker { margin-bottom: 22px; font-size: 8px; }
  .wt-lede { margin-top: 21px; font-size: 15px; }
  .wt-stage-caption { margin-top: 39px; font-size: 8px; }
  .wt-realm-map { gap: 4px; margin-top: 30px; }
  .wt-realm-node { min-width: 0; flex: 1; padding: 0 3px; }
  .wt-node-name { font-size: 16px; }
  .wt-node-kind { font-size: 7px; letter-spacing: .04em; }
  .wt-realm-detail { padding-left: 15px; }
  .wt-process { grid-template-columns: repeat(2, 1fr); row-gap: 29px; margin-top: 37px; }
  .wt-process::before { right: 50%; bottom: 0; top: 16px; left: auto; width: 1px; height: calc(100% - 24px); background: linear-gradient(var(--wt-gold), var(--wt-line), transparent); }
  .wt-process li:nth-child(2n) { padding-left: 16px; }
  .wt-process-copy { max-width: 155px; }
  .wt-footer { flex-direction: column; gap: 4px; padding: 17px 22px; }
  body.world-tree-site[data-mode="immersive"] { height: 100dvh; }
  body.world-tree-site[data-mode="immersive"] .wt-header { min-height: 82px; }
  body.world-tree-site[data-mode="immersive"] .scene { align-items: center; padding: 100px 26px 98px; overflow: auto; }
  body.world-tree-site[data-mode="immersive"] .scene-panel, body.world-tree-site[data-mode="immersive"] .scene-awakening .scene-panel, body.world-tree-site[data-mode="immersive"] .scene-constellation .scene-panel { width: 100%; max-width: 100%; }
  body.world-tree-site[data-mode="immersive"] .scene h1 { font-size: clamp(42px, 12vw, 66px); }
  body.world-tree-site[data-mode="immersive"] .scene h2 { font-size: clamp(37px, 10vw, 54px); }
  body.world-tree-site[data-mode="immersive"] .scene-constellation { padding-top: 100px; }
  body.world-tree-site[data-mode="immersive"] .wt-stage-caption { display: none; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-nav { top: auto; right: 16px; bottom: 19px; left: 16px; flex-direction: row; justify-content: center; gap: clamp(10px, 4vw, 22px); transform: none; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-nav a { gap: 5px; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-nav a span { font-size: 7px; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-nav a i { width: 5px; height: 5px; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-status { right: 20px; bottom: 53px; font-size: 8px; }
  body.world-tree-site[data-mode="immersive"] .wt-scene-nav a[aria-current="step"] { gap: 7px; }
  .wt-rune { display: none; }
}
@media (max-width: 380px) {
  .wt-header { padding-right: 13px; padding-left: 13px; }
  .wt-main-nav { gap: 12px; }
  .wt-main-nav a { font-size: 7px; }
  .wt-tools { max-width: 145px; }
  .wt-tools button { padding: 0 6px; font-size: 7px; }
  .wt-scene-nav { gap: 8px !important; }
  .wt-scene-nav a span { display: none; }
}
@media (max-height: 600px) and (min-width: 601px) {
  body.world-tree-site[data-mode="immersive"] .scene { align-items: flex-start; overflow-y: auto; padding-top: 105px; padding-bottom: 72px; }
  body.world-tree-site[data-mode="immersive"] .scene-constellation { padding-top: 110px; }
  body.world-tree-site[data-mode="immersive"] .scene-panel { max-width: 52vw; }
  body.world-tree-site[data-mode="immersive"] .scene h1 { font-size: clamp(44px, 6vw, 70px); }
  body.world-tree-site[data-mode="immersive"] .scene h2 { font-size: clamp(38px, 4vw, 54px); }
}
/* Compact journey: one readable panel owns vertical overflow while the scene stays fixed. */
body.world-tree-site[data-mode="immersive"][data-compact] { height: 100svh; }
body.world-tree-site[data-mode="immersive"][data-compact] main#journey { height: 100svh; }
body.world-tree-site[data-mode="immersive"][data-compact] .scene,
body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation {
  height: 100svh;
  min-height: 100svh;
  align-items: flex-start;
  overflow: hidden;
  padding: 140px 22px 86px;
  transform: none;
}
body.world-tree-site[data-mode="immersive"][data-compact] .scene-panel,
body.world-tree-site[data-mode="immersive"][data-compact] .scene-awakening .scene-panel,
body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation .scene-panel {
  width: min(100%, 620px);
  max-width: 100%;
  max-height: calc(100svh - 226px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 6px 8px 12px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--wt-line) transparent;
  background: linear-gradient(90deg, var(--wt-void) 0%, color-mix(in srgb, var(--wt-void) 90%, transparent) 65%, transparent 100%);
}
body.world-tree-site[data-mode="immersive"][data-compact] .scene:not([data-active]) { visibility: hidden; pointer-events: none; }
body.world-tree-site[data-mode="immersive"][data-compact] .wt-scene-nav {
  top: auto; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px;
  flex-direction: row; justify-content: center; gap: clamp(10px, 4vw, 22px); transform: none;
}
body.world-tree-site[data-mode="immersive"][data-compact] .wt-scene-status { right: 20px; bottom: 52px; font-size: 8px; }
body.world-tree-site[data-mode="immersive"][data-compact] .wt-stage-caption,
body.world-tree-site[data-mode="immersive"][data-compact] .wt-rune { display: none; }
body.world-tree-site[data-mode="immersive"][data-compact] .wt-atmosphere {
  background: linear-gradient(180deg, var(--wt-void) 0%, color-mix(in srgb, var(--wt-void) 78%, transparent) 25%, transparent 69%, var(--wt-void) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--wt-void) 78%, transparent), transparent 95%);
}
@media (min-width: 601px) and (max-width: 950px) and (hover: none) and (pointer: coarse) {
  body.world-tree-site[data-mode="immersive"][data-compact] .scene,
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation { padding-left: 82px; }
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-panel,
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation .scene-panel { width: min(66vw, 540px); }
}
@media (max-height: 620px) {
  body.world-tree-site[data-mode="immersive"][data-compact] .scene,
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation { padding-top: 126px; padding-bottom: 68px; }
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-panel,
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-awakening .scene-panel,
  body.world-tree-site[data-mode="immersive"][data-compact] .scene-constellation .scene-panel { max-height: calc(100svh - 194px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Projected controls follow the renderer's world points without covering the narrative. */
.wt-main-nav #map-toggle { padding: 0; border: 0; background: transparent; color: var(--wt-gold); cursor: pointer; font: 10px/1 var(--wt-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wt-map { position: fixed; z-index: 9; inset: 0; pointer-events: none; }
.wt-tree-intro { position: fixed; z-index: 10; right: 20px; bottom: max(28px, env(safe-area-inset-bottom)); left: 20px; text-align: center; }
.wt-tree-intro h1 { margin: 0 0 10px; color: var(--wt-muted); font: 9px/1.5 var(--wt-mono); font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.wt-tree-intro button { min-height: 48px; padding: 12px 22px; border: 1px solid var(--wt-line); background: var(--wt-panel); color: var(--wt-gold); cursor: pointer; font: 10px/1.4 var(--wt-mono); letter-spacing: .09em; text-transform: uppercase; }
.wt-tree-intro button span { margin-left: 16px; font-size: 15px; }
.wt-tree-intro p { margin: 10px 0 0; color: var(--wt-muted); font: 9px/1.5 var(--wt-mono); }
body.world-tree-site[data-tree-intro] main#journey,
body.world-tree-site[data-tree-intro] .wt-scene-nav,
body.world-tree-site[data-tree-intro] .wt-scene-status,
body.world-tree-site[data-tree-intro] .wt-progress { display: none; }
body.world-tree-site[data-mode="immersive"][data-tree-intro] .wt-atmosphere { background: radial-gradient(ellipse at center, transparent 40%, color-mix(in srgb, var(--wt-void) 45%, transparent)); }
@media (max-height: 499px) {
  .wt-tree-intro { bottom: max(10px, env(safe-area-inset-bottom)); }
  .wt-tree-intro h1 { display: none; }
  .wt-tree-intro p { margin-top: 5px; font-size: 8px; }
}
.wt-map-points { position: absolute; inset: 0; pointer-events: none; }
.wt-map-intro { display: none; }
.wt-map-point { position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; }
.wt-map-leader { position: absolute; left: 22px; top: 22px; height: 1px; background: var(--wt-line); transform-origin: left center; pointer-events: none; opacity: 0; }
body.world-tree-site[data-map-open] .wt-map-leader { opacity: 1; }
.wt-map-dot { position: absolute; inset: 16px; border: 1px solid var(--wt-gold); border-radius: 50%; background: var(--wt-void); box-shadow: 0 0 12px var(--wt-gold); }
.wt-map-point:hover .wt-map-dot, .wt-map-point:focus-visible .wt-map-dot { background: var(--wt-gold); box-shadow: 0 0 20px var(--wt-gold); }
.wt-map-dot, .wt-node-orbit {
  background: color-mix(in srgb, var(--wt-gold) calc(var(--node-energy, 0) * 80%), var(--wt-void));
  box-shadow: 0 0 calc(5px + var(--node-energy, 0) * 20px) color-mix(in srgb, var(--wt-gold) calc(18% + var(--node-energy, 0) * 65%), transparent);
}
.wt-map-label { position: absolute; top: 50%; left: 39px; transform: translateY(-50%); width: max-content; max-width: 130px; padding: 4px 7px; border: 1px solid var(--wt-line); background: var(--wt-panel); color: var(--wt-paper); font: 10px/1.3 var(--wt-mono); letter-spacing: .025em; text-align: left; opacity: 0; pointer-events: none; }
.wt-map-point[data-label-side="left"] .wt-map-label { right: 39px; left: auto; text-align: right; }
.wt-map-point:hover .wt-map-label, .wt-map-point:focus-visible .wt-map-label { opacity: 1; }
.wt-map-point:hover .wt-map-label, .wt-map-point:focus-visible .wt-map-label,
body.world-tree-site[data-map-open] .wt-map-label { pointer-events: auto; }
body.world-tree-site[data-map-open] #journey,
body.world-tree-site[data-map-open] .wt-scene-nav,
body.world-tree-site[data-map-open] .wt-scene-status,
body.world-tree-site[data-map-open] .wt-progress,
body.world-tree-site[data-map-open] .wt-rune { visibility: hidden; pointer-events: none; }
body.world-tree-site[data-map-open] main#journey { display: none; }
body.world-tree-site[data-map-open] .wt-atmosphere { background: radial-gradient(ellipse at center, transparent 40%, color-mix(in srgb, var(--wt-void) 45%, transparent)); }
body.world-tree-site[data-map-open] .wt-map-intro { position: absolute; top: 94px; left: clamp(22px, 5.3vw, 88px); right: clamp(22px, 5.3vw, 88px); display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; align-items: center; pointer-events: auto; }
.wt-map-intro h2 { margin: 0; color: var(--wt-paper); font: 26px/1.15 var(--wt-serif); font-weight: 400; }
.wt-map-intro p { grid-column: 1; margin: 0; color: var(--wt-muted); font: 11px/1.5 var(--wt-sans); }
#map-close { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 8px 14px; border: 1px solid var(--wt-line); background: var(--wt-void); color: var(--wt-gold); cursor: pointer; font: 10px/1.2 var(--wt-mono); }
body.world-tree-site[data-map-open] .wt-map-label { opacity: 1; }
@media (max-width: 850px) { .wt-main-nav { gap: 18px; } }
@media (max-width: 600px) {
  .wt-main-nav { gap: 12px; }
  .wt-main-nav #map-toggle { font-size: 8px; }
  body.world-tree-site[data-map-open] .wt-map-intro { top: 112px; left: 18px; right: 18px; gap: 5px 10px; }
  .wt-map-intro h2 { font-size: 21px; }
  .wt-map-intro p { max-width: 230px; font-size: 10px; }
  #map-close { padding: 8px 10px; font-size: 9px; }
  .wt-map-label { max-width: 106px; padding: 3px 5px; font-size: 9px; }
}
@media (max-width: 380px) {
  .wt-main-nav { gap: 9px; }
  .wt-main-nav #map-toggle { font-size: 7px; }
  .wt-map-intro h2 { font-size: 18px; }
  .wt-map-intro p { max-width: 190px; font-size: 9px; }
  .wt-map-label { max-width: 90px; font-size: 8px; }
}
@media (max-height: 499px) {
  body.world-tree-site[data-map-open] .wt-header { min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
  body.world-tree-site[data-map-open] .wt-map-intro { top: 100px; right: 24px; left: auto; display: block; }
  .wt-map-intro h2, .wt-map-intro p { display: none; }
  .wt-map-label { font-size: 9px; }
}
