/* Moustr v3: Liquid Optical Glass & Non-Intrusive Transparency */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-var-latin.woff2') format('woff2');
}

:root {
  --bg: #F5F2EA;
  --bg-deep: #ECE7DA;
  --glass-1: rgba(255, 254, 250, 0.68);
  --glass-2: rgba(255, 255, 255, 0.78);
  --glass-inset: rgba(255, 255, 255, 0.56);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-rim: rgba(22, 20, 15, 0.065);

  --ink: #16140F;
  --ink-2: #3A3730;
  --muted: #5A5650;

  --dark: #16140F;
  --dark-glass: rgba(22, 20, 15, 0.91);
  --dark-rule: rgba(255, 255, 255, 0.14);
  --on-dark: #F6F4EE;
  --on-dark-muted: #D5D0C5;

  --amber: #E8A33D;
  --amber-ink: #8E5100;
  --amber-bg: rgba(251, 240, 222, 0.85);
  --amber-line: rgba(230, 193, 132, 0.78);

  --forest: #244234;
  --green: #3E6B52;
  --green-bg: rgba(237, 244, 240, 0.88);
  --green-line: rgba(184, 210, 195, 0.82);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-pill: 999px;
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 34px;

  --shadow-glass:
    0 22px 50px -18px rgba(22, 20, 15, 0.09),
    0 4px 12px -4px rgba(22, 20, 15, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(22, 20, 15, 0.045);

  --shadow-soft:
    0 10px 26px -10px rgba(22, 20, 15, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(22, 20, 15, 0.05);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
}

/* Ambient Refracted Optical Light Fields Behind Glass */
.optical-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(62% 52% at 12% 14%, rgba(232, 163, 61, 0.16) 0%, transparent 72%),
    radial-gradient(54% 48% at 88% 18%, rgba(62, 107, 82, 0.13) 0%, transparent 74%),
    radial-gradient(58% 46% at 74% 58%, rgba(232, 163, 61, 0.12) 0%, transparent 72%),
    radial-gradient(56% 48% at 22% 84%, rgba(62, 107, 82, 0.13) 0%, transparent 74%),
    radial-gradient(50% 40% at 50% 42%, rgba(255, 255, 255, 0.72) 0%, transparent 78%);
}

header, main, footer {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--dark);
  color: var(--on-dark);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  z-index: 1000;
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--amber-ink);
  outline-offset: 2px;
}

section[id], div[id] {
  scroll-margin-top: 78px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.032em;
  color: var(--ink);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

/* =====================================================================
   OPTICAL MOTION SIGNALS
   ===================================================================== */
[data-reveal] {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
}

@keyframes flowTrace {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes sweepPulse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes beacon {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(62, 107, 82, 0.35);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(62, 107, 82, 0);
  }
}

.trace-line {
  stroke-dasharray: 4 6;
  animation: flowTrace 1.2s linear infinite;
}

.sweep-arm {
  transform-origin: 60px 60px;
  animation: sweepPulse 6s linear infinite;
}

.live-beacon {
  animation: beacon 2.4s ease-in-out infinite;
}

@keyframes orbBreath {
  0%, 100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.24);
  }
}

.orb-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbBreath 2.8s ease-in-out infinite;
}

.trace-slow {
  stroke-dasharray: 5 7;
  animation: flowTrace 1.8s linear infinite;
}

/* =====================================================================
   FLOATING LIQUID GLASS PILL HEADER
   ===================================================================== */
.header-shell {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 14px 24px 0;
}

