/* ==========================================================================
   SCROLL-STREAM.CSS // Continuous Full-Width Scroll Stream Architecture
   Preserves production tokens, nav, clamps, and adds the C4 Pillars System
   ========================================================================== */

:root {
  --cyber: #ff4d5a;
  --gov: #fbbf24;
  --ai: #c026d3;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@property --r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* Pre-warm GPU layer compositor for buttery 60fps continuous scroll */
.stream-section,
.pillars-stack .slab,
.slab-inner,
.window-frame,
.window,
.window .photo,
.proj-card,
.cred-row,
.tool-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ================= Hero to 1.1 Descent ================= */
.descent-spacer {
  height: 160vh;
  height: 160svh;
  background: linear-gradient(
    to bottom,
    #050608 0%,
    #050608 55%,
    #07080b 78%,
    var(--bg, #0a0a0a) 100%
  );
}

.binary-ocean-fixed {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
}

.binary-sticky {
  position: absolute;
  inset: 0;
  height: auto;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.binary-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.binary-top-blend {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24%;
  background: linear-gradient(to bottom, #09090b 0%, rgba(9, 9, 11, 0.55) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.binary-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 48%,
    transparent 28%,
    rgba(5, 6, 8, 0.55) 66%,
    #050608 100%
  );
  z-index: 4;
  pointer-events: none;
}

.binary-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 5;
  pointer-events: none;
}

.binary-hud {
  display: none !important;
  position: absolute;
  inset: 0;
  padding: 84px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.bt-hud-top,
.bt-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.bt-depth b,
.bt-meta b,
.bt-sonar b {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.bt-meta b,
.bt-sonar b {
  color: rgba(255, 255, 255, 0.78);
}

.bt-readouts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.bt-zone {
  color: rgba(255, 255, 255, 0.72);
}

.bt-hint {
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.bt-sonar b {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.binary-hud.is-contact .bt-sonar b {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 77, 90, 0.55);
}

/* Right-edge depth gauge. --p is written by binary-ocean.js. */
.bt-gauge {
  --p: 0;
  position: absolute;
  top: 22%;
  bottom: 22%;
  right: 32px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}
.bt-gauge-tick {
  position: absolute;
  right: 0;
  top: calc(var(--at) * 100%);
  transform: translateY(-50%);
  padding-right: 12px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.bt-gauge-tick::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.bt-gauge-marker {
  position: absolute;
  right: -4px;
  top: calc(var(--p) * 100%);
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 77, 90, 0.55);
}

.binary-progress {
  display: none;
}

/* The top nav, its capsule, and the caliper dock clear out before the dive.
   They return only once 1.1 has surfaced. */
.nav {
  --nav-descent: 0;
}
.nav .nav-plane {
  opacity: calc(1 - var(--nav-descent));
  filter: blur(calc(var(--nav-descent) * 4px));
  transform: translateY(calc(var(--nav-descent) * -8px));
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}
.nav.is-descent {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

/* The tide is visual input for the duration of the handoff. Keep covered
   links from receiving clicks through the fixed canvas; scrolling still
   belongs to the document. */
html.is-binary-descending .hero,
html.is-binary-descending #main-content {
  pointer-events: none;
}

.ambient-telemetry {
  transition: opacity 0.3s ease;
}

@media (max-width: 720px) {
  .binary-hud {
    padding: 76px 18px 20px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }
  .bt-zone,
  .bt-meta,
  .bt-gauge-tick {
    display: none;
  }
  .bt-gauge {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .descent-spacer,
  .binary-ocean-fixed {
    display: none;
  }
  .nav .nav-plane {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ================= Continuous Layout Stream ================= */
.content-stream {
  max-width: min(1400px, 94vw);
  margin: 0 auto;
  padding: 0 32px 120px;
  position: relative;
}

.stream-section {
  scroll-margin-top: 90px;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  position: relative;
}
.stream-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cyber);
}
.stream-section::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.stream-section:first-of-type {
  border-top: none;
  padding-top: clamp(160px, 24vh, 260px);
  margin-top: 0;
}
.stream-section:first-of-type::before,
.stream-section:first-of-type::after {
  display: none;
}

/* Section Header */
.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.stream-head h2 {
  font-family: var(--font-display, 'Space Grotesque', sans-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.stream-head .clause {
  color: var(--cyber);
  font-family: var(--font-mono, monospace);
  margin-right: 12px;
}
.stream-head .coord {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
}
.stream-head .coord b {
  color: var(--cyber);
}

/* Story & Globe Row */
.story-globe-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
.story-body p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 24px;
}
.story-body p strong {
  color: #fff;
  font-weight: 600;
}

/* Section Sub-Divider */
.pillar-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0 32px;
}
.pillar-divider .line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.pillar-divider .lbl {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* ================= CORE FOCUS PILLARS: C4 FULL-WIDTH SLABS ================= */
.pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.pillars-stack .slab,
#focus .slab,
article.slab,
.slab {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1px;
  clip-path: polygon(
    44px 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% calc(100% - 56px),
    calc(100% - 56px) 100%,
    0 100%,
    0 44px
  );
  transition:
    transform 0.4s var(--ease),
    filter 0.4s ease;
}
.slab[data-pillar='cyber'] {
  background: var(--cyber);
  --pillar-accent: var(--cyber);
}
.slab[data-pillar='gov'] {
  background: var(--gov);
  --pillar-accent: var(--gov);
}
.slab[data-pillar='ai'] {
  background: var(--ai);
  --pillar-accent: var(--ai);
}
.slab:hover,
.slab.is-hovered {
  transform: translateY(-4px);
}
.slab[data-pillar='cyber']:hover,
.slab[data-pillar='cyber'].is-hovered {
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(255, 77, 90, 0.45));
}
.slab[data-pillar='gov']:hover,
.slab[data-pillar='gov'].is-hovered {
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 28px rgba(251, 191, 36, 0.45));
}
.slab[data-pillar='ai']:hover,
.slab[data-pillar='ai'].is-hovered {
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 28px rgba(192, 38, 211, 0.45));
}

/* Slab-Inner (Stealth Void: 100% pitch-black monolith surface) */
.slab-inner {
  position: relative;
  display: grid;
  grid-template-columns: 44px 210px minmax(340px, 1fr) minmax(320px, 36%);
  align-items: stretch;
  min-height: 500px;
  clip-path: polygon(
    43.5px 0,
    calc(100% - 15.5px) 0,
    100% 15.5px,
    100% calc(100% - 55.5px),
    calc(100% - 55.5px) 100%,
    0 100%,
    0 43.5px
  );
  background-color: #050608;
  background-image: none;
  transition: background-color 0.25s ease;
}

/* Left Vertical Rail */
.rail {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 52px 0 28px;
  background: rgba(4, 5, 8, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.rail-mark svg {
  width: 18px;
  height: 18px;
}
.slab[data-pillar='cyber'] .rail-mark svg {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .rail-mark svg {
  color: var(--gov);
}
.slab[data-pillar='ai'] .rail-mark svg {
  color: var(--ai);
}
.rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.barcode {
  width: 18px;
  height: 44px;
  opacity: 0.45;
  background: linear-gradient(
    180deg,
    #fff 0 2px,
    transparent 2px 4px,
    #fff 4px 5px,
    transparent 5px 8px,
    #fff 8px 11px,
    transparent 11px 12px,
    #fff 12px 13px,
    transparent 13px 16px,
    #fff 16px 18px,
    transparent 18px 21px,
    #fff 21px 22px,
    transparent 22px 25px,
    #fff 25px 28px,
    transparent 28px 30px,
    #fff 30px 31px,
    transparent 31px 34px,
    #fff 34px 36px,
    transparent 36px 38px,
    #fff 38px 39px,
    transparent 39px
  );
}

/* Numcol & Sigil Column */
.numcol {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 24px 30px 26px;
  border-right: 1px dashed rgba(255, 255, 255, 0.08);
}
.numcol:hover,
.numcol:focus-within,
.numcol.is-tooltip-open,
.numcol:has(.baybayin-trigger:hover),
.numcol:has(.baybayin-trigger:focus-within),
.numcol:has(.baybayin-trigger.is-open) {
  z-index: 100 !important;
}
.sigil-block {
  position: relative;
  z-index: 100 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sigil-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.slab[data-pillar='cyber'] .sigil-ico {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .sigil-ico {
  color: var(--gov);
}
.slab[data-pillar='ai'] .sigil-ico {
  color: var(--ai);
}
.sigil-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Baybayin Interactive Trigger & HUD Tooltip */
.baybayin-trigger {
  position: relative;
  z-index: 100 !important;
  display: inline-flex;
  align-items: center;
  cursor: help;
  padding: 3px 6px 4px;
  border-radius: 2px;
  outline: none;
  transition: all 0.2s ease;
}
.baybayin-trigger:hover,
.baybayin-trigger:focus-visible,
.baybayin-trigger.is-open {
  background: rgba(255, 255, 255, 0.06);
}
.sigil-baybayin {
  font-family: 'Noto Sans Tagalog', 'Tagalog', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  padding-bottom: 2px;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.slab[data-pillar='cyber'] .baybayin-trigger:hover .sigil-baybayin,
.slab[data-pillar='cyber'] .baybayin-trigger:focus-visible .sigil-baybayin,
.slab[data-pillar='cyber'] .baybayin-trigger.is-open .sigil-baybayin {
  color: #fff;
  border-bottom: 1.5px solid var(--cyber);
  text-shadow: 0 0 10px rgba(255, 77, 90, 0.6);
}
.slab[data-pillar='gov'] .baybayin-trigger:hover .sigil-baybayin,
.slab[data-pillar='gov'] .baybayin-trigger:focus-visible .sigil-baybayin,
.slab[data-pillar='gov'] .baybayin-trigger.is-open .sigil-baybayin {
  color: #fff;
  border-bottom: 1.5px solid var(--gov);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}
.slab[data-pillar='ai'] .baybayin-trigger:hover .sigil-baybayin,
.slab[data-pillar='ai'] .baybayin-trigger:focus-visible .sigil-baybayin,
.slab[data-pillar='ai'] .baybayin-trigger.is-open .sigil-baybayin {
  color: #fff;
  border-bottom: 1.5px solid var(--ai);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

/* HUD Tooltip Container (Guaranteed Top Stacking Context) */
.baybayin-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: 256px;
  background: rgba(8, 10, 14, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 12px 14px 11px;
  border-radius: 2px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
  pointer-events: none;
  z-index: 1000 !important;
  text-align: left;
}
.baybayin-tooltip::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.baybayin-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: rgba(8, 10, 14, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  transform: rotate(45deg);
}
.slab[data-pillar='cyber'] .baybayin-tooltip {
  border-left: 3px solid var(--cyber);
}
.slab[data-pillar='gov'] .baybayin-tooltip {
  border-left: 3px solid var(--gov);
}
.slab[data-pillar='ai'] .baybayin-tooltip {
  border-left: 3px solid var(--ai);
}

.baybayin-trigger:hover .baybayin-tooltip,
.baybayin-trigger:focus-within .baybayin-tooltip,
.baybayin-trigger.is-open .baybayin-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.bt-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.bt-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.bt-term {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #fff;
}
.bt-phonetic {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.bt-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.slab[data-pillar='cyber'] .bt-tag {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .bt-tag {
  color: var(--gov);
}
.slab[data-pillar='ai'] .bt-tag {
  color: var(--ai);
}

.bt-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.bt-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: #d1d5db;
  margin: 0 0 6px;
}
.bt-desc strong {
  color: #fff;
  font-weight: 600;
}
.bt-doctrine {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 8px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  padding-left: 6px;
}
.bt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  padding-top: 6px;
  border-top: 1px dotted rgba(255, 255, 255, 0.1);
}
.bt-meta-label {
  color: rgba(255, 255, 255, 0.35);
}
.bt-meta-code {
  font-weight: 700;
}
.slab[data-pillar='cyber'] .bt-meta-code {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .bt-meta-code {
  color: var(--gov);
}
.slab[data-pillar='ai'] .bt-meta-code {
  color: var(--ai);
}

/* Numeral Typography */
.numeral {
  position: relative;
  z-index: 2;
  font-family: 'Disket Mono', var(--font-display, monospace);
  font-weight: 700;
  font-size: 176px;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  margin: 10px 0 0 -6px;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.9s var(--ease);
}
.slab[data-pillar='cyber'] .numeral {
  -webkit-text-stroke: 1.5px var(--cyber);
  background-image: linear-gradient(var(--cyber), var(--cyber));
}
.slab[data-pillar='gov'] .numeral {
  -webkit-text-stroke: 1.5px var(--gov);
  background-image: linear-gradient(var(--gov), var(--gov));
}
.slab[data-pillar='ai'] .numeral {
  -webkit-text-stroke: 1.5px var(--ai);
  background-image: linear-gradient(var(--ai), var(--ai));
}
.slab:hover .numeral,
.slab.is-hovered .numeral {
  background-size: 100% 100%;
}
.numeral::before,
.numeral::after {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  color: transparent;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  opacity: 0;
}
.numeral::after {
  z-index: -1;
  transform: translate(0, 0);
}
.numeral::before {
  z-index: -2;
  transform: translate(0, 0);
}
.slab[data-pillar='cyber'] .numeral::before,
.slab[data-pillar='cyber'] .numeral::after {
  -webkit-text-stroke: 1px rgba(255, 77, 90, 0.45);
}
.slab[data-pillar='gov'] .numeral::before,
.slab[data-pillar='gov'] .numeral::after {
  -webkit-text-stroke: 1px rgba(251, 191, 36, 0.45);
}
.slab[data-pillar='ai'] .numeral::before,
.slab[data-pillar='ai'] .numeral::after {
  -webkit-text-stroke: 1px rgba(192, 38, 211, 0.45);
}
.slab:hover .numeral::after,
.slab.is-hovered .numeral::after {
  opacity: 0.5;
  transform: translate(7px, 6px);
}
.slab:hover .numeral::before,
.slab.is-hovered .numeral::before {
  opacity: 0.25;
  transform: translate(14px, 12px);
}

/* Hazard Caution Strip */
.hazard-block {
  height: 38px;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background-size: 26px 26px;
  position: relative;
  overflow: hidden;
  border-left: 2px solid #000;
}
.slab[data-pillar='cyber'] .hazard-block {
  background-color: var(--cyber);
  background-image: repeating-linear-gradient(
    45deg,
    #050608 0,
    #050608 9px,
    transparent 9px,
    transparent 18px
  );
}
.slab[data-pillar='gov'] .hazard-block {
  background-color: var(--gov);
  background-image: repeating-linear-gradient(
    45deg,
    #050608 0,
    #050608 9px,
    transparent 9px,
    transparent 18px
  );
}
.slab[data-pillar='ai'] .hazard-block {
  background-color: var(--ai);
  background-image: repeating-linear-gradient(
    45deg,
    #050608 0,
    #050608 9px,
    transparent 9px,
    transparent 18px
  );
}
.hazard-cap {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Pillar Content Column */
.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 32px;
  min-width: 0;
}
.content .title {
  font-family: var(--font-display, 'Space Grotesque', sans-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
}
.content .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #d4d4d8;
  margin: 0 0 22px;
  max-width: 440px;
}

/* Shell & CTA Strip */
.shell {
  display: inline-block;
  padding: 2px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    background 0.35s ease,
    filter 0.35s ease,
    transform 0.25s ease;
}
.slab[data-pillar='cyber'] .shell {
  background: var(--cyber);
}
.slab[data-pillar='gov'] .shell {
  background: var(--gov);
}
.slab[data-pillar='ai'] .shell {
  background: var(--ai);
}
.slab[data-pillar='cyber']:hover .shell,
.slab[data-pillar='cyber'].is-hovered .shell {
  filter: drop-shadow(0 0 10px var(--cyber));
}
.slab[data-pillar='gov']:hover .shell,
.slab[data-pillar='gov'].is-hovered .shell {
  filter: drop-shadow(0 0 10px var(--gov));
}
.slab[data-pillar='ai']:hover .shell,
.slab[data-pillar='ai'].is-hovered .shell {
  filter: drop-shadow(0 0 10px var(--ai));
}

/* Direct hover on the shell/strip: subtle elevation and laser-glow in pillar color */
.slab .shell:hover,
.slab .strip:focus-within {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px var(--pillar-accent)) !important;
}

.strip {
  display: flex;
  align-items: center;
  background: #080a0f;
  height: 38px;
  clip-path: polygon(0 0, calc(100% - 11.5px) 0, 100% 11.5px, 100% 100%, 0 100%);
  transition: background 0.25s ease;
}
.slab .strip:hover {
  background: #0d1017;
}

.emblem {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}
.emblem svg {
  width: 14px;
  height: 14px;
}
.slab[data-pillar='cyber'] .emblem svg {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .emblem svg {
  color: var(--gov);
}
.slab[data-pillar='ai'] .emblem svg {
  color: var(--ai);
}
.seam {
  width: 9px;
  height: 100%;
  transform: skewX(-20deg);
  margin: 0 4px;
}
.slab[data-pillar='cyber'] .seam {
  background: var(--cyber);
}
.slab[data-pillar='gov'] .seam {
  background: var(--gov);
}
.slab[data-pillar='ai'] .seam {
  background: var(--ai);
}
.dots {
  display: flex;
  gap: 4px;
  padding: 0 10px;
}
.dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
/* Rivet dots illuminate in pillar color on hover */
.slab .strip:hover .dots span {
  background: var(--pillar-accent);
  box-shadow: 0 0 8px var(--pillar-accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  height: 100%;
  transition: all 0.25s ease;
}
.cta:hover {
  background: rgba(255, 255, 255, 0.05);
}
.cta .ico {
  width: 12px;
  height: 12px;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease;
}
.cta:hover .ico {
  transform: translateX(4px);
  color: var(--pillar-accent);
}

/* Hard reset any snap-btn / snap-ring on slab ctas */
.slab .cta.snap-btn.snapped,
.slab .cta.snapped {
  transform: none !important;
  box-shadow: none !important;
}
.slab .cta .snap-ring {
  display: none !important;
}

/* Spec Metadata Row */
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 4px;
  column-gap: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 440px;
}
.spec dt {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.spec dd {
  color: #fff;
  margin: 0;
}

/* Window Column & Photo Hover Decrypt */
.window-col {
  padding: 44px 32px 44px 0;
  display: flex;
  align-items: stretch;
}
.window-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1px;
  background: rgba(255, 255, 255, 0.16);
  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 40px),
    calc(100% - 40px) 100%,
    0 100%,
    0 24px
  );
  transition:
    background 0.35s ease,
    filter 0.35s ease;
}
.slab[data-pillar='cyber']:hover .window-frame,
.slab[data-pillar='cyber'].is-hovered .window-frame {
  filter: drop-shadow(0 0 12px var(--cyber));
}
.slab[data-pillar='gov']:hover .window-frame,
.slab[data-pillar='gov'].is-hovered .window-frame {
  filter: drop-shadow(0 0 12px var(--gov));
}
.slab[data-pillar='ai']:hover .window-frame,
.slab[data-pillar='ai'].is-hovered .window-frame {
  filter: drop-shadow(0 0 12px var(--ai));
}

.window {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #0a0b0f;
  cursor: crosshair;
  clip-path: polygon(
    23.5px 0,
    100% 0,
    100% calc(100% - 39.5px),
    calc(100% - 39.5px) 100%,
    0 100%,
    0 23.5px
  );
  transform: translateZ(0);
  will-change: transform;
}
.window .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090a0e;
  transform: scale(1) translateZ(0);
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
  will-change: transform;
}
.window:hover .photo,
.window.is-hovered .photo {
  transform: scale(1.028) translateZ(0);
}
.photo-dither {
  filter: grayscale(100%) contrast(1.35) brightness(0.85);
  transition: filter 0.6s ease;
}
.slab[data-pillar='cyber'] .photo-dither {
  filter: url(#dither-cyber);
  image-rendering: pixelated;
}
.slab[data-pillar='gov'] .photo-dither {
  filter: url(#dither-gov);
  image-rendering: pixelated;
}
.slab[data-pillar='ai'] .photo-dither {
  filter: url(#dither-ai);
  image-rendering: pixelated;
}

.photo-color {
  opacity: 0;
  -webkit-mask-image: radial-gradient(
    circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%),
    #000 35%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%),
    #000 35%,
    transparent 100%
  );
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    --r 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, --r;
}
.window:hover .photo-color,
.window.is-hovered .photo-color {
  opacity: 1;
  --r: 175px;
}

.win-bar {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 36px;
  right: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* Power-Up Circuit Conduit */
.circuit-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.slab[data-pillar='cyber'] .circuit-live {
  color: var(--cyber);
}
.slab[data-pillar='gov'] .circuit-live {
  color: var(--gov);
}
.slab[data-pillar='ai'] .circuit-live {
  color: var(--ai);
}
.circuit-live .base {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.circuit-live .pulse {
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
}
.slab:hover .circuit-live .base,
.slab.is-hovered .circuit-live .base {
  opacity: 0.85;
}
.slab:hover .circuit-live .pulse,
.slab.is-hovered .circuit-live .pulse {
  opacity: 1;
}

.slab:hover .dots span,
.slab.is-hovered .dots span {
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.slab[data-pillar='cyber']:hover .dots span,
.slab[data-pillar='cyber'].is-hovered .dots span {
  background: var(--cyber);
  box-shadow: 0 0 6px var(--cyber);
}
.slab[data-pillar='gov']:hover .dots span,
.slab[data-pillar='gov'].is-hovered .dots span {
  background: var(--gov);
  box-shadow: 0 0 6px var(--gov);
}
.slab[data-pillar='ai']:hover .dots span,
.slab[data-pillar='ai'].is-hovered .dots span {
  background: var(--ai);
  box-shadow: 0 0 6px var(--ai);
}

/* ================= SECTION 02: WORK LEDGER (ARCHITECTURAL CAD) ================= */
.ledger-axis-container {
  position: relative;
  padding-left: 48px;
  margin-left: 8px;
}

/* Millimeter-Calibrated Laser Timeline Axis */
.calibrated-axis-line {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--border) 40%,
    var(--border) 80%,
    transparent 100%
  );
}
/* Accent fill that draws down the axis with scroll and reverses back up */
.axis-progress {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(255, 77, 90, 0.55) 60%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 77, 90, 0.45);
  transform-origin: top;
  transform: scaleY(var(--ledger-progress, 0));
}

/* Station Reticle Node on the Axis */
.station-reticle {
  position: absolute;
  left: -53px;
  top: 28px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.25s ease;
}
.station-reticle::after {
  content: '';
  width: 3px;
  height: 3px;
  background: var(--muted);
  transition: all 0.25s ease;
}
.ledger-row:hover .station-reticle,
.ledger-row.active .station-reticle {
  border-color: var(--accent);
  transform: scale(1.3);
}
.ledger-row:hover .station-reticle::after,
.ledger-row.active .station-reticle::after {
  background: var(--accent);
}
#workTimeline .station-reticle.ignited {
  border-color: var(--accent);
  animation: station-spin 14s linear infinite;
}
#workTimeline .station-reticle.ignited::after {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
#workTimeline .ledger-row:not(.in-view) .station-reticle {
  animation-play-state: paused;
}
@keyframes station-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Architectural Ledger Entry */
.ledger-row {
  position: relative;
  margin-bottom: 0;
}
/* Ticket perforation punched between records */
.ledger-row + .ledger-row::before {
  content: '';
  display: block;
  height: 12px;
  margin-bottom: 52px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 2px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.8;
}

/* Brutalist Architectural Card with CAD Ticks */
.arch-card {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}
.arch-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Corner CAD Ticks */
.cad-tick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.25s ease;
  line-height: 1;
}
.arch-card:hover .cad-tick {
  opacity: 1;
}
.cad-tl {
  top: 6px;
  left: 8px;
}
.cad-tr {
  top: 6px;
  right: 8px;
}
.cad-bl {
  bottom: 6px;
  left: 8px;
}
.cad-br {
  bottom: 6px;
  right: 8px;
}

/* Card Record Header */
.card-rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-mono);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.rec-serial-tag {
  color: var(--accent);
  font-weight: 700;
}
.rec-timeframe {
  color: var(--muted);
  margin-left: 12px;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  padding: 2px 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-badge.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 77, 90, 0.06);
}
.status-badge.active .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite ease-in-out;
}
.status-badge.sealed {
  color: var(--muted);
  border-color: var(--border);
}

/* Card Title & Organization */
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  margin-bottom: 4px;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.arch-card:hover .card-title {
  color: var(--accent);
}
.card-org {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: var(--ls-mono);
  margin-bottom: 20px;
}

/* Architectural Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--border);
  margin-bottom: 20px;
  background: var(--bg);
}
.telemetry-cell {
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.telemetry-cell:last-child {
  border-right: none;
}
.telemetry-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.telemetry-val.accent {
  color: var(--accent);
}
.telemetry-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spec List */
.card-spec-list {
  margin-bottom: 20px;
}
.card-spec-list dt {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  color: var(--muted);
  margin-bottom: 4px;
}
.card-spec-list dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 12px;
}

/* Chips Row */
.chips-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.open-dossier-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.arch-card:hover .open-dossier-btn {
  transform: translateX(4px);
}

/* Ledger section subtext */
.section-subtext {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Ledger category filter row */
.ledger-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.ledger-filter-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.ledger-filter-btn .count-tag {
  font-size: 9.5px;
  color: var(--accent);
  border-left: 1px solid var(--border);
  padding-left: 8px;
}
.ledger-filter-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.ledger-filter-btn.active {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(255, 77, 90, 0.08);
}

/* Dossier link */
.dossier-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.arch-card:hover .dossier-link {
  gap: 9px;
}

/* Ledger rows as pillar mini-slabs: rail, ghost numeral, hazard, shell CTA.
   Reuses the global pillar pieces; accent is scoped per row status so the
   cyber/gov/ai pillar colors stay pillar-only. */
.ledger-slab {
  position: relative;
  /* Clip-path removes the border stroke on the chamfered edges.
     These pseudo-elements redraw the missing segments. */
  --chamfer-border: rgba(255, 255, 255, 0.28);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  clip-path: polygon(
    0 18px,
    calc(100% - 260px) 18px,
    calc(100% - 218px) 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease;
}
/* Restore the chamfer strokes clipped away by clip-path. */
.ledger-slab::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 260px;
  height: 1px;
  background: var(--chamfer-border);
  z-index: 6;
  pointer-events: none;
}
.ledger-slab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 21px;
  width: 28.28px;
  height: 1px;
  background: var(--chamfer-border);
  transform: rotate(-45deg);
  transform-origin: right center;
  z-index: 6;
  pointer-events: none;
}
.ledger-slab .rivets::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 18px;
  width: 25.46px;
  height: 1px;
  background: var(--chamfer-border);
  transform: rotate(-45deg);
  transform-origin: left center;
  z-index: 6;
}
.ledger-slab .rivets::after {
  content: '';
  position: absolute;
  left: calc(100% - 260px);
  top: 19px;
  width: 45.7px;
  height: 1px;
  background: var(--chamfer-border);
  transform: rotate(-23.2deg);
  transform-origin: left center;
  z-index: 6;
}
/* Asset-tag header: serial, barcode, slash group, code. Replaces the pillar rail. */
.ledger-head {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 24px 14px 26px;
  border-bottom: 1px dashed var(--border);
}
.ledger-head .rec-serial-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  color: var(--ledger-accent, var(--accent));
  text-transform: uppercase;
}
.asset-barcode {
  width: 88px;
  height: 10px;
  opacity: 0.6;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0 2px,
    transparent 2px 4px,
    rgba(255, 255, 255, 0.7) 4px 5px,
    transparent 5px 8px
  );
}
.ledger-head .head-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}
.head-slash {
  width: 18px;
  height: 10px;
  background: var(--ledger-accent, var(--accent));
  transform: skewX(-32deg);
  flex-shrink: 0;
}
.ledger-row:hover .ledger-slab {
  transform: translateY(-2px);
  border-color: var(--ledger-accent, var(--accent));
}
.ledger-row[data-status='ACTIVE'] {
  --ledger-accent: var(--accent);
}
.ledger-row[data-status='ARCHIVED'] {
  --ledger-accent: #9aa0a8;
}
.ledger-row .rail {
  padding: 28px 0 20px;
}
.ledger-row .numcol {
  grid-column: 1;
  grid-row: 2;
  padding: 34px 20px 24px;
}
.ledger-row .numeral {
  font-size: 128px;
  line-height: 1;
  transform: translateY(calc(var(--row-par, 0) * 3px));
  -webkit-text-stroke: 1.5px var(--ledger-accent);
  background-image: linear-gradient(var(--ledger-accent), var(--ledger-accent));
}
.ledger-row .numeral::before,
.ledger-row .numeral::after {
  -webkit-text-stroke: 1px var(--ledger-accent);
}
.ledger-row:hover .numeral {
  background-size: 100% 100%;
}
.ledger-row:hover .numeral::after {
  opacity: 0.5;
  transform: translate(7px, 6px);
}
.ledger-row:hover .numeral::before {
  opacity: 0.25;
  transform: translate(14px, 12px);
}
.ledger-row .rail-mark svg {
  color: var(--ledger-accent);
}
.ledger-row .hazard-block {
  background-color: var(--ledger-accent);
  background-image: repeating-linear-gradient(
    45deg,
    #050608 0,
    #050608 9px,
    transparent 9px,
    transparent 18px
  );
}
.ledger-row .shell {
  background: var(--ledger-accent);
}
.ledger-row:hover .shell {
  filter: drop-shadow(0 0 10px var(--ledger-accent));
}
.ledger-row .seam {
  background: var(--ledger-accent);
}
.ledger-row .strip:hover .dots span {
  background: var(--ledger-accent);
  box-shadow: 0 0 8px var(--ledger-accent);
}
.ledger-row .cta:hover .ico {
  color: var(--ledger-accent);
}
.ledger-row .content {
  grid-column: 2;
  grid-row: 2;
  padding: 32px 28px;
}
.ledger-row .content .title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.ledger-row .spec {
  max-width: 100%;
}
.ledger-row .telemetry-grid {
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ledger-slab {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .ledger-head {
    padding: 20px 18px 12px;
    gap: 10px;
  }
  .ledger-row .numeral {
    font-size: 96px;
  }
  .ledger-row .content {
    padding: 24px 18px;
  }
}

@media (max-width: 600px) {
  .ledger-slab {
    grid-template-columns: 1fr;
  }
  .ledger-head {
    padding: 20px 16px 12px;
  }
  .ledger-head .head-code {
    margin-left: 0;
  }
  .ledger-row .numcol {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 18px 20px 14px;
  }
  .ledger-row .numeral {
    font-size: 64px;
    margin: 0;
  }
  .ledger-row .content {
    grid-column: 1;
    grid-row: 3;
  }
}

/* Rivet dots pinned to the slab corners */
.rivets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2.6px);
  background-size: 28px 28px;
  background-position:
    16px 24px,
    calc(100% - 16px) 24px,
    16px calc(100% - 16px),
    calc(100% - 16px) calc(100% - 16px);
  background-repeat: no-repeat;
  opacity: 0.7;
}

