
/* Smooth Anchor Offset for Sticky Masthead */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
/* ==========================================================================
   ACREMENTUM · DESIGN SYSTEM & TOKEN LAYER
   Specification: Version 1.0 (September 2026)
   Strict adherence to the Six Laws (§4.2) & Accessibility Standards (§16)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Raw Tokens & Semantic Layer (§4.1)
   -------------------------------------------------------------------------- */
:root {
  /* Ground */
  --void:        #0B0F12;   /* Site dominant surface */
  --void-lift:   #0F1719;   /* Raised plane — alternating sections */
  --offblack:    #101A16;
  --graphite:    #252826;
  --forest:      #18362C;   /* Loudest surface: max 1-2 per page */
  --forest-lift: #1E4436;

  /* Ink */
  --ivory:       #F3F0E8;   /* Primary text */
  --sand:        #DDD6C8;
  --stone:       #AAA394;   /* Labels, eyebrows */
  --concrete:    #B8B9B3;
  --olive:       #68705D;

  /* The one warm note */
  --bronze:      #C79A62;   /* Accent on dark */
  --bronze-deep: #A18155;

  /* Typography (§4.3) */
  --serif: Georgia, "Times New Roman", serif;
  --sans:  Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type Scale */
  --fs-mega:  clamp(2.5rem, 5.2vw, 4.9rem);
  --fs-h1:    clamp(2.3rem, 4.8vw, 4.15rem);
  --fs-h2:    clamp(1.85rem, 3.4vw, 3rem);
  --fs-h3:    clamp(1.4rem, 2.3vw, 2.05rem);
  --fs-h4:    clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-lead:  clamp(1.06rem, 1.4vw, 1.28rem);
  --fs-body:  1rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.6875rem;

  /* Tracking */
  --tr-label:   0.16em;
  --tr-wide:    0.08em;
  --tr-eyebrow: 0.18em;

  /* Layout & Spacing (§4.4) */
  --gut:     clamp(1.25rem, 4vw, 4rem);
  --sec:     clamp(4.5rem, 9vw, 9rem);
  --maxw:    88rem;
  --measure: 36rem;
  --nav-h:   72px;

  /* Motion Easings (§4.4) */
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --e-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Semantic Default Surface */
  --bg:         var(--void);
  --bg-alt:     var(--void-lift);
  --fg:         var(--ivory);
  --fg-2:       var(--sand);
  --fg-3:       var(--stone);
  --fg-4:       rgba(243, 240, 232, 0.42); /* Decorative only */
  --accent:     var(--bronze);
  --rule:       rgba(243, 240, 232, 0.12);
  --rule-hard:  rgba(243, 240, 232, 0.24);
  --rule-spark: var(--bronze);
  --line-art:   rgba(170, 163, 148, 0.4);
  --wash:       rgba(243, 240, 232, 0.04);
  --fig-stroke: #AAA394;
  --fig-label:  #AAA394;

  /* Plain 6-digit hex for WebGL shader parser (§10) */
  --scene-ink:   #AAA394;
  --scene-bg:    #0B0F12;
  --scene-spark: #C79A62;
}

/* Surface Switchers (§4.1) */
.invert {
  --bg:         var(--void-lift);
  --bg-alt:     var(--void);
  --scene-bg:   #0F1719;
  --wash:       rgba(243, 240, 232, 0.03);
}

.forest {
  --bg:         var(--forest);
  --bg-alt:     var(--forest-lift);
  --fg:         var(--ivory);
  --fg-2:       #E2E6DF;
  --fg-3:       #B5C0B4;
  --rule:       rgba(243, 240, 232, 0.16);
  --rule-hard:  rgba(243, 240, 232, 0.32);
  --wash:       rgba(255, 255, 255, 0.05);
  --scene-bg:   #18362C;
}

/* --------------------------------------------------------------------------
   02. CSS Reset & Base Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Law 6: No rounded corners */
  box-shadow: none !important;    /* Law 6: No shadows */
}

