/*
 * EON OS presentation stage.
 * Colour system encodes the thesis: teal = digital intelligence,
 * warm gold = physical matter (pods, powder, doses). Gold appears only
 * when the formula becomes physical.
 */
:root {
  --void: #050a0f;
  --surface: #0b141c;
  --surface-2: #101d27;
  --eon: #4fe3c1;
  --eon-soft: rgba(79, 227, 193, 0.55);
  --eon-deep: #0e7a66;
  --gold: #d8b24a;
  --gold-soft: rgba(216, 178, 74, 0.5);
  --ivory: #edf4f2;
  --mist: #7c929b;
  --line: rgba(79, 227, 193, 0.16);
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--void);
  color: var(--ivory);
  font-family: var(--display);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

.stage { position: relative; width: 100vw; height: 100vh; }

.field-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}

/* ---- scenes ---- */
.scene {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 28px);
  padding: 4vh 5vw 9vh;
  text-align: center;
  animation: sceneIn 0.9s ease both;
}
.scene.is-active { display: flex; }

@keyframes sceneIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.34em;
  color: var(--eon);
}

.mega {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.08;
}
.mega--center { text-align: center; }

.scene-title {
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.09em;
}
.scene-title--gold { color: var(--gold); }

.sub-line { color: var(--mist); font-size: clamp(15px, 1.5vw, 22px); letter-spacing: 0.06em; }

/* ---- standby ---- */
.standby-center { display: flex; flex-direction: column; align-items: center; gap: 3.4vh; }
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--eon);
  box-shadow: 0 0 22px var(--eon);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 42px var(--eon); } }
.brand-title { font-size: clamp(34px, 3.6vw, 56px); font-weight: 200; letter-spacing: 0.5em; text-indent: 0.5em; }
.brand-sub { font-family: var(--mono); font-size: clamp(10px, 0.9vw, 13px); letter-spacing: 0.2em; color: var(--mist); }

.standby-ring { width: clamp(240px, 30vh, 380px); }
.standby-ring .pod-ring { width: 100%; height: auto; }

.connect-card {
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 34px;
  background: rgba(11, 20, 28, 0.72);
}
.connect-qr { width: clamp(110px, 15vh, 160px); flex-shrink: 0; }
.connect-qr:empty { display: none; }
.connect-qr svg { display: block; width: 100%; height: auto; }
.connect-text { text-align: left; }
.connect-label { font-size: 13px; color: var(--mist); letter-spacing: 0.12em; text-transform: uppercase; }
.connect-url { font-family: var(--mono); font-size: clamp(18px, 2vw, 28px); color: var(--eon); margin: 8px 0; }
.connect-waiting { font-size: 13px; color: var(--mist); display: flex; align-items: center; gap: 8px; justify-content: center; }
.wait-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eon); animation: breathe 1.6s ease-in-out infinite; }

/* ---- receive ---- */
.receive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  width: min(1100px, 88vw);
}
.profile-stream { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 1.2vh; }
.profile-stream li {
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.profile-stream li.is-on { opacity: 1; transform: none; }
.profile-stream b { color: var(--eon); font-weight: 500; }

.receive-core { position: relative; display: grid; place-items: center; min-height: 34vh; }
.core-orb {
  width: clamp(150px, 20vh, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, rgba(79, 227, 193, 0.35), rgba(14, 122, 102, 0.12) 55%, transparent 75%);
  border: 1px solid var(--eon-soft);
  box-shadow: 0 0 70px rgba(79, 227, 193, 0.22), inset 0 0 46px rgba(79, 227, 193, 0.12);
  animation: breathe 4s ease-in-out infinite;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 300;
  letter-spacing: 0.14em;
}
.thesis-line {
  font-family: var(--mono);
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.22em;
  color: var(--mist);
}

/* ---- think ---- */
.think-stack { display: flex; flex-direction: column; gap: 1.5vh; }
.think-step {
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--mist);
  opacity: 0.22;
  transition: opacity 0.45s ease, color 0.45s ease, text-shadow 0.45s ease;
}
.think-step.is-on { opacity: 1; color: var(--ivory); }
.think-step.is-done { opacity: 0.55; color: var(--eon); }
.think-step--ready.is-on {
  color: var(--eon);
  font-weight: 500;
  text-shadow: 0 0 34px rgba(79, 227, 193, 0.6);
}