/* Chevron ribbon divider above the axis */
.ribbon-div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.ribbon-div::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
  opacity: 0.7;
}
.rib-chev {
  width: 18px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: 0.85;
}
.rib-chev:nth-child(2) {
  opacity: 0.55;
}
.rib-chev:nth-child(3) {
  opacity: 0.3;
}
.rib-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}

/* Leader dots pinning each telemetry readout */
.ledger-row .telemetry-cell {
  position: relative;
}
.ledger-row .telemetry-cell::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ledger-accent, var(--accent));
}
.ledger-row .telemetry-cell::after {
  content: '';
  position: absolute;
  top: -17px;
  left: 8px;
  width: 1px;
  height: 15px;
  background: var(--border);
  transform: rotate(24deg);
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: reduce) {
  #workTimeline .station-reticle.ignited {
    animation: none;
  }
  #workTimeline .calibrated-axis-line {
    transform: none;
  }
}

/* Raised ID tab with diagonal slash group, footer pod language */
.ledger-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ledger-accent, var(--accent));
}
.hazard-lines {
  width: 34px;
  height: 10px;
  flex-shrink: 0;
}
.tab-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .ledger-axis-container {
    padding-left: 32px;
    margin-left: 4px;
  }
  .station-reticle {
    left: -37px;
  }
  .arch-card {
    padding: 20px;
  }
}