html {
  font-size: 16px;
  background-color: var(--void);
  color: var(--fg);
  font-family: var(--sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

/* Universal Link Reset — Strict Sovereign Palette (§4.1, no browser purple) */
a, a:link, a:visited {
  color: inherit;
  text-decoration: none;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-weight: 300;
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background-color: var(--accent);
  color: var(--void);
}

/* --------------------------------------------------------------------------
   03. Accessibility (§16)
   -------------------------------------------------------------------------- */
.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  background: var(--ivory);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--e-out);
}

.skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   04. Typography (§4.3)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--fg);
}

h1.mega {
  font-size: var(--fs-mega);
  letter-spacing: -0.022em;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.018em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.014em;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
}

h4 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.italic-accent {
  display: block;
  font-style: italic;
  color: var(--fg-2);
}

p {
  font-size: var(--fs-body);
  color: var(--fg-2);
  max-width: var(--measure);
}

p.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg);
}

.eyebrow, .label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  color: var(--stone);
  font-weight: 500;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   05. Ambient Layers (§4.5)
   -------------------------------------------------------------------------- */
/* Fixed Grain */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 900;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 3px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-1px, -3px); }
  80% { transform: translate(2px, 1px); }
}

.js .grain {
  animation: grainShift 8s steps(6) infinite;
}

/* Pointer Light (Desktop fine pointers only) */
.pointerlight {
  position: fixed;
  width: 600px;
  height: 600px;
  top: -300px;
  left: -300px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(199, 154, 98, 0.09) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--e-out);
}

@media (hover: hover) and (pointer: fine) {
  .pointerlight {
    opacity: 1;
  }
}

/* Scroll Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent);
  z-index: 1001;
  transition: width 0.05s linear;
}

/* Page Transition Curtain */
.curtain {
  position: fixed;
  inset: 0;
  background-color: var(--void);
  z-index: 9998;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--e-out), height 0.2s var(--e-out), background-color 0.2s var(--e-out), opacity 0.3s ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    opacity: 0.75;
  }
  .custom-cursor.active {
    width: 44px;
    height: 44px;
    background-color: rgba(199, 154, 98, 0.12);
    border-color: var(--accent);
  }
}

/* Preloader (§6) — Bulletproof Non-Blocking Architecture */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--void);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--e-out), visibility 0.7s var(--e-out);
  animation: autoDismissLoader 0.6s ease-out 1.2s forwards;
}

@keyframes autoDismissLoader {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.loader__inner {
  text-align: center;
  padding: 2rem;
  max-width: 480px;
}

.loader__brand {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-eyebrow);
  color: var(--stone);
  margin-bottom: 1rem;
}

.loader__pos {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--ivory);
  margin-bottom: 2rem;
}

.loader__bar {
  width: 140px;
  height: 2px;
  background: var(--rule);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loader__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  animation: loaderPulse 1.4s var(--e-io) forwards;
}

@keyframes loaderPulse {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Map Grid Ambient Texture (.mapgrid) */
.mapgrid {
  position: relative;
}

.mapgrid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: 
    linear-gradient(to right, var(--fig-stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fig-stroke) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --------------------------------------------------------------------------
   06. Shared Shell: Masthead, Drawer, Footer (§6)
   -------------------------------------------------------------------------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background-color: transparent;
  transition: transform 0.4s var(--e-out), background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.masthead.scrolled {
  background-color: rgba(11, 15, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}

.masthead.hidden {
  transform: translateY(-100%);
}

.masthead__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Masthead Brand (§6.1) */
.masthead__brand,
.masthead__brand:link,
.masthead__brand:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory) !important;
  text-decoration: none;
  cursor: pointer;
}

.masthead__logo {
  display: inline-flex;
  align-items: center;
  color: var(--accent) !important;
  flex-shrink: 0;
}

.masthead__wordmark {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--ivory) !important;
}

