:root {
  --ink: #070603;
  --ink-2: #0e0b06;
  --gold: #d7a62b;
  --gold-light: #f5d77b;
  --gold-hot: #ffb21f;
  --ivory: #f2ecdd;
  --muted: rgba(242, 236, 221, 0.46);
  --line: rgba(242, 236, 221, 0.16);
  --panel: rgba(12, 9, 4, 0.56);
  --chapter-pad: clamp(1.25rem, 4.5vw, 5rem);
  --ease-out: cubic-bezier(0.18, 0.78, 0.18, 1);
  --ease-in-out: cubic-bezier(0.72, 0, 0.18, 1);
  --header-height: 5.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-width: none;
  background: var(--ink);
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 15%, rgba(147, 97, 18, 0.12), transparent 35%),
    var(--ink);
  font-family: "Helvetica Neue", "Arial Nova", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  cursor: auto;
  -ms-overflow-style: none;
}

body.is-locked {
  overflow: hidden;
}

body.portal-active {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

button,
a,
[role="button"] {
  cursor: pointer;
}

body.has-pointer,
body.has-pointer button,
body.has-pointer a,
body.has-pointer [role="button"] {
  cursor: none;
}

::selection {
  color: #080603;
  background: var(--gold-light);
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.8rem 1rem;
  color: #070603;
  background: var(--ivory);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#stage,
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#stage {
  z-index: 0;
  background: #050402;
}

#particles {
  z-index: 8;
  pointer-events: none;
  mix-blend-mode: screen;
}

.light-leak {
  position: fixed;
  z-index: 1;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.15;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.light-leak-a {
  top: -32vw;
  left: -20vw;
  background: rgba(255, 170, 31, 0.24);
  animation: leakA 18s ease-in-out infinite alternate;
}

.light-leak-b {
  right: -28vw;
  bottom: -35vw;
  background: rgba(203, 137, 14, 0.2);
  animation: leakB 22s ease-in-out infinite alternate;
}

.film {
  position: fixed;
  z-index: 18;
  inset: -50%;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.18s steps(2) infinite;
  mix-blend-mode: soft-light;
}

.edge-frame {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 228, 157, 0.08);
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.62),
    inset 0 0 24px rgba(0, 0, 0, 0.3);
}

@keyframes grain {
  0% { transform: translate3d(-4%, 3%, 0); }
  25% { transform: translate3d(2%, -2%, 0); }
  50% { transform: translate3d(5%, 4%, 0); }
  75% { transform: translate3d(-2%, -5%, 0); }
  100% { transform: translate3d(3%, 2%, 0); }
}

@keyframes leakA {
  to { transform: translate3d(18vw, 8vw, 0) scale(1.25); opacity: 0.24; }
}

@keyframes leakB {
  to { transform: translate3d(-16vw, -7vw, 0) scale(1.2); opacity: 0.22; }
}

.boot {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: calc(1.25rem + var(--safe-top)) clamp(1.25rem, 4vw, 4rem) calc(1.5rem + var(--safe-bottom));
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 44%, rgba(146, 94, 11, 0.22), transparent 27%),
    linear-gradient(120deg, #060401 0%, #0d0902 47%, #040301 100%);
  transition: clip-path 1.45s var(--ease-in-out), visibility 0s 1.5s;
  clip-path: inset(0 0 0 0);
}

body.is-entered .boot {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.boot__grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(232, 195, 105, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 195, 105, 0.18) 1px, transparent 1px);
  background-size: 5vw 5vw;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.boot__top,
.boot__bottom {
  position: relative;
  z-index: 2;
}

.boot__top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}

.boot__mark {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(48vw, 32rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 236, 221, 0.14);
  transform: rotate(45deg);
  box-shadow:
    0 0 0 1.2rem rgba(255, 214, 118, 0.02),
    0 0 0 4.8rem rgba(255, 214, 118, 0.016);
}

.boot__mark::before,
.boot__mark::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(241, 198, 87, 0.22);
}

.boot__mark::after {
  inset: 22%;
  border-radius: 50%;
  animation: bootSpin 12s linear infinite;
}

.boot__symbol,
.boot__number,
.boot__mass {
  position: absolute;
  transform: rotate(-45deg);
}

.boot__symbol {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 17vw, 13rem);
  font-weight: 400;
  line-height: 0.7;
  letter-spacing: -0.09em;
  background: linear-gradient(150deg, #fff2b7 0%, #d39b1e 43%, #ffe89b 64%, #8c5d08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 45px rgba(211, 155, 30, 0.17);
}

.boot__number {
  top: 10%;
  right: 13%;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
}

.boot__mass {
  left: 12%;
  bottom: 10%;
  font-size: 0.61rem;
  letter-spacing: 0.18em;
}

.boot__bottom {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(16rem, 1fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 3rem);
}

.boot__progress {
  height: 1px;
  overflow: hidden;
  background: rgba(242, 236, 221, 0.17);
}

.boot__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #7c4d00, var(--gold-light));
  box-shadow: 0 0 18px var(--gold);
  transition: width 0.12s linear;
}

.boot__count {
  min-width: 5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.boot__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
}

.enter-button,
.text-button {
  border: 0;
  background: transparent;
}

.enter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 0;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.enter-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.55s var(--ease-out);
}

.enter-button:hover::after,
.enter-button:focus-visible::after {
  transform: scaleX(1);
}

.enter-button svg {
  width: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.enter-button:disabled,
.text-button:disabled {
  opacity: 0.28;
}

.text-button {
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

@keyframes bootSpin {
  to { transform: rotate(360deg); }
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--header-height) + var(--safe-top));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--safe-top) var(--chapter-pad) 0;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity 0.8s 0.8s ease, transform 1s 0.8s var(--ease-out);
}