/* ================= 2.1 FIELD ARCHIVE ================= */
#work {
  isolation: isolate;
  contain: layout; /* Layout containment only: preserves 100vw bleed on .archive-backdrop */
}
#work > .archive-sheet-meta,
#work > header,
#work > .section-subtext,
#work > .ledger-filter-row,
#work > .archive-intro,
#work > .archive {
  position: relative;
  z-index: 1;
}
.archive-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #07080b;
}
.archive-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 8%, rgba(255, 77, 90, 0.09), transparent 55%);
  background-size:
    32px 32px,
    32px 32px,
    160px 160px,
    160px 160px,
    100% 100%;
}
.archive-dither {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1.5px);
  background-size: 5px 5px;
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    transparent 34%,
    transparent 68%,
    #000 100%
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 34%, transparent 68%, #000 100%);
}
.archive-hatch {
  position: absolute;
  width: 34vw;
  height: 34vw;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.09) 0 1px,
    transparent 1px 10px
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  opacity: 0.55;
}
.archive-hatch-tl {
  top: -8vw;
  left: -8vw;
}
.archive-hatch-br {
  right: -8vw;
  bottom: -8vw;
}
.archive-big-index {
  position: absolute;
  top: -2vw;
  right: 2vw;
  font-family: 'Disket Mono', var(--font-display, monospace);
  font-size: clamp(10rem, 22vw, 26rem);
  line-height: 0.75;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  opacity: 0.65;
}
.archive-orbit {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(54vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: archive-orbit-spin 80s linear infinite;
}
.archive-orbit::before,
.archive-orbit::after {
  content: '';
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.archive-orbit::after {
  inset: 24%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.04);
}
.archive-orbit span {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 77, 90, 0.8);
}
@keyframes archive-orbit-spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
.archive-bg-specimen {
  position: absolute;
  top: -70px;
  right: 2vw;
  width: min(38vw, 520px);
  opacity: 0.11;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 72%);
  mask-image: radial-gradient(circle, #000 28%, transparent 72%);
}
.archive-margin {
  position: absolute;
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}
.archive-margin-left {
  left: 18px;
  transform: translateY(-50%) rotate(180deg);
}
.archive-margin-right {
  right: 18px;
}
.archive-sheet-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.archive-entry::after {
  content: '';
  position: absolute;
  top: 90px;
  width: 46px;
  height: 1px;
  background: var(--ledger-accent, var(--accent));
  opacity: 0.4;
}
.archive-entry:nth-of-type(odd)::after {
  left: calc(50% - 46px);
}
.archive-entry:nth-of-type(even)::after {
  right: calc(50% - 46px);
}
.archive-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 0;
}
.archive-intro-line {
  height: 1px;
  flex: 1;
  background: var(--border);
}
.archive-intro-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.archive {
  position: relative;
  padding: 0 0 60px;
}
.archive .calibrated-axis-line {
  left: 50%;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--border), rgba(255, 255, 255, 0.04));
}
.archive .axis-progress {
  left: 50%;
  top: 0;
  bottom: 0;
}
.archive .ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 90px;
  align-items: start;
  padding: 76px 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.archive .ledger-row:first-of-type {
  border-top: none;
}
.archive .ledger-row + .ledger-row::before {
  display: none;
}
.archive .station-reticle {
  left: calc(50% - 6px);
  top: -6px;
  transform: rotate(45deg);
}
.archive .ledger-row:hover .station-reticle {
  transform: rotate(45deg) scale(1.3);
}
.archive-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  justify-self: end;
}
.archive-specimen {
  margin: 0;
  width: 100%;
  max-width: 380px;
  justify-self: start;
  position: relative;
  z-index: 1;
}
.archive-entry:nth-of-type(even) .archive-copy {
  grid-column: 2;
  justify-self: start;
}
.archive-entry:nth-of-type(even) .archive-specimen {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.archive-year {
  position: absolute;
  top: -42px;
  font-family: 'Disket Mono', var(--font-display, monospace);
  font-size: clamp(6rem, 9vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ledger-accent, var(--accent));
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  transform: translateY(calc(var(--row-par, 0) * -8px));
}
.archive-entry:nth-of-type(odd) .archive-year {
  left: 0;
}
.archive-entry:nth-of-type(even) .archive-year {
  right: 0;
}
.archive-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.archive-status {
  position: relative;
  padding-left: 10px;
  color: var(--ledger-accent, var(--accent));
}
.archive-status::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.archive-entry[data-status='ARCHIVED'] .archive-status {
  color: #9aa0a8;
}
.archive-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, 'Space Grotesque', sans-serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 20px 0 8px;
  max-width: 560px;
}
.archive-org {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 18px;
}
.archive-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #d4d4d8;
  max-width: 540px;
  margin: 0 0 22px;
}
.archive-stats {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 4px 0 4px 16px;
  border-left: 1px solid var(--border);
  max-width: 500px;
}
.archive-stats div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: baseline;
}
.archive-stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ledger-accent, var(--accent));
  text-transform: uppercase;
}
.archive-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.archive-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.archive-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--ledger-accent, var(--accent));
  padding-bottom: 3px;
  transition:
    color 0.2s ease,
    letter-spacing 0.2s ease;
}
.archive-link span {
  color: var(--ledger-accent, var(--accent));
}
.archive-link:hover {
  color: var(--ledger-accent, var(--accent));
  letter-spacing: 0.12em;
}
.archive-stub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stub-barcode {
  width: 70px;
  height: 10px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0 2px,
    transparent 2px 4px,
    rgba(255, 255, 255, 0.7) 4px 5px,
    transparent 5px 8px
  );
}
.specimen-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0b0f;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.specimen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#dither-story);
  opacity: 0.92;
  transform: scale(1.02);
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s ease;
}
.specimen-frame:hover .specimen-img {
  transform: scale(1.06);
  opacity: 1;
}
.specimen-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}
.specimen-reticle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  z-index: 2;
  animation: archive-spin 18s linear infinite;
}
.specimen-reticle::before,
.specimen-reticle::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
}
.specimen-reticle::before {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1px;
}
.specimen-reticle::after {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
}
@keyframes archive-spin {
  to {
    transform: rotate(360deg);
  }
}
.crop {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 255, 255, 0.42);
  border-style: solid;
  z-index: 2;
}
.crop.tl {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}
.crop.tr {
  top: 10px;
  right: 10px;
  border-width: 1px 1px 0 0;
}
.crop.bl {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 1px 1px;
}
.crop.br {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}
.specimen-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ================= 2.1 PROOF PLATE: RECOVERED OPTICAL UNIT =================
   One archive plate only. The chassis is fixed. The disc is the single living
   piece: the specimen reticle is pinned, the labels are printed, and no other
   layer loops. */