/* Primary Desktop Navigation (§6.1) */
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.masthead__link,
.masthead__link:link,
.masthead__link:visited {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--sand) !important;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.masthead__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--e-out);
}

.masthead__link:hover,
.masthead__link:focus {
  color: var(--ivory) !important;
}

.masthead__link:hover::after,
.masthead__link.active::after {
  transform: scaleX(1);
}

.masthead__link.active {
  color: var(--accent) !important;
}

/* Masthead Actions */
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Masthead Primary Conversion Button ("Initiate Mandate →") — Always Visible & High-Contrast */
.masthead__cta,
a.masthead__cta,
a.masthead__cta:link,
a.masthead__cta:visited {
  background-color: var(--accent) !important;
  color: var(--void) !important;
  border: 1px solid var(--accent) !important;
  padding: 0.6rem 1.35rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.25s var(--e-out), color 0.25s var(--e-out), border-color 0.25s var(--e-out), transform 0.25s var(--e-out);
}

.masthead__cta > *,
a.masthead__cta > span {
  position: relative;
  z-index: 1;
  color: var(--void) !important;
  font-weight: 600;
}

.masthead__cta:hover,
a.masthead__cta:hover,
a.masthead__cta:focus {
  background-color: var(--ivory) !important;
  color: var(--void) !important;
  border-color: var(--ivory) !important;
  transform: translateY(-1px);
}

.masthead__cta:hover > *,
a.masthead__cta:hover > span {
  color: var(--void) !important;
}

/* Mobile Burger Toggle (§6.1) */
.masthead__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.masthead__burger-line {
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--ivory);
  transition: transform 0.3s var(--e-out), opacity 0.2s ease;
}

.masthead__burger[aria-expanded="true"] .masthead__burger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.masthead__burger[aria-expanded="true"] .masthead__burger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  /* The base rule is a grouped selector that includes a.masthead__cta:link,
     specificity (0,3,0). A plain .masthead__cta here is (0,1,0) and loses, so
     the CTA stayed visible on phones, overflowed the 72px bar and collided
     with the wordmark. Match the specificity to actually hide it; the mobile
     drawer already carries "Initiate Mandate". */
  .masthead__nav,
  .masthead__cta,
  a.masthead__cta,
  a.masthead__cta:link,
  a.masthead__cta:visited {
    /* !important is load-bearing here. The CTA also carries .btn, and
       `.btn, a.btn, button.btn, a.btn:link, a.btn:visited { display: inline-flex }`
       sits later in this file at the same specificity, so it wins on order.
       Without this the button renders on every phone and overflows the bar. */
    display: none !important;
  }
  .masthead__burger {
    display: flex;
  }
}

/* Mobile Drawer (§6.2) */
.drawer {
  position: fixed;
  inset: 0;
  background-color: var(--void);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 1.5rem) var(--gut) 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--e-io);
  visibility: hidden;
}

.drawer[aria-hidden="false"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer__item {
  border-bottom: 1px solid var(--rule);
}

.drawer__link,
.drawer__link:link,
.drawer__link:visited {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  text-decoration: none;
  color: var(--ivory) !important;
  transition: color 0.2s ease;
}

.drawer__link:hover,
.drawer__link:focus,
.drawer__link.active,
.drawer__link--cta {
  color: var(--accent) !important;
}

.drawer__footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: var(--fs-small);
  color: var(--stone);
}

.drawer__footer a {
  color: var(--sand);
  text-decoration: none;
}

/* Footer (§6.3) */
.footer {
  background-color: var(--bg);
  border-top: 1px solid var(--rule);
  padding: var(--sec) 0 3rem;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4rem;
}

.footer__brand-title {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-eyebrow);
  color: var(--ivory);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer__pos {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--sand);
  margin-bottom: 1.75rem;
}

