/* ============================================================
   The Sun — Design System
   ============================================================ */

:root {
  --bg: #0a0a12;
  --bg-2: #11111c;
  --corona: #FFC43A;
  --plasma: #FFF3D7;
  --chromosphere: #FF7A00;
  --teal: #54C9B7;
  --text: #E8E8F0;
  --text-dim: #7A7A90;
  --line: rgba(232, 232, 240, 0.10);
  --line-strong: rgba(232, 232, 240, 0.22);

  --display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --body: "Lora", "Iowan Old Style", "Charter", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Page transition
   ============================================================ */
.page-enter {
  animation: pageEnter 360ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Top nav (hamburger + sliding pill)
   ============================================================ */
.nav-host {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.nav-host > * { pointer-events: auto; }

.hamburger {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.hamburger:hover {
  transform: translateY(-1px);
  background: rgba(30, 30, 40, 0.85);
  border-color: rgba(255, 196, 58, 0.5);
  box-shadow: 0 0 22px rgba(255, 196, 58, 0.18);
}
.hamburger .bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.hamburger .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease, top 250ms cubic-bezier(.2,.7,.2,1);
}
.hamburger .bars span:nth-child(1) { top: 1px; }
.hamburger .bars span:nth-child(2) { top: 5.25px; }
.hamburger .bars span:nth-child(3) { top: 9.5px; }
.hamburger.open .bars span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.hamburger.open .bars span:nth-child(2) { opacity: 0; }
.hamburger.open .bars span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  height: 46px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  transform-origin: left center;
  overflow: hidden;
  transition: max-width 380ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease, padding 240ms ease;
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border-width: 0;
}
.nav-pill.open {
  max-width: 640px;
  opacity: 1;
  padding-left: 5px;
  padding-right: 5px;
  border-width: 1px;
}
.nav-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 220ms ease;
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  color: var(--bg);
  background: var(--accent, var(--corona));
  box-shadow: 0 0 20px color-mix(in oklab, var(--accent, var(--corona)) 50%, transparent);
}

.brand {
  position: fixed;
  top: 30px;
  right: 26px;
  z-index: 50;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--corona);
  box-shadow: 0 0 8px var(--corona);
  animation: dotPulse 4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.page-meta {
  position: fixed;
  bottom: 22px;
  left: 26px;
  z-index: 40;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.page-meta .num {
  color: var(--text);
}

/* ============================================================
   Sun core element (corona pulsing)
   Reusable: scale via --sun-size
   ============================================================ */
.sun {
  --sun-size: 360px;
  width: var(--sun-size);
  height: var(--sun-size);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 35% 32%, #FFFAE6 0%, #FFE48A 18%, var(--corona) 42%, var(--chromosphere) 78%, #B33E00 100%);
  box-shadow:
    0 0 0 2px rgba(255, 196, 58, 0.05),
    0 0 60px rgba(255, 196, 58, 0.45),
    0 0 160px rgba(255, 122, 0, 0.30),
    0 0 360px rgba(255, 196, 58, 0.18);
  animation: sunBreathe 4s ease-in-out infinite;
}
.sun::before, .sun::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,196,58,0.28) 0%, rgba(255,196,58,0.10) 36%, transparent 64%);
  filter: blur(4px);
  animation: coronaPulse 4s ease-in-out infinite;
}
.sun::after {
  inset: -55%;
  background: radial-gradient(circle, rgba(255,122,0,0.18) 0%, rgba(255,196,58,0.08) 30%, transparent 70%);
  animation-delay: -2s;
}
@keyframes sunBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.06); }
}
@keyframes coronaPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Surface granulation overlay for realism */
.sun .granulation {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 30%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(2px 2px at 70% 22%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 60%, rgba(0,0,0,0.18), transparent 60%),
    radial-gradient(2px 2px at 30% 75%, rgba(0,0,0,0.18), transparent 60%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.18), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* ============================================================
   Starfield
   ============================================================ */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 78%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 88% 71%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 50% 12%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 62% 92%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 8% 60%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 22% 92%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 70% 56%, rgba(255,255,255,0.5), transparent 60%);
}
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(84, 201, 183, 0.06), transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(255, 122, 0, 0.04), transparent 45%);
}

