/*
 * LIVE.CØDE — SHARED DESIGN SYSTEM
 * shared.css · All pages inherit from here
 */

/* ============================
   DESIGN TOKENS
   ============================ */
:root {
  --iv: #faf7f0;
  --iv2: #f2ede3;
  --iv3: #e8e1d4;
  --iv4: #d9cfbe;
  --iv-dark: #1c1812;
  --iv2-dark: #252018;
  --iv3-dark: #2e2820;
  --iv4-dark: #3d3528;
  --ink: #1c1812;
  --ink2: #3d3528;
  --ink3: #7a6e5f;
  --ink-dark: #f0ebe0;
  --ink2-dark: #c8bfaf;
  --ink3-dark: #8a7d6e;
  --cr: #b02020;
  --cr-l: #f7eeee;
  --cr-dark: #cc3333;
  --sg: #2d6a3f;
  --sg-l: #edf4ef;
  --am: #a05c00;
  --am-l: #fef6e8;
  --pu: #5c3d8f;
  --pu-l: #f2eef9;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --max-body: 720px;
  --max-wide: 1100px;
  --max-form: 640px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-instant: 150ms;
  --dur-fast: 250ms;
  --dur-mid: 400ms;
  --dur-slow: 600ms;
  --dur-breath: 2000ms;
}

/* ============================
   RESET
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--iv-dark);
  color: var(--ink-dark);
  font-family: 'Lora', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* ============================
   SHARED ANIMATIONS
   ============================ */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes oslash-rotate {
  from {
    transform: translateY(-50%) scale(8) rotate(0deg);
  }

  to {
    transform: translateY(-50%) scale(8) rotate(360deg);
  }
}

@keyframes oslash-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 0.15;
    transform: translateY(6px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ============================
   SUBSURFACE LAYER
   ============================ */
.subsurface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 40px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  word-wrap: break-word;
  color: var(--ink);
  opacity: 0.032;
  will-change: transform;
  transition: opacity 600ms ease;
}

.subsurface.dark {
  color: var(--ink-dark);
  opacity: 0.05;
}

.zone-content {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
}

/* ============================
   READING PROGRESS
   ============================ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--cr);
  z-index: 99997;
  pointer-events: none;
  transition: width 100ms linear;
}

/* ============================
   CUSTOM CURSOR (FORENSIC NODE)
   ============================ */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--cr);
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  mix-blend-mode: normal;
  transition: box-shadow 200ms ease, background 200ms ease, width 150ms ease, height 150ms ease;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(176, 32, 32, 0.4);
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 150ms ease, height 150ms ease, border-color 200ms ease, background 150ms ease;
}

.cursor-glow-dot {
  box-shadow: 0 0 16px 4px rgba(176,32,32,0.8) !important;
  background: #f73838 !important;
}
.cursor-glow-ring {
  border-color: #f73838 !important;
}

@keyframes cursor-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cursor-rotate {
  0% {
    border-radius: 1px;
    transform: rotate(0deg);
  }

  50% {
    border-radius: 4px;
    transform: rotate(180deg);
  }

  100% {
    border-radius: 1px;
    transform: rotate(360deg);
  }
}

