/* =========================================================
   Phantom Troupe — styles
   Palette: velvet ink · spotlight amber · spectral teal · silk
   Type: Instrument Serif (display) · Inter (body) · JetBrains Mono (data)
   ========================================================= */

:root {
  /* color */
  --ink: #0b0a10;
  --void: #060609;
  --plum: #14101b;
  --plum-2: #1b1626;
  --surface: rgba(232, 228, 240, 0.035);
  --surface-2: rgba(232, 228, 240, 0.06);
  --line: rgba(232, 228, 240, 0.1);
  --line-strong: rgba(232, 228, 240, 0.18);

  --silk: #e8e4f0;
  --silk-dim: #a49fb4;
  --silk-faint: #6d6880;

  --spotlight: #f5c36b;
  --spotlight-soft: #f7d194;
  --spectre: #6fe3c6;
  --spectre-dim: #3f9d8a;
  --blood: #c6415a;

  /* type */
  --f-display: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--silk);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Layered theatrical background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(245, 195, 107, 0.14), transparent 55%),
    radial-gradient(90% 80% at 8% 5%, rgba(111, 227, 198, 0.08), transparent 50%),
    radial-gradient(120% 120% at 50% 120%, rgba(198, 65, 90, 0.06), transparent 60%),
    linear-gradient(180deg, var(--void), var(--ink) 40%, var(--void));
}

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

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(245, 195, 107, 0.28);
  color: #fff;
}

/* ===== Ambient overlays ===== */
#threads {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 240px 60px rgba(0, 0, 0, 0.65);
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s,
    box-shadow 0.3s, color 0.3s;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--spotlight-soft), var(--spotlight));
  color: #241a05;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(245, 195, 107, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -10px rgba(245, 195, 107, 0.65);
}

.btn-ghost {
  color: var(--silk);
  background: var(--surface);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--spotlight);
  color: var(--spotlight-soft);
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--spotlight);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  transition: background 0.4s, border-color 0.4s, padding 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 10, 16, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--silk);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--spotlight);
  flex: none;
  filter: drop-shadow(0 0 8px rgba(245, 195, 107, 0.4));
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(180deg);
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--silk-dim);
}

.nav-links a {
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--spotlight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--silk);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 12rem) var(--pad) clamp(4rem, 8vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spotlight);
  margin-bottom: 1.4rem;
}

.pulse-dot,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spotlight);
  box-shadow: 0 0 0 0 rgba(245, 195, 107, 0.7);
  animation: pulse 2.4s infinite;
}

.live-dot {
  background: var(--spectre);
  box-shadow: 0 0 0 0 rgba(111, 227, 198, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 195, 107, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(245, 195, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 195, 107, 0);
  }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--silk);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(100deg, var(--spotlight-soft), var(--spotlight) 40%, var(--spectre));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--silk-dim);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--silk-faint);
  text-transform: uppercase;
}

.hero-tags li {
  position: relative;
  padding-left: 1.1rem;
}

.hero-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--spectre);
}

/* ===== Console (signature) ===== */
.console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 22, 38, 0.85), rgba(15, 12, 22, 0.9));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}

.console-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(245, 195, 107, 0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.console-sub {
  color: var(--silk-faint);
  font-weight: 400;
  font-size: 0.72rem;
}

.console-meta {
  display: flex;
  gap: 0.4rem;
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--silk-dim);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.chip-region {
  color: var(--spectre);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 0.7rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.85rem 0.9rem;
  min-width: 0;
}

.panel-chart {
  grid-column: span 4;
}
.panel-gauge {
  grid-column: span 2;
}
.panel-spiders {
  grid-column: span 3;
}
.panel-pipe {
  grid-column: span 3;
}
.panel-log {
  grid-column: span 6;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.panel-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silk-dim);
}

.panel-unit {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--silk-faint);
}

/* chart */
.chart-readout {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.chart-value {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--silk);
  letter-spacing: -0.01em;
}

.chart-delta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

.chart-delta.up {
  color: var(--spectre);
}
.chart-delta.down {
  color: var(--blood);
}

.chart-canvas {
  width: 100%;
  height: 84px;
  margin-top: 0.35rem;
}

/* gauge */
.panel-gauge {
  display: flex;
  flex-direction: column;
}

.gauge {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0.2rem auto 0.55rem;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 9;
}

.gauge-fill {
  fill: none;
  stroke: url(#g) var(--spotlight);
  stroke: var(--spotlight);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  filter: drop-shadow(0 0 6px rgba(245, 195, 107, 0.55));
  transition: stroke-dashoffset 1.4s var(--ease);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--silk);
}

.gauge-cap {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--silk-faint);
  letter-spacing: 0.06em;
}

.gauge-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--silk-dim);
  margin-top: auto;
}

