@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --void: #0a090e;
  --void-2: #121018;
  --ink: #f4ece0;
  --mute: #b7aa98;
  --sand: #e8dcc8;
  --gold: #d4b483;
  --gold-2: #f0d7a8;
  --line: rgba(232, 220, 200, 0.16);
  --paper: rgba(18, 16, 24, 0.72);
  --cyan: #7ee7ff;
  --violet: #c4a0ff;
  --rose: #ff8ec8;
  --amber: #ffb45a;
  --lime: #8affc1;
  --accent: var(--gold-2);
}

* {
  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);
}

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(126, 231, 255, 0.16), transparent 58%),
    radial-gradient(820px 460px at 92% 0%, rgba(196, 160, 255, 0.14), transparent 55%),
    radial-gradient(980px 520px at 50% 108%, rgba(255, 180, 90, 0.1), transparent 58%),
    radial-gradient(640px 340px at 70% 40%, rgba(255, 142, 200, 0.07), 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: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  font-weight: 600;
}

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

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

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

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

.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(10, 9, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
}

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

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

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(--mute);
  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;
}

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

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

.eq {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin: 0.2rem 0 1.2rem;
}

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

.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;
  font: 600 0.88rem Outfit, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(240, 215, 168, 0.25), 0 10px 30px rgba(255, 180, 90, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.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: transparent;
  color: var(--sand);
  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;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  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(--mute);
  margin: 1.1rem 0 0.35rem;
}

.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.18);
  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);
  margin-bottom: 0.75rem;
}

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%, 26rem);
  margin: 0.2rem auto 1.5rem;
  filter: drop-shadow(0 0 28px rgba(196, 160, 255, 0.28));
}

.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(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.orbit b {
  font-family: "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;
}

.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: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--sand);
}

.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: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  background: rgba(12, 10, 18, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--sand);
  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(255, 255, 255, 0.04);
  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 .nav-toggle {
    display: inline-flex;
  }
  nav.top .links,
  nav.top .more {
    display: none;
    width: 100%;
  }
  nav.top.open .links,
  nav.top.open .more {
    display: flex;
  }
  nav.top.open .links {
    flex-direction: column;
    align-items: flex-start;
  }
  .orbit {
    grid-template-columns: repeat(3, 1fr);
  }
  .song-dock .song-title {
    display: none;
  }
}

.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 {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  margin: 0.4rem 0 1rem;
  display: block;
}

.science-panel h2 {
  margin-top: 0.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);
}

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