/* ============================================================
   AXAEON — The Codex of the Orb · shared stylesheet
   ============================================================ */
:root {
  --void: #04030a;
  --ink: #ded7ea;
  --ink-dim: #968dab;
  --gold: #c9a959;
  --gold-bright: #efd9a0;
  --astral: #7e63d1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: 'Author', 'EB Garamond', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
#sky { position: fixed; inset: 0; z-index: 0; }

/* ---------- Constellation sidebar ---------- */
.constellation-nav {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 234px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 42px 0 34px 42px;
}
.nav-main {
  position: relative;
  margin: auto 0;
  display: flex;
  flex-direction: column;
}
.nav-main::before {
  content: '';
  position: absolute;
  left: 3px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,169,89,0.45), rgba(201,169,89,0.45), transparent);
}
.constellation-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  transition: color .3s;
}
.constellation-nav a .star-node {
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink-dim);
  box-shadow: 0 0 6px rgba(222,215,234,0.4);
  transition: all .3s;
}
.constellation-nav a:hover, .constellation-nav a.active { color: var(--gold-bright); }
.constellation-nav a:hover .star-node, .constellation-nav a.active .star-node {
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(239,217,160,0.9), 0 0 26px rgba(201,169,89,0.5);
  transform: scale(1.5);
}
/* Nested sub-links (Art → Reference Sheets / Fan Art) */
.nav-group { display: flex; flex-direction: column; }
.nav-group .nav-sub {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}
.nav-group:hover .nav-sub, .nav-group.open .nav-sub { max-height: 130px; }
.nav-sub a {
  padding: 8px 0 8px 22px;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  gap: 12px;
  white-space: nowrap;
}
.nav-sub a .star-node {
  width: 5px; height: 5px;
  box-shadow: 0 0 4px rgba(222,215,234,0.35);
}
.nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
}
.nav-bottom .credits-link {
  color: var(--ink-dim);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  transition: color .3s, opacity .3s;
}
.nav-bottom .credits-link:hover { color: var(--gold-bright); opacity: 1; }
.nav-bottom .credits-link.active { color: var(--gold-bright); opacity: 1; }
.socials-col {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 132px;
}
.socials-col a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid rgba(150,141,171,0.35);
  border-radius: 50%;
  color: var(--ink-dim);
  font-size: 0.66rem;
  font-family: 'Cinzel', serif;
  text-decoration: none;
  transition: all .3s;
  padding: 0;
}
.socials-col a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201,169,89,0.4);
}

main { position: relative; z-index: 5; margin-left: 234px; }

/* ---------- Hero: the Orb (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
}
.orb-assembly {
  position: relative;
  width: 300px; height: 300px;
  margin-bottom: 44px;
}
.corona {
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,150,255,0.4) 25%, rgba(126,99,209,0.22) 55%, transparent 72%);
  filter: blur(16px);
  animation: coronaPulse 5s ease-in-out infinite;
}
@keyframes coronaPulse {
  0%,100% { transform: scale(1);    opacity: 0.8; }
  50%     { transform: scale(1.12); opacity: 1; }
}
.orb {
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 32%,
      rgba(255,255,255,0.98) 0%,
      rgba(170,215,255,0.95) 9%,
      rgba(96,140,255,0.85) 28%,
      rgba(120,80,230,0.9) 52%,
      rgba(70,45,170,0.92) 74%,
      rgba(40,24,110,0.85) 100%);
  box-shadow: inset -14px -18px 50px rgba(10,6,30,0.4);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 78%, transparent 98%);
  mask-image: radial-gradient(circle closest-side, #000 78%, transparent 98%);
  animation: breathe 6s ease-in-out infinite;
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.orb-halo {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(110,150,255,0.4) 28%,
    rgba(120,110,230,0.26) 48%,
    rgba(126,99,209,0.12) 63%,
    rgba(126,99,209,0.04) 72%,
    transparent 80%);
  filter: blur(6px);
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.orb::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(140,195,255,0.55) 40deg,
    transparent 95deg,
    rgba(170,115,255,0.5) 160deg,
    transparent 225deg,
    rgba(95,145,255,0.48) 300deg,
    transparent 360deg);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: spin 13s linear infinite;
}
.orb::after {
  content: '';
  position: absolute;
  inset: -18%;
  background: conic-gradient(from 180deg,
    transparent 0deg,
    rgba(205,160,255,0.42) 60deg,
    transparent 135deg,
    rgba(120,180,255,0.46) 230deg,
    transparent 310deg);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: spin 8s linear infinite reverse;
}
@keyframes breathe {
  0%,100% { filter: brightness(1) saturate(1); }
  50%     { filter: brightness(1.25) saturate(1.15); }
}
.orb .surface {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.028' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  animation: spin 70s linear infinite;
}
.orb .surface.fine {
  inset: -6%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09' numOctaves='3' seed='21'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.28;
  mix-blend-mode: overlay;
  animation: spin 45s linear infinite reverse;
}
.ring-text {
  position: absolute;
  inset: 0;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ring-text text {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  letter-spacing: 4px;
  fill: var(--gold);
  opacity: 0.85;
}
.halo-ring {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,89,0.22);
  animation: spin 90s linear infinite reverse;
}
.halo-ring::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(239,217,160,0.9);
}
.hero-logo {
  width: min(720px, 88vw);
  aspect-ratio: 8 / 3;
  object-fit: cover;
  filter: brightness(0.8) drop-shadow(0 0 26px rgba(126,99,209,0.28));
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  background: linear-gradient(180deg, var(--ink) 20%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(201,169,89,0.25);
}
.hero .tagline {
  margin-top: 20px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.22rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.hero .divider, .page-divider {
  margin: 34px auto 30px;
  width: 220px; height: 14px;
  background:
    radial-gradient(circle 3px at center, var(--gold) 40%, transparent 42%) center / 14px 14px no-repeat,
    linear-gradient(90deg, transparent, rgba(201,169,89,0.6) 30%, rgba(201,169,89,0.6) 70%, transparent) center / 100% 1px no-repeat;
}
.cta-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 34px;
  transition: all .35s;
}
.btn-seal {
  color: #120c26;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-seal:hover { box-shadow: 0 0 34px rgba(201,169,89,0.55); transform: translateY(-2px); }
.btn-rune {
  color: var(--ink);
  border: 1px solid rgba(126,99,209,0.55);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-rune:hover { background: rgba(126,99,209,0.15); border-color: var(--astral); transform: translateY(-2px); }

/* ---------- Subpage header ---------- */
.page-head {
  padding: 110px 5vw 0;
  text-align: center;
}
.page-head h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  background: linear-gradient(180deg, var(--ink) 20%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head .page-sub {
  margin-top: 14px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-dim);
}