/* ---- reveal ---- */
.reveal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 44vh) 1fr;
  gap: 4vw;
  align-items: center;
  width: min(1240px, 92vw);
  text-align: left;
}
.reveal-ring .pod-ring, .dispense-ring .pod-ring { width: 100%; height: auto; }

.formula-table { width: 100%; border-collapse: collapse; }
.formula-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: left;
  padding: 0 12px 10px;
}
.formula-table th:last-child, .formula-table td:last-child { text-align: right; }
.formula-table tbody tr {
  border-top: 1px solid rgba(124, 146, 155, 0.14);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.formula-table tbody tr.is-on { opacity: 1; transform: none; }
.formula-table td { padding: 12px; font-size: clamp(15px, 1.5vw, 21px); font-weight: 300; }
.formula-table td.pod-code { font-family: var(--mono); color: var(--gold); font-size: clamp(13px, 1.2vw, 17px); }
.formula-table td.pod-dose { font-family: var(--mono); color: var(--gold); }
.formula-table td .pod-sub { display: block; font-size: 12px; color: var(--mist); margin-top: 2px; }
.formula-table tfoot td {
  border-top: 1px solid var(--gold-soft);
  font-weight: 600;
  color: var(--gold);
  font-family: var(--mono);
}

.explain {
  margin-top: 2vh;
  font-size: clamp(14px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--mist);
  max-width: 60ch;
}
.explain b { color: var(--ivory); font-weight: 500; }

.safety-list {
  margin-top: 1.6vh;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.safety-list li {
  font-family: var(--mono);
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.06em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.safety-list li.is-on { opacity: 1; }
.safety-list li::before { content: '✓ '; color: var(--eon); }
.safety-list li.is-locked::before { content: '🔒 '; }

/* ---- send ---- */
.send-checklist { list-style: none; display: flex; flex-direction: column; gap: 1.6vh; margin-top: 2vh; }
.send-checklist li {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--mist);
  opacity: 0.3;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.send-checklist li.is-on { opacity: 1; color: var(--ivory); }
.send-checklist li.is-on::after { content: ' ✓'; color: var(--eon); }

/* ---- dispense ---- */
.dispense-grid {
  display: grid;
  grid-template-columns: minmax(320px, 52vh) 1fr;
  gap: 4vw;
  align-items: center;
  width: min(1240px, 92vw);
  text-align: left;
}
.machine { position: relative; display: flex; flex-direction: column; align-items: center; }
.dispense-ring { width: 100%; position: relative; z-index: 2; }

/* dispenser chassis — a rendered stand-in for the physical Nurieon housing */
.chassis {
  position: absolute;
  inset: -3% -6% 18% -6%;
  border: 1px solid rgba(124, 146, 155, 0.22);
  border-radius: 48% 48% 14% 14% / 40% 40% 8% 8%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(79, 227, 193, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(16, 29, 39, 0.55), rgba(5, 10, 15, 0.2));
  box-shadow: inset 0 0 60px rgba(5, 10, 15, 0.8), 0 30px 80px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.chassis::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 227, 193, 0.5), transparent);
}
.chassis-tag {
  position: absolute;
  bottom: 3%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(124, 146, 155, 0.7);
}
.chassis-tag--l { left: 7%; }
.chassis-tag--r { right: 7%; }

/* dosing head under the hub */
.nozzle {
  position: relative;
  z-index: 3;
  width: 34px;
  height: 22px;
  margin-top: -2.2vh;
  border: 1px solid rgba(237, 244, 242, 0.35);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(16, 29, 39, 0.9), rgba(5, 10, 15, 0.95));
}
.nozzle span {
  position: absolute;
  left: 50%; bottom: -3px;
  width: 8px; height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: rgba(216, 178, 74, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.dispense-ring:has(.pod-ring.is-flowing) ~ .nozzle span { background: rgba(216, 178, 74, 0.95); box-shadow: 0 0 14px rgba(216, 178, 74, 0.8); }

.powder-canvas {
  position: absolute;
  left: 50%; top: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 46%;
  pointer-events: none;
  z-index: 2;
}

/* cup with depth */
.cup {
  width: clamp(76px, 9.5vh, 116px);
  aspect-ratio: 0.9;
  margin-top: 0.4vh;
  position: relative;
  z-index: 3;
}
.cup-glass {
  position: absolute; inset: 0;
  border: 2px solid rgba(237, 244, 242, 0.5);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(90deg, rgba(237, 244, 242, 0.08), rgba(237, 244, 242, 0.0) 35%, rgba(237, 244, 242, 0.0) 65%, rgba(237, 244, 242, 0.06));
  box-shadow: inset 0 -14px 24px rgba(0, 0, 0, 0.45);
}
.cup-rim {
  position: absolute; left: -3px; right: -3px; top: -6px;
  height: 12px;
  border: 2px solid rgba(237, 244, 242, 0.6);
  border-radius: 50%;
  background: rgba(5, 10, 15, 0.3);
}
.cup-fill {
  position: absolute; left: 2px; right: 2px; bottom: 2px;
  height: 0%;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, rgba(232, 200, 110, 0.8), rgba(216, 178, 74, 0.98));
  box-shadow: 0 0 22px rgba(216, 178, 74, 0.35);
  transition: height 0.9s ease;
}
.cup-surface {
  position: absolute; left: 0; right: 0; top: -5px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 214, 140, 0.95);
}