.archive-specimen--unit {
  max-width: 380px;
}
.specimen-frame--unit {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 42%, #0b0d11 0, #06070a 58%, #030405 100%);
}
.specimen-frame--unit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 44%,
    transparent 0 34%,
    rgba(0, 0, 0, 0.24) 68%,
    rgba(0, 0, 0, 0.76) 100%
  );
}
.specimen-frame--unit::after {
  z-index: 12;
}
.unit-deck {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.unit-deck::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0.55px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.unit-body {
  position: absolute;
  top: 4.5%;
  left: 50%;
  width: 94%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 23%, rgba(255, 255, 255, 0.13), transparent 22%),
    radial-gradient(circle at 74% 78%, rgba(255, 255, 255, 0.05), transparent 34%),
    conic-gradient(
      from 215deg,
      #07080a 0deg,
      #1a1c21 9%,
      #0a0b0e 20%,
      #262a30 30%,
      #090a0d 44%,
      #16181d 57%,
      #07080a 69%,
      #1b1e23 82%,
      #08090b 92%,
      #07080a 360deg
    );
  box-shadow:
    0 22px 24px -12px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 8px rgba(0, 0, 0, 0.35),
    inset 0 0 50px rgba(0, 0, 0, 0.9);
}
.unit-body::before {
  content: '';
  position: absolute;
  inset: 2.2%;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 4px #07080a,
    inset 0 0 0 5px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.unit-body::after {
  content: '';
  position: absolute;
  inset: 7%;
  z-index: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.unit-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  z-index: 8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #555a63, #14161a 60%, #050607);
  box-shadow:
    0 0 0 1px #000,
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.unit-screw::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 1px;
  right: 1px;
  height: 1px;
  background: #050607;
  transform: rotate(-35deg);
}
.unit-screw--tl {
  top: 18%;
  left: 18%;
}
.unit-screw--tr {
  top: 18%;
  right: 18%;
}
.unit-screw--bl {
  bottom: 18%;
  left: 18%;
}
.unit-screw--br {
  right: 18%;
  bottom: 18%;
}
.unit-grille {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.45;
  pointer-events: none;
}
.unit-grille--top {
  top: 6.5%;
  left: 29%;
  width: 18%;
  height: 3.5%;
  transform: rotate(7deg);
}
.unit-grille--left {
  bottom: 13%;
  left: 6.5%;
  width: 18%;
  height: 5%;
  transform: rotate(-28deg);
}
.unit-arc {
  position: absolute;
  z-index: 7;
  border-radius: 50%;
  pointer-events: none;
}
.unit-arc--outer {
  inset: 1.5%;
  background: conic-gradient(
    from 210deg,
    transparent 0 18deg,
    #383d45 18deg 142deg,
    transparent 142deg 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 48%, #000 48.5% 52%, transparent 52.5%);
  mask: radial-gradient(circle, transparent 48%, #000 48.5% 52%, transparent 52.5%);
}
.unit-arc--inner {
  inset: 5.5%;
  background: conic-gradient(
    from 20deg,
    transparent 0 26deg,
    rgba(255, 255, 255, 0.13) 26deg 150deg,
    transparent 150deg 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 47.5% 49.5%, transparent 50%);
  mask: radial-gradient(circle, transparent 47%, #000 47.5% 49.5%, transparent 50%);
}
.unit-bay {
  position: absolute;
  top: 10.5%;
  left: 17%;
  width: 79%;
  aspect-ratio: 1;
  z-index: 3;
  border-radius: 50%;
  isolation: isolate;
}
.unit-bay::before {
  content: '';
  position: absolute;
  inset: -3.5%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #07080a, #020304 75%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 12px 30px #000;
}
.unit-disc {
  position: absolute;
  inset: 2.5%;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.38), transparent 14%),
    radial-gradient(circle at 68% 76%, rgba(255, 255, 255, 0.1), transparent 24%),
    conic-gradient(
      from 212deg,
      #08090b 0deg,
      #101216 28deg,
      #08090b 48deg,
      #1d2025 62deg,
      #0b0d10 82deg,
      #353940 96deg,
      #111318 118deg,
      #08090b 138deg,
      #24272d 156deg,
      #0a0b0e 182deg,
      #1b1e23 206deg,
      #090a0d 226deg,
      #4a4f57 246deg,
      #0e1013 268deg,
      #22252b 286deg,
      #08090b 306deg,
      #131519 330deg,
      #08090b 360deg
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 0 0 4px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.55);
  animation: unit-disc-spin 12s linear infinite;
}
.unit-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: conic-gradient(
    from 205deg,
    transparent 0 20%,
    rgba(255, 255, 255, 0.06) 26%,
    rgba(255, 255, 255, 0.52) 34%,
    rgba(255, 255, 255, 0.1) 42%,
    transparent 52% 100%
  );
  mix-blend-mode: screen;
  opacity: 0.85;
}
.unit-disc-grooves {
  position: absolute;
  inset: 14%;
  z-index: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.17) 0 0.5px,
    transparent 0.5px 2.7px
  );
  -webkit-mask: radial-gradient(circle, transparent 0 24%, #000 25% 98%, transparent 100%);
  mask: radial-gradient(circle, transparent 0 24%, #000 25% 98%, transparent 100%);
  opacity: 0.38;
  mix-blend-mode: screen;
}
.unit-disc-label {
  position: absolute;
  inset: 31%;
  z-index: 3;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
    rgba(4, 5, 7, 0.48);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.24);
}
.unit-disc-label::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.unit-disc-index {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.unit-disc-index::before {
  content: '';
  position: absolute;
  top: 9%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(255, 77, 90, 0.55);
}
.unit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  z-index: 8;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4e535c, #1a1c21 50%, #08090b 70%);
  box-shadow:
    0 0 0 2px #050607,
    0 0 0 3px rgba(255, 255, 255, 0.13),
    0 8px 10px rgba(0, 0, 0, 0.8);
}
.unit-hub::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.unit-hub::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  height: 2px;
  background: #050607;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) rotate(35deg);
}
.unit-panel {
  position: absolute;
  top: 19%;
  left: 1.8%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 30%;
  height: 58%;
  padding: 7px 6px 6px;
  overflow: hidden;
  color: rgba(235, 238, 242, 0.76);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), transparent 18%),
    linear-gradient(180deg, #16181d, #090a0d 55%, #050608);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  clip-path: polygon(0 0, 94% 0, 100% 6%, 100% 100%, 6% 100%, 0 94%);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px #07080a,
    inset 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.unit-kicker {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 4.6px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}
.unit-label {
  position: relative;
  flex: 0 0 auto;
  height: 57px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #08090b;
}
.unit-thumb {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  object-position: 50% 45%;
  opacity: 0.86;
  filter: grayscale(1) brightness(0.86);
  transform: none;
  transition: none;
}
.archive-specimen--unit .specimen-img.unit-thumb,
.archive-specimen--unit .specimen-frame:hover .unit-thumb {
  transform: none;
  opacity: 0.82;
}
.unit-label-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7px;
  font-family: var(--font-mono);
  font-size: 3.6px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(3, 4, 6, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.unit-tracks {
  display: grid;
  gap: 2px;
  min-height: 0;
  margin-top: 5px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.unit-track {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px;
  font-size: 4.6px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(235, 238, 242, 0.62);
  white-space: nowrap;
}
.unit-track b {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.34);
}
.unit-track i {
  font-style: normal;
  font-size: 4px;
  color: rgba(255, 255, 255, 0.3);
}
.unit-transport {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 4px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
.unit-play {
  font-size: 6px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 5px rgba(255, 77, 90, 0.35);
}
.unit-time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.32);
}
.unit-dock {
  position: absolute;
  bottom: 3%;
  left: 16%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 68%;
  height: 18%;
  padding: 7px 8px 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #1b1e23, #0b0c0f 50%, #060708);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px #08090b;
}
.unit-dock::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.unit-dock-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 4.4px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.unit-dock-vents {
  height: 12px;
  margin: 5px 0 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22) 0 1px,
    transparent 1px 5px
  );
  opacity: 0.35;
}
.unit-dock-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.unit-btn {
  position: relative;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3c4149, #111317 60%, #050607);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.unit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 1px;
  background: rgba(255, 255, 255, 0.36);
  transform: translate(-50%, -50%);
}
.unit-btn--play::before {
  width: 0;
  height: 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 3px solid var(--accent);
  background: none;
  transform: translate(-35%, -50%);
}
.unit-dock-barcode {
  width: 38%;
  height: 7px;
  margin-left: auto;
  opacity: 0.4;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0 1px,
    transparent 1px 3px,
    rgba(255, 255, 255, 0.55) 3px 4px,
    transparent 4px 6px
  );
}
.archive-specimen--unit .specimen-reticle {
  z-index: 14;
  animation: none;
  opacity: 0.66;
}
@keyframes unit-disc-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .archive-margin {
    display: none;
  }
  .archive-big-index {
    top: 0;
    right: 12px;
    font-size: 5rem;
    opacity: 0.45;
  }
  .archive-orbit {
    top: 1%;
    width: 82vw;
  }
  .archive-bg-specimen {
    top: -20px;
    right: -18vw;
    width: 72vw;
    opacity: 0.08;
  }
  .archive-sheet-meta {
    gap: 8px;
    font-size: 8px;
  }
  .archive {
    padding-left: 26px;
  }
  .archive .calibrated-axis-line,
  .archive .axis-progress {
    left: 0;
  }
  .archive .station-reticle {
    left: -32px;
  }
  .archive .ledger-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0 42px;
  }
  .archive-copy,
  .archive-entry:nth-of-type(even) .archive-copy {
    grid-column: 1;
    justify-self: stretch;
    max-width: 100%;
  }
  .archive-specimen,
  .archive-entry:nth-of-type(even) .archive-specimen {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    max-width: 100%;
  }
  .archive-year {
    font-size: 5.5rem;
    top: -26px;
  }
  .archive-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}
