:root {
  --void: #06050d;
  --void-2: #0e0c16;
  --ink: #fff8ee;
  --mute: #ddd0be;
  --sand: #f6eee2;
  --gold: #e4c48c;
  --gold-2: #ffe7b8;
  --line: rgba(255, 248, 238, 0.28);
  --paper: rgba(6, 5, 13, 0.92);
  --cyan: #7ee7ff;
  --violet: #c4a0ff;
  --rose: #ff8ec8;
  --amber: #ffb45a;
  --lime: #8affc1;
  --accent: var(--gold-2);
  --read-shadow: 0 1px 2px rgba(6, 5, 13, 0.95), 0 0 18px rgba(6, 5, 13, 0.88);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
}

#rainbow-bridge {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

#rainbow-bridge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(1.45) brightness(1.28) contrast(1.1);
}

.grateful-light {
  position: fixed;
  left: max(0.7rem, env(safe-area-inset-left));
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 41;
  margin: 0;
  max-width: 16rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(6, 5, 13, 0.94);
  border: 1px solid rgba(255, 248, 238, 0.28);
  color: var(--gold-2);
  font-family: Fraunces, "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  background: var(--gold-2);
  color: #1a120c;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font: 600 0.82rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(980px 480px at 50% -12%, rgba(255, 248, 238, 0.22), transparent 58%),
    radial-gradient(900px 420px at 12% -8%, rgba(126, 231, 255, 0.28), transparent 58%),
    radial-gradient(820px 460px at 92% 0%, rgba(196, 160, 255, 0.26), transparent 55%),
    radial-gradient(980px 520px at 50% 108%, rgba(255, 180, 90, 0.22), transparent 58%),
    radial-gradient(640px 340px at 70% 40%, rgba(255, 142, 200, 0.16), transparent 62%);
  animation: aurora 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@keyframes aurora {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-2%, 1.5%, 0); }
}

a {
  color: var(--gold-2);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
.font-display {
  font-family: Fraunces, "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: var(--read-shadow);
}

h1 {
  font-size: clamp(2.05rem, 9vw, 5.4rem);
  font-weight: 600;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

p {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--sand);
  text-shadow: var(--read-shadow);
}

.muted,
.note {
  color: var(--mute);
  font-size: 0.95rem;
  text-shadow: var(--read-shadow);
}

.wrap {
  position: relative;
  z-index: 5;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.4rem 1.35rem 10.5rem;
}

.wrap::before {
  content: "";
  position: absolute;
  inset: 0.4rem 0.15rem 1.6rem;
  z-index: -1;
  pointer-events: none;
  background: rgba(6, 5, 13, 0.78);
  border-radius: 1.7rem;
  box-shadow: 0 0 80px 24px rgba(6, 5, 13, 0.55);
}

.wrap-wide {
  max-width: 62rem;
}

nav.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 5, 13, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
}

nav.top .brand {
  font-family: Fraunces, "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-right: 0.4rem;
  text-shadow: var(--read-shadow);
}

nav.top a {
  text-decoration: none;
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: var(--read-shadow);
}

nav.top a[aria-current="page"],
nav.top a:hover {
  color: var(--gold-2);
}

nav.top .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  align-items: center;
}

nav.top .nav-toggle {
  margin-left: auto;
  display: none;
}

nav.top .more {
  position: relative;
  margin-left: auto;
}

