/* WEB CHAMBER 2 — MERCURIAL SHELL v0.5 / NON-DEPLOYED
   Wrapper-only interaction and material layer. Does not alter native instrument logic. */
:root{
  --hg-shell-silver:#d6e2e4;
  --hg-shell-mercury:#a7eef0;
  --hg-shell-gold:#d2ad68;
  --hg-shell-ink:#020405;
  --hg-shell-glass:rgba(5,9,11,.82);
}
.mercurial-rail{position:fixed;left:10px;top:50%;transform:translateY(-50%);z-index:2147482000;width:58px;min-height:356px;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:8px;padding:10px 7px;border:1px solid rgba(186,219,224,.18);background:linear-gradient(180deg,rgba(3,6,7,.88),rgba(2,4,5,.76));backdrop-filter:blur(16px);box-shadow:0 22px 60px rgba(0,0,0,.42),inset 0 0 42px rgba(183,226,231,.018);clip-path:polygon(20% 0,80% 0,100% 4%,100% 96%,80% 100%,20% 100%,0 96%,0 4%)}
.mercurial-rail::before{content:"";position:absolute;left:50%;top:63px;bottom:63px;width:1px;background:linear-gradient(180deg,transparent,rgba(167,238,240,.52) 18%,rgba(210,173,104,.72) 49%,rgba(167,238,240,.52) 82%,transparent);box-shadow:0 0 18px rgba(167,238,240,.16);pointer-events:none}
.mercurial-rail::after{content:"";position:absolute;inset:8px;border:1px solid rgba(210,173,104,.08);pointer-events:none}
.mercurial-route{writing-mode:vertical-rl;text-orientation:mixed;text-decoration:none;color:#b8c7ca;font:600 8px/1 ui-monospace,Consolas,monospace;letter-spacing:.19em;text-transform:uppercase;padding:6px 4px;text-shadow:0 0 10px rgba(167,238,240,.14);min-height:82px;display:flex;align-items:center;justify-content:center;transition:color .2s ease,text-shadow .2s ease}
.mercurial-route:hover,.mercurial-route:focus-visible{outline:none;color:#f2fbfc;text-shadow:0 0 16px rgba(167,238,240,.55)}
.mercurial-route.ascend{transform:rotate(180deg)}
.mercurial-core{align-self:center;position:relative;width:44px;height:118px;display:grid;grid-template-rows:26px 58px 26px;align-items:center;justify-items:center;z-index:2}
.mercurial-step{appearance:none;width:25px;height:25px;border:0;background:transparent;color:#71888d;font-size:13px;cursor:pointer;border-radius:50%}.mercurial-step:hover,.mercurial-step:focus-visible{outline:1px solid rgba(167,238,240,.28);color:#d7f8fa;background:rgba(167,238,240,.04)}
.mercurial-glyph{appearance:none;width:52px;height:52px;border-radius:50%;border:1px solid rgba(210,173,104,.46);background:radial-gradient(circle at 38% 30%,rgba(255,255,255,.10),rgba(11,15,15,.97) 38%,rgba(2,4,5,.98) 72%);color:#ecf5f5;font:400 30px/1 Georgia,serif;display:grid;place-items:center;cursor:pointer;box-shadow:0 0 0 9px rgba(167,238,240,.018),0 0 38px rgba(167,238,240,.08),inset 0 0 22px rgba(210,173,104,.055);transform:rotate(var(--hg-turn,0deg)) scaleX(var(--hg-mirror,1));transition:box-shadow .25s ease,border-color .25s ease}
.mercurial-glyph:hover,.mercurial-glyph:focus-visible{outline:none;border-color:rgba(167,238,240,.72);box-shadow:0 0 0 10px rgba(167,238,240,.025),0 0 42px rgba(167,238,240,.18),inset 0 0 24px rgba(210,173,104,.08)}
.mercury-bead{position:absolute;left:50%;top:70px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:radial-gradient(circle at 34% 30%,#fff 0 12%,#dcebed 24%,#869da1 57%,#1e282a 100%);box-shadow:0 0 11px rgba(192,240,243,.45);animation:hgBead 5.6s cubic-bezier(.45,0,.55,1) infinite;pointer-events:none}.mercury-bead.b2{width:5px;height:5px;margin-left:-2.5px;animation-duration:7.8s;animation-delay:-3.2s;opacity:.72}.mercury-bead.b3{width:3px;height:3px;margin-left:-1.5px;animation-duration:4.7s;animation-delay:-1.4s;opacity:.58}
@keyframes hgBead{0%{transform:translateY(0) scale(.72)}45%{transform:translateY(99px) scale(1)}55%{transform:translateY(109px) scale(.9)}100%{transform:translateY(216px) scale(.72)}}
.mercurial-rail[data-scroll="up"] .mercury-bead{animation-direction:reverse}.mercurial-rail[data-scroll="down"] .mercury-bead{animation-direction:normal}
.mercurial-section-label{position:fixed;left:78px;bottom:14px;z-index:2147481999;max-width:min(460px,calc(100vw - 110px));padding:7px 10px;border-left:1px solid rgba(210,173,104,.38);background:linear-gradient(90deg,rgba(3,6,7,.82),rgba(3,6,7,0));color:#819398;font:600 9px/1.45 ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;pointer-events:none;opacity:.78}
.mercurial-transition{position:fixed;inset:0;z-index:2147483000;pointer-events:none;opacity:0;background:#020405;transition:opacity .24s ease;overflow:hidden}.mercurial-transition::before{content:"☿";position:absolute;left:50%;top:50%;width:94px;height:94px;margin:-47px;border:1px solid rgba(210,173,104,.55);border-radius:50%;display:grid;place-items:center;color:#eaf5f5;font:400 52px/1 Georgia,serif;box-shadow:0 0 70px rgba(167,238,240,.12),inset 0 0 42px rgba(210,173,104,.05)}.mercurial-transition::after{content:"";position:absolute;left:50%;top:-20%;width:1px;height:140%;background:linear-gradient(transparent,rgba(167,238,240,.68),rgba(210,173,104,.6),rgba(167,238,240,.68),transparent);box-shadow:0 0 24px rgba(167,238,240,.2)}
html[data-hg-transition] .mercurial-transition{opacity:1}
html[data-hg-transition="ascend"] .mercurial-transition::before{animation:hgAscend .42s ease both}html[data-hg-transition="descend"] .mercurial-transition::before{animation:hgDescend .42s ease both}html[data-hg-transition="inward"] .mercurial-transition::before{animation:hgInward .42s ease both}html[data-hg-transition="outward"] .mercurial-transition::before{animation:hgOutward .42s ease both}html[data-hg-transition="below"] .mercurial-transition::before{animation:hgDescend .42s ease both}html[data-hg-transition="retreat"] .mercurial-transition::before{animation:hgInward .42s ease both}html[data-hg-transition="cross"] .mercurial-transition::before{animation:hgCross .42s ease both}
@keyframes hgAscend{from{transform:translateY(32vh) rotate(180deg);opacity:.2}to{transform:translateY(-10vh) rotate(360deg);opacity:1}}@keyframes hgDescend{from{transform:translateY(-32vh);opacity:.2}to{transform:translateY(10vh) rotate(180deg);opacity:1}}@keyframes hgInward{from{transform:scale(1.8);opacity:.1}to{transform:scale(.72) rotate(90deg);opacity:1}}@keyframes hgOutward{from{transform:scale(.55);opacity:.1}to{transform:scale(1.32) rotate(-90deg);opacity:1}}@keyframes hgCross{from{transform:translateX(-28vw) rotate(-90deg);opacity:.15}to{transform:translateX(12vw) rotate(90deg);opacity:1}}
html.mercurial-arrival body::after{content:"";position:fixed;inset:0;z-index:2147482900;pointer-events:none;background:linear-gradient(90deg,#020405 0,#020405 49.6%,rgba(167,238,240,.22) 50%,#020405 50.4%,#020405 100%);animation:hgArrival .56s ease forwards}@keyframes hgArrival{0%{opacity:1;clip-path:inset(0 0 0 0)}55%{opacity:.82;clip-path:inset(0 48.7% 0 48.7%)}100%{opacity:0;clip-path:inset(0 50% 0 50%)}}
/* wrapper-page mercurial materiality */
body.campus-shell .site-header,.site-header{box-shadow:0 10px 45px rgba(0,0,0,.25)}
body.campus-shell .brand-mark,.site-header .brand-mark{
  position:relative;border-radius:2px!important;
  font:400 20px/1 Georgia,serif!important;color:#efe8d9!important;
  border-color:rgba(207,175,110,.52)!important;
  background:linear-gradient(145deg,rgba(18,17,14,.92),rgba(4,6,6,.98))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),inset 0 0 20px rgba(207,175,110,.035),0 0 20px rgba(0,0,0,.18)!important;
}
body.campus-shell .brand-mark::after,.site-header .brand-mark::after{
  content:"80";position:absolute;right:4px;bottom:3px;
  font:600 5px/1 ui-monospace,Consolas,monospace;color:#b89552;letter-spacing:.02em;
}
/* v0.7.15 legibility correction: navigation remains restrained, but not decorative microtype. */
body.mercurial-shell-mounted .primary-nav a,.site-header .primary-nav a{font-size:.66rem;letter-spacing:.105em;color:#a0abad}
@media(max-width:620px){body.mercurial-shell-mounted .primary-nav a{font-size:.56rem!important;letter-spacing:.065em!important}}
.mercurial-engraving{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.28}.mercurial-engraving::before{content:"";position:absolute;width:min(64vw,760px);aspect-ratio:1;left:50%;top:52%;transform:translate(-50%,-50%);border:1px solid rgba(167,238,240,.12);border-radius:50%;box-shadow:0 0 0 74px rgba(210,173,104,.018),0 0 0 150px rgba(167,238,240,.014)}.mercurial-engraving::after{content:"";position:absolute;left:50%;top:10%;bottom:10%;width:1px;background:linear-gradient(transparent,rgba(210,173,104,.22),rgba(167,238,240,.16),rgba(210,173,104,.22),transparent)}
.hg-lore-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin:1px 0 0;background:rgba(174,211,216,.12);border:1px solid rgba(174,211,216,.12)}.hg-lore-strip>div{background:rgba(5,8,9,.96);padding:14px 15px;min-height:92px}.hg-lore-strip b{display:block;color:#d9b971;font:600 9px/1.3 ui-monospace,Consolas,monospace;letter-spacing:.14em;text-transform:uppercase}.hg-lore-strip strong{display:block;margin-top:7px;color:#dfeaec;font:400 1.05rem/1.15 Georgia,serif}.hg-lore-strip span{display:block;margin-top:5px;color:#72858a;font:10px/1.45 ui-monospace,Consolas,monospace}
.equation-glint{position:absolute;right:20px;top:18px;color:rgba(189,228,233,.64);font:600 11px/1 ui-monospace,Consolas,monospace;letter-spacing:.08em;text-shadow:0 0 16px rgba(167,238,240,.18)}
.room-door,.campus-portal{clip-path:polygon(3% 0,97% 0,100% 3%,100% 97%,97% 100%,3% 100%,0 97%,0 3%)}
.room-door::before,.campus-portal .door-jamb{content:"";position:absolute;inset:10px;border:1px solid rgba(212,224,226,.06);pointer-events:none;z-index:1}.room-door .door-bg{transform-origin:50% 45%}.room-door:hover .door-bg,.room-door:focus-visible .door-bg{transform:scale(1.08) translateY(-1%)}
.campus-portal{min-height:224px;background:linear-gradient(90deg,rgba(14,18,19,.98),rgba(5,7,8,.98));box-shadow:inset 22px 0 32px rgba(255,255,255,.008),inset -22px 0 34px rgba(0,0,0,.26)}.campus-portal::after{width:46%;height:72%;top:14%;right:8%;border-color:rgba(210,173,104,.12);transform:perspective(320px) rotateY(-8deg);background:linear-gradient(90deg,transparent,rgba(167,238,240,.018))}.campus-portal:hover::after{border-color:rgba(167,238,240,.3)}
.court-axis{clip-path:polygon(4% 0,96% 0,100% 3%,100% 97%,96% 100%,4% 100%,0 97%,0 3%);background:radial-gradient(ellipse at 50% 48%,rgba(167,238,240,.055),transparent 27%),linear-gradient(180deg,rgba(13,18,21,.78),rgba(4,7,8,.94))}.axis-core{width:210px;height:210px}.axis-core strong{font-size:0}.axis-core strong::after{content:"☿";font:400 5rem/1 Georgia,serif;color:#edf9f9}.axis-core::before,.axis-core::after{content:"";position:absolute;border-radius:50%;pointer-events:none}.axis-core::before{inset:-34px;border:1px solid rgba(167,238,240,.15);transform:rotate(17deg)}.axis-core::after{inset:-72px;border:1px solid rgba(210,173,104,.09);transform:rotate(-31deg)}
.alchemical-rule{border-left:1px solid rgba(210,173,104,.38);padding:14px 0 14px 18px;color:#89999d;max-width:620px}.alchemical-rule strong{display:block;color:#d8e4e6;font:400 1.05rem/1.25 Georgia,serif}.alchemical-rule span{display:block;margin-top:5px;font:10px/1.6 ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:900px){.mercurial-rail{left:auto;right:8px;width:48px;opacity:.82}.mercurial-section-label{display:none}.hg-lore-strip{grid-template-columns:1fr 1fr}.hg-lore-strip>div:last-child{grid-column:1/3}}
@media(max-width:620px){.mercurial-rail{top:auto;bottom:8px;right:8px;transform:none;left:8px;width:auto;min-height:0;height:49px;display:flex;grid-template-rows:none;justify-content:center;align-items:center;padding:5px 8px;clip-path:none;border-radius:2px}.mercurial-rail::before{left:66px;right:66px;top:50%;bottom:auto;width:auto;height:1px}.mercurial-route{writing-mode:horizontal-tb;min-height:0;height:35px}.mercurial-route.ascend{transform:none}.mercurial-core{width:132px;height:39px;grid-template-columns:28px 58px 28px;grid-template-rows:1fr}.mercurial-glyph{width:42px;height:42px;font-size:24px}.mercury-bead{display:none}.hg-lore-strip{grid-template-columns:1fr}.hg-lore-strip>div:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.mercury-bead{display:none}.mercurial-glyph{transform:none!important;transition:none}.mercurial-transition::before{animation:none!important}.mercurial-transition{transition:none}html.mercurial-arrival body::after{display:none}}
/* v0.5 room refinements */
.campus-stage .court-shell::before{content:"";position:absolute;left:50%;top:-18rem;width:min(80vw,1050px);height:340px;transform:translateX(-50%);border:1px solid rgba(167,238,240,.075);border-radius:0 0 52% 52%;box-shadow:inset 0 -44px 100px rgba(76,123,139,.035);pointer-events:none}.campus-stage .court-shell::after{content:"";position:absolute;left:50%;top:46%;width:74vw;max-width:1180px;height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(210,173,104,.12),rgba(167,238,240,.17),rgba(210,173,104,.12),transparent);pointer-events:none}
.axis-spine::after{content:"";position:absolute;left:50%;top:3%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#d9e6e8 24%,#64777b 58%,#101719);box-shadow:0 0 18px rgba(167,238,240,.45);animation:axisMercury 6.8s ease-in-out infinite}@keyframes axisMercury{0%{top:5%;transform:scale(.72)}48%{top:48%;transform:scale(1.05)}52%{top:52%;transform:scale(.9)}100%{top:92%;transform:scale(.72)}}
.campus-portal .movement,.room-door .micro{position:relative;z-index:3}.campus-portal h2,.campus-portal p{position:relative;z-index:3}
.hall-stage::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 6%,rgba(110,168,181,.075),transparent 22%),repeating-linear-gradient(90deg,transparent 0 11.9%,rgba(199,214,216,.013) 12%,transparent 12.1% 24%);opacity:.9}.hall-shell{position:relative;z-index:1}.hall-heading{border-bottom:1px solid rgba(177,210,215,.12);padding-bottom:28px}.hall-heading p{border-left:1px solid rgba(210,173,104,.28);padding-left:18px}
.room-door{min-height:460px;box-shadow:inset 0 0 0 10px rgba(0,0,0,.22),0 30px 80px rgba(0,0,0,.26)}.room-door .door-copy{padding:28px}.room-door .door-copy::before{content:"";position:absolute;left:28px;top:-185px;width:1px;height:150px;background:linear-gradient(transparent,rgba(167,238,240,.42),rgba(210,173,104,.28));box-shadow:0 0 14px rgba(167,238,240,.08)}
body:not(.academy-room):not(.music-room) .section{position:relative}body:not(.academy-room):not(.music-room) .section::before{content:"☿";position:absolute;left:50%;top:-11px;transform:translateX(-50%);padding:0 12px;background:#070706;color:rgba(210,173,104,.55);font:18px/1 Georgia,serif}
/* Academy becomes a training hall with six architectural faculty doors. */
.academy-room .training-grid{position:relative;gap:12px!important;background:transparent!important;border:0!important;padding:26px 0 10px;perspective:1400px}.academy-room .training-grid::before{content:"";position:absolute;left:-8vw;right:-8vw;bottom:-36px;height:180px;background:repeating-linear-gradient(90deg,transparent 0 8%,rgba(143,214,226,.035) 8.1%,transparent 8.2% 16%),linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.48));transform:perspective(540px) rotateX(66deg);transform-origin:bottom;pointer-events:none}.academy-room .curriculum-card{clip-path:polygon(7% 0,93% 0,100% 6%,100% 100%,0 100%,0 6%);border:1px solid rgba(143,214,226,.16)!important;box-shadow:inset 0 0 0 8px rgba(255,255,255,.008),0 24px 70px rgba(0,0,0,.28)!important}.academy-room .curriculum-card::before{border-radius:120px 120px 4px 4px!important;border-color:rgba(143,214,226,.22)!important;box-shadow:inset 0 0 55px rgba(143,214,226,.025),0 0 26px rgba(143,214,226,.018)!important}.academy-room .curriculum-card.active::before{border-color:rgba(210,173,104,.42)!important}.academy-room .stage{clip-path:polygon(2% 0,98% 0,100% 2%,100% 98%,98% 100%,2% 100%,0 98%,0 2%);box-shadow:0 34px 90px rgba(0,0,0,.3)}.academy-crossing-law{margin:-36px auto 54px;border-top:1px solid rgba(143,214,226,.20);padding-top:22px;color:var(--dim);font:.84rem/1.75 var(--sans)}.academy-crossing-law p{max-width:900px}.academy-room .academy-hg{font-size:0}.academy-room .academy-hg::after{content:"☿";font:400 22px/1 Georgia,serif;color:#e5f4f5}
/* Music feels inward and orbital rather than administrative. */
.music-room{background:radial-gradient(65rem 45rem at 70% -12%,rgba(103,164,177,.09),transparent 62%),radial-gradient(42rem 32rem at 12% 28%,rgba(120,58,91,.055),transparent 62%),#060708}.music-room .instrument-field{box-shadow:inset 0 0 110px rgba(0,0,0,.55),0 30px 90px rgba(0,0,0,.32)}.music-room .threshold{clip-path:polygon(5% 0,95% 0,100% 6%,100% 94%,95% 100%,5% 100%,0 94%,0 6%);border:0}.music-room .threshold::before{content:"";position:absolute;inset:12px;border:1px solid rgba(131,205,216,.11);pointer-events:none}.music-room .work{position:relative}.music-room .work::before{content:"☿";position:absolute;left:50%;top:-12px;transform:translateX(-50%);background:#060708;padding:0 10px;color:rgba(210,173,104,.5);font:18px Georgia,serif;z-index:2}
/* Library becomes a below-ground reading room rather than a control register. */
.library-room{background:radial-gradient(55rem 34rem at 16% 8%,rgba(210,173,104,.055),transparent 62%),linear-gradient(180deg,#080806,#050606 48%,#030404)}.library-room .catalog{gap:12px;background:transparent;border:0;position:relative}.library-room .catalog::before{content:"";position:absolute;inset:-24px -3vw;background:repeating-linear-gradient(90deg,rgba(210,173,104,.025) 0 1px,transparent 1px 54px);pointer-events:none}.library-room .catalog article{position:relative;border:1px solid rgba(210,173,104,.13);background:linear-gradient(160deg,rgba(17,15,11,.94),rgba(7,8,8,.97));box-shadow:inset 0 0 0 7px rgba(255,255,255,.006),0 24px 60px rgba(0,0,0,.24)}.library-room .catalog article::before{content:"";position:absolute;left:18px;right:18px;top:18px;height:1px;background:linear-gradient(90deg,transparent,rgba(210,173,104,.24),transparent)}
@media(max-width:900px){.room-door{min-height:390px}.academy-room .training-grid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:640px){.academy-room .training-grid{grid-template-columns:1fr!important}.axis-spine::after{display:none}}
@media(prefers-reduced-motion:reduce){.axis-spine::after{animation:none;display:none}}
/* Interactive Hg core: restores the old site's branch / shell / ninefold intelligence inside the new Court. */
.hg-core-shell{cursor:pointer;overflow:visible;z-index:4}.hg-core-shell .hg-core-svg{position:absolute;inset:-34px;width:calc(100% + 68px);height:calc(100% + 68px);overflow:visible}.hg-core-shell .hg-register{fill:none;stroke:rgba(167,238,240,.24);stroke-width:1;vector-effect:non-scaling-stroke;transition:opacity .25s ease,transform .35s ease;transform-origin:100px 100px}.hg-core-shell .hg-register circle{fill:#0a1011;stroke:rgba(210,173,104,.58)}.hg-core-shell .hg-branch path{fill:none}.hg-core-shell .hg-shell ellipse{stroke:rgba(167,238,240,.22)}.hg-core-shell .hg-seal circle{stroke:rgba(210,173,104,.5)}.hg-core-shell[data-mode="branch"] .hg-shell,.hg-core-shell[data-mode="branch"] .hg-seal,.hg-core-shell[data-mode="shell"] .hg-branch,.hg-core-shell[data-mode="shell"] .hg-seal,.hg-core-shell[data-mode="seal"] .hg-branch,.hg-core-shell[data-mode="seal"] .hg-shell{opacity:.05}.hg-core-shell[data-mode="branch"] .hg-branch,.hg-core-shell[data-mode="shell"] .hg-shell,.hg-core-shell[data-mode="seal"] .hg-seal{opacity:1}.hg-core-shell[data-mode="branch"] .hg-branch{transform:rotate(0deg)}.hg-core-shell[data-mode="shell"] .hg-shell{transform:rotate(9deg)}.hg-core-shell[data-mode="seal"] .hg-seal{transform:rotate(-9deg)}
.hg-core-shell small{bottom:29px!important;width:180px;text-align:center;line-height:1.35!important;font-size:.46rem!important}.hg-core-tabs{position:absolute;left:50%;top:calc(50% + 132px);transform:translateX(-50%);display:flex;gap:5px;z-index:5}.hg-core-tabs button{appearance:none;border:1px solid rgba(167,238,240,.14);background:rgba(4,7,8,.86);color:#728589;padding:6px 8px;font:600 8px/1 ui-monospace,Consolas,monospace;letter-spacing:.11em;cursor:pointer}.hg-core-tabs button[aria-pressed="true"]{border-color:rgba(210,173,104,.5);color:#e7d2a4;background:rgba(210,173,104,.04)}.hg-core-tabs button:hover,.hg-core-tabs button:focus-visible{outline:none;border-color:rgba(167,238,240,.5);color:#eefafa}
@media(max-width:680px){.hg-core-tabs{top:calc(50% + 112px)}.hg-core-shell .hg-core-svg{inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px)}}
@media(prefers-reduced-motion:reduce){.hg-core-shell .hg-register{transition:none!important;transform:none!important}}


/* ===== OWNER VISUAL REVIEW REFINEMENT v0.5.1 =====
   P0 shell-collision repair + Mercurial orientation instrument.
   Website-layer only; native room internals are not redesigned. */

/* Shell collision law: fixed navigation owns a reserved gutter; it never sits on live room content. */
body.mercurial-shell-mounted{--hg-shell-safe:88px;--hg-shell-safe-mobile:70px}
@media(min-width:901px){
  body.mercurial-shell-mounted{padding-left:var(--hg-shell-safe)!important}
  body.mercurial-shell-mounted>.site-header{margin-left:calc(-1 * var(--hg-shell-safe));padding-left:var(--hg-shell-safe)}
  .mercurial-section-label{left:18px;bottom:10px;width:48px;max-width:48px;height:128px;padding:8px 3px;writing-mode:vertical-rl;transform:rotate(180deg);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-left:0;border-top:1px solid rgba(210,173,104,.28);background:linear-gradient(180deg,rgba(3,6,7,.86),rgba(3,6,7,0));}
}
@media(min-width:621px) and (max-width:900px){
  body.mercurial-shell-mounted{padding-right:68px!important}
  body.mercurial-shell-mounted>.site-header{margin-right:-68px;padding-right:68px}
}
@media(max-width:620px){
  body.mercurial-shell-mounted{padding-bottom:var(--hg-shell-safe-mobile)!important}
  .mercurial-rail{box-shadow:0 -18px 46px rgba(0,0,0,.48),inset 0 0 32px rgba(183,226,231,.018)}
}

/* The central Court is now an orientation instrument, not a static routing diagram. */
.orientation-axis{min-height:690px;padding:26px 24px 22px;display:grid;grid-template-rows:auto 1fr auto auto;gap:12px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 47%,rgba(167,238,240,.065),transparent 31%),linear-gradient(180deg,rgba(11,16,18,.90),rgba(3,6,7,.97))}
.orientation-axis::before{content:"";position:absolute;inset:11px;border:1px solid rgba(210,173,104,.07);clip-path:polygon(4% 0,96% 0,100% 4%,100% 96%,96% 100%,4% 100%,0 96%,0 4%);pointer-events:none}
.orientation-head{position:relative;z-index:3;display:grid;grid-template-columns:1fr minmax(180px,.9fr);column-gap:24px;align-items:end;border-bottom:1px solid rgba(167,238,240,.10);padding:2px 2px 15px}.orientation-eyebrow{grid-column:1/3;color:#d2ad68;font:600 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.17em;text-transform:uppercase}.orientation-head h2{font:400 clamp(1.85rem,3vw,3.1rem)/.96 Georgia,serif;margin:7px 0 0;color:#eef6f5}.orientation-head p{margin:0;color:#8fa0a4;font-size:.78rem;line-height:1.55;max-width:360px}.orientation-head kbd{font:600 8px/1 ui-monospace,Consolas,monospace;border:1px solid rgba(167,238,240,.18);padding:2px 4px;color:#c7d4d6;background:#070b0c}
.orientation-chamber{position:relative;min-height:390px;display:grid;place-items:center;touch-action:none;cursor:grab;outline:none;perspective:900px;z-index:2}.orientation-chamber.dragging{cursor:grabbing}.orientation-chamber:focus-visible{box-shadow:inset 0 0 0 1px rgba(167,238,240,.45)}
.orientation-index{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:8;display:grid;justify-items:center;gap:5px;color:#8fa1a5;font:600 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.16em}.orientation-index span{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:0;border-bottom:9px solid #d2ad68;filter:drop-shadow(0 0 8px rgba(210,173,104,.28))}
.orientation-portal{position:absolute;width:min(76%,430px);aspect-ratio:1;border-radius:50%;transform:rotateX(4deg);border:1px solid rgba(167,238,240,.12);box-shadow:0 0 0 28px rgba(167,238,240,.014),0 0 0 62px rgba(210,173,104,.009),0 30px 100px rgba(0,0,0,.52),inset 0 0 100px rgba(0,0,0,.78);transition:border-color .55s ease,box-shadow .55s ease,transform .55s ease;background:radial-gradient(circle at 50% 48%,rgba(207,236,238,.045),rgba(5,9,10,.58) 32%,rgba(2,4,5,.96) 72%)}
.portal-aperture{position:absolute;inset:28%;border-radius:50%;border:1px solid rgba(218,234,235,.18);background:radial-gradient(circle at 40% 34%,rgba(255,255,255,.08),rgba(14,24,26,.85) 24%,rgba(2,4,5,.98) 68%);box-shadow:inset 0 0 48px rgba(167,238,240,.07),0 0 36px rgba(167,238,240,.04);transition:inset .55s ease,transform .55s ease,background .55s ease,box-shadow .55s ease}
.portal-aperture::after{content:"";position:absolute;left:50%;top:15%;bottom:15%;width:1px;background:linear-gradient(transparent,rgba(226,246,247,.35),rgba(167,238,240,.08),transparent);opacity:.65}
.orientation-orbit{position:absolute;left:50%;top:50%;border:1px solid rgba(167,238,240,.15);border-radius:50%;transform-origin:center;transition:transform .65s cubic-bezier(.2,.8,.2,1),border-color .55s ease,opacity .55s ease}.orbit-a{width:86%;height:38%;transform:translate(-50%,-50%) rotate(12deg)}.orbit-b{width:72%;height:56%;transform:translate(-50%,-50%) rotate(63deg);border-color:rgba(210,173,104,.12)}.orbit-c{width:58%;height:88%;transform:translate(-50%,-50%) rotate(-34deg);opacity:.7}
.portal-stars,.portal-wave,.portal-archive,.portal-seam{position:absolute;inset:9%;border-radius:50%;opacity:0;transition:opacity .5s ease,transform .65s ease;pointer-events:none}.portal-stars{background-image:radial-gradient(circle at 18% 29%,#c8f5f6 0 1px,transparent 1.5px),radial-gradient(circle at 76% 24%,#d7b86f 0 1px,transparent 1.5px),radial-gradient(circle at 68% 76%,#dceff0 0 1px,transparent 1.5px),radial-gradient(circle at 30% 70%,#9debf0 0 1px,transparent 1.5px)}.portal-wave{inset:34% 9%;border-radius:0;border-top:1px solid rgba(167,238,240,.23);border-bottom:1px solid rgba(210,173,104,.12);transform:skewY(-7deg)}.portal-archive{inset:20% 12%;border-radius:0;background:repeating-linear-gradient(180deg,transparent 0 17px,rgba(210,173,104,.09) 18px,transparent 19px)}.portal-seam{inset:18%;border-radius:47% 53% 46% 54%;border:1px dashed rgba(167,238,240,.18);transform:rotate(19deg)}
.orientation-dial{position:absolute;inset:0;z-index:6;--dial-turn:0deg}.orientation-dial:not(.no-animate) .orientation-node{transition:transform .62s cubic-bezier(.2,.8,.2,1),opacity .35s ease,color .35s ease}.orientation-node{position:absolute;left:50%;top:50%;width:86px;min-height:30px;border:0;background:transparent;color:#72868b;font:600 7px/1.1 ui-monospace,Consolas,monospace;letter-spacing:.11em;text-transform:uppercase;cursor:pointer;display:grid;grid-template-columns:9px 1fr;gap:6px;align-items:center;text-align:left;padding:0;z-index:4}.orientation-node i{width:7px;height:7px;border-radius:50%;border:1px solid rgba(167,238,240,.30);background:#071012;box-shadow:0 0 0 4px rgba(167,238,240,.012)}.orientation-node.active{color:#eef8f8}.orientation-node.active i{background:#d9f6f7;border-color:#d9f6f7;box-shadow:0 0 14px rgba(167,238,240,.68),0 0 0 5px rgba(167,238,240,.025)}.orientation-node:hover,.orientation-node:focus-visible{outline:none;color:#fff}.orientation-node:hover i,.orientation-node:focus-visible i{border-color:#d2ad68}
.relation-geometry{position:absolute;left:50%;top:50%;width:228px;height:228px;transform:translate(-50%,-50%);overflow:visible;z-index:2;pointer-events:none}.relation-geometry g{fill:none;stroke:rgba(167,238,240,.20);stroke-width:1;vector-effect:non-scaling-stroke;transform-origin:120px 120px;transition:opacity .35s ease,transform .5s ease}.relation-geometry circle{fill:#050909;stroke:rgba(210,173,104,.48)}.orientation-axis[data-register="branch"] [data-register-layer="shell"],.orientation-axis[data-register="branch"] [data-register-layer="seal"],.orientation-axis[data-register="shell"] [data-register-layer="branch"],.orientation-axis[data-register="shell"] [data-register-layer="seal"],.orientation-axis[data-register="seal"] [data-register-layer="branch"],.orientation-axis[data-register="seal"] [data-register-layer="shell"]{opacity:0}.orientation-axis[data-register="branch"] [data-register-layer="branch"],.orientation-axis[data-register="shell"] [data-register-layer="shell"],.orientation-axis[data-register="seal"] [data-register-layer="seal"]{opacity:1}.orientation-axis[data-register="shell"] [data-register-layer="shell"]{transform:rotate(13deg)}.orientation-axis[data-register="seal"] [data-register-layer="seal"]{transform:rotate(-10deg)}
.orientation-spindle{position:absolute;left:50%;top:50%;width:96px;height:96px;transform:translate(-50%,-50%);border-radius:50%;border:1px solid rgba(210,173,104,.30);background:radial-gradient(circle at 38% 30%,rgba(255,255,255,.07),rgba(7,12,13,.97) 35%,#020405 72%);display:grid;place-items:center;align-content:center;gap:4px;color:#eff8f7;z-index:5;cursor:pointer;box-shadow:0 0 0 9px rgba(167,238,240,.012),0 0 38px rgba(167,238,240,.06),inset 0 0 28px rgba(210,173,104,.035)}.orientation-spindle span{font:400 44px/1 Georgia,serif;line-height:.82}.orientation-spindle small{color:#89999d;font:600 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.13em}.orientation-spindle:hover,.orientation-spindle:focus-visible{outline:none;border-color:rgba(167,238,240,.65);box-shadow:0 0 0 10px rgba(167,238,240,.018),0 0 46px rgba(167,238,240,.15),inset 0 0 28px rgba(210,173,104,.045)}
.orientation-readout{position:relative;z-index:8;display:grid;grid-template-columns:minmax(170px,.7fr) minmax(190px,1fr);grid-template-rows:auto auto;gap:5px 18px;border-top:1px solid rgba(167,238,240,.13);border-bottom:1px solid rgba(167,238,240,.08);padding:14px 2px 13px}.orientation-readout>span{grid-column:1;color:#d2ad68;font:600 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.15em;text-transform:uppercase}.orientation-readout>strong{grid-column:1;font:400 1.55rem/1 Georgia,serif;color:#eef6f5}.orientation-readout>p{grid-column:2;grid-row:1/3;margin:0;color:#8ea0a4;font-size:.76rem;line-height:1.5;padding-right:8px}.orientation-actions{grid-column:1/3;display:grid;grid-template-columns:42px 1fr 42px;gap:6px;margin-top:6px}.orientation-actions button,.orientation-actions a{min-height:38px;border:1px solid rgba(167,238,240,.16);background:rgba(4,8,9,.84);color:#c7d5d7;display:grid;place-items:center;text-decoration:none;font:600 8px/1 ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}.orientation-actions a{border-color:rgba(210,173,104,.36);color:#e8d8b3}.orientation-actions button:hover,.orientation-actions button:focus-visible,.orientation-actions a:hover,.orientation-actions a:focus-visible{outline:none;border-color:rgba(167,238,240,.62);color:#fff;background:rgba(167,238,240,.035)}
.orientation-register{position:relative;z-index:8;display:flex;align-items:center;justify-content:center;gap:5px;padding-top:2px}.orientation-register>span{margin-right:6px;color:#64777b;font:600 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.12em}.orientation-register button{border:1px solid rgba(167,238,240,.11);background:transparent;color:#63777b;padding:5px 7px;font:600 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.1em;cursor:pointer}.orientation-register button[aria-pressed="true"]{border-color:rgba(210,173,104,.42);color:#e1c992;background:rgba(210,173,104,.03)}.orientation-register button:hover,.orientation-register button:focus-visible{outline:none;color:#eef8f8;border-color:rgba(167,238,240,.45)}
/* Directional visual states. These are navigation-state representations, not physical claims. */
.orientation-axis[data-orient-key="laboratories"] .orientation-portal{border-color:rgba(167,238,240,.24);transform:rotateX(8deg)}.orientation-axis[data-orient-key="laboratories"] .orbit-a{transform:translate(-50%,-50%) rotate(4deg) scaleX(1.08)}.orientation-axis[data-orient-key="laboratories"] .orbit-b{transform:translate(-50%,-50%) rotate(72deg) scaleY(1.08)}
.orientation-axis[data-orient-key="academy"] .orientation-portal{box-shadow:0 0 0 28px rgba(167,238,240,.012),0 0 0 72px rgba(167,238,240,.012),0 30px 100px rgba(0,0,0,.52),inset 0 0 100px rgba(0,0,0,.76)}.orientation-axis[data-orient-key="academy"] .portal-aperture{inset:24%}.orientation-axis[data-orient-key="academy"] .orbit-c{transform:translate(-50%,-50%) rotate(-22deg) scale(1.12)}
.orientation-axis[data-orient-key="observation"] .portal-stars{opacity:1}.orientation-axis[data-orient-key="observation"] .portal-aperture{inset:22%;background:radial-gradient(circle at 42% 35%,rgba(234,248,249,.10),rgba(7,16,20,.78) 35%,rgba(1,4,6,.98) 72%);box-shadow:inset 0 0 52px rgba(167,238,240,.10),0 0 44px rgba(167,238,240,.06)}
.orientation-axis[data-orient-key="puzzle"] .portal-seam{opacity:1;transform:rotate(31deg)}.orientation-axis[data-orient-key="puzzle"] .orbit-a{transform:translate(-50%,-50%) rotate(23deg) scaleX(.88)}.orientation-axis[data-orient-key="puzzle"] .orbit-b{transform:translate(-50%,-50%) rotate(81deg) scaleY(1.12)}
.orientation-axis[data-orient-key="stories"] .orientation-portal{border-color:rgba(210,173,104,.22);transform:rotateX(-7deg)}.orientation-axis[data-orient-key="stories"] .portal-aperture{inset:32%;transform:translateY(8px);background:radial-gradient(circle at 50% 25%,rgba(210,173,104,.07),rgba(8,8,7,.92) 38%,#020303 72%)}.orientation-axis[data-orient-key="stories"] .orbit-c{transform:translate(-50%,-50%) rotate(-45deg) scaleY(1.15);border-color:rgba(210,173,104,.18)}
.orientation-axis[data-orient-key="atelier"] .orientation-portal{border-color:rgba(210,173,104,.29);box-shadow:0 0 0 28px rgba(210,173,104,.015),0 0 0 62px rgba(210,173,104,.01),0 30px 100px rgba(0,0,0,.52),inset 0 0 100px rgba(0,0,0,.76)}.orientation-axis[data-orient-key="atelier"] .portal-aperture{background:radial-gradient(circle at 40% 34%,rgba(255,245,220,.08),rgba(23,17,10,.90) 34%,#030303 72%)}
.orientation-axis[data-orient-key="library"] .portal-archive{opacity:1}.orientation-axis[data-orient-key="library"] .portal-aperture{inset:34%;transform:translateY(11px)}.orientation-axis[data-orient-key="library"] .orbit-a{opacity:.45;transform:translate(-50%,-50%) rotate(0deg) scaleY(.55)}.orientation-axis[data-orient-key="library"] .orbit-b{opacity:.55;transform:translate(-50%,-50%) rotate(0deg) scaleY(.72)}
.orientation-axis[data-orient-key="music"] .portal-wave{opacity:1}.orientation-axis[data-orient-key="music"] .portal-aperture{inset:30%;transform:scale(.92)}.orientation-axis[data-orient-key="music"] .orbit-a{transform:translate(-50%,-50%) rotate(18deg) scaleX(1.1)}.orientation-axis[data-orient-key="music"] .orbit-b{transform:translate(-50%,-50%) rotate(-18deg) scaleX(1.14)}.orientation-axis[data-orient-key="music"] .orbit-c{transform:translate(-50%,-50%) rotate(86deg) scaleY(.74)}

@media(max-width:1050px){.orientation-axis{min-height:680px}.orientation-chamber{min-height:385px}}
@media(max-width:680px){.orientation-axis{min-height:700px;padding:20px 14px}.orientation-head{grid-template-columns:1fr;gap:8px}.orientation-eyebrow{grid-column:auto}.orientation-head p{max-width:none}.orientation-chamber{min-height:390px}.orientation-portal{width:min(84vw,350px)}.relation-geometry{width:190px;height:190px}.orientation-spindle{width:82px;height:82px}.orientation-spindle span{font-size:38px}.orientation-node{width:70px;font-size:6.5px}.orientation-readout{grid-template-columns:1fr}.orientation-readout>span,.orientation-readout>strong,.orientation-readout>p,.orientation-actions{grid-column:1;grid-row:auto}.orientation-register{flex-wrap:wrap}.orientation-register>span{width:100%;text-align:center;margin:0 0 3px}}
@media(prefers-reduced-motion:reduce){.orientation-node,.orientation-portal,.portal-aperture,.orientation-orbit,.portal-stars,.portal-wave,.portal-archive,.portal-seam,.relation-geometry g{transition:none!important}.orientation-chamber{scroll-behavior:auto}}
/* Mobile refinement: keep the Mercurial signature in a dedicated right gutter rather than laying a fixed bar across live content. */
@media(max-width:620px){
  body.mercurial-shell-mounted{padding-right:52px!important;padding-bottom:0!important}
  body.mercurial-shell-mounted>.site-header{margin-right:-52px;padding-right:52px}
  .mercurial-rail{left:auto!important;right:5px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:42px!important;height:auto!important;min-height:278px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;justify-items:center!important;gap:5px!important;padding:7px 4px!important;border-radius:0!important;clip-path:polygon(22% 0,78% 0,100% 4%,100% 96%,78% 100%,22% 100%,0 96%,0 4%)!important;opacity:.9}
  .mercurial-rail::before{left:50%!important;right:auto!important;top:52px!important;bottom:52px!important;width:1px!important;height:auto!important}
  .mercurial-route{writing-mode:vertical-rl!important;text-orientation:mixed!important;min-height:66px!important;height:auto!important;font-size:7px!important;letter-spacing:.14em!important;padding:4px 2px!important}
  .mercurial-route.ascend{transform:rotate(180deg)!important}
  .mercurial-core{width:36px!important;height:96px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:22px 46px 22px!important}
  .mercurial-step{width:22px!important;height:22px!important;font-size:11px!important}
  .mercurial-glyph{width:38px!important;height:38px!important;font-size:23px!important}
  .mercury-bead{display:none!important}
}
/* Collision-audit hardening: status text remains available to assistive tech but no longer floats over native return controls. */
body.mercurial-shell-mounted{overflow-x:hidden!important}
.mercurial-section-label{width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;background:transparent!important}
/* Observation Quarters keeps its accepted internal composition while the website wrapper reserves the Mercurial rail gutter. */
@media(min-width:901px){
  body.mercurial-shell-mounted>.stage-wrap{width:calc(100vw - var(--hg-shell-safe))!important}
  body.mercurial-shell-mounted>.stage-wrap>.stage{width:min(calc(100vw - var(--hg-shell-safe)),177.68vh)!important}
}
@media(min-width:621px) and (max-width:900px){
  body.mercurial-shell-mounted>.stage-wrap{width:calc(100vw - 68px)!important}
  body.mercurial-shell-mounted>.stage-wrap>.stage{width:min(calc(100vw - 68px),177.68vh)!important}
}
@media(max-width:620px){
  body.mercurial-shell-mounted>.stage-wrap{width:calc(100vw - 52px)!important}
  body.mercurial-shell-mounted>.stage-wrap>.stage{width:min(calc(100vw - 52px),177.68vh)!important}
}
html{overflow-x:hidden!important}
@media(max-width:620px){
  body.mercurial-shell-mounted .topbar>div{min-width:0;max-width:100%}
  body.mercurial-shell-mounted #motionBtn{max-width:100%!important}
}
/* Authored narrow composition: keep every primary destination visible and put the Court instrument before secondary doors. */
@media(max-width:620px){
  body.mercurial-shell-mounted .header-inner{flex-wrap:wrap;align-items:flex-start;gap:.35rem;padding:.5rem 0 .6rem}
  body.mercurial-shell-mounted .primary-nav{width:100%;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;justify-content:stretch}
  body.mercurial-shell-mounted .primary-nav a{min-width:0;padding:.42rem .18rem;text-align:center;font-size:.52rem;letter-spacing:.06em;white-space:nowrap}
  .court-core{display:flex!important;flex-direction:column!important}
  .court-core>.orientation-axis{order:1;margin-bottom:12px}
  .court-core>.left-stack{order:2}
  .court-core>.right-stack{order:3}
}
@media(min-width:480px) and (max-width:620px){body.mercurial-shell-mounted .primary-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ===== OWNER REFINEMENT v0.5.2 =====
   Central Court copy hygiene + non-duplicated orientation + functional rail + user-triggered sonic feedback. */
.mercurial-route{appearance:none;border:0;background:transparent;cursor:pointer}
.mercurial-route.is-sealed{opacity:.28;cursor:not-allowed;color:#617176;text-shadow:none}
.mercurial-route.is-sealed:hover,.mercurial-route.is-sealed:focus-visible{outline:none;color:#617176;text-shadow:none}

/* Central Court: one proposition, one instrument, no duplicate destination cards. */
body.court-v052 .court-shell{width:min(1180px,calc(100% - 40px));padding-top:42px}
body.court-v052 .court-head{display:block;margin:0 auto 18px;max-width:1040px;padding:0 10px 18px;border-bottom:1px solid rgba(167,238,240,.10)}
body.court-v052 .court-head h1{font-size:clamp(3.9rem,7.2vw,7.2rem);line-height:.88;margin:.28rem 0 .75rem;letter-spacing:-.035em}
body.court-v052 .court-head p{max-width:650px;margin:0;color:#9eaaad;font-size:.96rem;line-height:1.6}
body.court-v052 .court-core{display:block;max-width:1040px;margin:0 auto}
body.court-v052 .orientation-axis{min-height:760px;margin:0;clip-path:polygon(3% 0,97% 0,100% 3%,100% 97%,97% 100%,3% 100%,0 97%,0 3%)}
body.court-v052 .orientation-head{grid-template-columns:auto 1fr auto;align-items:center;column-gap:18px;padding:5px 2px 14px}
body.court-v052 .orientation-head .orientation-eyebrow{grid-column:auto;white-space:nowrap}
body.court-v052 .orientation-head p{margin:0;max-width:none;color:#87989c;font-size:.74rem;line-height:1.5}
.orientation-sound{appearance:none;border:1px solid rgba(167,238,240,.15);background:rgba(4,8,9,.72);color:#91a5a9;min-height:34px;padding:0 10px;font:600 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.13em;text-transform:uppercase;cursor:pointer}
.orientation-sound[aria-pressed="true"]{border-color:rgba(210,173,104,.34);color:#e0c890;box-shadow:inset 0 0 18px rgba(210,173,104,.025)}
.orientation-sound:hover,.orientation-sound:focus-visible{outline:none;border-color:rgba(167,238,240,.5);color:#f0fbfb}
body.court-v052 .orientation-chamber{min-height:470px}
body.court-v052 .orientation-portal{width:min(58%,480px)}
body.court-v052 .orientation-readout{margin-top:2px}
body.court-v052 .orientation-register{padding-top:8px}

@media(max-width:900px){
  body.court-v052 .court-shell{width:min(100% - 24px,900px);padding-top:28px}
  body.court-v052 .orientation-axis{min-height:720px}
  body.court-v052 .orientation-head{grid-template-columns:1fr auto;row-gap:8px}
  body.court-v052 .orientation-head .orientation-eyebrow{grid-column:1/3}
  body.court-v052 .orientation-head p{grid-column:1}
  body.court-v052 .orientation-sound{grid-column:2;grid-row:2}
}
@media(max-width:620px){
  body.court-v052 .court-shell{width:calc(100% - 18px);padding-top:22px}
  body.court-v052 .court-head{padding:0 2px 14px;margin-bottom:12px}
  body.court-v052 .court-head h1{font-size:clamp(3rem,16vw,4.8rem)}
  body.court-v052 .court-head p{font-size:.82rem}
  body.court-v052 .orientation-axis{min-height:720px;padding:18px 12px}
  body.court-v052 .orientation-head{grid-template-columns:1fr;gap:8px}
  body.court-v052 .orientation-head .orientation-eyebrow,body.court-v052 .orientation-head p,body.court-v052 .orientation-sound{grid-column:1;grid-row:auto}
  body.court-v052 .orientation-sound{justify-self:start}
  body.court-v052 .orientation-chamber{min-height:405px}
  body.court-v052 .orientation-portal{width:min(82vw,370px)}
}


/* ===== OWNER REFINEMENT v0.5.4 =====
   Final shared-shell hardening candidate before broad propagation.
   - HOME is a threshold, not a second Court.
   - campus-band no longer duplicates the spatial rail/top navigation.
   - direct navigation remains available on narrow screens.
*/

/* Home / threshold: one job, one door. */
.threshold-stage{display:grid;place-items:center;padding:clamp(36px,7vw,96px) 24px;min-height:calc(100vh - 68px)}
.threshold-shell{position:relative;z-index:2;width:min(980px,100%);min-height:min(720px,calc(100vh - 130px));display:grid;align-content:center;justify-items:start;padding:clamp(36px,6vw,82px);border:1px solid rgba(167,238,240,.10);background:radial-gradient(circle at 72% 48%,rgba(167,238,240,.04),transparent 28%),linear-gradient(145deg,rgba(7,11,12,.84),rgba(2,4,5,.96));box-shadow:0 35px 110px rgba(0,0,0,.46),inset 0 0 90px rgba(167,238,240,.015);clip-path:polygon(2% 0,98% 0,100% 3%,100% 97%,98% 100%,2% 100%,0 97%,0 3%)}
.threshold-shell::after{content:"";position:absolute;right:11%;top:50%;width:min(36vw,360px);aspect-ratio:1;transform:translateY(-50%);border:1px solid rgba(167,238,240,.10);border-radius:50%;box-shadow:0 0 0 28px rgba(167,238,240,.012),0 0 0 58px rgba(210,173,104,.008),inset 0 0 72px rgba(0,0,0,.78);pointer-events:none}
.threshold-shell h1{position:relative;z-index:2;margin:.4rem 0 .8rem;font:400 clamp(4rem,8.2vw,8.3rem)/.84 Georgia,serif;letter-spacing:-.045em;color:#ede8dc;max-width:720px}
.threshold-lead{position:relative;z-index:2;margin:0;max-width:570px;color:#9aa8aa;font-size:clamp(.92rem,1.4vw,1.08rem);line-height:1.65}
.threshold-door{position:relative;z-index:3;margin-top:34px;display:grid;grid-template-columns:54px auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;text-decoration:none;color:#e9eeee;padding:13px 18px 13px 12px;border:1px solid rgba(167,238,240,.20);background:rgba(3,7,8,.76);box-shadow:0 14px 40px rgba(0,0,0,.28);transition:border-color .2s ease,transform .2s ease,background .2s ease}
.threshold-door:hover,.threshold-door:focus-visible{outline:none;border-color:rgba(210,173,104,.52);background:rgba(7,11,12,.9);transform:translateY(-2px)}
.threshold-ring{grid-row:1/3;width:54px;height:54px;border:1px solid rgba(210,173,104,.42);border-radius:50%;display:grid;place-items:center;color:#e9e6db;font:400 30px/1 Georgia,serif;box-shadow:inset 0 0 26px rgba(167,238,240,.035),0 0 26px rgba(0,0,0,.28)}
.threshold-door strong{font:600 10px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.16em}.threshold-door small{margin-top:5px;color:#6f8589;font:600 8px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.14em}

/* Old campus movement strip becomes a breadcrumb only. The top nav is direct access;
   the fixed Mercury rail is spatial access. A third route list is redundant. */
body.mercurial-shell-mounted .campus-band{min-height:0!important;height:auto!important;display:block!important;padding:7px 14px!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(167,238,240,.08)!important;background:rgba(3,6,7,.72)!important;overflow:hidden!important}
body.mercurial-shell-mounted .campus-band .moves{display:none!important}
body.mercurial-shell-mounted .campus-band .where{display:block!important;margin:0!important;padding:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#71858a!important;font:600 8px/1.35 ui-monospace,Consolas,monospace!important;letter-spacing:.11em!important;text-transform:uppercase!important}
body.mercurial-shell-mounted .campus-band .where strong{color:#b7c7c9!important;font-weight:600!important}

/* Preserve direct/category navigation on narrow screens across native header variants. */
@media(max-width:620px){
  .threshold-stage{padding:18px 10px;min-height:calc(100vh - 112px)}
  .threshold-shell{min-height:calc(100vh - 150px);padding:32px 18px;clip-path:polygon(3% 0,97% 0,100% 2%,100% 98%,97% 100%,3% 100%,0 98%,0 2%)}
  .threshold-shell::after{right:-22%;width:76vw;opacity:.7}
  .threshold-shell h1{font-size:clamp(3.15rem,16vw,5.2rem);max-width:100%}
  .threshold-lead{max-width:82%;font-size:.84rem}
  .threshold-door{margin-top:26px;grid-template-columns:46px minmax(0,1fr);padding:10px 12px 10px 9px;max-width:86%}
  .threshold-ring{width:46px;height:46px;font-size:26px}
  body.mercurial-shell-mounted .campus-band{padding:6px 8px!important}
  body.mercurial-shell-mounted .campus-band .where{font-size:7px!important;letter-spacing:.08em!important}
  body.mercurial-shell-mounted .primary-nav,
  body.mercurial-shell-mounted.music-room header nav,
  body.mercurial-shell-mounted.academy-room .academy-nav{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;overflow:visible!important;justify-content:stretch!important}
  body.mercurial-shell-mounted .primary-nav a,
  body.mercurial-shell-mounted.music-room header nav a,
  body.mercurial-shell-mounted.academy-room .academy-nav a{min-width:0!important;padding:.42rem .12rem!important;text-align:center!important;font-size:.49rem!important;letter-spacing:.045em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

@media(prefers-reduced-motion:reduce){.threshold-door{transition:none!important}.threshold-door:hover,.threshold-door:focus-visible{transform:none!important}}

/* v0.6.7 — old-site preservation reconciliation: explain the retained Court relation registers without claiming equivalence. */
.orientation-register-reading{max-width:620px;margin:.55rem auto 0;padding:.65rem .85rem;border-top:1px solid rgba(167,238,240,.16);text-align:center;display:grid;gap:.28rem}
.orientation-register-reading strong{font:600 .68rem/1.35 var(--sans,ui-sans-serif,system-ui,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:rgba(217,239,241,.88)}
.orientation-register-reading span{font:400 .64rem/1.45 var(--sans,ui-sans-serif,system-ui,sans-serif);letter-spacing:.06em;color:rgba(186,195,194,.7)}
@media(max-width:620px){.orientation-register-reading{margin-top:.4rem;padding:.5rem .55rem}.orientation-register-reading strong{font-size:.62rem}.orientation-register-reading span{font-size:.58rem}}

/* WEB CHAMBER v0.7.14 — owner correction / rail consistency.
   Normalize ASCEND/DESCEND across native rooms whose button styles previously leaked into the rail. */
.mercurial-rail .mercurial-route{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  min-height:82px!important;
  height:82px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  padding:6px 4px!important;
  background:transparent!important;
  color:#b8c7ca!important;
  font-family:ui-monospace,Consolas,monospace!important;
  font-size:8px!important;
  font-weight:600!important;
  font-style:normal!important;
  line-height:1!important;
  letter-spacing:.19em!important;
  text-transform:uppercase!important;
  writing-mode:vertical-rl!important;
  text-orientation:mixed!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.mercurial-rail .mercurial-route.ascend{transform:rotate(180deg)!important}
.mercurial-rail .mercurial-route.descend{transform:none!important}
.mercurial-rail .mercurial-route:hover,
.mercurial-rail .mercurial-route:focus-visible{color:#f2fbfc!important;text-shadow:0 0 16px rgba(167,238,240,.55)!important;outline:none!important}
.mercurial-rail .mercurial-route.is-sealed{opacity:.38!important;cursor:not-allowed!important}
@media(max-width:620px){
  .mercurial-rail .mercurial-route{
    writing-mode:horizontal-tb!important;
    text-orientation:mixed!important;
    width:72px!important;min-width:72px!important;max-width:72px!important;
    min-height:35px!important;height:35px!important;
    padding:5px 6px!important;
  }
  .mercurial-rail .mercurial-route.ascend{transform:none!important}
}

/* v0.7.15 final threshold QA: primary navigation remains quiet but comfortably readable. */
body.mercurial-shell-mounted .primary-nav a,.site-header .primary-nav a{font-size:.70rem;letter-spacing:.10em}
@media(max-width:620px){body.mercurial-shell-mounted .primary-nav a,.site-header .primary-nav a{font-size:.58rem!important;letter-spacing:.06em!important}}

/* V6 identity repair — one Hg mark, one visual language across wrapper and custom rooms. */
.site-header .brand-mark::after,
body.campus-shell .brand-mark::after{content:none!important;display:none!important}
.mw-sitebar .mw-hg,
.brand.cabinet-home .hg{
  width:34px!important;height:34px!important;border-radius:2px!important;
  border:1px solid rgba(207,175,110,.56)!important;
  color:#efe8d9!important;background:linear-gradient(145deg,rgba(18,17,14,.94),rgba(4,6,6,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),inset 0 0 20px rgba(207,175,110,.035),0 0 20px rgba(0,0,0,.18)!important;
  font:400 18px/1 Georgia,serif!important;text-transform:none!important;letter-spacing:0!important;
}
.mw-sitebar .mw-brand,.brand.cabinet-home{gap:11px!important}


/* AYLA-FORWARD GAP CLOSEOUT R2 — persistent global navigation only */
nav[aria-label="Primary"]{align-items:center;gap:.12rem;}
nav[aria-label="Primary"] a{font-size:13px!important;line-height:1.2!important;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:.58rem .58rem!important;white-space:nowrap;text-decoration:none;}
nav[aria-label="Primary"] a:hover,nav[aria-label="Primary"] a:focus-visible,nav[aria-label="Primary"] a[aria-current="page"]{color:var(--gold2,#ead39a)!important;border-color:var(--gold,#c9a85e)!important;}
@media(max-width:1050px){
  .site-header .header-inner,.academy-header-inner{flex-wrap:wrap!important;}
  nav[aria-label="Primary"]{width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;overflow:visible!important;}
  nav[aria-label="Primary"] a{min-width:0!important;text-align:center!important;}
}
@media(max-width:560px){
  nav[aria-label="Primary"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  nav[aria-label="Primary"] a{font-size:13px!important;min-height:42px!important;padding:.52rem .35rem!important;letter-spacing:.07em!important;}
}


/* ===== MOBILE HARDENING R1 — full-width authored mobile composition =====
   On phones/tablets the Mercurial rail becomes a compact bottom control.
   No permanent side gutter is reserved from live room content. */
@media(max-width:900px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.mercurial-shell-mounted{
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:72px!important;
  }
  body.mercurial-shell-mounted>.site-header{
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.mercurial-shell-mounted>.stage-wrap{
    width:100%!important;
    max-width:100%!important;
  }
  body.mercurial-shell-mounted>.stage-wrap>.stage{
    width:100%!important;
    max-width:100%!important;
  }
  body.mercurial-shell-mounted :where(main,section,article,aside,header,footer,nav,div,figure){
    min-width:0;
  }
  body.mercurial-shell-mounted :where(img,svg,canvas,video){
    max-width:100%;
  }

  .mercurial-rail{
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    transform:translateX(-50%)!important;
    width:min(360px,calc(100vw - 16px))!important;
    min-height:0!important;
    height:52px!important;
    display:grid!important;
    grid-template-columns:minmax(64px,1fr) 126px minmax(64px,1fr)!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    justify-items:stretch!important;
    gap:4px!important;
    padding:5px 7px!important;
    clip-path:none!important;
    border-radius:2px!important;
    opacity:.96!important;
    box-shadow:0 -12px 36px rgba(0,0,0,.46),inset 0 0 28px rgba(183,226,231,.018)!important;
  }
  .mercurial-rail::before{
    left:64px!important;
    right:64px!important;
    top:50%!important;
    bottom:auto!important;
    width:auto!important;
    height:1px!important;
  }
  .mercurial-rail::after{display:none!important}
  .mercurial-route,
  .mercurial-rail .mercurial-route{
    writing-mode:horizontal-tb!important;
    text-orientation:mixed!important;
    transform:none!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 6px!important;
    font-size:8px!important;
    letter-spacing:.12em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .mercurial-core{
    width:126px!important;
    height:42px!important;
    display:grid!important;
    grid-template-columns:32px 54px 32px!important;
    grid-template-rows:42px!important;
    align-items:center!important;
    justify-items:center!important;
  }
  .mercurial-step{
    width:30px!important;
    height:30px!important;
    font-size:13px!important;
  }
  .mercurial-glyph{
    width:42px!important;
    height:42px!important;
    font-size:24px!important;
  }
  .mercury-bead{display:none!important}
}
@media(max-width:560px){
  body.mercurial-shell-mounted{padding-bottom:70px!important}
  body.mercurial-shell-mounted .header-inner{
    width:calc(100% - 20px)!important;
    max-width:100%!important;
  }
  body.mercurial-shell-mounted .primary-nav{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
  }
  body.mercurial-shell-mounted .primary-nav a{
    min-width:0!important;
    width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.15!important;
    padding:.55rem .3rem!important;
  }
  .mercurial-rail{
    width:calc(100vw - 12px)!important;
    grid-template-columns:minmax(58px,1fr) 118px minmax(58px,1fr)!important;
    gap:2px!important;
    padding-inline:5px!important;
  }
  .mercurial-core{
    width:118px!important;
    grid-template-columns:30px 50px 30px!important;
  }
}


/* ===== MOBILE HARDENING R2 — visual viewport edge containment =====
   Anchor the compact rail to physical insets instead of 100vw so mobile
   browser chrome / visual viewport differences cannot shave the right edge. */
@media(max-width:900px){
  .mercurial-rail{
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
    box-sizing:border-box!important;
  }
}
@media(max-width:560px){
  .mercurial-rail{
    left:max(6px,env(safe-area-inset-left))!important;
    right:max(6px,env(safe-area-inset-right))!important;
    width:auto!important;
  }
}