@media (max-width: 900px) {
  .archive-specimen--unit {
    max-width: min(100%, 420px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .specimen-reticle,
  .archive-orbit,
  .unit-disc {
    animation: none;
  }
  .archive-year {
    transform: none;
  }
}

/* ================= SECTION 03: PROJECTS ================= */
.proj-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.proj-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-btn {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 20, 0.6);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pf-btn:hover {
  color: #fff;
  border-color: var(--cyber);
}
.pf-btn.active {
  color: var(--cyber);
  border-color: var(--cyber);
  background: rgba(255, 77, 90, 0.08);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.proj-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080a0f;
  padding: 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 3px;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.proj-card:hover {
  border-color: var(--cyber);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.proj-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.proj-card .card-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyber);
}
.proj-card .card-status {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.5);
}
.proj-card h3 {
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.proj-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0 0 20px;
}
.proj-card .card-stack {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ================= SECTION 04: REGISTRY ================= */
.reg-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 1024px) {
  .reg-grid {
    grid-template-columns: 5fr 7fr;
  }
}
.cred-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 20, 0.7);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cred-row:hover {
  border-color: var(--cyber);
  background: rgba(255, 77, 90, 0.04);
  transform: translateY(-2px);
}
.cred-row.active {
  border-color: var(--cyber);
  background: rgba(255, 77, 90, 0.08);
  box-shadow: 0 0 16px rgba(255, 77, 90, 0.12);
}
.cred-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.cred-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 24, 33, 0.8);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.cred-row:hover .cred-row-icon,
.cred-row.active .cred-row-icon {
  color: var(--cyber);
  border-color: var(--cyber);
}
.cred-row-info {
  min-width: 0;
}
.cred-row-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cred-row-sub {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  display: block;
}
.cred-row-pill {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyber);
  background: rgba(255, 77, 90, 0.1);
  border: 1px solid rgba(255, 77, 90, 0.3);
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.studio-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080a0f;
  padding: 30px;
  position: relative;
  border-radius: 3px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pc-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyber);
  pointer-events: none;
}
.pc-tl {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}
.pc-tr {
  top: 6px;
  right: 6px;
  border-left: none;
  border-bottom: none;
}
.pc-bl {
  bottom: 6px;
  left: 6px;
  border-right: none;
  border-top: none;
}
.pc-br {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

/* ================= SECTION 05: TOOLCHAIN ================= */
.tc-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.tool-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.65);
  padding: 12px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #e4e4e7;
  transition: all 0.2s ease;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.tool-card::before {
  content: '▸';
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  transition: color 0.2s;
}
.tool-card:hover {
  border-color: var(--cyber);
  background: rgba(255, 77, 90, 0.06);
  color: #fff;
  transform: translateY(-2px);
}
.tool-card:hover::before {
  color: var(--cyber);
}
.tool-card.dimmed {
  opacity: 0.15;
  pointer-events: none;
}
.tc-count-bar {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
  letter-spacing: 0.08em;
}
.tc-count-bar b {
  color: var(--cyber);
}

/* ================= FOOTER HORIZON (ALPINE VALLEY DITHER + ASCII OVERLAY) ================= */
.horizon-footer,
.rx-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #09090b;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-end;
  padding: 0 !important;
  border-top: none !important; /* Zero hard borders */
  margin-top: 60px;
  --font-spec-display: 'OTF Glusp', 'Disket Mono', monospace;
  --font-spec-nav: 'Disket Mono', 'JetBrains Mono', monospace;
  --font-spec-telemetry: 'JetBrains Mono', monospace;
}

.content-stream:has(.horizon-footer) {
  padding-bottom: 0 !important;
}

/* Soft top blend scrim: dissolves seamlessly into the black void above */
.horizon-footer .hz-top-blend {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    #09090b 0%,
    rgba(9, 9, 11, 0.92) 25%,
    rgba(9, 9, 11, 0.6) 55%,
    rgba(9, 9, 11, 0) 100%
  );
  pointer-events: none;
  z-index: 6;
}