.gauge-legend b {
  color: var(--silk);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.dot-teal {
  background: var(--spectre);
}
.dot-amber {
  background: var(--spotlight);
}

/* spiders */
.spider-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  align-items: center;
}

.spider-name {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--silk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spider-rate {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--spectre);
  text-align: right;
}

.spider-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.spider-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--spectre-dim), var(--spectre));
  transition: width 0.9s var(--ease);
}

.spider-row.queued .spider-rate {
  color: var(--silk-faint);
}
.spider-row.queued .spider-bar > i {
  background: var(--line-strong);
}

/* pipeline */
.panel-pipe {
  display: flex;
  flex-direction: column;
}

.pipe {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0.7rem;
}

.pipe li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--silk-faint);
  position: relative;
  transition: color 0.4s;
}

.pipe li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--line);
  z-index: 0;
}

.pipe li:last-child::before {
  display: none;
}

.pipe-tick {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--plum);
  z-index: 1;
  transition: all 0.4s var(--ease);
}

.pipe li.done {
  color: var(--silk);
}
.pipe li.done .pipe-tick {
  background: var(--spectre);
  border-color: var(--spectre);
  box-shadow: 0 0 8px rgba(111, 227, 198, 0.6);
}

.pipe li.active {
  color: var(--spotlight);
}
.pipe li.active .pipe-tick {
  border-color: var(--spotlight);
  background: var(--spotlight);
  box-shadow: 0 0 0 0 rgba(245, 195, 107, 0.6);
  animation: pulse 1.5s infinite;
}

.pipe-note {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--silk-dim);
  margin-top: auto;
}

.pipe-note b {
  color: var(--spectre);
}

/* log */
.log {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.75;
  height: 108px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.log li {
  display: flex;
  gap: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: logIn 0.5s var(--ease);
}

.log .t {
  color: var(--silk-faint);
  flex: none;
}

.log .ok {
  color: var(--spectre);
  flex: none;
}
.log .up {
  color: var(--spotlight);
  flex: none;
}
.log .msg {
  color: var(--silk-dim);
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Generic section ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--silk);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--silk-dim);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ===== Roster ===== */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.member {
  position: relative;
  background: var(--ink);
  padding: 2rem 1.7rem 2.1rem;
  transition: background 0.4s;
  overflow: hidden;
}

.member::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(245, 195, 107, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.member:hover {
  background: var(--plum);
}

.member:hover::before {
  opacity: 1;
}

.member-no {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--spotlight);
  display: block;
  margin-bottom: 1.2rem;
}

.member-code {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--silk);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.member-role {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spectre);
  margin-bottom: 0.9rem;
}

.member-desc {
  color: var(--silk-dim);
  font-size: 0.95rem;
}

/* ===== Acts ===== */
.acts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: none;
}

.act {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.act::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.4rem;
  height: 2px;
  background: var(--spotlight);
  box-shadow: 0 0 8px rgba(245, 195, 107, 0.6);
}

.act-no {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spotlight);
  display: block;
  margin-bottom: 0.7rem;
}

.act-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--silk);
  margin-bottom: 0.6rem;
}

.act-desc {
  color: var(--silk-dim);
  font-size: 0.92rem;
}

/* ===== Proof ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--silk), var(--spotlight));
  -webkit-background-clip: text;
  background-clip: text;
  display: block;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silk-dim);
  margin-top: 0.7rem;
  display: block;
}

.proof-note {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--silk-faint);
  margin-top: 1.5rem;
}

/* ===== Stack marquee ===== */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.tech {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  color: var(--silk-dim);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.tech:hover {
  color: var(--spotlight);
  border-color: var(--spotlight);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ===== CTA ===== */
.cta {
  position: relative;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 22, 38, 0.7), rgba(15, 12, 22, 0.85));
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(245, 195, 107, 0.18), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.cta > :not(.cta-glow) {
  position: relative;
}

.cta-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  color: var(--silk);
  margin-bottom: 1rem;
}

.cta-lead {
  color: var(--silk-dim);
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--silk-dim);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--silk-dim);
}

.footer-links a:hover {
  color: var(--spotlight);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--silk-faint);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(6.5rem, 14vh, 9rem);
  }
  .console {
    order: 2;
  }
  .roster {
    grid-template-columns: repeat(2, 1fr);
  }
  .acts {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .console-head {
    flex-wrap: wrap;
  }
  .console-sub {
    display: none;
  }
  .console-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-chart,
  .panel-gauge,
  .panel-spiders,
  .panel-pipe,
  .panel-log {
    grid-column: 1 / -1;
  }
  .roster {
    grid-template-columns: 1fr;
  }
  .acts {
    grid-template-columns: 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-cta {
    display: none;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}