/* ============================================================
   Page-level wrappers
   ============================================================ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   Home page
   ============================================================ */
.home {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.home-stage {
  position: relative;
  width: min(95vmin, 920px);
  height: min(95vmin, 920px);
  display: grid;
  place-items: center;
}
.home .sun { --sun-size: clamp(220px, 32vmin, 360px); }

.orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(232, 232, 240, 0.10);
  border-radius: 50%;
  pointer-events: none;
}
.orbit .planet {
  position: absolute;
  top: 50%; left: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 196, 58, 0.25);
}
.orbit-mercury {
  width: clamp(310px, 42vmin, 480px);
  height: clamp(310px, 42vmin, 480px);
  animation: spinOrbit 7.2s linear infinite;
}
.orbit-mercury .planet {
  width: 8px; height: 8px;
  background: #B5A691;
}
.orbit-venus {
  width: clamp(440px, 60vmin, 660px);
  height: clamp(440px, 60vmin, 660px);
  animation: spinOrbit 18.4s linear infinite;
}
.orbit-venus .planet {
  width: 13px; height: 13px;
  background: radial-gradient(circle at 35% 35%, #F5D78F, #C18A36);
}
.orbit-earth {
  width: clamp(600px, 82vmin, 900px);
  height: clamp(600px, 82vmin, 900px);
  animation: spinOrbit 30s linear infinite;
}
.orbit-earth .planet {
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 35%, #6FB6E8, #2A6FA8);
}
.orbit-earth .moon {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spinOrbit 2.4s linear infinite;
}
.orbit-earth .moon::after {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  background: #d8d8d8;
  border-radius: 50%;
  top: 50%; left: 100%;
  transform: translate(-50%, -50%);
}

@keyframes spinOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.home-quote {
  position: absolute;
  top: 50%; left: 50%;
  width: min(78vmin, 540px);
  transform: translate(-50%, calc(-50% + clamp(180px, 24vmin, 280px)));
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
.home-quote q {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(15px, 1.6vmin, 19px);
  color: var(--plasma);
  line-height: 1.5;
  quotes: "“" "”";
  text-shadow: 0 0 18px rgba(0,0,0,0.7);
  display: block;
}
.home-quote q::before { content: open-quote; opacity: 0.6; }
.home-quote q::after { content: close-quote; opacity: 0.6; }
.home-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--corona);
}

.home-quote.fade-in {
  animation: quoteFade 1200ms 600ms both ease-out;
}
@keyframes quoteFade {
  from { opacity: 0; transform: translate(-50%, calc(-50% + clamp(180px, 24vmin, 280px) + 6px)); }
  to   { opacity: 1; transform: translate(-50%, calc(-50% + clamp(180px, 24vmin, 280px))); }
}

.home-corner-tl, .home-corner-tr, .home-corner-bl, .home-corner-br {
  position: fixed;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
  line-height: 1.5;
}
.home-corner-tr { top: 30px; right: 26px; text-align: right; color: var(--text-dim); pointer-events: auto; }
.home-corner-bl { bottom: 22px; left: 26px; }
.home-corner-br { bottom: 22px; right: 26px; text-align: right; }

.cycle-quote {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}
.cycle-quote:hover {
  color: var(--corona);
  border-color: var(--corona);
  box-shadow: 0 0 20px rgba(255, 196, 58, 0.25);
}

/* ============================================================
   Layers page
   ============================================================ */
.layers-page {
  height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
}
.layers-info {
  border-right: 1px solid var(--line);
  padding: 110px 38px 60px 38px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.layers-info .eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.layers-info h1 {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.02em;
}
.layers-info h1 em {
  font-style: normal;
  color: var(--corona);
}
.layers-info .lead {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 38ch;
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
}

.layer-fact {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
  display: grid;
  gap: 12px;
}
.layer-fact .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.layer-fact .name .swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 12px currentColor;
}
.layer-fact .stats {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.layer-fact .stats dt { color: var(--text-dim); }
.layer-fact .stats dd { margin: 0; color: var(--text); }
.layer-fact p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}