nav.top .more summary {
  list-style: none;
  cursor: pointer;
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.top .more summary::-webkit-details-marker {
  display: none;
}

nav.top .more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 11rem;
  padding: 0.7rem 0.85rem;
  background: rgba(18, 16, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.gradient-text {
  background: linear-gradient(110deg, #7ee7ff 0%, #c4a0ff 28%, #ff8ec8 52%, #ffb45a 78%, #8affc1 100%);
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wash 16s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(6, 5, 13, 0.95)) drop-shadow(0 0 10px rgba(6, 5, 13, 0.7));
}

@keyframes wash {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.alive {
  font-family: Fraunces, "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--gold-2);
  margin-bottom: 0.6rem;
  text-shadow: var(--read-shadow);
}

.eq {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  margin: 0.2rem 0 1.2rem;
  text-shadow: var(--read-shadow);
}

.seal {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 1.4rem 0 0.4rem;
  text-shadow: var(--read-shadow);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  background: linear-gradient(120deg, #f0d7a8, #ffb45a 40%, #ff8ec8 80%);
  color: #1a120c;
  padding: 0.82rem 1.35rem;
  min-height: 44px;
  font: 600 0.88rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.35), 0 10px 30px rgba(255, 180, 90, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  touch-action: manipulation;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.4), 0 16px 36px rgba(255, 142, 200, 0.22);
}

.btn.ghost,
button.btn.ghost {
  background: rgba(6, 5, 13, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost:hover,
button.btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  background: rgba(212, 180, 131, 0.08);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.grid2 {
  display: grid;
  gap: 0.95rem;
  margin: 1.3rem 0 1.7rem;
}

@media (min-width: 720px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

input,
textarea,
select {
  width: 100%;
  max-width: 40rem;
  font: inherit;
  font-size: 16px;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(6, 5, 13, 0.88);
  color: var(--ink);
  border-radius: 0.9rem;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.18);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 1.1rem 0 0.35rem;
  text-shadow: var(--read-shadow);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem;
  margin: 0;
  border-radius: 1.35rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  border-color: rgba(240, 215, 168, 0.45);
  transform: translateY(-3px);
}

.card p {
  margin-bottom: 0.65rem;
}

.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold-2);
  margin-bottom: 0.75rem;
  text-shadow: var(--read-shadow);
}

hr.line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.1rem 0;
}

.pips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.5rem;
}

.pip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pip.n3 { color: var(--amber); border-color: rgba(255, 180, 90, 0.4); }
.pip.n6 { color: var(--cyan); border-color: rgba(126, 231, 255, 0.4); }
.pip.n9 { color: var(--violet); border-color: rgba(196, 160, 255, 0.45); }
.pip.n12 { color: var(--lime); border-color: rgba(138, 255, 193, 0.4); }
.pip.n13 { color: var(--rose); border-color: rgba(255, 142, 200, 0.45); }

.torus-stage {
  width: min(100%, 28rem);
  margin: 0.2rem auto 1.5rem;
  filter:
    drop-shadow(0 0 18px rgba(255, 180, 90, 0.35))
    drop-shadow(0 0 36px rgba(126, 231, 255, 0.28))
    drop-shadow(0 0 56px rgba(196, 160, 255, 0.32))
    drop-shadow(0 0 80px rgba(255, 142, 200, 0.16));
  animation: torus-breathe 8s ease-in-out infinite;
}

.torus-stage svg,
.torus-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.spin {
  transform-origin: 200px 200px;
  animation: spin 64s linear infinite;
}

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

.orbit {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin: 1.6rem 0 1.8rem;
}

.orbit span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.4rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(6, 5, 13, 0.86);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  text-shadow: var(--read-shadow);
}

.orbit b {
  font-family: Fraunces, "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}

.orbit .o3 { box-shadow: inset 0 0 24px rgba(255, 180, 90, 0.18); }
.orbit .o6 { box-shadow: inset 0 0 24px rgba(126, 231, 255, 0.16); }
.orbit .o9 { box-shadow: inset 0 0 28px rgba(196, 160, 255, 0.22); }
.orbit .o12 { box-shadow: inset 0 0 24px rgba(138, 255, 193, 0.16); }
.orbit .o13 { box-shadow: inset 0 0 24px rgba(255, 142, 200, 0.18); }

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1rem;
}

.foot {
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
  text-shadow: var(--read-shadow);
}

.search-bar input[type="search"] {
  max-width: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.2rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(6, 5, 13, 0.82);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--sand);
  text-shadow: var(--read-shadow);
}

.chip.on {
  border-color: rgba(196, 160, 255, 0.55);
  color: var(--violet);
  background: rgba(196, 160, 255, 0.1);
}

.chip.check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--sand);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.chip.check input {
  width: auto;
  max-width: none;
  margin: 0;
}

.testimony-grid,
.room-grid {
  display: grid;
  gap: 0.95rem;
  margin: 1.3rem 0 1.7rem;
}