.swiss-header {
  max-width: var(--measure);
  margin: 0 auto;
  position: relative;
  border-radius: var(--r-pill);
  background: rgba(255, 254, 250, 0.74);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 32px -12px rgba(22, 20, 15, 0.1),
    0 2px 6px rgba(22, 20, 15, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(22, 20, 15, 0.05);
}

.progress-track {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  border-radius: var(--r-pill);
  overflow: hidden;
  pointer-events: none;
}

.progress-rule {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  border-radius: var(--r-pill);
  transition: width 60ms linear;
}

.header-inner {
  padding: 0 10px 0 14px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #27231A, #16140F);
  box-shadow:
    0 4px 10px -2px rgba(22, 20, 15, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.swiss-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(22, 20, 15, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.swiss-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .swiss-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.6);
  }
}

.swiss-nav a.is-active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 8px -2px rgba(22, 20, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-ext {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}

.nav-ext:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(22, 20, 15, 0.1);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 224px;
  background: rgba(255, 254, 250, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glass);
  border-radius: var(--r-md);
  padding: 8px;
  display: grid;
  gap: 3px;
}

.mobile-drawer a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

/* =====================================================================
   FOUNDATIONS, PILLS & GLASS VESSELS
   ===================================================================== */
.container {
  max-width: var(--measure);
  margin: 0 auto;
}

.section-band {
  padding: 88px 24px;
}

.bridge-band {
  padding: 24px 24px;
}

.chapter-bridge {
  max-width: 840px;
  margin: 0 auto;
  padding: 18px 28px;
  border-radius: var(--r-pill);
  background: rgba(255, 254, 250, 0.56);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.bridge-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 20, 15, 0.05);
}

.bridge-copy small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 3px;
}

.bridge-copy p {
  font-size: 14px;
  line-height: 1.48;
  color: var(--ink-2);
}

.coord-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.coord-title {
  max-width: 720px;
}

.coord-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(22, 20, 15, 0.04);
  margin-bottom: 16px;
}

.coord-index i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.22);
}

.coord-title h2 {
  font-size: clamp(26px, 3vw, 37px);
  line-height: 1.08;
  font-weight: 800;
}