.footer__heading {
  font-family: var(--sans);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  color: var(--stone);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__links a {
  color: var(--sand);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contact-info p {
  font-size: var(--fs-small);
  color: var(--sand);
  margin-bottom: 0.35rem;
}

.footer__contact-info a {
  color: var(--sand);
  text-decoration: none;
}

.footer__contact-info a:hover {
  color: var(--accent);
}

.footer__subtext {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--stone) !important;
}

.underlink {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.footer__rule {
  margin: 2.5rem 0;
}

.footer__colophon {
  margin-bottom: 1.75rem;
}

.footer__colophon p {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  line-height: 1.7;
  max-width: none;
}

.footer__disclaimer {
  margin-bottom: 2.5rem;
}

.footer__disclaimer p {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--fg-4);
  max-width: none;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-label);
  color: var(--stone);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.footer__legal-link {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   07. Component Inventory (§9)
   -------------------------------------------------------------------------- */
/* ==========================================================================
   BUTTON ARCHITECTURE (§4.1, §4.3, §6.1) — High-Contrast & Visited-Proof
   ========================================================================== */
.btn,
a.btn,
button.btn,
a.btn:link,
a.btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  background-color: var(--ivory);
  color: var(--void) !important;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ivory);
  transition: color 0.3s var(--e-out), background-color 0.3s var(--e-out), border-color 0.3s var(--e-out), transform 0.25s var(--e-out);
  min-height: 44px;
  box-sizing: border-box;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  transform: translateY(100%);
  transition: transform 0.35s var(--e-out);
  z-index: 0;
}

.btn > *,
a.btn > span,
button.btn > span {
  position: relative;
  z-index: 1;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  color: var(--void) !important;
  border-color: var(--accent);
}

.btn:hover::after {
  transform: translateY(0);
}

/* Primary Button (Solid Ivory) */
.btn--primary,
a.btn--primary,
button.btn--primary,
a.btn--primary:link,
a.btn--primary:visited {
  background-color: var(--ivory);
  color: var(--void) !important;
  border: 1px solid var(--ivory);
}

.btn--primary:hover,
a.btn--primary:hover,
button.btn--primary:hover {
  border-color: var(--accent);
  color: var(--void) !important;
}

/* Secondary Button (Tinted Bronze with Accent Border) */
.btn--secondary,
a.btn--secondary,
button.btn--secondary,
a.btn--secondary:link,
a.btn--secondary:visited {
  background-color: rgba(199, 154, 98, 0.14);
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.btn--secondary::after {
  background-color: var(--accent);
}

.btn--secondary:hover,
a.btn--secondary:hover,
button.btn--secondary:hover {
  background-color: var(--accent);
  color: var(--void) !important;
  border-color: var(--accent);
}

.btn--secondary:hover > *,
a.btn--secondary:hover > span,
button.btn--secondary:hover > span {
  color: var(--void) !important;
}

/* Ghost Button (Transparent with Hard Rule Outline) */
.btn--ghost,
a.btn--ghost,
button.btn--ghost,
a.btn--ghost:link,
a.btn--ghost:visited {
  background-color: transparent;
  color: var(--ivory) !important;
  border: 1px solid var(--rule-hard);
}

.btn--ghost::after {
  background-color: var(--accent);
}

.btn--ghost:hover,
a.btn--ghost:hover,
button.btn--ghost:hover {
  background-color: var(--accent);
  color: var(--void) !important;
  border-color: var(--accent);
}

.btn--ghost:hover > *,
a.btn--ghost:hover > span,
button.btn--ghost:hover > span {
  color: var(--void) !important;
}

.btn--header {
  padding: 0.55rem 1.15rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

/* .tlink */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--ivory);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tlink::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform-origin: right;
  transition: transform 0.3s var(--e-out);
}

.tlink:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.tlink span.arrow {
  display: inline-block;
  transition: transform 0.3s var(--e-out);
}

.tlink:hover span.arrow {
  transform: translateX(5px);
}

/* .card */
.card {
  background-color: var(--wash);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.35s var(--e-out);
}