.dose-readout { list-style: none; display: flex; flex-direction: column; gap: 1.8vh; }
.dose-readout li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  opacity: 0.28;
  transition: opacity 0.4s ease;
  border-bottom: 1px solid rgba(124, 146, 155, 0.12);
  padding-bottom: 1.2vh;
}
.dose-readout li.is-active { opacity: 1; }
.dose-readout li.is-done { opacity: 0.72; }
.dose-readout .dr-name { font-size: clamp(16px, 1.7vw, 24px); font-weight: 300; }
.dose-readout .dr-name small { display: block; font-size: 12px; color: var(--mist); }
.dose-readout .dr-val { font-family: var(--mono); font-size: clamp(18px, 2vw, 30px); color: var(--gold); }
.dose-readout li.is-done .dr-val::after { content: ' ✓'; color: var(--eon); font-size: 0.7em; }

.dispense-status {
  margin-top: 2.4vh;
  font-family: var(--mono);
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: 0.16em;
  color: var(--mist);
  min-height: 1.4em;
}

/* ---- complete ---- */
.complete-stats { display: flex; gap: clamp(30px, 6vw, 90px); margin-bottom: 2vh; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-num {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 150;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-family: var(--mono); font-size: clamp(10px, 0.95vw, 13px); letter-spacing: 0.3em; color: var(--mist); }
.ready-badge {
  font-family: var(--mono);
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--eon);
  border: 1px solid var(--eon-soft);
  border-radius: 999px;
  padding: 12px 36px;
  animation: breathe 2.8s ease-in-out infinite;
}

/* ---- twin ---- */
.twin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 40vh) 1fr;
  gap: 4vw;
  align-items: center;
  width: min(1180px, 92vw);
  text-align: left;
}
.twin-portrait { position: relative; display: grid; place-items: center; }
.twin-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(79, 227, 193, 0.4);
  box-shadow: 0 0 80px rgba(79, 227, 193, 0.22);
  position: relative;
  z-index: 1;
}
.twin-halo {
  position: absolute;
  inset: -14%;
  z-index: 0;
}
.twin-halo .pod-ring { width: 100%; height: auto; opacity: 0.5; }
.twin-accumulate { position: absolute; inset: -18%; z-index: 2; pointer-events: none; }
.twin-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.14em;
  color: var(--eon);
  background: rgba(5, 10, 15, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.9);
}
.twin-tag.is-on { opacity: 1; transform: none; }