/* ---------- Codex sections ---------- */
section {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 5vw;
}
section.wide { max-width: 1040px; }
.chapter-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 34px;
}
.chapter-heading .numeral {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.chapter-heading h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
}
.chapter-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,169,89,0.5), transparent);
}
.lore-layout::after { content: ''; display: block; clear: both; }
.lore-figure {
  float: left;
  width: 225px;
  margin: 8px 38px 16px 0;
}
@media (max-width: 680px) {
  .lore-figure { float: none; width: auto; max-width: 260px; margin: 0 auto 28px; }
}
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(201,169,89,0.55);
  padding: 10px;
  background: rgba(10,7,24,0.6);
}
.portrait-frame::before, .portrait-frame::after {
  content: '✦';
  position: absolute;
  color: var(--gold);
  font-size: 0.8rem;
  background: var(--void);
  padding: 0 6px;
}
.portrait-frame::before { top: -9px; left: 14px; }
.portrait-frame::after  { bottom: -9px; right: 14px; }
.portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.portrait-inner {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 34%, rgba(126,99,209,0.3) 0%, transparent 55%),
    linear-gradient(165deg, #191038, #0a0618);
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  text-align: center;
}
.portrait-inner .mini-orb {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0%, #aad7ff 18%, #6e8cff 45%, #26165f 80%);
  box-shadow: 0 0 18px rgba(110,150,255,0.6);
}
.codex-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
}
.codex-text p + p { margin-top: 18px; }
.codex-text a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(201,169,89,0.4); transition: border-color .3s; }
.codex-text a:hover { border-color: var(--gold-bright); }
.codex-text .dropcap::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(201,169,89,0.4);
}
.marginal {
  overflow: hidden;
  margin-top: 26px;
  padding: 14px 20px;
  border-left: 2px solid rgba(201,169,89,0.5);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-dim);
}
.stream-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 10px;
}
.relic {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px 22px 20px;
  background: linear-gradient(160deg, rgba(20,14,42,0.7), rgba(8,5,18,0.8));
  border: 1px solid rgba(126,99,209,0.25);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.relic::before {
  content: '✦';
  position: absolute;
  top: -11px; left: 18px;
  color: var(--gold);
  background: var(--void);
  padding: 0 8px;
  font-size: 0.8rem;
}
.relic:hover {
  transform: translateY(-5px);
  border-color: rgba(201,169,89,0.55);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
}
.relic h4 { font-family: 'Cinzel', serif; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.relic span { font-size: 0.85rem; color: var(--ink-dim); font-style: italic; }
.relic .thumb {
  aspect-ratio: 16 / 9;
  margin: -24px -22px 16px;
  display: block;
  object-fit: cover;
  width: calc(100% + 44px);
  border-bottom: 1px solid rgba(126,99,209,0.25);
}

/* ---------- Art gallery ---------- */
.gallery {
  columns: 2;
  column-gap: 26px;
}
@media (max-width: 760px) { .gallery { columns: 1; } }
.artwork {
  break-inside: avoid;
  margin-bottom: 26px;
  position: relative;
  border: 1px solid rgba(201,169,89,0.4);
  padding: 10px;
  background: rgba(10,7,24,0.6);
  transition: border-color .3s, box-shadow .3s;
}
.artwork:hover { border-color: rgba(201,169,89,0.8); box-shadow: 0 14px 40px rgba(0,0,0,0.55); }
.artwork::before {
  content: '✦';
  position: absolute;
  top: -9px; left: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  background: var(--void);
  padding: 0 6px;
}
.artwork img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.artwork figcaption {
  padding: 12px 4px 4px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-style: italic;
  font-family: 'EB Garamond', serif;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.artwork figcaption .title { color: var(--ink); font-style: normal; font-family: 'Author', sans-serif; font-size: 0.88rem; }
.artwork figcaption a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(201,169,89,0.4); }
.artwork figcaption a:hover { border-color: var(--gold-bright); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(4,3,10,0.92);
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 80px rgba(126,99,209,0.35); }

/* ---------- Credits list ---------- */
.credit-list { list-style: none; }
.credit-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(126,99,209,0.18);
}
.credit-list .role {
  flex-shrink: 0;
  width: 200px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.credit-list .who { font-size: 1rem; }
.credit-list .who a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(201,169,89,0.4); transition: color .3s, border-color .3s; }
.credit-list .who a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
@media (max-width: 620px) {
  .credit-list li { flex-direction: column; gap: 4px; }
  .credit-list .role { width: auto; }
}

/* Story illustrations (full-width figures within the codex column) */
.story-illus {
  margin: 36px 0;
  border: 1px solid rgba(201,169,89,0.4);
  padding: 9px;
  background: rgba(10,7,24,0.6);
}
.story-illus img { display: block; width: 100%; height: auto; }
.story-title {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 8px;
}
.story-byline {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 34px;
}
.story-byline a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(201,169,89,0.4); }
.story-byline a:hover { border-color: var(--gold-bright); }