/* Dithered Mountain Horizon Stage */
.horizon-footer .hz-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 12%,
    rgba(0, 0, 0, 0.35) 28%,
    rgba(0, 0, 0, 0.75) 45%,
    #000 65%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 12%,
    rgba(0, 0, 0, 0.35) 28%,
    rgba(0, 0, 0, 0.75) 45%,
    #000 65%
  );
}
.horizon-footer .hz-dither {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  opacity: 0.9;
}
.horizon-footer .hz-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.horizon-footer .hz-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      rgba(9, 9, 11, 0.2) 0%,
      rgba(9, 9, 11, 0.65) 65%,
      #09090b 100%
    ),
    linear-gradient(
      to bottom,
      rgba(9, 9, 11, 0.4) 0%,
      transparent 25%,
      transparent 70%,
      #09090b 100%
    );
  pointer-events: none;
  z-index: 4;
}

/* ================= CELESTIAL & ARTWORK LAYER ================= */
.horizon-footer .hz-celestial-stage {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  align-self: stretch;
  height: 480px;
  margin-top: auto;
  margin-bottom: 63px;
  flex-shrink: 0;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.horizon-footer .art-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

/* ASCII Horizon Span Stage */
.horizon-footer .ascii-horizon-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.horizon-footer .ascii-horizon-stage::before {
  content: '';
  position: absolute;
  top: -40px;
  bottom: -200px;
  left: 0;
  width: 220px;
  background: linear-gradient(
    to right,
    rgba(5, 5, 7, 0.95) 0%,
    rgba(5, 5, 7, 0.6) 35%,
    rgba(5, 5, 7, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 8;
}
.horizon-footer .ascii-horizon-stage::after {
  content: '';
  position: absolute;
  top: -40px;
  bottom: -200px;
  right: 0;
  width: 220px;
  background: linear-gradient(
    to left,
    rgba(5, 5, 7, 0.95) 0%,
    rgba(5, 5, 7, 0.6) 35%,
    rgba(5, 5, 7, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 8;
}

/* Interactive SVG Astrolabe / Gimbal Reticle System */
.horizon-footer .astrolabe-gimbal-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 480px;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
  opacity: 0.6;
}
.horizon-footer .astrolabe-gimbal-stage text {
  user-select: none;
  -webkit-user-select: none;
}
.horizon-footer .astrolabe-chrono-ring {
  transition: opacity 0.4s ease;
}
.horizon-footer .astrolabe-meridian-ring {
  transition: opacity 0.3s ease;
}
.horizon-footer .astrolabe-azimuth-gimbal {
  transition: opacity 0.3s ease;
}

/* Dedicated Full-Bleed Clouds Canvas Layer */
.horizon-footer .hz-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}

/* Left Wing: Adam's Hand Container */
.horizon-footer .ascii-arm-left {
  position: absolute;
  left: -160px;
  top: 18px;
  width: calc(34vw + 340px);
  max-width: 860px;
  min-width: 630px;
  transform-origin: 0% 50%;
  will-change: transform;
  pointer-events: auto;
  z-index: 6;
  transition: opacity 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.3) 28px, #000 115px),
    linear-gradient(16deg, transparent 0%, transparent 6%, rgba(0, 0, 0, 0.3) 16%, #000 32%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.3) 28px, #000 115px),
    linear-gradient(16deg, transparent 0%, transparent 6%, rgba(0, 0, 0, 0.3) 16%, #000 32%);
  mask-composite: intersect;
}

/* Right Wing: God's Hand Container */
.horizon-footer .ascii-arm-right {
  position: absolute;
  right: -160px;
  top: 134px;
  width: calc(32vw + 160px);
  max-width: 660px;
  min-width: 440px;
  transform-origin: 100% 50%;
  will-change: transform;
  pointer-events: auto;
  z-index: 6;
  transition: opacity 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image:
    linear-gradient(to left, transparent 0, rgba(0, 0, 0, 0.3) 25px, #000 110px),
    linear-gradient(to top, transparent 0, #000 35px);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, transparent 0, rgba(0, 0, 0, 0.3) 25px, #000 110px),
    linear-gradient(to top, transparent 0, #000 35px);
  mask-composite: intersect;
}

/* Joint 2: Wrist Levitation & Zero-G Pitch */
.horizon-footer .ascii-wrist-left {
  width: calc(34vw + 160px);
  max-width: 680px;
  min-width: 450px;
  height: auto;
  transform-origin: 0% 50%;
  will-change: transform;
}
.horizon-footer .ascii-wrist-right {
  width: 100%;
  height: auto;
  transform-origin: 100% 50%;
  will-change: transform;
}

/* Joint 3: Metacarpal / Finger Articulation */
.horizon-footer .ascii-fingers-left {
  position: relative;
  width: 100%;
  height: auto;
  transform-origin: 72% 62%;
  will-change: transform;
}
.horizon-footer .ascii-fingers-right {
  position: relative;
  width: 100%;
  height: auto;
  transform-origin: 28% 58%;
  will-change: transform;
}

.horizon-footer .ascii-hand-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(0, 0, 0, 0.85));
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.15s ease;
}

/* Overlaid Dynamic Scramble & Brightness Canvas */
.horizon-footer .ascii-hand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Fingertip Specular Glint */
.horizon-footer .fingertip-glint {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  opacity: 0.75;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.horizon-footer .fingertip-glint .glint-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 8px #ffffff,
    0 0 14px rgba(255, 255, 255, 0.85);
}
.horizon-footer .fingertip-glint .glint-corona {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
}
.horizon-footer .fingertip-glint .glint-flare-h {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}
.horizon-footer .fingertip-glint .glint-flare-v {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 32px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, #ffffff, transparent);
}

/* Corner HUD Telemetry Overlays */
.horizon-footer .ascii-telemetry-corner-left {
  position: absolute;
  left: 28px;
  bottom: 85px;
  width: 240px;
  max-width: 20vw;
  opacity: 0.72;
  pointer-events: none;
  z-index: 5;
  animation: telemetryPulse 6s ease-in-out infinite alternate;
}
.horizon-footer .ascii-telemetry-corner-right {
  position: absolute;
  right: 28px;
  bottom: 85px;
  width: 250px;
  max-width: 20vw;
  opacity: 0.72;
  pointer-events: none;
  z-index: 5;
  animation: telemetryPulse 6s ease-in-out infinite alternate 3s;
}
.horizon-footer .ascii-telemetry-corner-left img,
.horizon-footer .ascii-telemetry-corner-right img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}
@keyframes telemetryPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translateY(0);
  }
  50% {
    opacity: 0.88;
    transform: translateY(-3px);
  }
}

/* Center Synaptic Hub */
.horizon-footer .ascii-center-spark {
  position: absolute;
  top: 280px;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 12;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}
.horizon-footer .ascii-center-spark:active,
.horizon-footer .ascii-center-spark.active {
  transform: translate(-50%, -50%) scale(0.92);
}

/* Subtle Degauss Shockwave */
.horizon-footer .spark-degauss-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  z-index: 11;
}
.horizon-footer .spark-degauss-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.horizon-footer .spark-degauss-ring circle {
  stroke: #ffffff;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.horizon-footer .spark-degauss-ring.active {
  animation: degaussBurst 1.15s cubic-bezier(0.12, 0.9, 0.28, 1) forwards;
}
@keyframes degaussBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0.95;
  }
  25% {
    opacity: 0.85;
  }
  65% {
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(9.5);
    opacity: 0;
  }
}

/* Synaptic Filament SVG */
.horizon-footer .synaptic-filament-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
  opacity: 0.25;
  transition: opacity 0.12s ease;
}
.horizon-footer .filament-core {
  stroke: #ffffff;
  stroke-width: 1;
  stroke-linecap: round;
}
.horizon-footer .filament-branch {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 0.9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
  opacity: 0;
}
.horizon-footer .filament-sparks {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 0.85;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px #ffffff);
  opacity: 0;
}
.horizon-footer .filament-glow {
  stroke: rgba(240, 245, 255, 0.35);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75));
}

/* Active Arc Surge */
.horizon-footer.surging .astrolabe-chrono-ring circle {
  stroke: rgba(255, 255, 255, 0.18);
}
.horizon-footer.surging .astrolabe-meridian-ring circle {
  stroke: rgba(255, 255, 255, 0.22);
}
.horizon-footer.surging .spark-ring {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.75);
}

.horizon-footer .synaptic-spark {
  position: absolute;
  top: 51.3%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.horizon-footer .spark-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 10px #fff,
    0 0 20px rgba(255, 255, 255, 0.7);
  animation: sparkPulse 1.8s ease-in-out infinite;
}
.horizon-footer .spark-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  animation: sparkRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes sparkPulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}
@keyframes sparkRing {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

/* =====================================================================
   DIE-CUT INDUSTRIAL SPEC-LABEL TRIPTYCH ARCHITECTURE
   ===================================================================== */
.horizon-footer .hz-footer-overlay {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 5, 7, 0.22) 20%,
    rgba(5, 5, 7, 0.7) 55%,
    #050507 100%
  );
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  font-family: var(--font-spec-telemetry);
}

.horizon-footer .spec-triptych-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  pointer-events: none;
}

.horizon-footer .spec-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.horizon-footer .spec-col-left {
  align-items: flex-start;
}
.horizon-footer .spec-col-right {
  align-items: flex-end;
}

.horizon-footer .spec-kicker {
  display: flex;
  align-items: baseline;
  user-select: none;
  pointer-events: auto;
}
.horizon-footer .signoff-baybayin {
  font-family: 'Noto Sans Tagalog', sans-serif;
  color: var(--accent, #ff4d5a);
  font-size: 15px;
  letter-spacing: 0.28em;
  cursor: default;
  transition:
    text-shadow 0.25s ease,
    color 0.25s ease;
  text-shadow: 0 0 14px rgba(255, 77, 90, 0.55);
}
.horizon-footer .signoff-baybayin.glow-active {
  text-shadow:
    0 0 16px rgba(255, 77, 90, 0.95),
    0 0 32px rgba(255, 77, 90, 0.5);
  color: #ff6b78;
}

.horizon-footer .spec-pod {
  position: relative;
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  pointer-events: auto;
}

.horizon-footer .spec-pod-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}
.horizon-footer .pod-border-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