@media (min-width: 720px) {
  .testimony-grid,
  .room-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimony-photo,
.photo-preview img {
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
}

.song-dock {
  position: fixed;
  right: max(0.7rem, env(safe-area-inset-right));
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  background: rgba(6, 5, 13, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.song-dock button {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font: 600 0.68rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.song-dock button[aria-pressed="true"] {
  color: var(--void);
  background: var(--gold-2);
}

.song-dock .song-title {
  max-width: 9.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-dock.needs-tap {
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.35), 0 16px 40px rgba(255, 180, 90, 0.2);
}

pre.bus {
  white-space: pre-wrap;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  border: 1px solid var(--line);
  color: var(--mute);
  border-radius: 0.9rem;
}

.paths button {
  background: rgba(6, 5, 13, 0.9);
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font: 500 0.95rem Outfit, system-ui, sans-serif;
  cursor: pointer;
}

.paths button:hover,
.paths button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold-2);
}

.progress {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
}

.progress span {
  height: 2px;
  flex: 1;
  background: var(--line);
}

.progress span.on {
  background: var(--gold-2);
}

@media (max-width: 860px) {
  nav.top {
    padding: 0.65rem 0.85rem;
  }
  nav.top .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
  }
  nav.top .links,
  nav.top .more {
    display: none;
    width: 100%;
  }
  nav.top.open .links,
  nav.top.open .more {
    display: flex;
    max-height: 70dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.top.open .links {
    flex-direction: column;
    align-items: flex-start;
  }
  .orbit {
    grid-template-columns: repeat(3, 1fr);
  }
  .song-dock .song-title {
    display: none;
  }
  .grateful-light {
    left: max(0.6rem, env(safe-area-inset-left));
    right: auto;
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
    font-size: 0.88rem;
  }
  .wrap {
    padding: 1.15rem 0.95rem 9.75rem;
  }
  .wrap::before {
    inset: 7.2rem 0.1rem 1.6rem;
    border-radius: 1.2rem;
  }
  #rainbow-bridge img {
    object-position: center 6%;
    filter: saturate(1.4) brightness(1.25);
    opacity: 0.92;
  }
  body::before {
    animation: none;
  }
  body::after {
    display: none;
  }
  .art-hero {
    filter: none;
  }
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .row .btn,
  .row a.btn,
  .row button {
    width: 100%;
  }
  .live-frame {
    min-height: 62dvh;
  }
  .gallery {
    gap: 0.65rem;
  }
}

@media (max-width: 380px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .orbit {
    grid-template-columns: 1fr 1fr;
  }
}

.journey-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
}

.j-pip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: 500 0.68rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.j-pip.on {
  color: var(--void);
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.scale-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.3rem 0 1.6rem;
}

@media (min-width: 860px) {
  .scale-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scale-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem 1.2rem;
  color: var(--sand);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.scale-card img {
  width: 100%;
  max-height: 9rem;
  object-fit: contain;
  margin-bottom: 0.7rem;
}

.scale-card.on,
.scale-card:hover {
  border-color: rgba(240, 215, 168, 0.5);
  transform: translateY(-3px);
}

.science-art,
.art-hero,
.art-inline {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  margin: 0.4rem 0 1.15rem;
  display: block;
}

.art-hero {
  width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
  max-height: none;
  filter: drop-shadow(0 0 28px rgba(196, 160, 255, 0.28));
}

.art-thumb {
  width: 100%;
  height: 7.2rem;
  object-fit: contain;
  margin: 0 0 0.75rem;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0 1.8rem;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery a {
  text-decoration: none;
}

.door-art-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 1.5rem;
}

@media (min-width: 720px) {
  .door-art-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.door-art {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 0.85rem 0.95rem 1rem;
  color: var(--sand);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.door-art img {
  width: 100%;
  height: 7.5rem;
  object-fit: contain;
  margin-bottom: 0.45rem;
}

.door-art h2 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.door-art.on,
.door-art:hover {
  border-color: rgba(240, 215, 168, 0.5);
  transform: translateY(-3px);
}

.science-panel h2 {
  margin-top: 0.4rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.8rem 0 0.4rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--gold-2);
  background: rgba(6, 5, 13, 0.88);
  border-radius: 0 1rem 1rem 0;
  color: var(--sand);
  max-width: 46rem;
  text-shadow: var(--read-shadow);
}

figure {
  margin: 0 0 1.4rem;
}

figcaption {
  color: var(--mute);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  text-shadow: var(--read-shadow);
}

.study-list {
  max-width: 46rem;
  padding-left: 1.2rem;
  color: var(--sand);
}

.study-list li {
  margin: 0 0 0.65rem;
}

.lib-nav {
  margin-bottom: 1.4rem;
}

.lead-door {
  border-color: rgba(240, 215, 168, 0.45);
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.2), 0 24px 60px rgba(255, 180, 90, 0.12);
}

.carry-row {
  margin-bottom: 1.2rem;
}

.carry-row .chip.check {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
}

.carry-row .chip.check.on {
  border-color: rgba(196, 160, 255, 0.55);
  color: var(--violet);
  background: rgba(196, 160, 255, 0.1);
}

#rsvp .chip.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0;
  max-width: 40rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sand);
  text-shadow: var(--read-shadow);
}