.twin-side { display: flex; flex-direction: column; gap: 2.6vh; }
.twin-block-label {
  font-family: var(--mono);
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.3em;
  color: var(--eon);
  margin-bottom: 1vh;
}
.twin-state { list-style: none; display: flex; flex-direction: column; gap: 0.7vh; }
.twin-state li { font-size: clamp(15px, 1.5vw, 21px); font-weight: 300; color: var(--mist); }
.twin-state b { color: var(--ivory); font-weight: 500; }
.twin-support { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.twin-support li {
  font-size: clamp(13px, 1.25vw, 17px);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  border-radius: 999px;
  padding: 7px 16px;
}
.twin-intended { font-size: clamp(16px, 1.7vw, 24px); font-weight: 300; letter-spacing: 0.14em; color: var(--eon); }
.twin-footline {
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* ---- network ---- */
#s-network { justify-content: flex-start; padding-top: 7vh; }
.network-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.network-counter {
  position: relative;
  font-size: clamp(30px, 4.2vw, 64px);
  font-weight: 200;
  letter-spacing: 0.12em;
  margin-top: 1vh;
  text-shadow: 0 0 40px rgba(79, 227, 193, 0.4);
}
.network-note {
  position: relative;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--mist);
}
.flywheel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
  margin-top: 1.6vh;
  background: rgba(5, 10, 15, 0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.4vh 4vw;
}
.flywheel p { font-size: clamp(13px, 1.4vw, 20px); font-weight: 300; letter-spacing: 0.16em; }
.flywheel span { color: var(--eon); font-size: clamp(12px, 1.2vw, 17px); }
.flywheel-final { color: var(--eon); font-weight: 500; }

/* ---- story ---- */
.story-stack { display: flex; flex-direction: column; gap: 2.6vh; }
.story-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.story-item.is-on { opacity: 1; transform: none; }
.story-item h3 { font-size: clamp(22px, 2.6vw, 40px); font-weight: 300; letter-spacing: 0.24em; }
.story-item p { font-family: var(--mono); font-size: clamp(11px, 1.05vw, 14px); color: var(--mist); letter-spacing: 0.14em; margin-top: 4px; }

.story-creed { display: flex; flex-direction: column; gap: 1.6vh; }
.story-creed p {
  font-size: clamp(20px, 2.6vw, 40px);
  font-weight: 200;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.story-creed p.is-on { opacity: 1; }
.story-creed p:nth-child(odd).is-on { color: var(--eon); }

/* ---- Nuri caption bar ---- */
.nuri-bar {
  position: absolute;
  left: 50%; bottom: 4.5vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(980px, 86vw);
  background: rgba(11, 20, 28, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 30px;
  backdrop-filter: blur(8px);
  z-index: 30;
}
.nuri-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.nuri-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--eon);
  animation: wave 1.1s ease-in-out infinite;
}
.nuri-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.nuri-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.nuri-wave span:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.nuri-wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.nuri-wave span:nth-child(5) { height: 9px; animation-delay: 0.6s; }
@keyframes wave { 50% { transform: scaleY(0.4); } }
.nuri-caption { font-size: clamp(14px, 1.5vw, 21px); font-weight: 300; line-height: 1.4; }

/* ---- operator hints ---- */
.operator-hints {
  position: absolute;
  right: 16px; bottom: 12px;
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(124, 146, 155, 0.55);
  z-index: 40;
  opacity: 0.75;
}

/* ---- pod ring (shared geometry) ---- */
.pod-ring .ring-rim { fill: none; stroke: rgba(124, 146, 155, 0.3); stroke-width: 1.2; }
.pod-ring .ring-rim--faint { stroke: rgba(124, 146, 155, 0.14); }
.pod-ring .pod-shell { fill: rgba(16, 29, 39, 0.9); stroke: rgba(124, 146, 155, 0.4); stroke-width: 1.1; transition: stroke 0.5s ease, filter 0.5s ease; }
.pod-ring .pod-core { fill: rgba(124, 146, 155, 0.18); transition: fill 0.5s ease; }
.pod-ring .pod-num { fill: var(--mist); font-family: var(--mono); font-size: 13px; transition: fill 0.5s ease; }
.pod-ring .pod-label { fill: rgba(124, 146, 155, 0.75); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; }
.pod-ring .flavour-shell { fill: rgba(16, 29, 39, 0.8); stroke: rgba(124, 146, 155, 0.25); stroke-width: 1; }
.pod-ring .hub-outer { fill: none; stroke: var(--eon-soft); stroke-width: 1.2; }
.pod-ring .hub-inner { fill: rgba(79, 227, 193, 0.12); stroke: rgba(79, 227, 193, 0.3); stroke-width: 1; }

.pod-cell.is-lit .pod-shell { stroke: var(--gold); filter: drop-shadow(0 0 9px rgba(216, 178, 74, 0.65)); }
.pod-cell.is-lit .pod-core { fill: rgba(216, 178, 74, 0.55); }
.pod-cell.is-lit .pod-num { fill: var(--gold); }
.pod-cell.is-dispensing .pod-shell { stroke: var(--ivory); filter: drop-shadow(0 0 16px rgba(216, 178, 74, 0.95)); }
.pod-cell.is-dispensing .pod-core { fill: rgba(216, 178, 74, 0.95); }

/* dosing channel: pod → hub, animated flow while dispensing */
.pod-ring .pod-channel {
  stroke: rgba(216, 178, 74, 0);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 9;
  transition: stroke 0.35s ease;
}
.pod-cell.is-dispensing .pod-channel {
  stroke: rgba(232, 200, 110, 0.9);
  filter: drop-shadow(0 0 6px rgba(216, 178, 74, 0.7));
  animation: channel-flow 0.6s linear infinite;
}
@keyframes channel-flow { to { stroke-dashoffset: -15; } }
.pod-ring .hub-core { fill: rgba(216, 178, 74, 0); transition: fill 0.4s ease; }
.pod-ring.is-flowing .hub-core { fill: rgba(216, 178, 74, 0.95); filter: drop-shadow(0 0 10px rgba(216, 178, 74, 0.8)); }
.pod-ring.is-flowing .hub-inner { fill: rgba(216, 178, 74, 0.18); stroke: rgba(216, 178, 74, 0.55); }

.ring-rotor { transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1); }
.ring-rotor.is-spinning { animation: rotorSpin 14s linear infinite; }
@keyframes rotorSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .scene { animation: none; }
  .ring-rotor.is-spinning, .core-orb, .brand-dot, .ready-badge, .nuri-wave span { animation: none; }
}