/* ============================
   NAVIGATION — SHARED
   ============================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-nav.scrolled {
  background: rgba(242, 237, 227, 0.92);
  border-color: var(--iv3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav.dark-nav {
  --nav-text: var(--ink-dark);
}

.site-nav.light-nav {
  --nav-text: var(--ink);
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dark);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-nav.scrolled .nav-wordmark {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 235, 224, 0.7);
  text-decoration: none;
  transition: color 150ms ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cr-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

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

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

.site-nav.scrolled .nav-links a {
  color: var(--ink2);
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--ink);
}

.site-nav.scrolled .nav-links a::after {
  background: var(--cr);
}

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-dark);
  border: 1px solid rgba(204, 51, 51, 0.6);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.nav-cta:hover {
  background: var(--cr);
  color: #fff;
  border-color: var(--cr);
  transform: translateY(-1px);
}

.site-nav.scrolled .nav-cta {
  color: var(--cr);
  border-color: var(--cr);
}

#nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

#nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink-dark);
  transition: background 200ms ease, transform 300ms ease, opacity 300ms ease;
}

.site-nav.scrolled #nav-hamburger span {
  background: var(--ink);
}

.sound-toggle-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink3-dark);
  background: transparent;
  border: 1px solid var(--iv3-dark);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle-btn:hover {
  color: var(--ink-dark);
  border-color: var(--ink3-dark);
}

.site-nav.scrolled .sound-toggle-btn {
  color: var(--ink3);
  border-color: var(--iv3);
}

.site-nav.scrolled .sound-toggle-btn:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.sound-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iv3-dark);
  opacity: 0.3;
  transition: all 300ms ease;
}

.sound-indicator.focus {
  background: var(--cr);
  opacity: 1;
  box-shadow: 0 0 8px var(--cr);
}

.sound-indicator.system {
  background: var(--iv);
  opacity: 1;
  box-shadow: 0 0 8px var(--iv);
}

.sound-indicator.office {
  background: #bba077;
  opacity: 1;
  box-shadow: 0 0 8px #bba077;
}

.sound-indicator.off {
  background: var(--iv3-dark);
  opacity: 0.3;
  box-shadow: none;
}

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: var(--iv-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--ink-dark);
  text-decoration: none;
  line-height: 1.6;
  transition: color 150ms ease;
  transform: translateX(-20px);
  opacity: 0;
  transition: color 150ms ease, transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
}

#mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu.open a:nth-child(2) {
  transition-delay: 50ms;
}

#mobile-menu.open a:nth-child(3) {
  transition-delay: 100ms;
}

#mobile-menu.open a:nth-child(4) {
  transition-delay: 150ms;
}

#mobile-menu.open a:nth-child(5) {
  transition-delay: 200ms;
}

#mobile-menu.open a:nth-child(6) {
  transition-delay: 250ms;
}

#mobile-menu a:hover {
  color: var(--cr-dark);
}

#mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink3-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 150ms ease;
}

#mobile-close:hover {
  color: var(--cr-dark);
}

/* ============================
   CTA BUTTONS — SHARED
   ============================ */
.cta-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  transition: background 200ms ease, color 200ms ease,
    border-color 200ms ease, transform 200ms ease,
    box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 150ms ease;
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:active {
  transform: translateY(1px) !important;
}

.cta-primary {
  background: var(--cr);
  color: #fff;
  border-color: var(--cr);
}

.cta-primary:hover {
  background: #9a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176, 32, 32, 0.25);
}

.cta-ghost-dark {
  background: transparent;
  color: var(--ink3-dark);
  border-color: var(--iv3-dark);
}

.cta-ghost-dark:hover {
  border-color: var(--ink3-dark);
  color: var(--ink-dark);
  transform: translateY(-1px);
}

.cta-ghost-light {
  background: transparent;
  color: var(--cr);
  border-color: var(--cr);
}

.cta-ghost-light:hover {
  background: var(--cr-l);
  transform: translateY(-1px);
}

/* ============================
   ZONE TYPOGRAPHY — SHARED
   ============================ */
.zone-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr);
  margin-bottom: 16px;
  display: block;
}

.zone-label.neutral {
  color: var(--ink3);
}

.zone-label.dark-label {
  color: var(--ink3-dark);
}

.zone-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 32px;
}

.zone-heading.dark {
  color: var(--ink-dark);
}

.zone-heading.sm {
  font-size: 36px;
}

.zone-heading.lg {
  font-size: 56px;
}

.zone-body {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.9;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.zone-body p+p {
  margin-top: 24px;
  text-indent: 1.5em;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.badge-live {
  color: var(--sg);
  background: var(--sg-l);
}

.badge-soon {
  color: var(--am);
  background: var(--am-l);
}

.badge-beta {
  color: var(--pu);
  background: var(--pu-l);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--cr);
  outline-offset: 3px;
}

/* ============================
   SHARED FOOTER
   ============================ */
.site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px max(48px, calc(50vw - 550px)) 64px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 64px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink3);
  max-width: 250px;
  line-height: 1.6;
}

.footer-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink2);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--iv3);
  padding-top: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================
   RESPONSIVE
   ============================ */

/* ============================
   PHASE 6: BRIGHT FORENSIC EDITORIAL
   ============================ */

/* ZONE 3: THE INCISION */
.forensic-zone {
  padding: 180px 0;
  background: transparent;
}

.forensic-grid {
  display: flex;
  max-width: var(--max-wide);
  margin: 0 auto;
  gap: 80px;
  position: relative;
}

/* The Evidence Rail (Left) */
.evidence-rail {
  width: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  /* Surgical precision line */
  padding-right: 40px;
}

.rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 25vh;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.rail-item:hover {
  opacity: 1;
}

.rail-ts {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink3);
}

.rail-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* The Main Argument (Right) */
.main-argument {
  flex: 1;
  max-width: 640px;
}

.argument-body {
  margin-top: 60px;
}