.card:hover {
  border-color: var(--rule-hard);
  background-color: rgba(243, 240, 232, 0.05);
}

.card:hover::after {
  width: 100%;
}

/* .step */
.step {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.step:hover {
  background-color: var(--wash);
  padding-left: 1rem;
  padding-right: 1rem;
}

.step__num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
}

.step__title {
  color: var(--ivory);
}

.step__desc {
  color: var(--sand);
  font-size: var(--fs-body);
}

/* .ticks */
.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticks__item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-size: var(--fs-body);
  color: var(--sand);
}

.ticks__item::before {
  content: "◆";
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
}

.ticks--out .ticks__item::before {
  content: "◇";
  color: var(--stone);
}

/* .metric */
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric--ruled {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.metric__label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--stone);
}

.metric__val {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
  line-height: 1.1;
}

.metric__val.spark {
  color: var(--accent);
}

.metric__note {
  font-size: var(--fs-small);
  color: var(--sand);
}

/* .stamp (VerdictStamp) */
.stamp {
  border: 1px solid var(--rule-hard);
  padding: 1.5rem;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stamp--accent {
  border-color: var(--accent);
}

/* .compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
}

.compare__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--rule);
}

/* .acc (Accordion) */
.acc {
  border-top: 1px solid var(--rule);
}

.acc__item {
  border-bottom: 1px solid var(--rule);
}

.acc__trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ivory);
  cursor: pointer;
  min-height: 44px;
}

.acc__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
}

.acc__icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s var(--e-out);
}

.acc__trigger[aria-expanded="true"] .acc__icon {
  transform: rotate(45deg);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--e-out);
}

.acc__trigger[aria-expanded="true"] + .acc__panel {
  grid-template-rows: 1fr;
}

.acc__content {
  overflow: hidden;
}

.acc__inner {
  padding-bottom: 1.75rem;
  color: var(--sand);
  font-size: var(--fs-body);
}

/* .marquee (§9) */
.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.15rem 0;
  background-color: var(--bg);
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marqueeLoop 52s linear infinite;
}

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--serif);
  font-size: var(--fs-h4);
  color: var(--sand);
}

.marquee__dot {
  color: var(--accent);
}

@keyframes marqueeLoop {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* .figure frame */
.figure-frame {
  border: 1px solid var(--rule);
  background-color: var(--wash);
  padding: 1.5rem;
  position: relative;
}

.figure-frame figcaption {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
}

/* .scene WebGL Host (§10) */
.scene-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Global Animated 3D Terrain Layer (§10) — Spans Entire Length of Landing Page */
.scene--global {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.scene--global canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.scene-scrim-global {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(11, 15, 18, 0.28) 0%, rgba(11, 15, 18, 0.62) 65%, rgba(11, 15, 18, 0.88) 100%);
}

#main {
  position: relative;
  z-index: 1;
}

.footer-wrap {
  position: relative;
  z-index: 1;
}

/* .funnel 2D Canvas (§11) */
.funnel-container {
  position: relative;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--rule);
  background-color: var(--wash);
  overflow: hidden;
}

.funnel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.funnel__gates {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem 1.5rem;
}

.funnel__gate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 0.25rem;
}

.funnel__gate-label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--stone);
}

.funnel__shelf-label {
  color: var(--accent);
  font-weight: 500;
}

/* .rail (Pinned Horizontal Scroll §9.7) */
.rail-section {
  position: relative;
  height: 250vh;
  background-color: var(--bg);
}

.rail__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gut);
}

.rail__track {
  display: flex;
  gap: 2.5rem;
  will-change: transform;
}