.layers-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.layers-svg {
  width: min(86vmin, 820px);
  height: min(86vmin, 820px);
  display: block;
}
.layers-svg circle {
  cursor: pointer;
  transition: filter 280ms ease, transform 380ms cubic-bezier(.2,.7,.2,1);
  transform-origin: 50% 50%;
}
.layers-svg circle:hover {
  filter: brightness(1.08);
}
.layers-svg circle.active {
  filter: brightness(1.16) drop-shadow(0 0 22px var(--accent-color, var(--corona)));
}
.layers-svg .label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  fill: var(--text-dim);
  pointer-events: none;
  transition: fill 220ms ease;
}
.layers-svg .label.active { fill: var(--text); }
.layers-svg .label .num {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--text-dim);
  letter-spacing: 0.1em;
}

.layers-toggle {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px;
}
.layers-toggle .label {
  padding: 7px 13px;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 999px;
  border: 0;
  background: transparent;
  transition: color 200ms ease, background 200ms ease;
}
.layers-toggle .label.on {
  color: var(--bg);
  background: var(--corona);
}

.layers-stage .scale-marker {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.layers-stage .corona-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: center;
}
.layers-stage .corona-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--text-dim);
}

/* ============================================================
   Size page
   ============================================================ */
.size-page {
  height: 100vh;
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-color: rgba(255,196,58,0.3) transparent;
}
.size-page::-webkit-scrollbar { height: 10px; }
.size-page::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
.size-page::-webkit-scrollbar-thumb {
  background: rgba(255,196,58,0.35);
  border-radius: 999px;
}
.size-track {
  position: relative;
  height: 100vh;
  width: var(--track-width); /* 50000px */
}
.size-sun {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* set by inline style: left, width, height */
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #FFFAE6 0%, #FFE48A 12%, var(--corona) 35%, var(--chromosphere) 75%, #872E00 100%);
  box-shadow:
    0 0 80px rgba(255, 196, 58, 0.55),
    0 0 240px rgba(255, 122, 0, 0.30);
  animation: sunBreathe 6s ease-in-out infinite;
}
.size-earth-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  place-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.size-earth-marker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6FB6E8, #2A6FA8);
  box-shadow: 0 0 10px #6FB6E8;
}
.size-earth-marker .stem {
  width: 1px;
  height: 60px;
  background: var(--line-strong);
}

.size-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 5;
}

.size-title {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.size-title .eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.size-title h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  margin: 4px 0 0 0;
  letter-spacing: -0.01em;
}
.size-title h1 em { color: var(--corona); font-style: normal; }

.size-ruler {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: linear-gradient(to top, rgba(10,10,18,0.95) 0%, rgba(10,10,18,0.7) 70%, transparent 100%);
  border-top: 1px solid var(--line);
  z-index: 4;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.size-ruler-track {
  position: absolute;
  bottom: 28px;
  left: 0;
  height: 28px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.size-ruler-tick {
  width: 1px;
  background: var(--line-strong);
}
.size-ruler-label {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  color: var(--text-dim);
  white-space: nowrap;
}
.size-pos-marker {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 5;
  text-align: center;
}
.size-pos-marker .arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--corona);
  margin-bottom: 4px;
}
.size-pos-marker .pos {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--corona);
  background: rgba(10,10,18,0.85);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.size-minimap {
  position: fixed;
  top: 40px;
  right: 26px;
  width: 280px;
  z-index: 8;
  background: rgba(20,20,30,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px 16px 16px;
}
.size-minimap .head {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.size-minimap .bar {
  position: relative;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(to right,
      #872E00 0%,
      var(--chromosphere) 12%,
      var(--corona) 50%,
      var(--chromosphere) 88%,
      #872E00 100%);
}
.size-minimap .scrubber {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 3px;
  background: var(--plasma);
  box-shadow: 0 0 10px var(--plasma);
  border-radius: 2px;
  transform: translateX(-50%);
}
.size-minimap .legend {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.size-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 110px));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 6;
  pointer-events: none;
  display: flex;
  gap: 8px;
  align-items: center;
  animation: hintBob 2.4s ease-in-out infinite;
}
.size-hint .arr {
  display: inline-block;
  animation: arrSlide 1.4s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes arrSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ============================================================
   Formation page — full stellar life cycle
   ============================================================ */
.formation-page {
  position: relative;
  width: 100%;
}
.formation-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 600ms ease;
}
.formation-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 600ms ease;
  z-index: 0;
}
.formation-stages > section {
  position: relative;
  height: 100vh;
  width: 100%;
}