.coord-title p:not(.coord-index) {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.52;
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-amber {
  background: linear-gradient(180deg, #F0AF4D 0%, #E39B30 100%);
  color: var(--ink);
  border-color: rgba(196, 128, 22, 0.45);
  box-shadow:
    0 8px 20px -6px rgba(227, 155, 48, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .btn-amber:hover {
    background: linear-gradient(180deg, #F5B85B 0%, #EAA33A 100%);
    transform: translateY(-1px);
  }
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-color: rgba(22, 20, 15, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 10px -4px rgba(22, 20, 15, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(22, 20, 15, 0.24);
    transform: translateY(-1px);
  }
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.header-cta {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* Segmented Frosted Pill Controls */
.tab-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(22, 20, 15, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 2px rgba(22, 20, 15, 0.05);
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  min-height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .tab-btn:hover:not(.is-active) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
  }
}

.tab-btn.is-active {
  background: linear-gradient(145deg, #27231A, #16140F);
  color: var(--on-dark);
  box-shadow:
    0 4px 10px -2px rgba(22, 20, 15, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.badge-confirmed { background: var(--green-bg); color: var(--forest); border: 1px solid var(--green-line); }
.badge-owned { background: linear-gradient(145deg, #2D5341, #213D2F); color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.badge-decide { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.perim-block .badge-decide { background: #FBF0DE; }
.badge-detected { background: rgba(233, 230, 220, 0.85); color: var(--ink-2); border: 1px solid rgba(22, 20, 15, 0.12); }
.badge-seen { background: rgba(235, 232, 222, 0.85); color: var(--ink-2); border: 1px solid rgba(22, 20, 15, 0.08); }
.badge-checked { background: rgba(226, 235, 238, 0.88); color: #1E4452; border: 1px solid rgba(30, 68, 82, 0.14); }

.plate-grid-bg {
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(circle at 82% 75%, rgba(232, 163, 61, 0.08), transparent 55%);
}

/* =====================================================================
   00 / HERO: FLOATING LIQUID INSTRUMENT
   ===================================================================== */
.hero-section {
  padding: 58px 24px 76px;
}

.hero-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.hero-top-grid h1 {
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.01;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 590px;
}

.hero-spec-col {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spec-trio {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spec-cell {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--glass-1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.spec-cell small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.spec-cell span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Optical Glass Instrument Container */
.instrument-frame {
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.instrument-bar {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(22, 20, 15, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.instrument-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.instrument-id i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-pipe {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(22, 20, 15, 0.055);
}

.pipe-box {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  border-radius: var(--r-md);
  padding: 11px 15px;
}

.pipe-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.pipe-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pipe-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(246, 244, 238, 0.88);
  border: 1px solid rgba(22, 20, 15, 0.08);
}

.hero-split {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}

.hero-gauge-col {
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.dial-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 20, 15, 0.06);
}

.dial-item-meta {
  min-width: 0;
}

.dial-item-meta .pipe-label {
  margin-bottom: 2px;
}

.dial-item-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.dial-item-line strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.dial-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.dial-side {
  display: grid;
  gap: 8px;
}

.dial-chip {
  padding: 7px 9px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px -4px rgba(22, 20, 15, 0.05);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.dial-chip small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.2;
}

.dial-chip span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 1px;
  white-space: nowrap;
}

.dial-chip.is-done {
  background: rgba(237, 244, 240, 0.85);
  border-color: rgba(184, 210, 195, 0.82);
}

.dial-chip.is-done small {
  color: var(--forest);
}

.dial-chip.is-current {
  background: rgba(251, 240, 222, 0.88);
  border-color: rgba(230, 193, 132, 0.85);
  box-shadow: 0 5px 14px -6px rgba(232, 163, 61, 0.25);
}

.dial-chip.is-current small {
  color: var(--amber-ink);
}

.dial-chip.is-current span {
  color: var(--ink);
}

.gauge-svg {
  width: 186px;
  height: 186px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(22, 20, 15, 0.07));
}

.gauge-svg path {
  transition: fill 220ms var(--ease), opacity 220ms var(--ease);
}

.action-plate {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px -6px rgba(22, 20, 15, 0.06);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.action-plate p {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
}

.action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.action-btns .btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.ledger-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 82px minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(22, 20, 15, 0.04);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

#hero-rows {
  display: grid;
  gap: 7px;
}

.ledger-row {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px -2px rgba(22, 20, 15, 0.04);
  border-radius: var(--r-sm);
  padding: 10px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 82px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  transition: background-color 140ms var(--ease), transform 140ms var(--ease), box-shadow 140ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .ledger-row:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
  }
}

.ledger-row.is-selected {
  background: linear-gradient(135deg, rgba(251, 240, 222, 0.88), rgba(255, 252, 246, 0.84));
  border-color: rgba(232, 163, 61, 0.45);
  box-shadow: 0 6px 16px -6px rgba(232, 163, 61, 0.22);
}

.ledger-row .badge {
  justify-self: end;
}

.row-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.ledger-foot {
  margin-top: auto;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* =====================================================================
   01 / THE BLIND SPOT: 135 OPTICAL DROPLETS
   ===================================================================== */
.blindspot-plate {
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 24px;
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.stat-bar-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-cell {
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.stat-cell strong {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
}

.stat-cell span {
  font-size: 12.5px;
  color: var(--muted);
}

.matrix-wrap {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(244, 240, 230, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 4px rgba(22, 20, 15, 0.04);
}

.matrix-27 {
  display: grid;
  grid-template-columns: repeat(27, minmax(0, 1fr));
  gap: 6px;
}

.cell-node {
  height: 17px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid rgba(22, 20, 15, 0.14);
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), opacity 220ms var(--ease), transform 220ms var(--ease);
}

.cell-node.bought {
  background: linear-gradient(180deg, #4B7E62 0%, #366049 100%);
  border-color: rgba(36, 66, 52, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cell-node.embedded {
  background: linear-gradient(180deg, #F1B14F 0%, #DE9629 100%);
  border-color: rgba(199, 132, 32, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cell-node.adopted {
  background: linear-gradient(180deg, #322F27 0%, #16140F 100%);
  border-color: rgba(22, 20, 15, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cell-node.dimmed {
  background: rgba(22, 20, 15, 0.04);
  border: 1px solid rgba(22, 20, 15, 0.12);
  opacity: 0.34;
  transform: scale(0.92);
}

.matrix-key {
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-2);
}

.key-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.key-item i {
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  display: inline-block;
}

.triggers-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trigger-cell {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--glass-1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.trigger-cell small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trigger-cell h3 {
  font-size: 15.5px;
  margin: 3px 0;
}

.trigger-cell p {
  font-size: 13px;
  color: var(--muted);
}

/* =====================================================================
   02 / FOUR-LAYER ENGINE: SCULPTED GLASS DOCK & CAPSULE RAIL
   ===================================================================== */
.engine-plate {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 20px;
  gap: 20px;
}

.rail-nav {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.rail-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 4px 12px -4px rgba(22, 20, 15, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .rail-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
  }
}

.rail-btn.is-active {
  background: linear-gradient(145deg, rgba(22, 20, 15, 0.94), rgba(40, 36, 27, 0.90));
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  box-shadow:
    0 14px 28px -10px rgba(22, 20, 15, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18);
}

.rail-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber-ink);
  display: block;
  margin-bottom: 2px;
}

.rail-btn.is-active .rail-num {
  color: var(--amber);
}

.rail-btn strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
}

.rail-btn span.rail-sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.rail-btn.is-active span.rail-sub {
  color: var(--on-dark-muted);
}

.rail-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  border: 1.5px solid rgba(22, 20, 15, 0.22);
}

.rail-btn.is-active .rail-indicator {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.22);
}

.engine-canvas {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.canvas-body {
  padding: 26px;
  flex: 1;
  min-height: 336px;
}

.stage-pane {
  display: none;
  gap: 15px;
}

.stage-pane.is-active {
  display: grid;
}

.radar-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px -4px rgba(22, 20, 15, 0.05);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px -3px rgba(22, 20, 15, 0.05);
  font-size: 13.5px;
}

.mini-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.q-switch {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 13px;
  min-height: 30px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(22, 20, 15, 0.14);
  background: rgba(246, 244, 238, 0.88);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.q-switch.on {
  background: var(--green-bg);
  border-color: var(--green-line);
  color: var(--forest);
}

.quad-4c {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quad-cell {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px -3px rgba(22, 20, 15, 0.05);
  display: grid;
  gap: 5px;
  transition: opacity 150ms var(--ease), background-color 150ms var(--ease), transform 150ms var(--ease);
}

.quad-cell.dim {
  opacity: 0.3;
  transform: scale(0.985);
}

.quad-cell.lit {
  background: linear-gradient(135deg, rgba(251, 240, 222, 0.88), rgba(255, 252, 246, 0.88));
  border-color: rgba(232, 163, 61, 0.45);
}

.quad-cell small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.quad-cell strong {
  font-size: 14px;
}

.quad-cell p {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* =====================================================================
   03 / PRIVACY PERIMETER: CLEAR CRYSTAL VS SMOKED SHIELD
   ===================================================================== */
.perimeter-frame {
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 20px;
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.perimeter-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.perim-pass {
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.perim-block {
  padding: 24px 26px;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 86% 18%, rgba(232, 163, 61, 0.16), transparent 56%),
    linear-gradient(145deg, rgba(22, 20, 15, 0.94), rgba(32, 44, 36, 0.91));
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 32px -12px rgba(22, 20, 15, 0.25),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18);
}

.perim-pass h3, .perim-block h3 {
  font-size: 19px;
  margin: 8px 0 12px;
}

.perim-block h3 {
  color: var(--on-dark);
}

.perim-block .perim-ul {
  color: rgba(246, 244, 238, 0.92);
}

.perim-ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 13.5px;
}

.perim-ul li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.id-bar {
  padding: 13px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.id-readout {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 20, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cadence-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cad-cell {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--glass-1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.cad-cell small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber-ink);
  text-transform: uppercase;
}

.cad-cell strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin: 2px 0;
}

.cad-cell span {
  font-size: 12.5px;
  color: var(--muted);
}

/* =====================================================================
   04 / EXECUTIVE LENS & REPORTS
   ===================================================================== */
.role-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: var(--glass-1);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.role-btn {
  text-align: left;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--sans);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .role-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.85);
  }
}

.role-btn.is-active {
  background: linear-gradient(145deg, rgba(22, 20, 15, 0.94), rgba(40, 36, 27, 0.90));
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  box-shadow:
    0 12px 24px -10px rgba(22, 20, 15, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.role-btn small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber-ink);
  display: block;
}

.role-btn.is-active small {
  color: var(--amber);
}

.role-btn strong {
  font-size: 15px;
  display: block;
  margin-top: 2px;
}

.exec-plate {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.exec-left {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  align-content: start;
}

.exec-right {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 15px;
  align-content: start;
}

.delta-box {
  padding: 16px 18px;
  background: rgba(246, 244, 238, 0.72);
  border: 1px solid rgba(22, 20, 15, 0.06);
  border-radius: var(--r-sm);
  display: grid;
  gap: 11px;
}

.delta-track {
  height: 7px;
  background: rgba(22, 20, 15, 0.1);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.delta-track div {
  border-radius: var(--r-pill);
}

.rep-chart-box {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px -4px rgba(22, 20, 15, 0.05);
  border-radius: var(--r-sm);
}

.rep-bars {
  display: grid;
  gap: 8px;
}

.rep-bar-row {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.rep-bar-row div {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.rep-track {
  height: 6px;
  background: rgba(22, 20, 15, 0.09);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.rep-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 260ms var(--ease);
}

/* =====================================================================
   05 / FLOATING SMOKED-OBSIDIAN GLASS PAVILION & FOOTER
   ===================================================================== */
.closer-pavilion {
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(62, 107, 82, 0.34), transparent 52%),
    radial-gradient(circle at 88% 82%, rgba(232, 163, 61, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(22, 20, 15, 0.95), rgba(30, 27, 21, 0.92));
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 64px -18px rgba(22, 20, 15, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18);
  padding: 44px 44px;
}

.closer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: start;
}

.closer-left .coord-index {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--amber);
  box-shadow: none;
}

.closer-left h2 {
  color: var(--on-dark);
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.closer-left p.sub {
  color: var(--on-dark-muted);
  font-size: 15.5px;
  line-height: 1.52;
  margin-bottom: 22px;
}

.day-ledger {
  display: grid;
  gap: 11px;
}

.day-row {
  padding: 15px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.day-row strong {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--amber);
  margin-bottom: 2px;
}

.day-row p {
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

.form-plate {
  background: rgba(255, 254, 250, 0.95);
  color: var(--ink);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  padding: 26px 28px;
}

.form-plate h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 12px;
}

.f-item {
  display: grid;
  gap: 4px;
}

.f-item.full {
  grid-column: 1 / -1;
}

.f-item label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.f-item input, .f-item select {
  width: 100%;
  min-height: 39px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 20, 15, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.f-item input:focus, .f-item select:focus {
  outline: none;
  border-color: var(--amber-ink);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.2);
}

.f-err {
  font-size: 11.5px;
  color: #9A2B20;
  min-height: 15px;
}

.form-ok {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  display: none;
}

.form-ok.is-shown {
  display: block;
  background: var(--green-bg);
  color: var(--forest);
  border: 1px solid var(--green-line);
}

/* Light Translucent Footer on Warm Alabaster Ground */
.swiss-footer {
  padding: 40px 24px 64px;
}

.footer-glass {
  max-width: var(--measure);
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--glass-1);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  padding: 34px 36px 26px;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-cols h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-cols a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-2);
}

.footer-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-base {
  padding-top: 14px;
  border-top: 1px solid rgba(22, 20, 15, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* =====================================================================
   RESPONSIVE RULES
   ===================================================================== */
@media (max-width: 980px) {
  .swiss-nav { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 1040px) {
  .hero-top-grid,
  .hero-pipe,
  .hero-split,
  .engine-plate,
  .perimeter-split,
  .exec-plate,
  .closer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-pipe svg { display: none; }
  .matrix-27 {
    grid-template-columns: repeat(15, minmax(0, 1fr));
  }
  .cadence-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-shell { padding: 8px 12px 0; top: 8px; }
  .section-band { padding: 56px 12px; }
  .bridge-band { padding: 12px 12px; }
  .chapter-bridge {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--r-md);
    padding: 16px 18px;
    gap: 12px;
    text-align: center;
  }
  .hero-section { padding: 34px 12px 48px; }
  .dial-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .dial-side { display: none; }
  .gauge-svg { width: 176px; height: 176px; }
  .closer-pavilion { padding: 20px 16px; border-radius: 26px; }
  .footer-glass { padding: 22px 18px; }
  .spec-trio,
  .stat-bar-trio,
  .triggers-bar,
  .role-tabs-bar,
  .quad-4c,
  .rep-chart-box,
  .form-fields,
  .cadence-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger-head { display: none; }
  .ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .ledger-row .col-route { display: none; }
  .matrix-27 {
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 4px;
  }
  .cell-node { height: 11px; }
}

@media (max-width: 440px) {
  .nav-ext { display: none; }
  .header-inner { padding: 0 8px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