body.is-entered .site-header {
  opacity: 1;
  transform: translateY(0);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__symbol {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(242, 236, 221, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  background: rgba(8, 6, 2, 0.2);
  backdrop-filter: blur(12px);
}

.brand__meta {
  color: rgba(242, 236, 221, 0.68);
  font-size: 0.5rem;
  line-height: 1.35;
  letter-spacing: 0.18em;
}

.site-header__centre {
  display: flex;
  align-items: center;
  min-width: min(30vw, 23rem);
  gap: 0.9rem;
  color: rgba(242, 236, 221, 0.55);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
}

.header-line {
  flex: 1;
  height: 1px;
  background: rgba(242, 236, 221, 0.18);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.utility-button,
.sound-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(242, 236, 221, 0.14);
  color: rgba(242, 236, 221, 0.68);
  background: rgba(8, 6, 2, 0.18);
  backdrop-filter: blur(14px);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.utility-button:hover,
.sound-button:hover {
  color: var(--ivory);
  border-color: rgba(238, 195, 89, 0.45);
  background: rgba(40, 25, 4, 0.28);
}

.utility-button__label {
  color: var(--gold-light);
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 1.1rem;
  height: 0.9rem;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 35%;
  background: var(--gold-light);
  animation: soundBar 0.8s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(2) { animation-delay: -0.4s; height: 70%; }
.sound-bars i:nth-child(3) { animation-delay: -0.2s; height: 100%; }
.sound-bars i:nth-child(4) { animation-delay: -0.6s; height: 55%; }

.sound-button[aria-pressed="false"] .sound-bars i {
  height: 2px;
  animation-play-state: paused;
  opacity: 0.4;
}

@keyframes soundBar {
  to { height: 100%; }
}

.chapter-rail {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: max(0.8rem, calc(var(--chapter-pad) * 0.36));
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.75rem;
  height: min(54vh, 34rem);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.7s 1.15s ease;
}

body.is-entered .chapter-rail {
  opacity: 1;
}

.chapter-rail__track {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(242, 236, 221, 0.12);
}

.chapter-rail__track span {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--gold-light), var(--gold));
  box-shadow: 0 0 10px rgba(242, 194, 79, 0.6);
}

.chapter-rail__dots {
  position: absolute;
  left: -0.2rem;
  inset-block: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-dot {
  position: relative;
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(242, 236, 221, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.chapter-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 1rem;
  top: 50%;
  color: rgba(242, 236, 221, 0.6);
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(0.4rem, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.chapter-dot:hover::after,
.chapter-dot:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.chapter-dot.is-active {
  transform: scale(1.6);
  background: var(--gold-light);
  box-shadow: 0 0 14px rgba(242, 194, 79, 0.75);
}

.chapter-rail__hint {
  position: absolute;
  right: -1.5rem;
  bottom: -4.2rem;
  color: rgba(242, 236, 221, 0.35);
  font-size: 0.43rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: right;
}

.cursor {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-pointer .cursor {
  opacity: 1;
}

.cursor__ring,
.cursor__dot,
.cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(242, 220, 159, 0.5);
  border-radius: 50%;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}

.cursor__dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(245, 215, 123, 0.75);
}

.cursor__label {
  font-size: 0.42rem;
  letter-spacing: 0.14em;
  opacity: 0;
}

.cursor.is-hovering .cursor__ring {
  width: 4.2rem;
  height: 4.2rem;
  border-color: rgba(245, 215, 123, 0.82);
  background: rgba(214, 158, 36, 0.08);
}

.cursor.is-label .cursor__dot {
  opacity: 0;
}

.cursor.is-label .cursor__label {
  opacity: 1;
}

main {
  position: relative;
  z-index: 10;
}

.chapter {
  position: relative;
  min-height: 190vh;
  isolation: isolate;
}

.chapter--hero { min-height: 230vh; }
.chapter--deconstruct { min-height: 260vh; }
.chapter--materials { min-height: 300vh; }
.chapter--vault { min-height: 240vh; }
.chapter--portal { min-height: 280vh; }

.chapter__sticky {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + var(--safe-top)) var(--chapter-pad) max(2rem, var(--safe-bottom));
  overflow: hidden;
}

.chapter-copy {
  position: relative;
  z-index: 3;
  width: min(42rem, 43vw);
  pointer-events: none;
}

.chapter--left .chapter-copy {
  justify-self: start;
  padding-left: clamp(0rem, 4vw, 5rem);
}

.chapter--right .chapter-copy {
  justify-self: end;
  padding-right: clamp(2rem, 7vw, 8rem);
  text-align: right;
}

.chapter-copy--centre {
  justify-self: center;
  width: min(70rem, 88vw);
  text-align: center;
}

.chapter-copy--top {
  position: absolute;
  top: 18vh;
  left: var(--chapter-pad);
}

.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(242, 236, 221, 0.58);
  font-size: clamp(0.48rem, 0.65vw, 0.65rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.chapter-kicker::before {
  content: "";
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.chapter-copy h2,
.material-heading h2,
.portal-copy h2 {
  margin: 0.55rem 0 0;
  font-weight: 400;
  font-size: clamp(4.5rem, 12vw, 13rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.chapter--right .chapter-copy h2 {
  font-size: clamp(4rem, 10vw, 11rem);
}

.chapter-copy p {
  margin: 1.5rem 0 0;
  color: rgba(242, 236, 221, 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}

.micro-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(20rem, 100%);
  margin-top: 1.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(242, 236, 221, 0.22);
  color: rgba(242, 236, 221, 0.45);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.chapter--right .micro-data {
  margin-left: auto;
}

.micro-data b {
  color: var(--gold-light);
  font-weight: 400;
}

.reveal-copy {
  opacity: calc(0.12 + var(--visibility, 0) * 0.88);
  transform: translate3d(0, calc((1 - var(--visibility, 0)) * 3rem), 0);
  filter: blur(calc((1 - var(--visibility, 0)) * 8px));
  will-change: opacity, transform, filter;
}

.hero-layout {
  align-items: center;
  justify-items: center;
}

.hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  margin: 0;
  color: transparent;
  font-size: clamp(12rem, 43vw, 48rem);
  font-weight: 600;
  line-height: 0.62;
  letter-spacing: -0.13em;
  -webkit-text-stroke: 1px rgba(250, 228, 174, 0.23);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: calc(0.22 + (1 - var(--scene-progress, 0)) * 0.45);
  transform: scale(calc(1 + var(--scene-progress, 0) * 0.18));
}

.hero-title span:first-child {
  transform: translateX(0.03em);
}

.hero-code {
  position: absolute;
  top: 23%;
  left: 50%;
  z-index: 4;
  display: grid;
  gap: 0.35rem;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-align: center;
  transform: translateX(-50%);
}

.hero-code span:nth-child(2) {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  background: linear-gradient(145deg, #fff1bd, #c3870f 56%, #f5d572);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-footer {
  position: absolute;
  right: var(--chapter-pad);
  bottom: max(2rem, calc(var(--safe-bottom) + 1rem));
  left: var(--chapter-pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(242, 236, 221, 0.45);
  font-size: 0.48rem;
  letter-spacing: 0.19em;
}

.hero-footer__line {
  flex: 1;
  height: 1px;
  background: rgba(242, 236, 221, 0.14);
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: var(--chapter-pad);
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 0;
  border: 0;
  color: rgba(242, 236, 221, 0.55);
  background: transparent;
  font-size: 0.47rem;
  letter-spacing: 0.16em;
  transform: translateY(-50%);
}

.scroll-cue svg {
  width: 1.2rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  50% { transform: translateY(0.65rem); }
}

.data-crosshair {
  position: absolute;
  right: 14vw;
  width: clamp(8rem, 15vw, 14rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(242, 236, 221, 0.55);
  border: 1px solid rgba(242, 236, 221, 0.14);
  border-radius: 50%;
  opacity: calc(0.15 + var(--visibility, 0) * 0.65);
  transform: rotate(calc(var(--scene-progress, 0) * 120deg));
}

.data-crosshair i {
  position: absolute;
  display: block;
  background: rgba(242, 236, 221, 0.18);
}

.data-crosshair i:first-child { width: 125%; height: 1px; }
.data-crosshair i:nth-child(2) { width: 1px; height: 125%; }
.data-crosshair span { font-family: Georgia, serif; font-size: 2.2rem; }

.measure-ruler {
  position: absolute;
  left: 8vw;
  top: 25%;
  bottom: 25%;
  width: 4rem;
  border-left: 1px solid rgba(242, 236, 221, 0.16);
}

.measure-ruler span {
  position: absolute;
  left: 0;
  width: calc(1rem + var(--i, 0) * 0.5rem);
  height: 1px;
  background: rgba(242, 236, 221, 0.28);
}

.measure-ruler span:nth-child(1) { top: 0; --i: 4; }
.measure-ruler span:nth-child(2) { top: 25%; --i: 1; }
.measure-ruler span:nth-child(3) { top: 50%; --i: 3; }
.measure-ruler span:nth-child(4) { top: 75%; --i: 1; }
.measure-ruler span:nth-child(5) { bottom: 0; --i: 4; }

.compression-ui {
  position: absolute;
  left: 50%;
  top: 14%;
  bottom: 14%;
  width: 1px;
  display: grid;
  justify-items: center;
  color: var(--gold-light);
}

.compression-ui__axis {
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(237, 190, 74, 0.8), transparent);
  transform: scaleY(calc(0.2 + var(--visibility, 0) * 0.8));
}

.compression-ui__top,
.compression-ui__bottom {
  position: absolute;
  font-size: 1.5rem;
  opacity: calc(0.2 + var(--visibility, 0) * 0.8);
}

.compression-ui__top { top: 0; }
.compression-ui__bottom { bottom: 0; }

.temperature-gauge {
  position: absolute;
  right: 12vw;
  bottom: 18vh;
  width: min(24rem, 36vw);
  height: 1px;
  background: rgba(242, 236, 221, 0.14);
}

.temperature-gauge span {
  display: block;
  width: calc(var(--scene-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, #6d2100, #ff8a00, #fff0a1);
  box-shadow: 0 0 22px rgba(255, 123, 0, 0.8);
}

.temperature-gauge b {
  position: absolute;
  right: 0;
  top: 0.8rem;
  color: rgba(242, 236, 221, 0.45);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.deconstruct-layout {
  display: block;
}

.component-map {
  position: absolute;
  inset: 0;
}

.component-node {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(242, 236, 221, 0.16);
  color: rgba(242, 236, 221, 0.72);
  background: rgba(8, 6, 2, 0.22);
  backdrop-filter: blur(16px);
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.45s var(--ease-out), color 0.3s ease;
}

.component-node::before {
  content: "";
  position: absolute;
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 202, 105, 0.5));
}

.component-node span {
  color: var(--gold-light);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
}

.component-node b {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.component-node i {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(242, 236, 221, 0.12);
}

.component-node:hover,
.component-node.is-selected {
  color: #fff7df;
  border-color: rgba(244, 207, 113, 0.6);
  background: rgba(82, 51, 5, 0.3);
}

.component-node--a { top: 31%; left: 57%; }
.component-node--a::before { right: 100%; top: 50%; }
.component-node--b { top: 54%; left: 68%; }
.component-node--b::before { right: 100%; top: 50%; width: 8rem; }
.component-node--c { top: 68%; left: 23%; }
.component-node--c::before { left: 100%; top: 50%; transform: rotate(180deg); width: 9rem; }
.component-node--d { top: 38%; left: 14%; }
.component-node--d::before { left: 100%; top: 50%; transform: rotate(180deg); width: 6rem; }

.component-readout {
  position: absolute;
  right: var(--chapter-pad);
  bottom: 5rem;
  display: grid;
  gap: 0.35rem;
  text-align: right;
  font-size: 0.48rem;
  letter-spacing: 0.2em;
}

.component-readout span { color: rgba(242, 236, 221, 0.38); }
.component-readout b { color: var(--gold-light); font-weight: 400; }

.form-index {
  position: absolute;
  left: 8vw;
  bottom: 14vh;
  display: flex;
  gap: 1.2rem;
  color: rgba(242, 236, 221, 0.3);
  font-size: 1.2rem;
}

.form-index span:nth-child(2) { color: var(--gold-light); }

.spectral-lines {
  position: absolute;
  right: 8vw;
  bottom: 20vh;
  left: 58vw;
  display: grid;
  gap: 0.45rem;
}

.spectral-lines i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 119, 0.65), transparent);
  transform: scaleX(calc(0.2 + var(--visibility, 0) * var(--line-scale, 0.6)));
  transform-origin: right;
}

.spectral-lines i:nth-child(1) { --line-scale: .5; }
.spectral-lines i:nth-child(2) { --line-scale: .9; }
.spectral-lines i:nth-child(3) { --line-scale: .65; }
.spectral-lines i:nth-child(4) { --line-scale: 1; }
.spectral-lines i:nth-child(5) { --line-scale: .45; }
.spectral-lines i:nth-child(6) { --line-scale: .78; }

.material-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(24rem, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 10rem);
}

.material-heading {
  position: relative;
  z-index: 4;
  align-self: end;
  padding-bottom: 13vh;
}

.material-heading h2 {
  font-size: clamp(4rem, 8.5vw, 10rem);
}

.material-console {
  position: relative;
  z-index: 5;
  width: min(42rem, 100%);
  justify-self: end;
  border-top: 1px solid rgba(242, 236, 221, 0.32);
  border-bottom: 1px solid rgba(242, 236, 221, 0.2);
  background: linear-gradient(120deg, rgba(7, 5, 2, 0.26), rgba(63, 42, 8, 0.12));
  backdrop-filter: blur(18px);
}

.material-console__top,
.material-console__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: rgba(242, 236, 221, 0.4);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
}

.material-console__top span:last-child {
  color: var(--gold-light);
}

.material-list {
  border-top: 1px solid rgba(242, 236, 221, 0.09);
}

.material-option {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 2.1rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(242, 236, 221, 0.09);
  color: rgba(242, 236, 221, 0.46);
  background: transparent;
  text-align: left;
  transition: color 0.3s ease, padding 0.4s var(--ease-out), background 0.3s ease;
}

.material-option::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gold-light);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease-out);
}

.material-option:hover,
.material-option.is-active {
  padding-left: 1rem;
  color: var(--ivory);
  background: linear-gradient(90deg, rgba(210, 151, 28, 0.1), transparent 75%);
}

.material-option.is-active::before {
  transform: scaleY(1);
}

.material-option__number,
.material-option__meta {
  font-size: 0.46rem;
  letter-spacing: 0.15em;
}

.material-option__name {
  font-size: clamp(0.8rem, 1.1vw, 1.05rem);
  letter-spacing: 0.18em;
}

.material-option__meta {
  color: rgba(242, 236, 221, 0.32);
}

.material-option__swatch {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset -0.35rem -0.35rem 0.65rem rgba(0, 0, 0, 0.26), 0 0 15px rgba(255, 195, 52, 0.06);
}

.swatch--pure { background: radial-gradient(circle at 30% 25%, #fff1ad, #d29a1a 45%, #7d4d00); }
.swatch--brushed { background: repeating-linear-gradient(100deg, #8f6517 0 1px, #dab44e 1px 3px, #a27418 3px 4px); }
.swatch--rose { background: radial-gradient(circle at 30% 25%, #f3c1ad, #b86f62 50%, #643024); }
.swatch--white { background: radial-gradient(circle at 30% 25%, #fffdf2, #cfc7ae 52%, #76705f); }
.swatch--molten { background: radial-gradient(circle at 35% 25%, #fff6bd, #ff9f08 48%, #8c2600); box-shadow: 0 0 18px rgba(255, 133, 0, 0.45); }
.swatch--raw { background: radial-gradient(circle at 35% 25%, #c99b3b, #64420e 45%, #1a1307); }

.material-orbit {
  position: absolute;
  z-index: 2;
  left: 52%;
  top: 50%;
  width: clamp(15rem, 36vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 236, 221, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--scene-progress, 0) * 130deg));
  pointer-events: none;
}

.material-orbit span {
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(243, 204, 106, 0.18);
  border-radius: 50%;
}

.material-orbit i {
  position: absolute;
  top: 50%;
  left: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 24px rgba(245, 215, 123, 0.7);
}

.material-orbit b {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: rgba(242, 236, 221, 0.34);
  font-size: 0.43rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.liquid-meter {
  position: absolute;
  right: var(--chapter-pad);
  bottom: 14vh;
  left: var(--chapter-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  color: rgba(242, 236, 221, 0.38);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
}

.liquid-meter i {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 129, 0, 0.2), #ffb31f, rgba(255, 129, 0, 0.2));
  box-shadow: 0 0 16px rgba(255, 136, 0, 0.4);
}

.liquid-meter b {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 400;
}

.object-stamp {
  position: absolute;
  left: 10vw;
  bottom: 16vh;
  width: 7.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 236, 221, 0.18);
  transform: rotate(calc(-12deg + var(--scene-progress, 0) * 28deg));
}

.object-stamp span {
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.object-stamp b {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  color: var(--gold-light);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.vault-layout {
  display: block;
}

.vault-strip {
  position: absolute;
  right: var(--chapter-pad);
  bottom: 18vh;
  left: var(--chapter-pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(242, 236, 221, 0.12);
  border: 1px solid rgba(242, 236, 221, 0.12);
}

.specimen-card {
  position: relative;
  min-height: clamp(11rem, 20vw, 18rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  padding: 1rem;
  border: 0;
  color: rgba(242, 236, 221, 0.55);
  background: rgba(6, 5, 2, 0.7);
  overflow: hidden;
  text-align: left;
  transition: background 0.4s ease, color 0.3s ease;
}

.specimen-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(218, 164, 48, 0.22), transparent 42%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.45s ease, transform 0.65s var(--ease-out);
}

.specimen-card:hover,
.specimen-card.is-selected {
  color: var(--ivory);
  background: rgba(45, 29, 5, 0.75);
}

.specimen-card:hover::after,
.specimen-card.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.specimen-card span,
.specimen-card b {
  position: relative;
  z-index: 2;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.17em;
}

.specimen-card b { justify-self: end; }

.specimen-glyph {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 58%;
  width: 5rem;
  height: 5rem;
  transform: translate(-50%, -50%);
  transition: transform 0.65s var(--ease-out), filter 0.4s ease;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6));
}

.specimen-card:hover .specimen-glyph {
  transform: translate(-50%, -58%) rotate(10deg) scale(1.13);
  filter: drop-shadow(0 0 25px rgba(225, 174, 62, 0.28));
}

.glyph-ingot {
  width: 6rem;
  height: 3.4rem;
  clip-path: polygon(14% 0, 86% 0, 100% 75%, 88% 100%, 12% 100%, 0 75%);
  background: linear-gradient(145deg, #ffe99a, #b77708 48%, #754500 62%, #d99f23);
}

.glyph-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff4b7, #d69b18 37%, #744400 68%, #f5c84f 100%);
}

.glyph-ring {
  border: 0.85rem solid #d59d23;
  border-radius: 50%;
  box-shadow: inset 0.3rem 0.3rem 0.4rem #fff0a7, inset -0.35rem -0.35rem 0.45rem #683d00;
}

.glyph-ore {
  clip-path: polygon(48% 0, 78% 12%, 100% 42%, 86% 75%, 61% 100%, 25% 91%, 0 62%, 13% 23%);
  background: linear-gradient(135deg, #3a2607, #c19031 32%, #5f3e0a 56%, #dfb350 75%, #201603);
}

.vault-readout {
  position: absolute;
  right: var(--chapter-pad);
  bottom: 8vh;
  left: var(--chapter-pad);
  display: flex;
  justify-content: space-between;
  color: rgba(242, 236, 221, 0.34);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
}

.vault-readout b { color: var(--gold-light); font-weight: 400; }

.portal-layout {
  display: grid;
  align-content: center;
  justify-items: center;
}

.portal-index {
  position: absolute;
  top: 18vh;
  right: var(--chapter-pad);
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0.2rem 0.55rem;
  color: rgba(242, 236, 221, 0.42);
  font-size: 0.48rem;
  letter-spacing: 0.17em;
}

.portal-index b,
.portal-index em {
  font-style: normal;
  font-weight: 400;
}

.portal-index b { color: var(--ivory); font-size: 1.8rem; line-height: 0.8; }
.portal-index i { grid-column: 1 / -1; width: 100%; height: 1px; background: rgba(242, 236, 221, 0.2); }
.portal-index em { justify-self: end; color: var(--gold-light); }

.portal-copy {
  position: relative;
  z-index: 4;
  width: min(80rem, 90vw);
  text-align: center;
}

.portal-copy h2 {
  font-size: clamp(4.8rem, 13vw, 15rem);
  letter-spacing: -0.085em;
}

.portal-url {
  display: inline-block;
  margin-top: 1.2rem;
  color: rgba(242, 236, 221, 0.48);
  font-size: clamp(0.55rem, 0.8vw, 0.75rem);
  letter-spacing: 0.18em;
}

.portal-button {
  position: absolute;
  z-index: 6;
  right: clamp(2rem, 9vw, 10rem);
  bottom: 19vh;
  width: clamp(8rem, 13vw, 12rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 236, 221, 0.25);
  border-radius: 50%;
  background: rgba(5, 4, 2, 0.25);
  backdrop-filter: blur(14px);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.5s var(--ease-out);
}

.portal-button:hover {
  border-color: rgba(245, 215, 123, 0.78);
  background: rgba(80, 50, 5, 0.25);
}

.portal-button__rings,
.portal-button__rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.portal-button__rings i {
  border: 1px solid rgba(239, 197, 91, 0.16);
  animation: portalPulse 2.8s ease-out infinite;
}

.portal-button__rings i:nth-child(2) { animation-delay: 0.9s; }
.portal-button__rings i:nth-child(3) { animation-delay: 1.8s; }

.portal-button__label {
  font-size: 0.48rem;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-align: center;
}

.portal-button svg {
  position: absolute;
  width: 52%;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1;
  transform: translateY(1.9rem);
  transition: transform 0.5s var(--ease-out);
}

.portal-button:hover svg {
  transform: translate(0.7rem, 1.9rem);
}

@keyframes portalPulse {
  0% { transform: scale(0.75); opacity: 0; }
  20% { opacity: 0.65; }
  100% { transform: scale(1.7); opacity: 0; }
}

.world-switcher {
  position: absolute;
  z-index: 4;
  left: var(--chapter-pad);
  bottom: 17vh;
  display: grid;
  grid-template-columns: auto minmax(6rem, 15vw) auto;
  align-items: center;
  gap: 1rem;
}

.world-chip {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.2rem 0.5rem;
  min-width: 7rem;
}

.world-chip span,
.world-chip i {
  color: rgba(242, 236, 221, 0.34);
  font-size: 0.45rem;
  font-style: normal;
  letter-spacing: 0.15em;
}

.world-chip b {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.world-chip i {
  grid-column: 2;
}

.world-chip--next b,
.world-chip--next i {
  color: var(--gold-light);
}

.world-switcher__line {
  height: 1px;
  background: rgba(242, 236, 221, 0.15);
}

.world-switcher__line span {
  display: block;
  width: calc(var(--scene-progress, 0) * 100%);
  height: 100%;
  background: var(--gold-light);
}

.site-footer {
  position: absolute;
  right: var(--chapter-pad);
  bottom: max(1.4rem, var(--safe-bottom));
  left: var(--chapter-pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 236, 221, 0.12);
  color: rgba(242, 236, 221, 0.32);
  font-size: 0.42rem;
  letter-spacing: 0.15em;
}

.portal-transition {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
}

.portal-active .portal-transition {
  visibility: visible;
}

.portal-transition__iris {
  position: absolute;
  left: var(--portal-x, 50%);
  top: var(--portal-y, 50%);
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(93, 74, 117, 0.5), transparent 23%),
    radial-gradient(circle at 45% 42%, #19151d, #060509 48%, #000 72%);
  box-shadow:
    inset 0 0 0 1px rgba(192, 169, 211, 0.15),
    inset 0 0 70px rgba(105, 75, 131, 0.3),
    0 0 80px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(0);
  animation: none;
}

.portal-active .portal-transition__iris {
  animation: irisOpen 1.55s var(--ease-in-out) forwards;
}

.portal-transition__word {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  opacity: 0;
  color: #ebe6ef;
}

.portal-active .portal-transition__word {
  animation: portalWord 1.3s 0.55s var(--ease-out) forwards;
}

.portal-transition__word span {
  font-size: clamp(3rem, 10vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.portal-transition__word b {
  color: rgba(235, 230, 239, 0.45);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.23em;
}

.portal-transition__line {
  position: absolute;
  z-index: 3;
  right: 10vw;
  bottom: 12vh;
  left: 10vw;
  height: 1px;
  background: rgba(235, 230, 239, 0.12);
  opacity: 0;
}

.portal-active .portal-transition__line {
  opacity: 1;
}

.portal-transition__line span {
  display: block;
  width: 0;
  height: 100%;
  background: #bda8cf;
}

.portal-active .portal-transition__line span {
  animation: portalLine 1.5s 0.35s linear forwards;
}

@keyframes irisOpen {
  0% { transform: translate(-50%, -50%) scale(0); filter: blur(10px); }
  60% { filter: blur(0); }
  100% { transform: translate(-50%, -50%) scale(18); filter: blur(0); }
}

@keyframes portalWord {
  0% { opacity: 0; transform: scale(0.88); filter: blur(18px); letter-spacing: 0.05em; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: 0; }
}

@keyframes portalLine {
  to { width: 100%; }
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(2rem, calc(var(--safe-bottom) + 1rem));
  padding: 0.75rem 1rem;
  border: 1px solid rgba(242, 236, 221, 0.16);
  color: rgba(242, 236, 221, 0.72);
  background: rgba(7, 5, 2, 0.74);
  backdrop-filter: blur(14px);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-material="rose"] { --gold: #b66f63; --gold-light: #f1b9a4; --gold-hot: #d98770; }
body[data-material="white"] { --gold: #bcb7a7; --gold-light: #fff9e9; --gold-hot: #d8d0b8; }
body[data-material="molten"] { --gold: #ff8b00; --gold-light: #fff2a6; --gold-hot: #ff5500; }
body[data-material="raw"] { --gold: #8c6420; --gold-light: #d7aa54; --gold-hot: #b37516; }

body[data-chapter="4"] .light-leak-a,
body[data-chapter="9"] .light-leak-a {
  background: rgba(255, 76, 0, 0.34);
  opacity: 0.3;
}

body[data-chapter="14"] .light-leak {
  background: rgba(120, 90, 145, 0.2);
}

.no-webgl #stage {
  background:
    radial-gradient(circle at center, rgba(221, 166, 45, 0.3), transparent 22%),
    radial-gradient(circle at center, #1a1104, #050402 58%);
}

.no-webgl #stage::after {
  content: "";
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.7rem;
    --chapter-pad: clamp(1rem, 4.8vw, 2rem);
  }

  body,
  button,
  a,
  [role="button"] {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header__centre,
  .qualityToggle,
  #qualityToggle {
    display: none;
  }

  .chapter-rail {
    top: auto;
    right: var(--chapter-pad);
    bottom: 1.2rem;
    left: var(--chapter-pad);
    width: auto;
    height: 1px;
    grid-template-columns: 1fr;
    transform: none;
  }

  .chapter-rail__track {
    width: 100%;
    height: 1px;
  }

  .chapter-rail__track span {
    width: 0;
    height: 100%;
  }

  .chapter-rail__dots,
  .chapter-rail__hint {
    display: none;
  }

  .chapter {
    min-height: 175vh;
  }

  .chapter--hero { min-height: 210vh; }
  .chapter--deconstruct { min-height: 230vh; }
  .chapter--materials { min-height: 285vh; }
  .chapter--portal { min-height: 250vh; }

  .chapter-copy {
    width: min(87vw, 33rem);
  }

  .chapter--left .chapter-copy,
  .chapter--right .chapter-copy {
    justify-self: start;
    align-self: end;
    padding: 0 0 15vh;
    text-align: left;
  }

  .chapter--right .micro-data {
    margin-left: 0;
  }

  .chapter-copy h2,
  .chapter--right .chapter-copy h2,
  .material-heading h2,
  .portal-copy h2 {
    font-size: clamp(3.8rem, 18vw, 8rem);
  }

  .hero-title {
    font-size: 58vw;
    transform: translateX(-0.03em) scale(calc(1 + var(--scene-progress, 0) * 0.12));
  }

  .hero-code {
    top: 31%;
  }

  .scroll-cue {
    right: 1.25rem;
  }

  .data-crosshair {
    right: 8vw;
    top: 24%;
  }

  .measure-ruler {
    top: 15%;
    bottom: 45%;
  }

  .temperature-gauge {
    right: var(--chapter-pad);
    left: var(--chapter-pad);
    bottom: 9vh;
    width: auto;
  }

  .chapter-copy--top {
    top: 15vh;
    left: var(--chapter-pad);
  }

  .component-node {
    min-width: 7rem;
    padding: 0.65rem 0.75rem;
  }

  .component-node::before {
    display: none;
  }

  .component-node--a { top: 38%; left: 55%; }
  .component-node--b { top: 56%; left: 59%; }
  .component-node--c { top: 67%; left: 10%; }
  .component-node--d { top: 43%; left: 8%; }

  .component-readout {
    right: var(--chapter-pad);
    bottom: 4.5rem;
  }

  .material-layout {
    display: block;
  }

  .material-heading {
    position: absolute;
    top: 14vh;
    left: var(--chapter-pad);
    padding: 0;
  }

  .material-console {
    position: absolute;
    right: var(--chapter-pad);
    bottom: 11vh;
    left: var(--chapter-pad);
    width: auto;
  }

  .material-option {
    grid-template-columns: 1.8rem 1.8rem 1fr auto;
    gap: 0.7rem;
    padding-block: 0.62rem;
  }

  .material-option__swatch {
    width: 1.4rem;
    height: 1.4rem;
  }

  .material-orbit {
    left: 50%;
    top: 47%;
    width: 75vw;
  }

  .spectral-lines {
    top: 25%;
    right: var(--chapter-pad);
    bottom: auto;
    left: 35vw;
  }

  .vault-strip {
    grid-template-columns: repeat(2, 1fr);
    bottom: 11vh;
  }

  .specimen-card {
    min-height: 9.5rem;
  }

  .specimen-glyph {
    width: 3.8rem;
    height: 3.8rem;
  }

  .glyph-ingot {
    width: 4.6rem;
    height: 2.6rem;
  }

  .vault-readout {
    bottom: 5vh;
  }

  .portal-button {
    right: var(--chapter-pad);
    bottom: 15vh;
    width: 7rem;
    transform: none;
  }

  .portal-button:hover {
    transform: none;
  }

  .world-switcher {
    left: 50%;
    bottom: 6vh;
    width: calc(100% - var(--chapter-pad) * 2);
    transform: translateX(-50%);
  }

  .portal-index {
    top: 15vh;
  }

  .portal-copy {
    align-self: start;
    margin-top: 23vh;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }

  .boot__mark {
    width: min(70vw, 24rem);
  }

  .boot__bottom {
    grid-template-columns: 1fr auto;
  }

  .boot__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .brand__meta {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .sound-button {
    padding-inline: 0.6rem;
  }

  .sound-button > span:last-child {
    display: none;
  }

  .hero-footer span:first-child {
    display: none;
  }

  .hero-code span:first-child,
  .hero-code span:last-child {
    font-size: 0.42rem;
  }

  .chapter-copy h2,
  .chapter--right .chapter-copy h2,
  .material-heading h2,
  .portal-copy h2 {
    font-size: clamp(3.2rem, 18vw, 6rem);
  }

  .material-console__footer {
    font-size: 0.38rem;
  }

  .material-option__meta {
    display: none;
  }

  .material-option {
    grid-template-columns: 1.8rem 1.7rem 1fr;
  }

  .component-node {
    min-width: 6rem;
  }

  .component-node b {
    font-size: 0.48rem;
  }

  .component-node--a { left: 58%; }
  .component-node--b { left: 52%; }

  .vault-strip {
    right: 0;
    left: 0;
    border-inline: 0;
  }

  .world-switcher {
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
  }

  .world-chip b {
    font-size: 0.6rem;
  }

  .portal-transition__word span {
    font-size: 15vw;
  }

  .boot__top {
    font-size: 0.48rem;
  }

  .boot__bottom {
    gap: 0.8rem;
  }

  .enter-button {
    gap: 0.6rem;
    font-size: 0.56rem;
  }

  .enter-button svg {
    width: 2.6rem;
  }

  .text-button {
    font-size: 0.48rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body,
  button,
  a,
  [role="button"] {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .magnetic {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .film,
  .light-leak {
    display: none;
  }

  .reveal-copy {
    filter: none;
  }
}

/* Runtime interaction refinements */
.magnetic {
  translate: var(--mag-x, 0) var(--mag-y, 0);
  will-change: translate;
  transition: translate 0.45s var(--ease-out);
}

body[data-material="brushed"] {
  --gold: #c88a1b;
  --gold-light: #eecb77;
  --gold-hot: #dfaa35;
}

body[data-material="obsidian"] {
  --gold: #6e527f;
  --gold-light: #c6acd9;
  --gold-hot: #8b5ca7;
}

body.is-entered #stage {
  animation: stageReveal 1.4s var(--ease-out) both;
}

@keyframes stageReveal {
  from { opacity: 0.35; filter: blur(12px) saturate(0.6); }
  to { opacity: 1; filter: blur(0) saturate(1); }
}

@media (prefers-reduced-motion: reduce) {
  .magnetic { translate: 0 0 !important; }
}


/* Gold AU / extended optical + GLB experience */
.refraction-field,
.spectral-cursor {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.refraction-field {
  inset: -18vmax;
  overflow: hidden;
  mix-blend-mode: screen;
  filter: saturate(1.35);
}

.refraction-field::before,
.refraction-field::after,
.refraction-field i {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 70rem);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--material-rgb, 215, 166, 43), 0.12);
  border-radius: 50%;
  translate: -50% -50%;
  transform: scale(var(--optic-scale, 0.76)) rotate(var(--optic-angle, 0deg));
  box-shadow:
    inset 0 0 7rem rgba(var(--material-rgb, 215, 166, 43), 0.035),
    0 0 5rem rgba(var(--material-rgb, 215, 166, 43), 0.025);
  animation: opticOrbit 14s linear infinite;
}

.refraction-field::after {
  width: min(58vw, 44rem);
  animation-direction: reverse;
  animation-duration: 9s;
  border-style: dashed;
}

.refraction-field i:nth-child(1) {
  width: min(37vw, 30rem);
  animation-duration: 6s;
}

.refraction-field i:nth-child(2) {
  width: min(120vw, 86rem);
  animation-duration: 22s;
  animation-direction: reverse;
}

.refraction-field i:nth-child(3) {
  width: min(21vw, 18rem);
  animation-duration: 4.6s;
  border-color: rgba(255, 255, 255, 0.13);
}

body[data-chapter="10"] .refraction-field,
body[data-chapter="12"] .refraction-field,
body[data-chapter="14"] .refraction-field {
  opacity: 0.9;
}

@keyframes opticOrbit {
  to { transform: scale(var(--optic-scale, 0.76)) rotate(calc(var(--optic-angle, 0deg) + 360deg)); }
}

.spectral-cursor {
  top: var(--pointer-y-px, 50%);
  left: var(--pointer-x-px, 50%);
  width: 19rem;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.045), transparent 35%),
    conic-gradient(from 120deg, transparent, rgba(255, 83, 0, 0.05), rgba(255, 217, 97, 0.08), rgba(121, 173, 255, 0.045), transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
}

body.is-entered .spectral-cursor { opacity: 0.74; }
body[data-chapter="10"] .spectral-cursor { opacity: 1; transform: scale(1.45); }

.chapter--optics { min-height: 270vh; }
.chapter--models { min-height: 320vh; }
.chapter--object { min-height: 235vh; }

.optics-layout,
.model-layout {
  isolation: isolate;
}

.optics-layout .chapter-copy {
  left: var(--chapter-pad);
  top: 51%;
  transform: translateY(-50%);
}

.optics-mark {
  position: absolute;
  top: 16%;
  right: max(var(--chapter-pad), 8vw);
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  color: var(--gold-light);
  opacity: var(--visibility);
}

.optics-mark span {
  grid-row: 1 / 3;
  font: 200 clamp(8rem, 24vw, 25rem)/0.72 Georgia, serif;
  letter-spacing: -0.11em;
}

.optics-mark b {
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 0.72;
}

.optics-mark i {
  margin-top: 0.55rem;
  font: 500 0.6rem/1 monospace;
  letter-spacing: 0.24em;
  opacity: 0.55;
}

.reflection-array {
  position: absolute;
  inset: 12% 8% 10% 38%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.45rem, 1.1vw, 1.2rem);
  perspective: 900px;
  opacity: calc(var(--visibility) * 0.76);
  transform: rotateX(calc(var(--pointer-y, 0) * -4deg)) rotateY(calc(var(--pointer-x, 0) * 6deg));
  transition: transform 0.2s linear;
}

.reflection-array i {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(118deg, rgba(255,255,255,0.02) 10%, rgba(var(--material-rgb, 215,166,43),0.28) 34%, rgba(255,255,255,0.16) 45%, rgba(0,0,0,0.44) 61%, rgba(var(--material-rgb, 215,166,43),0.09));
  box-shadow: inset 0 0 2.8rem rgba(255,255,255,0.025);
  transform: translateZ(calc((var(--scene-progress) - 0.5) * 90px));
}

.reflection-array i::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(90deg, transparent 35%, rgba(255,255,255,0.45), transparent 65%);
  transform: translateX(calc((var(--scene-progress) * 230%) - 115%)) rotate(19deg);
  filter: blur(8px);
}

.reflection-array i:nth-child(2n) { transform: translateZ(calc((0.5 - var(--scene-progress)) * 120px)) rotateY(180deg); }
.reflection-array i:nth-child(3n) { background: linear-gradient(140deg, #050402, rgba(var(--material-rgb, 215,166,43),0.25), #070503); }

.optics-readout {
  position: absolute;
  right: var(--chapter-pad);
  bottom: max(3rem, 8vh);
  display: flex;
  gap: 2rem;
  font: 500 0.54rem/1 monospace;
  letter-spacing: 0.18em;
  opacity: calc(var(--visibility) * 0.7);
}

.optics-readout b { color: var(--gold-light); font-weight: 500; }

.model-heading {
  position: absolute;
  top: 15%;
  left: var(--chapter-pad);
  z-index: 2;
}

.model-heading h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(4.7rem, 12.6vw, 13rem);
  font-weight: 200;
  line-height: 0.72;
  letter-spacing: -0.085em;
}

.model-selector {
  position: absolute;
  z-index: 4;
  right: var(--chapter-pad);
  top: 50%;
  width: min(31rem, 35vw);
  transform: translateY(-50%);
  border-top: 1px solid var(--line);
}

.model-option {
  --model-accent: rgba(var(--material-rgb, 215,166,43),0.72);
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 5.6rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  background: transparent;
  text-align: left;
  overflow: hidden;
}

.model-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--material-rgb,215,166,43),0.16), transparent 74%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease-out);
}

.model-option::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 1.3rem var(--gold-light);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}

.model-option:hover::before,
.model-option.is-active::before { transform: scaleX(1); }
.model-option.is-active::after { transform: translateY(-50%) scale(1); }

.model-option span,
.model-option i {
  position: relative;
  z-index: 1;
  font: 500 0.52rem/1 monospace;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.model-option b {
  position: relative;
  z-index: 1;
  font-size: clamp(0.85rem, 1.2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.model-option i { padding-right: 1.2rem; font-style: normal; }

.model-telemetry {
  position: absolute;
  left: var(--chapter-pad);
  bottom: max(3.6rem, 9vh);
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1.25rem;
  align-items: center;
  font: 500 0.52rem/1 monospace;
  letter-spacing: 0.16em;
  opacity: calc(var(--visibility) * 0.75);
}

.model-telemetry span { color: var(--gold-light); }
.model-telemetry b { font-weight: 500; }
.model-telemetry i { color: var(--muted); font-style: normal; }

.model-wire {
  position: absolute;
  left: 47%;
  top: 50%;
  width: min(48vw, 42rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--scene-progress) * 64deg));
  border: 1px solid rgba(var(--material-rgb,215,166,43),0.12);
  border-radius: 50%;
  opacity: calc(var(--visibility) * 0.62);
  pointer-events: none;
}

.model-wire span,
.model-wire i,
.model-wire b {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 50%;
}
.model-wire i { inset: 29%; border-style: solid; }
.model-wire b { inset: 43%; border-color: var(--gold-light); box-shadow: 0 0 3rem rgba(var(--material-rgb,215,166,43),0.16); }

.arrival-transition {
  position: fixed;
  z-index: 990;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  background: #050308;
}

body.arriving .arrival-transition {
  visibility: visible;
  animation: arrivalRelease 1.7s 0.55s var(--ease-in-out) forwards;
}

.arrival-transition__core {
  width: 18vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 42%, #f6dc93 0 3%, #9d6a18 12%, #1f0e2a 38%, #050308 66%);
  box-shadow: 0 0 14vmax rgba(169, 111, 25, 0.42), 0 0 26vmax rgba(74, 33, 99, 0.26);
  animation: arrivalCore 1.7s var(--ease-out) forwards;
}

.arrival-transition__copy {
  position: absolute;
  display: grid;
  gap: 0.75rem;
  text-align: center;
  opacity: 0;
  animation: arrivalCopy 1.15s 0.18s var(--ease-out) forwards;
}

.arrival-transition__copy span {
  font-size: clamp(3.8rem, 13vw, 12rem);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.arrival-transition__copy b {
  font: 500 0.56rem/1 monospace;
  letter-spacing: 0.25em;
  color: var(--gold-light);
}

.arrival-transition__scan {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.arrival-transition__scan i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  box-shadow: 0 0 1rem var(--gold-light);
  animation: arrivalScan 1.15s linear both;
}

@keyframes arrivalCore {
  0% { transform: scale(7) rotate(-70deg); filter: blur(22px); }
  58% { transform: scale(0.72) rotate(8deg); filter: blur(0); }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes arrivalCopy {
  0% { opacity: 0; transform: translateY(2rem); filter: blur(14px); }
  30%, 70% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-1.2rem); filter: blur(8px); }
}
@keyframes arrivalScan { from { top: 0; } to { top: 100%; } }
@keyframes arrivalRelease { 0%, 72% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

body.model-loaded #modelStatus { color: var(--gold-light); }
body.model-error #modelStatus { color: #ff8959; }

@media (max-width: 900px) {
  .chapter--optics { min-height: 245vh; }
  .chapter--models { min-height: 285vh; }
  .optics-layout .chapter-copy { top: 26%; left: var(--chapter-pad); transform: none; }
  .optics-mark { top: 38%; right: 7%; }
  .reflection-array { inset: 38% 6% 12%; }
  .optics-readout { right: var(--chapter-pad); bottom: 4.2rem; }
  .model-heading { top: 13%; }
  .model-heading h2 { font-size: clamp(4.1rem, 20vw, 8rem); }
  .model-selector {
    right: var(--chapter-pad);
    left: var(--chapter-pad);
    top: auto;
    bottom: 11%;
    width: auto;
    transform: none;
    background: rgba(7, 5, 2, 0.42);
    backdrop-filter: blur(14px);
  }
  .model-option { min-height: 4.4rem; grid-template-columns: 2.25rem 1fr auto; }
  .model-wire { left: 50%; top: 49%; width: 78vw; }
  .model-telemetry { left: var(--chapter-pad); right: var(--chapter-pad); bottom: 3.3rem; grid-template-columns: 1fr auto; }
  .model-telemetry i { display: none; }
}

@media (max-width: 560px) {
  .reflection-array { grid-template-columns: repeat(2, 1fr); }
  .reflection-array i:nth-child(9) { display: none; }
  .optics-mark span { font-size: 38vw; }
  .optics-mark b { font-size: 12vw; }
  .model-option i { display: none; }
  .model-option { grid-template-columns: 2rem 1fr; }
  .model-telemetry { font-size: 0.46rem; gap: 0.5rem; }
  .arrival-transition__copy span { font-size: 20vw; }
}

@media (prefers-reduced-motion: reduce) {
  .refraction-field,
  .spectral-cursor { display: none; }
  body.arriving .arrival-transition { animation-duration: 0.25s !important; animation-delay: 0s !important; }
}


/* Enhanced local GLB controls */
.boot__asset {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .45rem;
  color: rgba(242,236,221,.34);
  font: 500 .46rem/1 monospace;
  letter-spacing: .18em;
}
.boot__asset b { color: var(--gold-light); font-weight: 500; }
.artifact-selector {
  position: absolute; z-index: 5; right: var(--chapter-pad); bottom: 13vh;
  width: min(30rem, 35vw); border-top: 1px solid var(--line);
}
.artifact-option {
  position: relative; display: grid; grid-template-columns: 2.3rem 1fr auto; align-items: center;
  width: 100%; min-height: 3.7rem; padding: 0 .2rem; border: 0; border-bottom: 1px solid var(--line);
  color: rgba(242,236,221,.5); background: rgba(7,5,2,.2); text-align: left; overflow: hidden;
  transition: color .3s ease, padding .55s var(--ease-out), background .4s ease;
}
.artifact-option::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--material-rgb,215,166,43),.18), transparent 76%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.artifact-option:hover, .artifact-option.is-active { color: var(--ivory); padding-left: .8rem; background: rgba(12,8,2,.5); }
.artifact-option:hover::before, .artifact-option.is-active::before { transform: scaleX(1); }
.artifact-option span, .artifact-option b, .artifact-option i { position: relative; z-index: 1; }
.artifact-option span, .artifact-option i { font: 500 .48rem/1 monospace; letter-spacing: .16em; }
.artifact-option i { color: var(--gold-light); font-style: normal; }
.artifact-option b { font-size: .72rem; font-weight: 500; letter-spacing: .14em; }
.model-badge { position: absolute; left: var(--chapter-pad); bottom: 11vh; display: grid; gap: .45rem; font: 500 .5rem/1 monospace; letter-spacing: .17em; opacity: calc(var(--visibility) * .74); }
.model-badge span { color: var(--muted); }
.model-badge b { color: var(--gold-light); font-weight: 500; }
.glyph-crystal { clip-path: polygon(50% 0, 66% 29%, 91% 36%, 75% 62%, 80% 100%, 50% 81%, 20% 100%, 25% 62%, 9% 36%, 34% 29%); background: linear-gradient(135deg, #fff3b2 0 12%, #d9a62f 25%, #7d4d05 47%, #efc85c 68%, #8e5a05 84%, #ffe9a0); filter: drop-shadow(0 0 18px rgba(245,199,78,.25)); }
@media (max-width: 900px) {
  .artifact-selector { right: var(--chapter-pad); bottom: 12vh; width: min(21rem, 46vw); }
  .artifact-option { min-height: 3.25rem; }
  .model-badge { bottom: 8vh; }
  .vault-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .artifact-selector { right: var(--chapter-pad); left: var(--chapter-pad); bottom: 10vh; width: auto; }
  .artifact-option { min-height: 3rem; grid-template-columns: 1.9rem 1fr auto; }
  .model-badge { left: var(--chapter-pad); bottom: 5.5vh; }
  .vault-strip { grid-template-columns: repeat(2, 1fr); max-height: 66vh; overflow: auto; }
  .specimen-card { min-height: 8rem; }
}


/* MATERIAL UNIVERSE NETWORK SELECTOR */
.mu-header-link{display:inline-flex;align-items:center;justify-content:center;height:2.35rem;padding:0 .75rem;border:1px solid rgba(255,255,255,.15);color:inherit;text-decoration:none;font-size:.48rem;letter-spacing:.17em;background:rgba(0,0,0,.18);white-space:nowrap;transition:border-color .25s ease,background .25s ease,transform .3s ease}
.mu-header-link:hover{border-color:var(--gold-light,var(--paper,#fff));background:rgba(255,255,255,.06)}
.mu-network-layout{display:grid!important;grid-template-rows:auto 1fr auto auto;align-content:center;gap:clamp(1rem,2.5vh,2rem);padding:10vh clamp(1rem,5vw,5rem) 2.2rem!important;overflow:hidden}
.mu-network-head{position:relative;z-index:12;display:flex;align-items:end;justify-content:space-between;gap:2rem}.mu-network-head p{margin:0 0 .55rem;font-size:.52rem;letter-spacing:.2em;opacity:.62}.mu-network-head h2{margin:0;font-size:clamp(3.1rem,8.5vw,8.8rem);line-height:.72;letter-spacing:-.06em;font-weight:400}.mu-network-head h2 i{display:block;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.62);font-style:normal}.mu-network-domain{color:inherit;text-decoration:none;font-size:.52rem;letter-spacing:.16em;opacity:.66}
.mu-network-shell{position:relative;z-index:13;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem}.mu-arrow{width:clamp(3.2rem,5vw,4.4rem);aspect-ratio:1;border:1px solid rgba(255,255,255,.18);border-radius:50%;display:grid;place-items:center;color:inherit;background:rgba(0,0,0,.24);cursor:pointer}.mu-arrow svg{width:42%;fill:none;stroke:currentColor;stroke-width:1.2}.mu-viewport{overflow:auto hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;touch-action:pan-x;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}.mu-viewport::-webkit-scrollbar{display:none}.mu-track{display:flex;gap:clamp(.8rem,1.3vw,1.35rem);width:max-content;padding:1.3rem 50%;transform:translateX(-50%)}
.mu-card{position:relative;width:clamp(14rem,23vw,21rem);aspect-ratio:1.12/.72;scroll-snap-align:center;flex:none;display:grid;grid-template-rows:auto 1fr auto;padding:1rem;border:1px solid rgba(255,255,255,.15);color:inherit;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(0,0,0,.18));text-align:left;cursor:pointer;overflow:hidden;transition:transform .42s cubic-bezier(.16,1,.3,1),border-color .3s ease,opacity .3s ease}.mu-card::before{content:"";position:absolute;right:-24%;top:-32%;width:78%;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--mu) 72%,transparent);border-radius:50%;box-shadow:0 0 4rem color-mix(in srgb,var(--mu) 18%,transparent),inset 0 0 3rem color-mix(in srgb,var(--mu) 12%,transparent)}.mu-card::after{content:"";position:absolute;inset:auto 0 0;height:2px;background:var(--mu);transform:scaleX(0);transform-origin:left;transition:transform .35s ease}.mu-card:hover,.mu-card.is-selected{transform:translateY(-.55rem);border-color:color-mix(in srgb,var(--mu) 75%,#fff 10%)}.mu-card.is-selected::after{transform:scaleX(1)}.mu-card[aria-current="true"]{opacity:.56}.mu-card__top,.mu-card__bottom{position:relative;z-index:2;display:flex;justify-content:space-between;gap:1rem;font-size:.45rem;letter-spacing:.16em}.mu-card__top i,.mu-card__bottom i{font-style:normal;opacity:.55}.mu-card__symbol{position:relative;z-index:2;align-self:center;font-size:clamp(4rem,8vw,7rem);line-height:1;font-weight:300;letter-spacing:-.08em;text-shadow:0 0 2.8rem color-mix(in srgb,var(--mu) 42%,transparent)}.mu-card__name{font-weight:500}.mu-card__domain{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mu-network-action{position:relative;z-index:14;justify-self:center;min-width:min(34rem,92vw);display:grid;grid-template-columns:1fr auto;align-items:center;gap:2rem;padding:1rem 1.1rem 1rem 1.35rem;border:1px solid rgba(255,255,255,.22);color:inherit;background:rgba(0,0,0,.34);text-decoration:none;text-align:left;cursor:pointer;transition:transform .35s ease,border-color .3s ease,background .3s ease}.mu-network-action:hover{border-color:var(--mu-selected,#fff);background:color-mix(in srgb,var(--mu-selected,#fff) 9%,rgba(0,0,0,.42))}.mu-network-action span{display:grid;gap:.35rem}.mu-network-action small{font-size:.42rem;letter-spacing:.17em;opacity:.58}.mu-network-action b{font-size:.82rem;letter-spacing:.16em;font-weight:500}.mu-network-action>i{font-size:2rem;font-style:normal;color:var(--mu-selected,#fff)}.mu-network-action.is-current{opacity:.5;cursor:not-allowed}
.mu-network-footer{position:relative;z-index:14;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12);font-size:.44rem;letter-spacing:.15em}.mu-network-footer a{color:inherit;text-decoration:none}.mu-network-footer a:hover{color:var(--mu-selected,#fff)}
body[data-quality="eco"] .mu-card::before{box-shadow:none}
@media(max-width:900px){.mu-header-link--official{display:none}.mu-network-layout{padding:12vh 1rem 1rem!important}.mu-network-head{display:block}.mu-network-domain{display:none}.mu-network-shell{grid-template-columns:2.8rem minmax(0,1fr) 2.8rem}.mu-arrow{width:2.8rem}.mu-card{width:min(72vw,19rem)}.mu-track{padding-inline:50%}.mu-network-footer span{display:none}}
@media(max-width:560px){.mu-header-link{display:none}.mu-network-head h2{font-size:clamp(3rem,18vw,6rem)}.mu-network-shell{margin-inline:-.5rem;gap:.35rem}.mu-card{width:72vw;padding:.8rem}.mu-card__symbol{font-size:5rem}.mu-network-action{min-width:92vw}.mu-network-footer{justify-content:center}}


/* MATERIAL UNIVERSE V3 — GPU/CSS performance tiers */
body.is-idle .film{opacity:.025}
body.is-idle .light-leak{opacity:.22}
body[data-quality="eco"] .film,
body[data-quality="eco"] .light-leak,
body[data-quality="eco"] .refraction-field,
body[data-quality="eco"] .spectral-lines,
body[data-quality="eco"] .reflection-array{display:none!important}
body[data-quality="eco"] .material-console,
body[data-quality="eco"] .model-selector,
body[data-quality="eco"] .artifact-selector,
body[data-quality="eco"] .specimen-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(8,5,1,.88)!important}
.chapter__sticky{contain:layout style paint;backface-visibility:hidden}
#world-stage,#particles{transform:translateZ(0)}
@media(max-width:900px){
  .film,.light-leak{display:none!important}
  .refraction-field{opacity:.28;filter:none!important}
  .material-console,.model-selector,.artifact-selector,.specimen-card,.utility-button,.sound-button,.mu-network-action{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(prefers-reduced-motion:reduce){.film,.light-leak,.refraction-field,.spectral-lines,.reflection-array{display:none!important}}


/* MATERIAL UNIVERSE 4 / PERFORMANCE EDITION */
body:not([data-quality="high"]) .material-console,
body:not([data-quality="high"]) .model-selector,
body:not([data-quality="high"]) .artifact-selector,
body:not([data-quality="high"]) .specimen-card,
body:not([data-quality="high"]) .utility-button,
body:not([data-quality="high"]) .sound-button,
body:not([data-quality="high"]) .mu-network-action{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(10,6,1,.82)!important
}
body.is-idle .spectral-lines,body.is-idle .reflection-array,body.is-idle .refraction-field{animation-play-state:paused!important}
body[data-quality="eco"] .film,body[data-quality="eco"] .light-leak{display:none!important}
#stage,#particles{contain:strict}
@media(max-width:760px){.film,.light-leak,.spectral-lines{display:none!important}}