.formation-illustration {
  position: relative;
  width: clamp(360px, 64vmin, 720px);
  height: clamp(360px, 64vmin, 720px);
  display: grid;
  place-items: center;
  z-index: 1;
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 280ms ease;
  pointer-events: none;
}

/* ---- 1. Nebula ---- */
.scene-nebula .neb-blob {
  position: absolute;
  width: 70%; height: 70%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.neb-blob-1 { background: radial-gradient(circle, #54C9B7 0%, transparent 70%); animation: nebDrift1 18s ease-in-out infinite; }
.neb-blob-2 { background: radial-gradient(circle, #7DA8E0 0%, transparent 70%); animation: nebDrift2 22s ease-in-out infinite; }
.neb-blob-3 { background: radial-gradient(circle, #A24CF1 0%, transparent 70%); animation: nebDrift3 26s ease-in-out infinite; opacity: 0.4; }
@keyframes nebDrift1 {
  0%, 100% { transform: translate(-12%, -8%) scale(1); }
  50%      { transform: translate(8%, 14%)  scale(1.15); }
}
@keyframes nebDrift2 {
  0%, 100% { transform: translate(14%, 6%)   scale(0.9); }
  50%      { transform: translate(-10%, -10%) scale(1.1); }
}
@keyframes nebDrift3 {
  0%, 100% { transform: translate(0, 12%)  scale(1); }
  50%      { transform: translate(6%, -8%) scale(1.2); }
}
.neb-particles, .neb-particles-2 {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 78%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 88% 71%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 50% 12%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 92%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 8% 60%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 22% 92%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 70% 56%, rgba(255,255,255,0.5), transparent 60%);
  animation: nebParticles 30s linear infinite;
}
.neb-particles-2 { animation-duration: 45s; animation-direction: reverse; opacity: 0.6; }
@keyframes nebParticles {
  from { transform: translate(0, 0); }
  to   { transform: translate(-3%, 4%); }
}

/* ---- 2. Gravitational Collapse ---- */
.scene-collapse .collapse-disk {
  position: absolute;
  width: 92%;
  height: 24%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(125, 168, 224, 0.35) 0%, rgba(125, 168, 224, 0.08) 40%, transparent 70%);
  filter: blur(8px);
  transform: rotate(-12deg);
  animation: diskSpin 6s linear infinite;
}
@keyframes diskSpin {
  from { transform: rotate(-12deg) scaleX(1); }
  to   { transform: rotate(348deg) scaleX(1); }
}
.scene-collapse .collapse-core {
  position: absolute;
  width: 14%; height: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2b8 0%, #d26a14 60%, transparent 100%);
  filter: blur(2px);
  box-shadow: 0 0 28px rgba(255, 180, 80, 0.5);
  animation: coreThicken 3s ease-in-out infinite alternate;
}
@keyframes coreThicken {
  from { transform: scale(1);   opacity: 0.85; }
  to   { transform: scale(1.18); opacity: 1; }
}
.collapse-streams {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.collapse-streams span {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 1.5px;
  background: linear-gradient(to left, rgba(125,168,224,0.85) 0%, transparent 100%);
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(var(--ang));
  animation: streamPull 1.6s ease-in infinite;
  opacity: 0;
  filter: blur(0.4px);
}
@keyframes streamPull {
  0%   { transform: translate(0, -50%) rotate(var(--ang)) scaleX(1); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(0, -50%) rotate(var(--ang)) scaleX(0); opacity: 0; }
}

/* ---- 3. Protostar ---- */
.scene-protostar .proto-cocoon {
  position: absolute;
  width: 90%; height: 90%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(160, 90, 50, 0.35) 0%, rgba(80, 40, 20, 0.6) 40%, transparent 80%);
  filter: blur(20px);
  animation: cocoonRoll 12s linear infinite;
}
@keyframes cocoonRoll {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.scene-protostar .proto-disk {
  position: absolute;
  width: 86%; height: 14%;
  border-radius: 50%;
  background: linear-gradient(to right, transparent 0%, rgba(209, 68, 0, 0.4) 30%, rgba(255,180,80,0.6) 50%, rgba(209, 68, 0, 0.4) 70%, transparent 100%);
  filter: blur(2px);
  transform: rotate(-15deg);
}
.scene-protostar .proto-core {
  position: absolute;
  width: 22%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #ffd49a, #d14400 60%, #6b1f00 100%);
  box-shadow: 0 0 50px rgba(209, 68, 0, 0.7);
  animation: protoPulse 3s ease-in-out infinite;
}
@keyframes protoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.15); }
}
.proto-infall { position: absolute; inset: 0; pointer-events: none; }
.proto-infall span {
  position: absolute;
  top: 50%; left: 50%;
  width: 35%;
  height: 2px;
  background: linear-gradient(to left, rgba(255, 180, 80, 0.9), transparent);
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(var(--ang));
  animation: streamPull 2.2s ease-in infinite;
  filter: blur(0.6px);
}

/* ---- 4. T Tauri ---- */
.scene-ttauri .tt-disk {
  position: absolute;
  width: 96%; height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,180,80,0.5) 0%, rgba(255,122,0,0.2) 40%, transparent 70%);
  filter: blur(4px);
  transform: rotate(-18deg);
  animation: diskSpin 5s linear infinite;
}
.scene-ttauri .tt-star {
  position: absolute;
  width: 26%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff5d2, #ffc43a 40%, #ff7a00 80%, #b33e00 100%);
  box-shadow: 0 0 50px rgba(255, 196, 58, 0.7), 0 0 120px rgba(255, 122, 0, 0.4);
  animation: ttFlicker 1.4s ease-in-out infinite alternate;
}
@keyframes ttFlicker {
  0%   { filter: brightness(1)    saturate(1); transform: scale(1); }
  100% { filter: brightness(1.18) saturate(1.1); transform: scale(1.04); }
}
.scene-ttauri .tt-jet {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 50%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(84, 201, 183, 0.0) 5%,
    rgba(84, 201, 183, 0.85) 50%,
    rgba(255, 243, 215, 0.95) 92%,
    transparent 100%);
  filter: blur(3px);
  transform: translateX(-50%);
  border-radius: 50%;
  animation: jetPulse 1.8s ease-in-out infinite;
}
.tt-jet-up   { top: 0; }
.tt-jet-down { bottom: 0; transform: translateX(-50%) scaleY(-1); }
@keyframes jetPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1) scaleY(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.4) scaleY(1.05); }
}
.scene-ttauri .tt-jet-down { animation: jetPulseDown 1.8s ease-in-out infinite; }
@keyframes jetPulseDown {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleY(-1) scaleX(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleY(-1.05) scaleX(1.4); }
}
.tt-flares { position: absolute; inset: 0; pointer-events: none; }
.tt-flares span {
  position: absolute;
  top: 50%; left: 50%;
  width: 30%; height: 1.5px;
  background: linear-gradient(to right, rgba(255, 196, 58, 0.9), transparent);
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(var(--ang));
  filter: blur(0.6px);
  animation: flareShoot 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes flareShoot {
  0%   { transform: translate(0, -50%) rotate(var(--ang)) scaleX(0.2); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translate(0, -50%) rotate(var(--ang)) scaleX(1); opacity: 0.7; }
  100% { transform: translate(0, -50%) rotate(var(--ang)) scaleX(1.4); opacity: 0; }
}

/* ---- 5. Main Sequence (the Sun) ---- */
.scene-main .ms-corona {
  position: absolute;
  width: 84%; height: 84%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,58,0.28) 0%, rgba(255,196,58,0.10) 36%, transparent 64%);
  filter: blur(6px);
  animation: msCorona 4s ease-in-out infinite;
}
@keyframes msCorona {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}
.scene-main .ms-sun {
  position: relative;
  width: 56%; height: 56%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFFAE6 0%, #FFE48A 18%, #FFC43A 42%, #FF7A00 78%, #B33E00 100%);
  box-shadow:
    0 0 80px rgba(255, 196, 58, 0.55),
    0 0 220px rgba(255, 122, 0, 0.30);
  animation: sunBreathe 4s ease-in-out infinite;
}
.ms-here {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFC43A;
  background: rgba(10,10,18,0.78);
  border: 1px solid rgba(255, 196, 58, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.ms-here .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFC43A;
  box-shadow: 0 0 10px #FFC43A;
  animation: dotPulse 2s ease-in-out infinite;
}

/* ---- 6. Red Giant ---- */
.scene-redgiant .rg-corona {
  position: absolute;
  width: 110%; height: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 74, 42, 0.35) 0%, rgba(232, 74, 42, 0.10) 50%, transparent 75%);
  filter: blur(14px);
  animation: rgPulse 5s ease-in-out infinite;
}
@keyframes rgPulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.04); opacity: 1; }
}
.scene-redgiant .rg-star {
  position: relative;
  width: 92%; height: 92%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffb696 0%, #e84a2a 35%, #a01a05 80%, #4a0a00 100%);
  box-shadow: 0 0 80px rgba(232, 74, 42, 0.5), 0 0 200px rgba(232, 74, 42, 0.25);
  animation: rgBreathe 5s ease-in-out infinite;
}
@keyframes rgBreathe {
  0%, 100% { transform: scale(1);     filter: brightness(1); }
  50%      { transform: scale(1.025); filter: brightness(1.06); }
}
.scene-redgiant .rg-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.scene-redgiant .orb {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}
.scene-redgiant .orb.mercury { left: 38%; width: 6px; height: 6px; background: #B5A691; box-shadow: 0 0 6px #B5A691; }
.scene-redgiant .orb.venus   { left: 32%; width: 9px; height: 9px; background: radial-gradient(circle, #F5D78F, #C18A36); }
.scene-redgiant .orb.earth   { left: 24%; width: 9px; height: 9px; background: radial-gradient(circle, #6FB6E8, #2A6FA8); box-shadow: 0 0 8px #6FB6E8; opacity: 0.55; animation: earthVaporize 3s ease-in-out infinite; }
@keyframes earthVaporize {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.15; transform: translateY(-50%) scale(0.6); }
}

/* ---- 7. Planetary Nebula ---- */
.scene-pneb .pn-shell {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  filter: blur(2px);
}
.scene-pneb .pn-shell-1 { width: 40%; height: 40%; border-color: rgba(164, 200, 245, 0.65); animation: pnExpand 6s ease-out infinite; }
.scene-pneb .pn-shell-2 { width: 40%; height: 40%; border-color: rgba(255, 196, 58, 0.55); animation: pnExpand 6s ease-out infinite 1.5s; }
.scene-pneb .pn-shell-3 { width: 40%; height: 40%; border-color: rgba(232, 74, 42, 0.4); animation: pnExpand 6s ease-out infinite 3s; }
@keyframes pnExpand {
  0%   { transform: scale(0.4); opacity: 0; border-width: 4px; }
  20%  { opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; border-width: 1px; }
}
.scene-pneb .pn-core {
  position: relative;
  width: 8%; height: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #c8e6ff 60%, transparent 100%);
  box-shadow: 0 0 30px #ffffff, 0 0 80px rgba(164, 200, 245, 0.7);
  animation: pnCorePulse 2s ease-in-out infinite;
}
@keyframes pnCorePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); filter: brightness(1.2); }
}
.pn-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pn-rays span {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(164, 200, 245, 0.8), transparent 80%);
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(var(--ang));
  filter: blur(0.6px);
  animation: rayFade 6s ease-in-out infinite;
}
@keyframes rayFade {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.7; }
}