.rail__panel {
  flex: 0 0 clamp(320px, 45vw, 600px);
  background-color: var(--wash);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rail__index {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.rail__dot {
  width: 28px;
  height: 2px;
  background-color: var(--rule);
  transition: background-color 0.3s ease;
}

.rail__dot.active {
  background-color: var(--accent);
}

/* --------------------------------------------------------------------------
   08. Common Layout Patterns
   -------------------------------------------------------------------------- */
.gut {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.sec {
  padding: var(--sec) 0;
}

.sec--tight {
  padding: calc(var(--sec) * 0.6) 0;
}

.rule {
  width: 100%;
  height: 1px;
  background-color: var(--rule);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}

/* --------------------------------------------------------------------------
   09. Page Specific Section Styles
   -------------------------------------------------------------------------- */
/* Home Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 18, 0.25) 0%,
    rgba(11, 15, 18, 0.52) 60%,
    rgba(11, 15, 18, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero__heading {
  margin-bottom: 2rem;
  max-width: 54rem;
}

.hero__lead {
  margin-bottom: 2.75rem;
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.hero__cue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1.5rem;
}

/* Page Header */
.page-header {
  /* .breadcrumb-nav above now provides the masthead clearance, so this no
     longer adds --nav-h on top of it. .page-header is used only on interior
     pages, every one of which renders a breadcrumb. */
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background-color: var(--bg);
}

.page-header__eyebrow {
  margin-bottom: 1.25rem;
}

.page-header__title {
  margin-bottom: 1.75rem;
  max-width: 48rem;
}

.page-header__lead {
  max-width: 38rem;
}

/* Pull Statement Band */
.pull-band {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.pull-band__quote {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  color: var(--ivory);
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.pull-band__cite {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   10. Animation & Reveal States (§13) — Bulletproof Non-Destructive Reveals
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out);
  transition-delay: var(--rd, 0s);
  animation: autoRevealContent 0.8s ease-out 1.2s forwards;
}

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

.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.js [data-reveal="rule"] {
  width: 0%;
  transition: width 1.1s var(--e-out);
  transition-delay: var(--rd, 0s);
  animation: autoRevealRule 1.1s ease-out 1.2s forwards;
}

@keyframes autoRevealRule {
  to {
    width: 100%;
  }
}

.js [data-reveal="rule"].revealed {
  width: 100%;
  animation: none;
}

.js [data-reveal="mask"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--e-out);
  transition-delay: var(--rd, 0s);
  animation: autoRevealMask 0.9s ease-out 1.2s forwards;
}

@keyframes autoRevealMask {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.js [data-reveal="mask"].revealed {
  clip-path: inset(0 0 0 0);
  animation: none;
}

/* Word-by-word reveal (.js [data-split]) */
.word-box {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.28em;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.75s var(--e-out);
  animation: autoRevealWord 0.75s ease-out 1.0s forwards;
}

@keyframes autoRevealWord {
  to {
    transform: translateY(0);
  }
}

.js [data-split].revealed .word-inner {
  transform: translateY(0);
  animation: none;
}

/* Critical Above-The-Fold Guarantee: Hero content is 100% visible immediately */
.hero [data-reveal],
.hero [data-split] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero [data-split] .word-inner {
  transform: translateY(0) !important;
  animation: none !important;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints (§14)
   -------------------------------------------------------------------------- */
/* Below 1040px: Nav collapses to drawer */
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .drawer-toggle {
    display: flex;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Below 980px: Hero stacks, grid-3 adjusts */
@media (max-width: 980px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse {
    direction: ltr;
  }
}

/* Below 940px: Rail unpins (§9.7) */
@media (max-width: 940px) {
  .rail-section {
    height: auto !important;
  }
  .rail__pin {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    padding: var(--sec) var(--gut) !important;
  }
  .rail__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
  }
  .rail__panel {
    flex: 0 0 85vw;
    scroll-snap-align: start;
  }
  .rail__index {
    display: none;
  }
  .rail__mobile-hint {
    display: block !important;
    margin-top: 1rem;
    font-size: var(--fs-label);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--stone);
  }
}

/* Below 760px: Figure label re-set (§14) */
@media (max-width: 760px) {
  .fig-svg text {
    font-size: 11px !important;
  }
  .grain {
    animation: none !important;
    opacity: 0.1;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Below 700px: Comparison stacks */
@media (max-width: 700px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare__divider {
    display: none;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__legal {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Below 620px: 2-col to 1-col */
@media (max-width: 620px) {
  .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  .masthead.scrolled {
    background-color: rgba(11, 15, 18, 0.94);
  }
}

/* --------------------------------------------------------------------------
   12. prefers-reduced-motion Wholesale Disabling (§13, §16)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain {
    display: none !important;
  }
  .pointerlight, .custom-cursor {
    display: none !important;
  }
  .scene {
    display: none !important;
  }
  .rail-section {
    height: auto !important;
  }
  .rail__pin {
    position: static !important;
    height: auto !important;
    width: 100% !important;
  }
  .rail__track {
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .rail__panel {
    flex: 1 1 auto !important;
  }
  .js [data-reveal],
  .js [data-reveal="rule"],
  .js [data-reveal="mask"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    width: 100% !important;
  }
  .word-inner {
    transform: none !important;
  }
}

/* ==========================================================================
   17. 3D Visual Assets & Scrollable Corridors (§17 Extension)
   ========================================================================== */

/* Image Framing & Zoom Effects */
.img-zoom-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--void-lift);
  /* Law 6: no rounded corners */
  /* Law 6: no shadow */
  transition: border-color 0.4s var(--e-out), box-shadow 0.4s var(--e-out);
}

.img-zoom-frame:hover {
  border-color: var(--accent);
  /* Law 6: no shadow */
}

.img-zoom-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--e-out);
}

.img-zoom-frame:hover img {
  transform: scale(1.04);
}

.img-zoom-frame__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(11, 15, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 240, 232, 0.18);
  padding: 0.35rem 0.75rem;
  /* Law 6: no rounded corners */
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.img-zoom-frame__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(0deg, rgba(11, 15, 18, 0.95) 0%, rgba(11, 15, 18, 0.6) 65%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--sand);
  z-index: 2;
}

.img-zoom-frame__caption {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.img-zoom-frame__coords {
  color: var(--accent);
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Cinematic Full-Bleed Manifesto Banner */
.cinematic-banner {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--void);
  min-height: 520px;
  display: flex;
  align-items: center;
}

.cinematic-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cinematic-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: brightness(0.85) contrast(1.1);
  transform: scale(1.02);
  transition: transform 1.2s var(--e-out), opacity 1.2s var(--e-out);
}

.cinematic-banner:hover .cinematic-banner__bg img {
  transform: scale(1.05);
  opacity: 0.44;
}

.cinematic-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 18, 0.96) 0%, rgba(11, 15, 18, 0.75) 50%, rgba(11, 15, 18, 0.96) 100%);
  z-index: 2;
}

.cinematic-banner__content {
  position: relative;
  z-index: 3;
  max-width: 54rem;
  margin: 0 auto;
  padding: 4.5rem var(--gut);
  text-align: center;
}

/* Visual Dual Grid (Vector Fig + 3D Render) */
.visual-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .visual-duo {
    grid-template-columns: 1fr;
  }
  .corridor-card {
    flex: 0 0 310px;
  }
}