/* POD A (Bottom-Left) */
.horizon-footer .spec-pod-a {
  width: 100%;
  max-width: 460px;
  clip-path: polygon(
    0 0,
    175px 0,
    192px 14px,
    100% 14px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
}

.horizon-footer .pod-tab-raised {
  position: absolute;
  top: 0;
  height: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  z-index: 6;
}
.horizon-footer .pod-tab-left {
  left: 0;
  width: 175px;
  padding-left: 9px;
}
.horizon-footer .pod-tab-right {
  right: 0;
  width: 175px;
  justify-content: flex-end;
  padding-right: 9px;
}
.horizon-footer .pod-tab-right .tab-id-text {
  font-size: 8.5px;
  letter-spacing: 0.16em;
}
.horizon-footer .hazard-strip-svg {
  display: block;
  border-radius: 1px;
  flex-shrink: 0;
}
.horizon-footer .tab-id-text {
  font-family: var(--font-spec-nav);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f4f4f5;
  text-transform: uppercase;
  white-space: nowrap;
}

.horizon-footer .pod-spec-grid {
  display: grid;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .pod-spec-grid-a {
  grid-template-columns: auto auto 1fr auto;
  margin-top: 14px;
}

.horizon-footer .pod-grid-cell {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.horizon-footer .pod-spine-cell {
  padding: 8px 8px;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .pod-spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-spec-telemetry);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
  user-select: none;
}

.horizon-footer .pod-chip-cell {
  padding: 10px 14px;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .ic-chip-svg {
  display: block;
}

.horizon-footer .pod-identity-cell {
  padding: 10px 18px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .identity-name {
  font-family: var(--font-spec-nav);
  font-size: 11.5px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}
.horizon-footer .pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
  font-family: var(--font-spec-telemetry);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}
.horizon-footer .pass-pill .beacon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}
.horizon-footer .pass-pill:hover,
.horizon-footer .pass-pill.highlight-active {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.horizon-footer .pod-stamp-cell {
  width: 56px;
  padding: 8px 12px;
  justify-content: center;
  position: relative;
  user-select: none;
  background: rgba(255, 255, 255, 0.08);
}
.horizon-footer .stamp-code {
  font-family: var(--font-spec-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}
.horizon-footer .reg-tick {
  position: absolute;
  font-family: var(--font-spec-telemetry);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}
.horizon-footer .reg-tl {
  top: 3px;
  left: 3px;
}
.horizon-footer .reg-tr {
  top: 3px;
  right: 3px;
}
.horizon-footer .reg-bl {
  bottom: 3px;
  left: 3px;
}
.horizon-footer .reg-br {
  bottom: 3px;
  right: 3px;
}

/* POD B (Bottom-Center): 4-Cell Micro-Index Navigation Cartridge */
.horizon-footer .spec-pod-b {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(102px, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.24);
  user-select: none;
}
.horizon-footer .cartridge-cross {
  position: absolute;
  font-family: var(--font-spec-telemetry);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
  pointer-events: none;
}
.horizon-footer .cross-tl {
  top: -6px;
  left: -6px;
}
.horizon-footer .cross-tr {
  top: -6px;
  right: -6px;
}
.horizon-footer .cross-bl {
  bottom: -6px;
  left: -6px;
}
.horizon-footer .cross-br {
  bottom: -6px;
  right: -6px;
}

.horizon-footer .spec-nav-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 18px 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.horizon-footer .spec-nav-cell:last-child {
  border-right: none;
}
.horizon-footer .nav-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff4d5a;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}
.horizon-footer .nav-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-spec-telemetry);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  transition: color 0.12s ease;
}
.horizon-footer .nav-arr {
  font-size: 10.5px;
  opacity: 0.75;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    color 0.12s ease;
}
.horizon-footer .nav-cell-title {
  font-family: var(--font-spec-nav);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f4f4f5;
  text-transform: uppercase;
  margin: 6px 0 7px;
  transition: color 0.12s ease;
}
.horizon-footer .nav-barcode-tick {
  height: 3px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0px,
    rgba(255, 255, 255, 0.4) 1px,
    transparent 1px,
    transparent 3px,
    rgba(255, 255, 255, 0.4) 3px,
    rgba(255, 255, 255, 0.4) 5px,
    transparent 5px,
    transparent 6px
  );
  transition: background 0.12s ease;
}

/* Inverted High-Contrast Hover State */
.horizon-footer .spec-nav-cell:hover {
  background: #f4f4f5 !important;
}
.horizon-footer .spec-nav-cell:hover .nav-top-accent {
  opacity: 1;
  transform: scaleX(1);
}
.horizon-footer .spec-nav-cell:hover .nav-cell-top {
  color: rgba(5, 5, 7, 0.65);
}
.horizon-footer .spec-nav-cell:hover .nav-arr {
  color: #050507;
  opacity: 1;
  transform: translate(2px, -2px);
}
.horizon-footer .spec-nav-cell:hover .nav-cell-title {
  color: #050507;
}
.horizon-footer .spec-nav-cell:hover .nav-barcode-tick {
  background: repeating-linear-gradient(
    90deg,
    #050507 0px,
    #050507 1px,
    transparent 1px,
    transparent 3px,
    #050507 3px,
    #050507 5px,
    transparent 5px,
    transparent 6px
  );
}

/* POD C (Bottom-Right) */
.horizon-footer .spec-pod-c {
  width: 100%;
  max-width: 490px;
  clip-path: polygon(
    0 14px,
    calc(100% - 192px) 14px,
    calc(100% - 175px) 0,
    100% 0,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}
.horizon-footer .pod-spec-grid-c {
  grid-template-columns: auto 1fr auto;
  margin-top: 14px;
}

.horizon-footer .pod-globe-cell {
  padding: 10px 16px;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .spec-globe-svg {
  display: block;
  width: 38px;
  height: 38px;
  opacity: 0.85;
  transform-origin: center center;
  transition: transform 0.05s linear;
}

.horizon-footer .pod-telemetry-cell {
  padding: 10px 18px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.horizon-footer .spec-barcode-svg {
  display: block;
  width: 100%;
  max-width: 195px;
  height: 17px;
  opacity: 0.85;
}
.horizon-footer .pod-telemetry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-spec-telemetry);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.horizon-footer .baseline-ssh {
  font-family: var(--font-spec-telemetry);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  cursor: default;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.horizon-footer .baseline-ssh:hover,
.horizon-footer .baseline-ssh.highlight-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2) !important;
}
.horizon-footer .meta-dot {
  color: rgba(255, 255, 255, 0.45);
}
.horizon-footer .baseline-time {
  font-family: var(--font-spec-telemetry);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.horizon-footer .pod-ask-cell {
  padding: 8px 14px;
  justify-content: center;
}
.horizon-footer .pass-ask-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  isolation: isolate;
  transition: transform 0.1s ease;
}
.horizon-footer .pass-ask-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  z-index: -2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.horizon-footer .pass-ask-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #141419;
  clip-path: polygon(
    4.5px 0,
    100% 0,
    100% calc(100% - 4.5px),
    calc(100% - 4.5px) 100%,
    0 100%,
    0 4.5px
  );
  z-index: -1;
  transition: background 0.15s ease;
}
.horizon-footer .pass-ask-btn:hover::before {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}
.horizon-footer .pass-ask-btn:hover::after {
  background: #202028;
}
.horizon-footer .pass-ask-btn:active {
  transform: scale(0.96);
}
.horizon-footer .pass-ask-btn kbd {
  background: rgba(255, 77, 90, 0.22);
  border: 1px solid rgba(255, 77, 90, 0.45);
  padding: 2px 5px;
  border-radius: 2px;
  font-family: var(--font-spec-telemetry);
  font-size: 8.5px;
  font-weight: 700;
  color: #ff4d5a;
}
.horizon-footer .pass-ask-btn .btn-label {
  font-family: var(--font-spec-nav);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* Responsive Rules */
@media (max-width: 1040px) {
  .horizon-footer .spec-triptych-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 0 20px 16px;
  }
  .horizon-footer .spec-column {
    width: 100%;
    max-width: 440px;
  }
  .horizon-footer .spec-col-left,
  .horizon-footer .spec-col-right {
    align-items: stretch;
  }
  .horizon-footer .spec-pod-b {
    order: 2;
    width: 100%;
    max-width: 440px;
  }
  .horizon-footer .spec-column:nth-child(1) {
    order: 1;
  }
  .horizon-footer .spec-column:nth-child(3) {
    order: 3;
  }
}

@media (max-width: 960px) {
  .horizon-footer .hz-celestial-stage {
    top: auto;
    height: 380px;
  }
}

