/* ───── quote section ───── */
.quote {
  padding: 200px 64px;
  text-align: center;
  position: relative;
}
.quote .label { display: block; margin-bottom: 48px; }
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--ink);
}
.quote blockquote .still {
  color: var(--accent-glow);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 12px;
}
.quote .attrib {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
.quote::before, .quote::after {
  content: "";
  position: absolute; left: 50%;
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--rule), transparent);
}
.quote::before { top: 80px; }
.quote::after { bottom: 80px; }

/* ───── solar system ───── */
.solar {
  padding: 140px 64px 180px;
}
.solar-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 80px;
}
.solar-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.solar-head h2 em {
  color: var(--accent-glow);
  font-style: italic;
}
.solar-head .meta {
  text-align: right;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 38ch;
  justify-self: end;
}
.solar-head .meta .label { display: block; margin-bottom: 12px; }

.system {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.18 0.06 300 / 0.8), transparent 70%),
    var(--bg);
  overflow: hidden;
}
/* corner ticks */
.system .tick {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.7;
}
.system .tick.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.system .tick.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.system .tick.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.system .tick.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.system .hud {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.system .hud.tl { top: 16px; left: 32px; }
.system .hud.tr { top: 16px; right: 32px; color: var(--accent-glow); }
.system .hud.bl { bottom: 16px; left: 32px; }
.system .hud.br { bottom: 16px; right: 32px; }

.system svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* sun */
.sun {
  fill: oklch(0.78 0.16 70);
  filter: drop-shadow(0 0 8px oklch(0.75 0.18 70 / 0.6));
}
.sun-glow {
  fill: oklch(0.65 0.18 70 / 0.15);
}

.orbit {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.6;
}
.orbit.earth-orbit {
  stroke: var(--accent);
  stroke-dasharray: 0;
  opacity: 0.5;
}
.planet {
  fill: var(--ink-dim);
}
.planet.earth {
  fill: var(--accent-glow);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.planet.earth-ring {
  fill: none;
  stroke: var(--accent-glow);
  stroke-width: 1;
  opacity: 0.5;
}

.planet-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.planet-label.earth { fill: var(--accent-glow); font-size: 12px; }
.planet-label.sol   { fill: oklch(0.75 0.16 70); font-size: 13px; }

/* "here still exists Rocker" pin — lives inside the SVG so it scales with the
   viewBox and stays anchored to the earth orbit ring at every container size. */
.rocker-pin .pin-line {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  fill: none;
  opacity: 0.55;
}
/* The marker lives inside <defs>, NOT inside .rocker-pin, so the parent
   selector wouldn't match — keep this rule global. */
.pin-head {
  fill: #fff;
  stroke: none;
  opacity: 1;
}
.rocker-pin .pin-label {
  font-family: var(--mono);
  font-size: 14px;
  fill: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rocker-pin .pin-paren {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}

/* ───── stats strip ───── */
.stats {
  padding: 80px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats .cell {
  background: var(--bg);
  padding: 40px 32px;
}
.stats .num {
  font-family: var(--mono);
  font-size: 46px;
  color: var(--accent-glow);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
/* During the ∞-cell flicker "TOO MANY" wouldn't fit at 64px mono — shrink
   for the duration. JS removes the class on the final ∞ frame so it snaps
   back to the full 64px. */
.stats .num.is-flickering {
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.05em;
}
.stats .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ───── manifesto / list ───── */
.ledger {
  padding: 140px 64px;
}
.ledger h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  width: max-content;
  max-width: 100%;
}
.ledger h2 .ledger-h2-line { display: block; }
.ledger h2 em { color: var(--accent-glow); }
.ledger ul {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.ledger li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 200ms ease;
}
.ledger li:hover { background: oklch(0.18 0.04 300 / 0.4); }
.ledger li .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
.ledger li .body {
  font-size: 18px;
  color: var(--ink);
}
.ledger li .body em {
  color: var(--accent-glow);
  font-style: italic;
  font-family: var(--serif);
}
.ledger li .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* card reveal — JS adds .is-armed on init, then .is-revealing per-card on
   viewport entry. Animations have forwards fill so they hold the resolved
   state past their end. The tag is display:none ≤900px so badgePop simply
   doesn't render there. */
.ledger li.is-armed { opacity: 0; transform: translateX(-48px); }
.ledger li.is-armed .body { opacity: 0; }
.ledger li.is-armed .tag  { opacity: 0; transform: rotate(-22deg) scale(0.7); }

.ledger li.is-revealing {
  animation:
    cardSlideIn   540ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    cardEdgeFlash 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms 1;
}
.ledger li.is-revealing .body {
  animation: ledgerFadeUp 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 720ms forwards;
}
.ledger li.is-revealing .tag {
  /* overshoot bezier gives the badge a "snap into place" feel */
  animation: badgePop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) 620ms forwards;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes cardEdgeFlash {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  35%      { box-shadow:
              inset 0  1px 0 var(--accent-glow),
              inset 0 -1px 0 var(--accent-glow),
              inset 0 0 24px oklch(0.70 0.24 300 / 0.18); }
}
@keyframes ledgerFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgePop {
  from { opacity: 0; transform: rotate(-22deg) scale(0.7); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}

/* ───── decorative skulls + notes ───── */
.deco {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.18;
  user-select: none;
  will-change: transform;
}
.deco.note { color: var(--ink-faint); opacity: 0.25; }
.deco svg { display: block; }

/* float happens on inner wrapper so parallax (set on .deco via JS) doesn't conflict */
.deco .deco-inner {
  display: block;
  transform: rotate(var(--r, 0deg));
}
.deco.float .deco-inner { animation: drift 6s ease-in-out infinite; }
@keyframes drift {
  0%,100% { transform: translateY(0px) rotate(var(--r, 0deg)); }
  50%     { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); }
}

/* ───── glitch text ───── */
/* Chromatic aberration via two-color text-shadow so .glitch can stay inline
   (inline-block measures as an atomic unit and would push trailing commas to
   their own line at narrow max-widths). JS adds .is-scrambling for the
   character-scramble burst. */
.glitch {
  animation: glitchDrift 5.4s ease-in-out infinite;
}
.glitch.is-scrambling {
  animation: glitchKick 260ms steps(6) 1;
}
@keyframes glitchDrift {
  0%, 100% { text-shadow: -0.6px 0    0 oklch(0.78 0.18 195 / 0.65),  0.6px 0    0 oklch(0.68 0.26 0 / 0.65); }
  22%      { text-shadow: -1.4px 0.3px 0 oklch(0.78 0.18 195 / 0.65),  1.2px -0.3px 0 oklch(0.68 0.26 0 / 0.65); }
  47%      { text-shadow: -0.6px -0.5px 0 oklch(0.78 0.18 195 / 0.65), 0.6px 0.5px 0 oklch(0.68 0.26 0 / 0.65); }
  73%      { text-shadow: -1.1px 0.5px 0 oklch(0.78 0.18 195 / 0.65),  1.4px -0.4px 0 oklch(0.68 0.26 0 / 0.65); }
}
@keyframes glitchKick {
  0%   { text-shadow: -0.6px 0   0 oklch(0.78 0.18 195 / 0.65),  0.6px 0   0 oklch(0.68 0.26 0 / 0.65); }
  20%  { text-shadow: -3px   1px 0 oklch(0.78 0.18 195 / 0.9),    3px  -1px 0 oklch(0.68 0.26 0 / 0.9); }
  40%  { text-shadow:  2px  -1px 0 oklch(0.78 0.18 195 / 0.9),   -2px   1px 0 oklch(0.68 0.26 0 / 0.9); }
  60%  { text-shadow: -3.5px 0.5px 0 oklch(0.78 0.18 195 / 0.9),  3.5px -0.5px 0 oklch(0.68 0.26 0 / 0.9); }
  80%  { text-shadow:  1px   1.5px 0 oklch(0.78 0.18 195 / 0.9), -1px  -1.5px 0 oklch(0.68 0.26 0 / 0.9); }
  100% { text-shadow: -0.6px 0   0 oklch(0.78 0.18 195 / 0.65),  0.6px 0   0 oklch(0.68 0.26 0 / 0.65); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch { animation: none; text-shadow: none; }
}