/* ==========================================================================
   MANDATE DISCLOSURE & CORRIDOR RESEARCH STYLES (§3.1, §8.1)
   ========================================================================== */
.mandate-disclosure {
  background: rgba(11, 15, 18, 0.92);
  border: 1px solid rgba(199, 154, 98, 0.28);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  position: relative;
}

.mandate-disclosure__badge {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.mandate-disclosure__text {
  font-size: 0.875rem;
  color: var(--sand);
  line-height: 1.6;
  margin: 0;
}

.mandate-disclosure__text strong {
  color: var(--ivory);
  font-weight: 600;
}

.corridor-card__scope {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  background: rgba(7, 10, 13, 0.65);
  border: 1px solid rgba(243, 240, 232, 0.08);
}

.corridor-scope__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.corridor-scope__label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.corridor-scope__val {
  font-size: 0.8125rem;
  color: var(--sand);
  line-height: 1.45;
}

.corridor-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.corridor-card__3d-trigger {
  background: transparent;
  border: 1px solid rgba(199, 154, 98, 0.4);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--e-out);
}

.corridor-card__3d-trigger:hover {
  background: var(--accent);
  color: var(--void);
  border-color: var(--accent);
}

.corridor-connect-box {
  margin-top: 3rem;
  padding: 2.25rem;
  background: var(--void-lift);
  border: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.corridor-connect-box__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .corridor-connect-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   BREADCRUMB NAVIGATION & ACCESSIBLE HIERARCHY (§7, §15, §16)
   ========================================================================== */
.breadcrumb-nav {
  /* The masthead is position:fixed, so the first element in flow sits beneath
     it. Clear --nav-h or the breadcrumb renders invisibly behind the wordmark —
     which also breaks the BreadcrumbList schema, since Google expects that
     markup to correspond to a breadcrumb a user can actually see. */
  padding: calc(var(--nav-h) + 1.25rem) 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(11, 15, 18, 0.6);
  position: relative;
  z-index: 10;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumb-link {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s var(--e-out);
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: rgba(243, 240, 232, 0.25);
  user-select: none;
}

.breadcrumb-item--active {
  color: var(--accent);
  font-weight: 600;
}

/* Accessible focus rings across all interactive elements (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

/* Mobile minimum tap target ergonomics */
@media (max-width: 760px) {
  .btn,
  .topo-hud__btn,
  .topo-corridor-tab,
  .corridor-btn,
  .masthead__burger {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Form Controls (§8.7, §16) */
.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--void);
  border: 1px solid var(--rule-hard);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--void-lift);
}

.input-field::placeholder {
  color: var(--stone);
  opacity: 0.6;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AAA394' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

select.input-field option {
  background-color: var(--void);
  color: var(--ivory);
}

.corridor-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Researched Corridors Showcase (§8.4) — Expansive, Uncropped Architecture
   ========================================================================== */
.corridor-showcase {
  margin: 2rem 0 1rem;
}

.corridor-showcase__header {
  margin-bottom: 3.5rem;
}

.corridor-showcase__lead {
  max-width: 46rem;
  margin-top: 1rem;
  color: var(--sand);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.corridor-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.corridor-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  background: var(--void-lift);
  border: 1px solid var(--rule-hard);
  padding: 2.5rem;
  align-items: start;
  position: relative;
  transition: border-color 0.3s ease;
}

.corridor-card:hover {
  border-color: var(--accent);
}

.corridor-card__media-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.corridor-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06090C;
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corridor-card__media img,
.corridor-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* CRITICAL: Never crop the 3D diorama asset */
  display: block;
  transition: transform 0.6s var(--e-out);
}

.corridor-card:hover .corridor-card__media img {
  transform: scale(1.03);
}

.corridor-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(11, 15, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule-hard);
  color: var(--accent);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

.corridor-card__telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(7, 10, 13, 0.85);
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
}

.corridor-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.corridor-telemetry-item span {
  font-family: var(--sans);
  font-size: 0.625rem;
  color: var(--stone);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.corridor-telemetry-item strong {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ivory);
}

.corridor-card__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.corridor-card__header-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.corridor-card__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
}

.corridor-card__geo {
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--accent);
  letter-spacing: var(--tr-wide);
}

.corridor-card__dossier {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.corridor-dossier-block {
  background: rgba(7, 10, 13, 0.6);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.corridor-dossier-label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  color: var(--accent);
  text-transform: uppercase;
}

.corridor-dossier-block p {
  font-size: var(--fs-body);
  color: var(--sand);
  line-height: 1.6;
  margin: 0;
}

.corridor-card__action-row {
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .corridor-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .corridor-card__telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