.consult-form label {
  display: block;
  margin: 0.9rem 0 0.3rem;
}

.consult-form input {
  width: 100%;
  max-width: 28rem;
}

.consult-form label.chip.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 40rem;
  text-transform: none;
  letter-spacing: 0;
}

#screen > .row {
  position: sticky;
  bottom: 5.2rem;
  z-index: 12;
  padding: 0.55rem 0.45rem;
  margin-top: 1.1rem;
  background: rgba(6, 5, 13, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.live-frame {
  position: relative;
  width: 100%;
  min-height: 72vh;
  margin: 0.6rem 0 1.2rem;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #06050d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.live-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ask-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ask-pair .btn[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--gold-2);
}

.text-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.stepper .beat {
  display: none;
}

.stepper .beat.on {
  display: block;
}

.stepper-nav {
  align-items: center;
  margin-top: 1rem;
}

.job .job-open {
  display: none;
  margin: 0.6rem 0 0;
  text-align: left;
}

.job[aria-expanded="true"] .job-open {
  display: block;
}

.play-sea {
  position: relative;
  min-height: 14rem;
  margin: 0.8rem 0 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 50% 40%, #3a2a22, #121018);
  overflow: hidden;
}

.play-sea.clean {
  background: radial-gradient(80% 70% at 50% 40%, #1a3a44, #0c1c24);
}

.play-fish {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 2px solid #c4a0ff;
  color: #c4a0ff;
  font: 700 1.4rem Fraunces, "Cormorant Garamond", Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mote {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mote.waste {
  background: #ff8ec8;
  box-shadow: 0 0 12px rgba(255, 142, 200, 0.45);
}

.mote.mineral {
  background: #ffe7b8;
  box-shadow: 0 0 12px rgba(255, 231, 184, 0.5);
}

.mote.gone {
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.quiz-item button {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0 0 0.55rem;
  text-align: left;
  background: rgba(6, 5, 13, 0.88);
  color: var(--sand);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}

.quiz-item button.ok {
  border-color: var(--lime);
  color: var(--lime);
}

.quiz-item button.no {
  border-color: var(--rose);
  color: var(--rose);
}

.vid-slot {
  margin: 0.8rem 0 1rem;
}

.depth-ask {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.depth-ask p {
  margin-bottom: 0.7rem;
}

[data-layer][hidden] {
  display: none !important;
}


.teach {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  max-width: 40rem;
}

.teach li {
  margin: 0 0 0.7rem;
  color: var(--sand);
  text-shadow: var(--read-shadow);
}

.gold-box {
  margin: 1.5rem 0 0.2rem;
  padding: 1.1rem 1.2rem;
  max-width: 40rem;
  color: var(--gold-2);
  background: rgba(228, 196, 140, 0.1);
  border: 1px solid rgba(240, 215, 168, 0.55);
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.18), 0 0 36px rgba(255, 180, 90, 0.14);
  text-shadow: var(--read-shadow);
}

@keyframes torus-breathe {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 18px rgba(255, 180, 90, 0.3))
      drop-shadow(0 0 36px rgba(126, 231, 255, 0.22))
      drop-shadow(0 0 56px rgba(196, 160, 255, 0.26))
      drop-shadow(0 0 80px rgba(255, 142, 200, 0.12));
  }
  50% {
    transform: scale(1.035);
    filter:
      drop-shadow(0 0 26px rgba(255, 180, 90, 0.48))
      drop-shadow(0 0 48px rgba(126, 231, 255, 0.36))
      drop-shadow(0 0 72px rgba(196, 160, 255, 0.4))
      drop-shadow(0 0 96px rgba(255, 142, 200, 0.22));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
