/* =============================================================================
   ECCLESIA GROUP — Design System
   -----------------------------------------------------------------------------
   1.  Tokens (colour, type, space, motion)
   2.  Reset & base
   3.  Typography
   4.  Layout primitives (container, grid, section)
   5.  Components
       - Buttons & links
       - Header / navigation
       - Footer
       - Reveal / motion utilities
       - Hero
       - Divisions
       - Ecosystem diagram
       - Progression (Source > Operate)
       - Stats / counters
       - Marquee
       - Roadmap
       - Cards & lists
       - Forms
   6.  Page-specific blocks
   7.  Responsive
   8.  Reduced motion / print
   ============================================================================= */

/* 1. TOKENS ================================================================== */
:root {
  /* Core palette — charcoal / bone / stone / muted brass */
  --ink:        #0b0b0d;   /* near-black, primary dark ground */
  --ink-2:      #121316;   /* raised dark surface */
  --ink-3:      #1c1e22;   /* card on dark */
  --charcoal:   #2a2c31;
  --stone-700:  #57544d;
  --stone-500:  #8a8578;   /* muted stone — secondary text on dark */
  --stone-300:  #c7c1b4;
  --stone-200:  #ded8c9;
  --bone:       #f5f2ec;   /* warm off-white, primary light ground */
  --bone-2:     #efece4;
  --paper:      #fbfaf6;
  --brass:      #b0894f;   /* metallic accent — used sparingly */
  --brass-soft: #c9a877;
  --brass-tint: rgba(176, 137, 79, 0.12);

  /* Semantic — light context (default) */
  --bg:            var(--bone);
  --bg-raised:     var(--paper);
  --text:          #17181b;
  --text-muted:    #5c5a53;
  --text-faint:    #86847c;
  --line:          rgba(23, 24, 27, 0.14);
  --line-strong:   rgba(23, 24, 27, 0.28);
  --accent:        var(--brass);
  --accent-text:   #8a6a37;
  --selection:     rgba(176, 137, 79, 0.22);

  /* Type */
  --font-display: "Fraunces", "Fraunces 72", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.48rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.80vw, 2.10rem);
  --step-3:  clamp(1.90rem, 1.60rem + 1.50vw, 3.10rem);
  --step-4:  clamp(2.40rem, 1.90rem + 2.50vw, 4.40rem);
  --step-5:  clamp(3.00rem, 2.10rem + 4.50vw, 6.40rem);
  --step-6:  clamp(3.60rem, 2.20rem + 7.00vw, 9.00rem);

  /* Space scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;
  --sp-10: 10rem;

  /* Structure */
  --container: 1280px;
  --container-narrow: 860px;
  --container-wide: 1500px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.25s;
  --dur-2: 0.5s;
  --dur-3: 0.8s;
  --dur-4: 1.2s;

  --header-h: 84px;
  --z-header: 100;
  --z-drawer: 200;
  --z-cursor: 9999;
}

/* Dark context — applied to sections / regions */
[data-theme="dark"] {
  --bg:          var(--ink);
  --bg-raised:   var(--ink-2);
  --text:        #f3f1ea;
  --text-muted:  var(--stone-500);
  --text-faint:  #6f6c63;
  --line:        rgba(245, 242, 236, 0.14);
  --line-strong: rgba(245, 242, 236, 0.30);
  --accent:      var(--brass-soft);
  --accent-text: var(--brass-soft);
  --selection:   rgba(201, 168, 119, 0.26);
  color-scheme: dark;
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* Reserve scrollbar space only where a persistent desktop scrollbar actually
   exists, so a classic (non overlay) desktop scrollbar cannot widen the
   initial containing block past the real viewport. Touch devices use overlay
   scrollbars that take no layout width, so this never applies there. */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-gutter: stable; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--selection); }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip-link {
  position: fixed;
  left: var(--sp-4);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }
strong { font-weight: 600; }
em { font-style: italic; }

.display {
  font-family: var(--font-display);
  font-weight: 340;
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 380;
  max-width: 46ch;
}
[data-theme="dark"] .lede { color: var(--stone-300); }