@media (max-width: 500px) {
  .horizon-footer .hz-celestial-stage {
    height: 300px;
  }
  .horizon-footer .spec-pod-b {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .horizon-footer .spec-nav-cell {
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }
  .horizon-footer .pod-globe-cell {
    padding: 8px 10px;
  }
  .horizon-footer .pod-telemetry-cell {
    padding: 8px 10px;
  }
  .horizon-footer .pod-ask-cell {
    padding: 8px 4px;
  }
  .horizon-footer .pod-telemetry-row {
    gap: 4px;
  }
  .horizon-footer .baseline-ssh,
  .horizon-footer .baseline-time {
    font-size: 8.5px;
    letter-spacing: 0.08em;
  }
  .horizon-footer .spec-pod-a,
  .horizon-footer .spec-pod-c {
    clip-path: none;
  }
  .horizon-footer .spec-pod-border-svg {
    display: none;
  }
  .horizon-footer .spec-pod-a,
  .horizon-footer .spec-pod-c {
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
}

[data-theme='sun'] .horizon-footer {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .horizon-footer .spark-core,
  .horizon-footer .spark-ring,
  .horizon-footer .spec-globe-svg {
    animation: none !important;
  }
}

/* ================= AMBIENT CALIPER & UTILITY DOCK ================= */
.ambient-telemetry {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.ambient-telemetry .caliper {
  position: static !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  z-index: auto !important;
  padding: 6px 0 6px 20px;
  cursor: pointer;
}

.caliper-node {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  padding: 2px 0;
  cursor: pointer;
  position: relative;
}

.caliper-node .caliper-tick {
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1px;
  flex-shrink: 0;
}

.caliper-node.active .caliper-tick,
.caliper-tick.tick-active {
  background: var(--accent) !important;
  height: 32px !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(255, 77, 90, 0.8) !important;
}

.caliper-node:hover .caliper-tick {
  background: rgba(255, 255, 255, 0.7);
}

.caliper-node.active:hover .caliper-tick {
  background: var(--accent) !important;
}

.caliper-lbl {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  text-transform: uppercase;
}

.caliper-node.active .caliper-lbl {
  color: var(--cyber);
  text-shadow: 0 0 8px rgba(255, 77, 90, 0.5);
}

/* Pop up the active section label ONLY when hovering over the caliper / dock */
.caliper:hover .caliper-node.active .caliper-lbl,
.ambient-telemetry:hover .caliper-node.active .caliper-lbl {
  opacity: 1;
  transform: translateX(0);
}

/* Pop up any specific node label when hovering that specific node */
.caliper-node:hover .caliper-lbl {
  opacity: 1 !important;
  transform: translateX(0) !important;
  color: #fff;
}

.caliper-node.active:hover .caliper-lbl {
  color: var(--cyber) !important;
}

.amb-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.amb-ask-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 3px;
  color: var(--muted, rgba(255, 255, 255, 0.6));
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-ask-btn:hover {
  border-color: var(--cyber);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 77, 90, 0.25);
}

.amb-ask-btn kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 8px;
}

.ambient-telemetry .hd-card {
  width: 210px;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* Responsive Adapters */
@media (max-width: 1280px) {
  .ambient-telemetry {
    display: none;
  }
  .slab-inner {
    grid-template-columns: 44px 175px minmax(280px, 1fr) minmax(260px, 32%);
  }
  .numcol {
    padding: 44px 16px 26px 18px;
  }
  .numeral {
    font-size: 130px;
  }
  .content {
    padding: 36px 24px;
  }
  .content .title {
    font-size: clamp(1.65rem, 2.2vw, 2.3rem);
  }
  .window-col {
    padding: 36px 24px 36px 0;
  }
}

@media (max-width: 1080px) {
  .content-stream {
    padding: 0 24px 100px;
  }
  .slab-inner {
    grid-template-columns: 44px 150px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .rail {
    grid-row: 1 / -1;
    grid-column: 1;
    padding: 44px 0 28px;
  }
  .rail-label {
    letter-spacing: 0.22em;
    font-size: 9.5px;
  }
  .numcol {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    padding: 36px 16px 20px 18px;
    border-right: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .numeral {
    font-size: 110px;
    line-height: 0.85;
    margin: 14px 0 0 -4px;
  }
  .content {
    grid-column: 3;
    grid-row: 1;
    padding: 36px 28px 24px 24px;
  }
  .content .desc {
    max-width: 100%;
  }
  .window-col {
    grid-column: 2 / -1;
    grid-row: 2;
    height: 360px;
    padding: 0 28px 32px 18px;
  }
  .circuit-live {
    display: none;
  }
  .story-globe-row {
    grid-template-columns: 1fr;
  }
  .work-telemetry-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .content-stream {
    padding: 0 16px 80px;
  }
  .slab-inner {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: auto;
  }
  .rail {
    grid-column: 1;
    grid-row: 1 / -1;
    padding: 28px 0 20px;
  }
  .rail-label {
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }
  .numcol {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px 14px;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .numcol .numeral {
    font-size: 52px;
    line-height: 1;
    margin: 0;
  }
  .numcol .hazard-block,
  .numcol .hazard-cap {
    display: none;
  }
  .content {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 18px 20px;
  }
  .content .title {
    font-size: 1.6rem;
  }
  .window-col {
    grid-column: 2;
    grid-row: 3;
    height: 260px;
    padding: 0 18px 22px;
  }
}

/* =========================================================================
   HERO FJORD STAGE (BAYER DITHER FJORD BACKDROP + ANIMATED DRIFTING MIST)
   ========================================================================= */
.hero-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-stage .hero-dither {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  opacity: 0.92;
}
.hero-stage .hero-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 1;
}
.hero-stage .hero-birds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.hero-stage .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(8, 8, 10, 0.04) 0%,
      rgba(8, 8, 10, 0.30) 55%,
      rgba(8, 8, 10, 0.68) 85%,
      #08080a 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 8, 10, 0.60) 0%,
      transparent 18%,
      transparent 72%,
      #08080a 100%
    );
  pointer-events: none;
  z-index: 3;
}


/* ==========================================================================
   4.1 REGISTRY + 5.1 TOOLCHAIN // MOBILE COMPRESSION
   Phones were spending 2.7 and 4.0 viewports on these two sections because
   the desktop master-detail lists stacked into long single columns. Below
   768px the registry index becomes a 3-up badge wall and the toolchain
   becomes a dense chip grid with in-place evidence. Desktop is untouched.
   ========================================================================== */
@media (max-width: 768px) {
  #registry,
  #toolchain {
    padding-top: 52px;
    margin-top: 24px;
    scroll-margin-top: 72px;
  }

  #registry .stream-head,
  #toolchain .stream-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 20px;
  }
  #registry .stream-head > div:first-child,
  #toolchain .stream-head > div:first-child {
    flex: 1 1 100%;
  }
  #registry .stream-head h2,
  #toolchain .stream-head h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.05;
  }
  #registry .stream-head p,
  #toolchain .stream-head p {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  #registry .stream-head .coord,
  #toolchain .stream-head .coord {
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.8;
  }

  /* One-line filter rails: no three-row chip stacks. */
  #registry #moonCredFilter,
  #toolchain #stackFilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
  }
  #moonCredFilter::-webkit-scrollbar,
  #stackFilters::-webkit-scrollbar { display: none; }
  #moonCredFilter .tl-filter,
  #stackFilters .tl-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 9.5px;
  }
  #moonCredCount { display: none !important; }

  /* Registry index: a badge wall instead of nine stacked full rows. */
  #registryGrid { gap: 16px; }
  #credList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
  }
  #credList .cred-row-item {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 70px;
    padding: 10px 6px;
    text-align: center;
  }
  #credList .cred-row-item > .flex {
    gap: 6px;
    justify-content: center;
  }
  #credList .cred-row-item > .flex > div:first-child {
    width: 32px;
    height: 32px;
  }
  #credList .cred-row-item > .flex > .min-w-0 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #credList .cred-row-item > span { display: none; }
  #credList .cred-row-item::after {
    content: attr(data-code);
    font-family: var(--font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
  }
  #credList .cred-row-item.active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--panel-bg));
  }
  #credList .cred-row-item.active::after { color: var(--accent); }

  /* Registry detail console: tighter padding, type, and rules. */
  #studioFrame {
    min-height: 0;
    padding: 16px;
  }
  #studioContent > div { margin-bottom: 16px; }
  #studioContent > div:first-child {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  #studioContent > div:first-child > div { flex: 1 1 auto; min-width: 0; }
  #sTitle {
    margin-top: 4px;
    font-size: 1.05rem;
    line-height: 1.2;
  }
  #sIssuer {
    margin-top: 4px;
    font-size: 9.5px;
    line-height: 1.4;
  }
  #sBadge {
    margin-left: 0;
    padding: 3px 8px;
    font-size: 9px;
  }
  #sDesc {
    font-size: 0.78rem;
    line-height: 1.55;
  }
  #sClauses { gap: 8px; }
  #sClauses > div { padding: 10px; }
  #sClauses > div > div:first-child {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  #sClauses > div > div:first-child span { font-size: 8.5px; }
  #sClauses > div > div:last-child {
    font-size: 0.7rem;
    line-height: 1.45;
  }
  #sSystems { gap: 6px; }
  #sSystems span {
    padding: 4px 7px;
    font-size: 8.5px;
  }
  #studioContent > div:last-child {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
  }
  #studioContent > div:last-child > span { font-size: 9px; }
  #sVerifyLink {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 9.5px;
  }

  /* Toolchain: dense two-up chips, no dead inspector panel below the fold. */
  #toolchain #stackGrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    padding: 10px;
    border-right: none;
  }
  #toolchain #stackGrid .stack-card {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10.5px;
    line-height: 1.25;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }
  #toolchain #stackGrid .stack-card::before {
    width: 5px;
    height: 5px;
  }
  #toolchain #stackGrid .stack-label {
    font-size: 10.5px;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }
  #toolchain #moonToolInspector { display: none; }

  #toolchain #stackGrid .stack-card.dimmed {
    opacity: 0.15 !important;
    transform: scale(0.97) !important;
    pointer-events: none !important;
    filter: grayscale(0.8) !important;
  }

  /* Selected tool expands in place instead of updating a panel 3000px away. */
  #toolchain #stackGrid .stack-card.sel {
    grid-column: 1 / -1;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, var(--panel-bg));
    cursor: pointer;
  }
  #toolchain #stackGrid .stack-detail {
    flex: 1 0 100%;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px dashed var(--border);
  }
  #toolchain .stack-detail .used-h {
    margin-top: 5px;
    font-family: var(--font-mono, monospace);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  #toolchain .stack-detail .use {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  #toolchain .stack-detail .use:first-of-type { border-top: none; }
  #toolchain .stack-detail .ref {
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
  }
  #toolchain .stack-detail .what {
    font-size: 10px;
    line-height: 1.35;
  }
  #toolchain .stack-detail .role {
    margin-top: 1px;
    font-size: 8.5px;
    color: var(--muted);
  }
}

/* Evidence details stay collapsed on desktop; the side inspector owns them. */
.stack-detail { display: none; }
@media (max-width: 360px) {
  #credList { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #toolchain #stackGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  #toolchain #stackGrid .stack-card.sel .stack-detail { display: block; }
}

/* ==========================================================================
   MOBILE SUMMARY LAYERS // 4.1 AND 5.1
   The compact grids still asked a phone visitor to scan everything at once.
   The default state now shows the active credential console and a core stack;
   the full indexes open on demand.
   ========================================================================== */
.cred-mobile-toggle,
.tc-mobile-summary { display: none; }

@media (max-width: 768px) {
  .cred-mobile-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    background: var(--panel-bg);
    color: var(--fg);
    text-align: left;
    cursor: pointer;
  }
  .cred-mobile-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .cred-mobile-kicker {
    font-family: var(--font-mono, monospace);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cred-mobile-active {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
  }
  .cred-mobile-action {
    flex: none;
    font-family: var(--font-mono, monospace);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .cred-mobile-toggle:hover,
  .cred-mobile-toggle:focus-visible { border-color: var(--accent); }
  .cred-mobile-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--accent) 6%, var(--panel-bg));
  }

  #registry:not(.cred-open) #moonCredFilter,
  #registry:not(.cred-open) #moonCredCount,
  #registry:not(.cred-open) #credList { display: none; }

  /* Registry detail reads as a plain evidence page, not a boxed dashboard. */
  #studioFrame {
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }
  #studioFrame .pc-corner { display: none; }
  #sClauses > div {
    padding: 10px 0;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
  #sClauses > div:first-child { border-top: none; }

  .tc-mobile-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  .tc-mobile-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .tc-mobile-kicker {
    font-family: var(--font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .tc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--panel-bg);
    color: var(--fg);
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .tc-mobile-toggle:hover,
  .tc-mobile-toggle:focus-visible { border-color: var(--accent); }
  .tc-mobile-toggle #tcMobileSign {
    color: var(--accent);
    font-size: 14px;
    line-height: 1;
  }
  .tc-mobile-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--accent) 6%, var(--panel-bg));
  }

  #toolchain:not(.tc-open) #stackFilters { display: none; }
  #toolchain:not(.tc-open) #moonTcWrap { border: none; }
  #toolchain:not(.tc-open) #stackGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  #toolchain:not(.tc-open) #stackGrid .stack-card:not([data-core]) { display: none; }
}