/* ---------- Story entries ---------- */
.story-entry { margin-bottom: 46px; }
.story-entry h3 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.story-entry .story-meta {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

/* ---------- Key Streams: collapsible notes ---------- */
.stream-note {
  position: relative;
  margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(20,14,42,0.7), rgba(8,5,18,0.8));
  border: 1px solid rgba(126,99,209,0.25);
  transition: border-color .3s, box-shadow .3s;
}
.stream-note::before {
  content: '✦';
  position: absolute;
  top: -11px; left: 18px;
  color: var(--gold);
  background: var(--void);
  padding: 0 8px;
  font-size: 0.8rem;
}
.stream-note:hover { border-color: rgba(201,169,89,0.55); box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
.stream-note summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}
.stream-note summary::-webkit-details-marker { display: none; }
.stream-note summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--gold);
  font-size: 0.8rem;
  transition: transform .3s;
}
.stream-note[open] summary::after { transform: rotate(180deg); }
.stream-note .s-title {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.stream-note .s-watch {
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid rgba(201,169,89,0.45);
  padding: 6px 14px;
  transition: all .3s;
}
.stream-note .s-watch:hover { background: rgba(201,169,89,0.15); box-shadow: 0 0 14px rgba(201,169,89,0.3); }
.stream-note .s-embed { padding: 0 22px; }
.stream-note .s-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin-bottom: 18px;
  background: #000;
}
.stream-note .s-blurb {
  padding: 0 22px 20px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}
.stream-note .s-blurb a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(201,169,89,0.4); }
@media (max-width: 560px) {
  .stream-note summary { flex-wrap: wrap; gap: 10px; }
}

.placeholder-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(201,169,89,0.08);
  border: 1px dashed rgba(201,169,89,0.4);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

footer {
  position: relative;
  z-index: 5;
  margin-left: 234px;
  text-align: center;
  padding: 40px 5vw 34px;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
footer a {
  color: var(--ink-dim);
  opacity: 0.5;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: opacity .3s, color .3s;
}
footer a:hover { opacity: 1; color: var(--gold); }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 40;
  width: 44px; height: 44px;
  background: rgba(10,7,24,0.85);
  border: 1px solid rgba(201,169,89,0.5);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gold-bright);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .constellation-nav {
    transform: translateX(-105%);
    transition: transform .35s ease;
    width: min(300px, 84vw);
    background: rgba(6,4,14,0.97);
    border-right: 1px solid rgba(201,169,89,0.25);
    z-index: 35;
    padding: 74px 0 30px 34px;
    overflow-y: auto;
  }
  .constellation-nav.open { transform: translateX(0); }
  /* No hover on touch screens: keep sub-links always visible */
  .nav-group .nav-sub { max-height: 130px; }
  main, footer { margin-left: 0; }
}