.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; color: var(--text-muted); }
[data-theme="dark"] .prose p { color: var(--stone-300); }

.u-serif { font-family: var(--font-display); font-weight: 360; }
.u-mono { font-family: var(--font-mono); }
.u-muted { color: var(--text-muted); }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-accent { color: var(--accent-text); }

/* 4. LAYOUT PRIMITIVES ===================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 9rem);
  background: var(--bg);
  color: var(--text);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush-top { padding-top: 0; }
.section--hairline { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; align-items: start; }
.grid--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

.stack > * + * { margin-top: var(--flow, 1.5rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* Texture / grain overlay */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 1;
}
[data-theme="dark"] .grain::after { opacity: 0.06; }

/* 5. COMPONENTS =========================================================== */

/* Buttons & links -------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--brass); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--ink); }
[data-theme="dark"] .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.page-hero .btn--ghost {
  --btn-fg: var(--bone);
  border-color: rgba(245, 242, 236, 0.34);
}

.btn--light {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
}
.btn--light:hover { color: var(--ink); }

.btn .btn__arrow { transition: transform var(--dur-1) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; color: var(--accent-text); }
.link-arrow svg { transition: transform var(--dur-1) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header / navigation --------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), backdrop-filter var(--dur-2);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 0 var(--gutter);
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  --header-h: 68px;
}
/* header over dark hero */
.site-header[data-on-dark="true"]:not([data-scrolled="true"]) { color: var(--bone); }
.site-header[data-on-dark="true"]:not([data-scrolled="true"]) .brand__mark { color: var(--bone); }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.brand__mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-text);
  transform: translateY(-2px);
}
.brand small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.primary-nav a {
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  font-weight: 450;
  padding: 0.4rem 0;
  position: relative;
  color: inherit;
  opacity: 0.82;
  transition: opacity var(--dur-1) var(--ease-out);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a[aria-current="page"] { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), opacity var(--dur-1);
}
.header-cta:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* keep the toggle reachable and visible above the open drawer */
body.nav-open .site-header { z-index: calc(var(--z-drawer) + 1); color: var(--bone); }
body.nav-open .site-header[data-scrolled="true"] { background: transparent; backdrop-filter: none; border-color: transparent; }
body.nav-open .nav-toggle span { background: var(--bone); }
body.nav-open .brand { color: var(--bone); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--ink);
  color: var(--bone);
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto;
  visibility: hidden;
}
body.nav-open .drawer { transform: translateY(0); visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; margin-top: auto; margin-bottom: auto; }
.drawer__nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.4vw, 3rem);
  font-weight: 340;
  letter-spacing: -0.02em;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}
.drawer__nav a span { flex-shrink: 0; }
body.nav-open .drawer__nav a {
  animation: drawer-in var(--dur-3) var(--ease-out) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.055s);
}
.drawer__nav a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass-soft); letter-spacing: 0.1em; }
@keyframes drawer-in { to { opacity: 1; transform: translateY(0); } }
.drawer__footer { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; font-size: var(--step--1); color: var(--stone-500); }

/* Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--stone-300);
  padding-block: clamp(4rem, 8vw, 7rem) 2.5rem;
  position: relative;
}
.site-footer a { color: var(--stone-300); transition: color var(--dur-1) var(--ease-out); }
.site-footer a:hover { color: var(--bone); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--gutter);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}
.footer-brand .brand { color: var(--bone); font-size: 1.7rem; }
.footer-brand p { color: var(--stone-500); max-width: 34ch; margin-top: 1.25rem; font-size: var(--step--1); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 1.25rem;
}
.footer-col li { margin-bottom: 0.7rem; font-size: var(--step--1); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  font-size: var(--step--2);
  color: var(--stone-500);
}
.footer-bottom .u-mono { letter-spacing: 0.1em; }
.footer-disclaimer {
  margin-top: 2rem;
  font-size: var(--step--2);
  line-height: 1.7;
  color: var(--stone-700);
  max-width: 90ch;
}

/* Reveal / motion utilities ----------------------------------------- */
/* No-JS / failsafe: never leave content permanently hidden */
.no-js [data-reveal],
.no-js [data-reveal-text] .line > span,
.no-js .clip-reveal > *,
.no-js [data-reveal="clip"],
.no-js .hero h1,
.no-js .hero.intro .hero__eyebrow,
.no-js .hero.intro .hero__lede,
.no-js .hero.intro .hero__cta,
.revealed [data-reveal],
.revealed [data-reveal-text] .line > span,
.revealed .clip-reveal > *,
.revealed [data-reveal="clip"],
.revealed .hero h1 {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
.no-js .section--hairline::before,
.revealed .section--hairline::before { transform: scaleX(1) !important; }
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Clip wipe reveal, used for large headings (top to bottom) */
[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(-2% 0 110% 0);
  transition: clip-path 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: clip-path;
}
[data-reveal="clip"].is-visible { clip-path: inset(-12% 0 -18% 0); }

[data-reveal-text] .line { display: block; overflow: hidden; }
[data-reveal-text] .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal-text].is-visible .line > span { transform: translateY(0); }

.clip-reveal { position: relative; overflow: hidden; }
.clip-reveal > * { clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-4) var(--ease-out); }
.clip-reveal.is-visible > * { clip-path: inset(0 0 0 0); }
.clip-reveal img { transform: scale(1.14); transition: transform 1.6s var(--ease-out); }
.clip-reveal.is-visible img { transform: scale(1); }

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -12% -5% -5% -5%;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(176,137,79,0.20), transparent 60%),
    radial-gradient(50% 60% at 12% 88%, rgba(90,110,130,0.16), transparent 62%),
    linear-gradient(180deg, #0a0a0c 0%, #101116 45%, #0b0b0d 100%);
  will-change: transform;
}
.hero__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,12,0.35) 0%, transparent 30%, rgba(10,10,12,0.55) 100%);
}
.hero__inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.hero__eyebrow { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); color: var(--brass-soft); }
.hero h1 {
  font-size: var(--step-6);
  font-weight: 320;
  line-height: 0.96;
  letter-spacing: -0.028em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--stone-300); }