/* ---- produced film overlay ---------------------------------------------- */
.film-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.film-overlay.is-on { opacity: 1; }
.film-overlay video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ---- operator toast ------------------------------------------------------ */
.stage-toast {
  position: fixed;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.7em 1.4em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 10, 15, 0.85);
  color: var(--eon);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
}

/* ---- saved profile library (home screen) --------------------------------- */
.library {
  position: absolute;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, 26vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 20, 28, 0.78);
  text-align: left;
  z-index: 5;
}
.library-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mist);
}
.library-title span { color: var(--eon); }
.library-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}
.library-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(124, 146, 155, 0.16);
  border-radius: 10px;
  background: rgba(5, 10, 15, 0.45);
  transition: border-color 0.25s ease;
}
.library-item:hover { border-color: rgba(79, 227, 193, 0.45); }
.library-item.is-active { border-color: var(--eon); }
.library-avatar {
  width: 44px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(79, 227, 193, 0.08);
  display: grid; place-items: center;
  color: var(--eon);
  font-weight: 200;
  font-size: 22px;
}
.library-name { font-size: 16px; font-weight: 300; color: var(--ivory); }
.library-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--mist); margin-top: 3px; }
.library-actions { display: flex; flex-direction: column; gap: 6px; }
.library-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(79, 227, 193, 0.45);
  background: transparent;
  color: var(--eon);
  cursor: pointer;
}
.library-btn:hover { background: rgba(79, 227, 193, 0.12); }
.library-btn--danger { border-color: rgba(214, 96, 96, 0.5); color: #e08a8a; }
.library-btn--danger:hover { background: rgba(214, 96, 96, 0.14); }
.library-btn--confirm { background: rgba(214, 96, 96, 0.85); color: #fff; border-color: transparent; }
.library-note { font-size: 11.5px; color: var(--mist); line-height: 1.4; }
.library-empty { font-size: 13px; color: var(--mist); padding: 6px 2px; }

/* ---- Nuri mute button ----------------------------------------------------- */
.mute-btn {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 10, 15, 0.7);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.mute-btn:hover, .mute-btn:focus-visible { opacity: 1; outline: none; }
.mute-icon {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--eon);
  box-shadow: 0 0 10px var(--eon);
}
.mute-btn.is-muted { opacity: 1; border-color: rgba(214, 96, 96, 0.55); color: #e08a8a; }
.mute-btn.is-muted .mute-icon { background: #d66060; box-shadow: none; }