/* ---- 8. White Dwarf ---- */
.scene-wd .wd-glow {
  position: absolute;
  width: 60%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 230, 255, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  animation: wdFade 6s ease-in-out infinite;
}
@keyframes wdFade {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.9; }
}
.scene-wd .wd-core {
  position: relative;
  width: 4%; height: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #b8d4ff 80%, #5d7ba8 100%);
  box-shadow:
    0 0 16px #ffffff,
    0 0 40px rgba(184, 212, 255, 0.6),
    0 0 80px rgba(184, 212, 255, 0.25);
  animation: wdShimmer 3s ease-in-out infinite;
}
@keyframes wdShimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}
.scene-wd .wd-comparison {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scene-wd .earth-ref {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #6FB6E8, #2A6FA8);
}

/* ---- Text panel ---- */
.formation-text {
  position: absolute;
  left: max(7%, 70px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
  z-index: 4;
  pointer-events: none;
  animation: textIn 600ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes textIn {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
.formation-text .stage-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.formation-text .now-tag {
  margin-left: 8px;
  color: var(--corona);
  font-weight: 600;
  letter-spacing: 0.32em;
}
.formation-text .sub-title {
  font-family: var(--body);
  font-style: italic;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.formation-text h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.formation-text .when {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.formation-text p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  max-width: 38ch;
}

/* ---- Time spine ---- */
.formation-time-bar {
  position: fixed;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
  z-index: 5;
  pointer-events: none;
}
.formation-time-fill {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 0%;
  transition: height 220ms ease-out, background 600ms ease;
  border-radius: 2px;
}
.formation-time-bar .time-tick {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
  transition: background 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.formation-time-label {
  position: fixed;
  left: 50px;
  bottom: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 6;
  pointer-events: none;
}
.formation-time-label .yrs {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 400ms ease;
}

/* ---- Bottom hint ---- */
.formation-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 6;
  pointer-events: none;
  animation: hintBob 2.4s ease-in-out infinite;
}
.formation-hint .arr {
  display: inline-block;
  animation: arrSlideDown 1.6s ease-in-out infinite;
}
@keyframes arrSlideDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ============================================================
   Resources page
   ============================================================ */
.resources-page {
  min-height: 100vh;
  padding: 130px 8vw 80px 8vw;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .resources-page { grid-template-columns: 1fr; gap: 50px; }
}
.resources-page .col-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.resources-page .col-head h1 em { color: var(--teal); font-style: normal; }
.resources-page .col-head .eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.resources-page .col-head .lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 50ch;
}

.link-list {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}
.link-list a {
  display: grid;
  grid-template-columns: 36px 1fr max-content max-content;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
}
.link-list a:hover {
  color: var(--corona);
  transform: translateX(4px);
}
.link-list a:hover .arr { color: var(--corona); }
.link-list a:hover .num { color: var(--corona); }
.link-list .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
}
.link-list .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.link-list .domain {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.link-list .arr {
  font-family: var(--display);
  color: var(--text-dim);
  font-size: 18px;
  transition: color 220ms ease;
}

.feedback-form {
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  gap: 20px;
}
.feedback-form .form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 4px;
}
.feedback-form .form-head h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.feedback-form .form-head .id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  outline: none;
  transition: border-color 200ms ease;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--teal);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-dim);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.on {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
  box-shadow: 0 0 18px rgba(84, 201, 183, 0.35);
}
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.submit-btn {
  background: var(--teal);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(84, 201, 183, 0.45);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.success-pill {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.success-pill .ok-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* utility */
.kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-dim);
}