.hero__meta {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__lede { max-width: 42ch; color: var(--stone-300); font-size: var(--step-1); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__domains {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.hero__domains span { opacity: 0; animation: fade-in-right var(--dur-3) var(--ease-out) forwards; }
.hero__domains span:nth-child(1) { animation-delay: 0.8s; }
.hero__domains span:nth-child(2) { animation-delay: 0.92s; }
.hero__domains span:nth-child(3) { animation-delay: 1.04s; }
.hero__domains span:nth-child(4) { animation-delay: 1.16s; }
.hero__domains span:nth-child(5) { animation-delay: 1.28s; }
@keyframes fade-in-right { from { opacity: 0; transform: translateX(12px); } to { opacity: 0.85; transform: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--stone-500), transparent);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(176,137,79,0.16), transparent 60%),
    linear-gradient(180deg, #0b0b0d, #131418);
}
.page-hero .eyebrow { color: var(--brass-soft); margin-bottom: 1.75rem; }
.page-hero h1 { font-size: var(--step-5); font-weight: 330; max-width: 18ch; }
.page-hero .lede { color: var(--stone-300); margin-top: 2rem; max-width: 54ch; }
.page-hero__index {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  color: var(--stone-700);
}

.breadcrumbs {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 2rem;
}
.breadcrumbs a:hover { color: var(--brass-soft); }

/* Divisions ------------------------------------------------------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.divisions--two { grid-template-columns: repeat(2, 1fr); }
.division {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.5rem) clamp(2.5rem, 4vw, 4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  transition: background var(--dur-2) var(--ease-out);
}
.divisions .division:last-child { border-right: 0; }
.division:hover { background: var(--bg-raised); }
.division__index {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.division h3 { margin-top: 1.5rem; font-size: var(--step-2); }
.division p { margin-top: 1rem; color: var(--text-muted); font-size: var(--step--1); flex: 1; }
[data-theme="dark"] .division p { color: var(--stone-300); }
.division__link { margin-top: 2rem; }
.division__glyph {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 160px; height: 160px;
  color: var(--accent);
  opacity: 0.10;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.division:hover .division__glyph { transform: rotate(8deg) scale(1.08); opacity: 0.18; }
.division--feature { background: var(--ink); color: var(--bone); }
.division--feature p { color: var(--stone-300); }
.division--feature .division__index { color: var(--brass-soft); }

/* Division used as a whole-card link (e.g. the opportunity-submission router) */
a.division:focus-visible { outline-offset: -3px; }
.division .division__link .link-arrow { pointer-events: none; }
a.division:hover .link-arrow { background-size: 100% 1px; color: var(--accent-text); }
a.division:hover .link-arrow svg { transform: translateX(4px); }
a.division--feature:hover .link-arrow { color: var(--brass-soft); }

/* Typeform / external-form hand-off panel */
.handoff {
  text-align: center;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
.handoff .eyebrow { justify-content: center; margin-bottom: 1.5rem; }
.handoff h3 { font-size: var(--step-2); max-width: 22ch; margin: 0 auto 1rem; }
.handoff p.handoff__note { max-width: 46ch; margin: 0 auto 2rem; color: var(--text-muted); font-size: var(--step--1); }
[data-theme="dark"] .handoff p.handoff__note { color: var(--stone-300); }
.handoff__meta { margin-top: 1.5rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; color: var(--text-faint); }

/* Progression: SOURCE > ACQUIRE > DEVELOP > OWN > OPERATE ---------- */
.progression { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.progression__track {
  position: absolute;
  left: 0; right: 0; top: 34px;
  height: 1px;
  background: var(--line);
}
.progression__fill {
  position: absolute;
  left: 0; top: 34px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 1.6s var(--ease-out);
}
.phase { position: relative; padding-top: 68px; padding-right: 1.5rem; }
.phase__dot {
  position: absolute;
  top: 28px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-2);
}
.phase.is-active .phase__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.phase__num { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-faint); letter-spacing: 0.1em; }
.phase h4 { font-family: var(--font-display); font-size: var(--step-1); margin: 0.5rem 0 0.75rem; }
.phase p { font-size: var(--step--1); color: var(--text-muted); }
[data-theme="dark"] .phase p { color: var(--stone-500); }
.phase__tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--text-faint);
}
.phase--now .phase__tag { color: var(--accent-text); border-color: var(--accent); }

/* Stats / counters --------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 330;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.stat__value .suffix { font-size: 0.42em; color: var(--accent-text); font-family: var(--font-mono); letter-spacing: 0; }
.stat__label { margin-top: 0.9rem; font-size: var(--step--1); color: var(--text-muted); max-width: 24ch; }
[data-theme="dark"] .stat__label { color: var(--stone-500); }

/* Marquee ---------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 350;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.marquee__item::after { content: "·"; color: var(--accent); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ecosystem diagram --------------------------------------------- */
.ecosystem { position: relative; }
.ecosystem__spine {
  position: absolute;
  left: clamp(14px, 4vw, 40px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.ecosystem__spine::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: var(--spine, 0%);
  background: var(--accent);
  transition: height 0.2s linear;
}
.eco-node {
  position: relative;
  padding-left: clamp(48px, 9vw, 96px);
  padding-block: clamp(1.1rem, 2.4vw, 1.9rem);
}
.eco-node::before {
  content: "";
  position: absolute;
  left: clamp(10px, 4vw, 36px);
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transform: translateY(-50%);
  transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1);
}
.eco-node.is-visible::before { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.2); }
.eco-node__label {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 340;
  letter-spacing: -0.01em;
}
.eco-node__role {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.5rem;
}
.eco-node p { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.4rem; max-width: 52ch; }
[data-theme="dark"] .eco-node p { color: var(--stone-500); }
.eco-node--pivot .eco-node__label { color: var(--accent-text); }
.eco-node--pivot { border-block: 1px solid var(--line); background: var(--brass-tint); margin-left: -1rem; padding-left: calc(clamp(48px, 9vw, 96px) + 1rem); padding-right: 1rem; }
.eco-node--terminal .eco-node__label { font-style: italic; }