.argument-body p {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink2);
  margin-bottom: 32px;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* Interaction: Core Hit (Tightening the lens) */
.core-hit.focused {
  color: var(--ink);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  /* Optical sharpness */
}

.core-hit strong {
  font-weight: 600;
  color: var(--cr);
}

/* ZONE 4: THE BEHAVIORAL MAP */
.spatial-matrix {
  position: relative;
  height: 800px;
  width: 100%;
  max-width: 900px;
  margin: 100px auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.matrix-node {
  position: absolute;
  width: 320px;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: crosshair;
}

.matrix-node:hover {
  opacity: 1;
  transform: scale(1.02);
  z-index: 10;
}

.node-see {
  top: 10%;
  left: 0;
}

.node-think {
  top: 30%;
  right: 0;
  text-align: right;
}

.node-comm {
  top: 55%;
  left: 5%;
}

.node-move {
  bottom: 10%;
  right: 5%;
  text-align: right;
}

.matrix-node .node-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink3);
  display: block;
  margin-bottom: 12px;
}

.matrix-node .node-title {
  font-size: 54px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}

.matrix-node .node-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink2);
  margin-bottom: 16px;
}

.matrix-node .node-desc {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.matrix-node:hover .node-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Interdependent Structural Lines */
.matrix-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.matrix-line {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1px;
  fill: none;
}

/* ZONE 5: PINNED RECURRENCE CORELOOP */
.sticky-loop-container {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 200px;
}

.loop-card {
  position: sticky;
  top: 15vh;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 60px;
  min-height: 400px;
  margin-bottom: 40px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  transform-origin: top center;
  transition: transform 0.4s ease;
}

.loop-card:nth-child(1) {
  top: 15vh;
}

.loop-card:nth-child(2) {
  top: calc(15vh + 30px);
}

.loop-card:nth-child(3) {
  top: calc(15vh + 60px);
}

.loop-card:nth-child(4) {
  top: calc(15vh + 90px);
}

.loop-num {
  font-family: 'DM Mono', monospace;
  color: var(--cr);
  font-size: 11px;
  display: block;
  margin-bottom: 24px;
}

.loop-title {
  color: var(--iv);
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 32px;
}

.loop-desc {
  color: var(--iv3-dark);
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.6;
  max-width: 80%;
  margin-bottom: 60px;
}

/* Aliveness (Data Traces) */
.data-trace {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

/* ZONE 5B: ARCHIVAL LEDGER (DOCTRINE) */
.archival-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--max-wide);
  margin: 120px auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 60px;
}

.ledger-records {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.record-version {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.record-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink3);
  width: 80px;
  flex-shrink: 0;
}

.record-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink2);
}

.monument-quote {
  font-size: 54px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  padding-left: 40px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* ZONE 6: VARIABLE DEPTH FIELD */
.depth-field {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.tool-node {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.tool-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* Foreground Nodes */
.node-foreground {
  grid-column: span 6;
  min-height: 300px;
}

.node-foreground .tool-name {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 16px;
}

/* Latent Nodes */
.node-latent {
  grid-column: span 4;
  opacity: 0.6;
  background: transparent;
}

.node-latent:hover {
  opacity: 1;
  background: transparent;
}

/* Gated Nodes */
.node-gated {
  grid-column: span 12;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.node-gated .tool-name {
  color: white;
  display: inline-block;
  margin-right: 24px;
}

.node-gated .tool-desc {
  color: var(--iv3-dark);
  max-width: 600px;
  display: inline-block;
}

.node-gated .lock-icon svg {
  stroke: var(--cr);
}


.node-gated .tool-desc {
  color: var(--iv3-dark);
  max-width: 600px;
  display: inline-block;
}

.node-gated .lock-icon svg {
  stroke: var(--cr);
}

/* ZONE 7: PROVENANCE */
.provenance-section {
  max-width: 700px;
  margin: 180px auto;
  text-align: center;
}

.provenance-body p {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink3);
  margin-bottom: 24px;
}

.provenance-body .core-hit {
  color: var(--ink);
}

/* ZONE 8: THRESHOLD RITUAL */
.threshold-ritual {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.threshold-gateway {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--iv);
  text-decoration: none;
  padding: 24px 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 60px;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.threshold-gateway:hover {
  background: var(--iv);
  color: var(--ink);
  border-color: var(--iv);
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  #nav-hamburger {
    display: flex;
  }

  .zone-heading {
    font-size: 36px;
  }

  .zone-heading.lg {
    font-size: 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 64px 24px 40px;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .zone-heading {
    font-size: 30px;
  }
}