/* Cards & lists ------------------------------------------------- */
.feature-list { display: grid; gap: 0; }
.feature-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-item__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-text); padding-top: 0.35rem; }
.feature-item h4 { font-size: var(--step-1); }
.feature-item p { margin-top: 0.6rem; color: var(--text-muted); font-size: var(--step--1); max-width: 60ch; }
[data-theme="dark"] .feature-item p { color: var(--stone-500); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card h4 { font-size: var(--step-1); }
.card p { color: var(--text-muted); font-size: var(--step--1); }
[data-theme="dark"] .card { background: var(--ink-3); }
[data-theme="dark"] .card p { color: var(--stone-500); }
.card__icon { width: 32px; height: 32px; color: var(--accent); }
.card__meta { margin-top: auto; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

.tag-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1);
}
.tag:hover { border-color: var(--accent); color: var(--accent-text); }
[data-theme="dark"] .tag { color: var(--stone-300); }

.split-quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 320;
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.split-quote em { color: var(--accent-text); }

.two-audience { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.two-audience > div { padding: clamp(2rem, 4vw, 3.5rem); }
.two-audience > div:first-child { border-right: 1px solid var(--line); }
.two-audience h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.two-audience .eyebrow { margin-bottom: 1.5rem; }
.two-audience ul { margin: 1.5rem 0; }
.two-audience li { padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--text-muted); display: flex; gap: 0.75rem; }
.two-audience li::before { content: "→"; color: var(--accent); }

/* Roadmap ---------------------------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.roadmap__year {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--line);
  position: relative;
}
.roadmap__year:last-child { border-right: 0; }
.roadmap__year::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.15s);
}
.roadmap__year.is-visible::before { width: 100%; }
.roadmap__label { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.roadmap__year h3 { font-size: var(--step-2); margin: 1rem 0 1.5rem; }
.roadmap__year li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-muted);
}
[data-theme="dark"] .roadmap__year li { color: var(--stone-500); }
.roadmap__horizon { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-faint); margin-top: 1.5rem; }

/* Big statement ------------------------------------------------ */
.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement--wide { max-width: 30ch; }
.statement em { font-style: italic; color: var(--accent-text); }
.statement .muted { color: var(--text-faint); }

.wordmark-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-strip span { color: var(--text-faint); }
.wordmark-strip span.on { color: var(--text); }
.wordmark-strip .sep { color: var(--accent); }

/* Forms ----------------------------------------------------- */
.form-shell {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
[data-theme="dark"] .form-shell { background: var(--ink-2); }
.form-intro { margin-bottom: 2.5rem; }
.form-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.form-progress span {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.form-progress span.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
}
.field { margin-bottom: 1.5rem; }
.field label, .fieldset-legend {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.field .req { color: var(--accent-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--step-0);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1);
  color: var(--text);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: var(--ink-3); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--brass-tint);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%238a6a37' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field__hint { margin-top: 0.5rem; font-size: var(--step--2); color: var(--text-faint); }
.field__error { margin-top: 0.5rem; font-size: var(--step--2); color: #b23b3b; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b23b3b; }
.field.has-error .field__error { display: block; }
[data-theme="dark"] .field__error { color: #e08a8a; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.dyn-fields {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 2rem;
}
.dyn-fields[hidden] { display: none; }
.form-consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.5rem 0; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.form-consent label { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: var(--step--1); color: var(--text-muted); margin: 0; }
.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}
.form-success.on { display: block; }
/* honeypot — off-screen, never shown, not focusable */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success svg { width: 48px; height: 48px; color: var(--accent); margin: 0 auto 1.5rem; }
.form-success h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.form-success p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; }
form.sent .form-body { display: none; }

/* Contact detail blocks */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.detail { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.detail h4 { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 400; margin-bottom: 0.75rem; }
.detail p, .detail a { font-size: var(--step-0); color: var(--text); }
.detail a:hover { color: var(--accent-text); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 80% 20%, rgba(176,137,79,0.18), transparent 60%);
}
.cta-band h2 { font-size: var(--step-4); max-width: 20ch; }
.cta-band p { color: var(--stone-300); max-width: 46ch; margin-top: 1.5rem; }
.cta-band .btn-group { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity var(--dur-1);
}
.cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-1), width var(--dur-2) var(--ease-out), height var(--dur-2) var(--ease-out);
}
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; }

/* Misc utility */
.hr { height: 1px; background: var(--line); border: 0; }
.mono-index { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.16em; color: var(--text-faint); }
.pad-top-0 { padding-top: 0; }
[hidden] { display: none !important; }

/* ---- Motion: extras ------------------------------------------------ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: calc(var(--z-drawer) + 5);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Hero: ambient drifting light */
.hero__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 30% at 30% 34%, rgba(201, 168, 119, 0.16), transparent 70%),
    radial-gradient(26% 26% at 74% 70%, rgba(120, 140, 165, 0.12), transparent 70%);
  mix-blend-mode: screen;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) scale(1.16); }
}

/* Hero: line-art draws itself in on load */
.hero__bg svg [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 2.6s var(--ease-out) forwards;
}
.hero__bg svg [data-draw]:nth-of-type(2) { animation-delay: 0.10s; }
.hero__bg svg [data-draw]:nth-of-type(3) { animation-delay: 0.20s; }
.hero__bg svg [data-draw]:nth-of-type(4) { animation-delay: 0.30s; }
.hero__bg svg [data-draw]:nth-of-type(5) { animation-delay: 0.40s; }
.hero__bg svg [data-draw]:nth-of-type(6) { animation-delay: 0.50s; }
.hero__bg svg [data-draw]:nth-of-type(7) { animation-delay: 0.60s; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

/* Hero H1: clip wipe on load */
.hero h1 { clip-path: inset(-4% 0 112% 0); }
.hero h1.is-in {
  clip-path: inset(-14% 0 -20% 0);
  transition: clip-path 1.15s var(--ease-out) 0.2s;
}

/* Eyebrow rule draws in with its block */
.eyebrow[data-reveal]::before,
[data-reveal] > .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) 0.15s;
}
.eyebrow[data-reveal].is-visible::before,
[data-reveal].is-visible > .eyebrow::before { transform: scaleX(1); }

/* Magnetic buttons (JS sets --mx / --my) */
.btn { transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform 0.35s var(--ease-out); }
.btn[data-magnetic] { transform: translate(var(--mx, 0px), var(--my, 0px)); }

/* Progression: active dot sends out a pulse */
.phase.is-active .phase__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: dot-pulse 2.6s var(--ease-out) infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(0.55); opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Division cards: warm light rises on hover */
.division::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(0deg, var(--brass-tint), transparent);
  transition: height 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.division:hover::after { height: 55%; }
.division > span,
.division > h3,
.division > p,
.division > .division__link { position: relative; z-index: 1; }

/* ---- Motion: signature pieces ------------------------------------------ */

/* Hero: living strata canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out) 0.25s;
  pointer-events: none;
}
.hero__canvas.is-in { opacity: 1; }

/* Homepage hero: choreographed load. JS adds .intro then .intro-run;
   without JS the hero is simply visible. */
.hero.intro .hero__eyebrow,
.hero.intro .hero__lede,
.hero.intro .hero__cta,
.hero.intro .scroll-cue { opacity: 0; }
.hero.intro-run .hero__eyebrow { animation: hero-rise 0.9s var(--ease-out) 0.15s forwards; }
.hero.intro-run .hero__lede    { animation: hero-rise 1s var(--ease-out) 0.72s forwards; }
.hero.intro-run .hero__cta     { animation: hero-rise 1s var(--ease-out) 0.92s forwards; }
.hero.intro-run .scroll-cue    { animation: hero-fade 1s var(--ease-out) 1.7s forwards; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* Hero: content lifts and fades as you scroll past it (JS sets --hero-out) */
.hero__inner { will-change: transform, opacity; }
.hero[data-scrollfade] .hero__inner {
  transform: translateY(calc(var(--hero-out, 0) * -60px));
  opacity: calc(1 - var(--hero-out, 0) * 1.1);
}

/* Progression: a glowing point rides the leading edge of the fill */
.progression__fill { position: relative; }
.progression__fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-soft);
  box-shadow: 0 0 14px 3px rgba(201, 168, 119, 0.65);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.progression.is-lit .progression__fill::after {
  opacity: 1;
  animation: comet-pulse 2.4s var(--ease-out) 1.6s infinite;
}
@keyframes comet-pulse {
  0%, 100% { box-shadow: 0 0 14px 3px rgba(201, 168, 119, 0.55); }
  50%      { box-shadow: 0 0 22px 6px rgba(201, 168, 119, 0.85); }
}

/* Ecosystem: value particles flow down the spine */
.ecosystem__flow {
  position: absolute;
  left: clamp(14px, 4vw, 40px);
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  z-index: 2;
}
.ecosystem__flow i {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--brass-soft);
  box-shadow: 0 0 9px 1px rgba(201, 168, 119, 0.55);
  opacity: 0;
  animation: eco-flow 5s linear infinite;
  animation-play-state: paused;
}
.ecosystem.is-flowing .ecosystem__flow i { animation-play-state: running; }
@keyframes eco-flow {
  0%   { top: -2%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

/* Section hairlines draw across on entry */
.section--hairline { border-top: 0; }
.section--hairline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}
.section--hairline.is-visible::before { transform: scaleX(1); }

/* Division glyphs drift very slowly, like a survey instrument */
.division__glyph { animation: glyph-drift 34s ease-in-out infinite alternate; }
@keyframes glyph-drift {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(6deg); }
}
.division:hover .division__glyph { animation-play-state: paused; }

/* Marquee gets a soft leading edge that pulses with the accent */
.marquee__item::after { transition: color 0.6s var(--ease-out); }

/* 7. RESPONSIVE =========================================================== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid--3, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .progression { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .progression__track, .progression__fill { display: none; }
  .phase { padding-top: 2rem; padding-left: 1.5rem; }
  .phase__dot { top: 2.4rem; left: 0; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap__year { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .divisions { grid-template-columns: 1fr; }
  .division { border-right: 0; min-height: auto; }
  .grid--split, .grid--aside, .two-audience { grid-template-columns: 1fr; }
  .two-audience > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__domains { display: none; }
  .hero h1 { font-size: var(--step-5); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .stat-row, .detail-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .progression { grid-template-columns: 1fr; gap: 1.75rem; }
  :root { --header-h: 68px; }
}

/* 8. REDUced MOTION / PRINT ============================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal-text] .line > span, .clip-reveal > *, [data-reveal="clip"], .hero h1,
  .hero.intro .hero__eyebrow, .hero.intro .hero__lede, .hero.intro .hero__cta, .hero.intro .scroll-cue { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .scroll-cue::after,
  .hero__glow,
  .hero__bg svg [data-draw],
  .phase.is-active .phase__dot::after,
  .ecosystem__flow i,
  .division__glyph,
  .progression.is-lit .progression__fill::after { animation: none !important; }
  .hero__bg svg [data-draw] { stroke-dashoffset: 0 !important; }
  .btn[data-magnetic] { transform: none !important; }
  .hero[data-scrollfade] .hero__inner { transform: none !important; opacity: 1 !important; }
  .section--hairline::before { transform: scaleX(1) !important; }
  .hero__canvas { display: none !important; }
  .scroll-progress { display: none; }
}

@media print {
  .site-header, .drawer, .scroll-cue, .cta-band, .marquee, .cursor-dot, .cursor-ring { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
}
