/* =====================================================================
   Mindshuttle Labs — main.css
   Design system: carbon canvas, paper editorial sections, signal blue.
   Type: Archivo (variable width) + IBM Plex Mono for technical readouts.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --carbon: #0C0D10;
  --graphite: #16181D;
  --graphite-2: #20232A;
  --steel: #8A909C;
  --mist: #B9BEC8;
  --paper: #EEEBE4;
  --paper-2: #E3DFD6;
  --ink: #121418;
  --signal: #4A7BFF;
  --signal-hi: #7A9DFF;
  --cyan: #5FE3E0;
  --violet: #8C7BFF;

  --sector-fintech: #4A7BFF;
  --sector-energy: #3FCB8A;
  --sector-aerospace: #A7B8D6;
  --sector-agriculture: #A3B56B;
  --sector-education: #E7A83C;
  --sector-defence: #C0665F;
  --sector-emerging: #8C7BFF;

  --line-dark: rgba(255, 255, 255, .11);
  --line-light: rgba(18, 20, 24, .14);

  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* fluid type scale (minor third → perfect fourth across viewports) */
  --t-xs: clamp(.75rem, .72rem + .12vw, .8125rem);
  --t-sm: clamp(.875rem, .85rem + .1vw, .9375rem);
  --t-base: clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-lg: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --t-xl: clamp(1.375rem, 1.2rem + .9vw, 2rem);
  --t-2xl: clamp(1.75rem, 1.4rem + 1.8vw, 3rem);
  --t-3xl: clamp(2.25rem, 1.6rem + 3.2vw, 4.75rem);
  --t-4xl: clamp(2.75rem, 1.6rem + 6vw, 8.5rem);

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 12vw, 176px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--carbon); color: var(--paper);
  font-family: var(--f-sans); font-size: var(--t-base); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* The hidden attribute always wins over component display rules */
[hidden]:not(.pnav__back) { display: none !important; }

::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 3px; border-radius: 1px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--signal); color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }

/* ---------- Type ---------- */
.h-display, .h-section, .hero__title, .final__title {
  font-variation-settings: "wdth" 125; font-weight: 700; letter-spacing: -.025em; text-wrap: balance;
}
.h-display { font-size: var(--t-3xl); line-height: .98; }
.h-section { font-size: var(--t-2xl); line-height: 1.02; max-width: 18ch; }
.h-sub { font-size: var(--t-xl); font-weight: 600; line-height: 1.15; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.lead, .section__intro { font-size: var(--t-lg); line-height: 1.5; color: var(--mist); max-width: 58ch; }
.section--light .section__intro, .section--light .lead { color: #4A4F59; }
.mono { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .01em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 66ch; }

/* ---------- Buttons & links ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: var(--t-sm); letter-spacing: .005em; font-variation-settings: "wdth" 110;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  transform: translate(var(--bx), var(--by));
  white-space: nowrap;
}
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: var(--t-base); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-hi); }
.btn--line { border: 1px solid currentColor; color: inherit; }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section--light .btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.textlink {
  display: inline-block; font-weight: 600; font-size: var(--t-sm);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease), color .2s;
}
.textlink:hover { background-size: 30% 1px; color: var(--signal-hi); }
.section--light .textlink:hover { color: var(--signal); }
.linklike { text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: inherit; }

.icon { width: 24px; height: 24px; flex: none; }

.tag {
  display: inline-block; font-family: var(--f-mono); font-size: var(--t-xs);
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 20px; line-height: 1.4; opacity: .9;
}

/* ---------- Media placeholders ---------- */
.media { position: relative; width: 100%; overflow: hidden; background: var(--graphite); }
.media__el { width: 100%; height: 100%; object-fit: cover; }
.media picture { display: contents; }
.media--ph {
  container-type: inline-size;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.035) 23px 24px),
    linear-gradient(160deg, #1A1D24, #121419);
  color: var(--steel);
}
.section--light .media--ph {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0,0,0,.04) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(0,0,0,.04) 23px 24px),
    #DCD8CE;
  color: #6A6E77;
}
.ph__x { position: absolute; inset: 0; width: 100%; height: 100%; stroke: currentColor; stroke-opacity: .16; stroke-width: .3; vector-effect: non-scaling-stroke; }
.ph__x line { vector-effect: non-scaling-stroke; stroke-width: 1; }
.ph__tl, .ph__br { position: absolute; width: 18px; height: 18px; border: 0 solid var(--signal); }
.ph__tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ph__br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.ph__meta { position: absolute; left: 16px; bottom: 14px; right: 40px; display: grid; gap: 2px; font-family: var(--f-mono); font-size: 11px; line-height: 1.4; }
.ph__kind { color: var(--signal-hi); }
.section--light .ph__kind { color: var(--signal); }
.ph__label { color: inherit; font-size: 12px; }
.ph__path { opacity: .65; word-break: break-all; }
@container (max-width: 280px) {
  .ph__label, .ph__path { display: none; }
  .ph__meta { left: 10px; bottom: 8px; }
  .ph__tl, .ph__br { width: 12px; height: 12px; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s var(--ease), transform .45s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(12, 13, 16, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; color: var(--paper); }
.brand__word { font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: -.01em; font-size: 1.05rem; }
.brand__labs { font-weight: 400; margin-left: .3em; color: var(--steel); }

.nav__list { display: flex; gap: 4px; }
.nav__list > li > a { display: block; padding: 10px 14px; font-size: var(--t-sm); color: var(--mist); transition: color .2s; position: relative; }
.nav__list > li > a:hover, .nav__list > li > a[aria-current="page"] { color: var(--paper); }
.nav__list > li > a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--signal); }

.nav__has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(880px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  background: rgba(22, 24, 29, .97); border: 1px solid var(--line-dark); backdrop-filter: blur(16px);
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__has-mega:hover .mega, .nav__has-mega:focus-within .mega, .mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__inner { padding: 24px; display: grid; gap: 16px; }
.mega__intro { color: var(--steel); font-size: var(--t-sm); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mega__grid a { display: flex; gap: 14px; padding: 14px; transition: background .2s; }
.mega__grid a:hover, .mega__grid a:focus-visible { background: var(--graphite-2); }
.mega__grid .icon { color: var(--signal-hi); margin-top: 2px; }
.mega__grid strong { display: block; font-weight: 600; font-size: var(--t-sm); }
.mega__grid small { display: block; color: var(--steel); font-size: var(--t-xs); line-height: 1.45; margin-top: 2px; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle__bars, .menu-toggle__bars::before { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle__bars { top: 18px; }
.menu-toggle__bars::before { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1; background: var(--carbon);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-menu nav { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; gap: 40px; }
.mobile-menu__list { counter-reset: m; }
.mobile-menu__list a { display: block; font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; font-variation-settings: "wdth" 120; letter-spacing: -.02em; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__foot { display: grid; gap: 14px; color: var(--mist); }
.mobile-menu__foot .btn { justify-self: start; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--light { background: var(--paper); color: var(--ink); color-scheme: light; }
.section--graphite { background: var(--graphite); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--split { grid-template-columns: 1fr; align-items: end; }
.section__foot { margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .section__head--split > .textlink { justify-self: end; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; isolation: isolate; background: var(--carbon);
}
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__gl, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video .media__el { height: 100%; }
.hero__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,16,.86) 0%, rgba(12,13,16,.35) 55%, rgba(12,13,16,0) 100%), linear-gradient(0deg, var(--carbon) 0%, transparent 30%); pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: calc((min(100vw, 1480px) - 2 * var(--gutter)) / 12) 100%;
  background-position: max(var(--gutter), calc((100vw - 1480px) / 2 + var(--gutter))) 0;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}
.hero__content { align-self: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; display: grid; gap: clamp(20px, 3vw, 36px); }
.hero__title { font-size: var(--t-4xl); line-height: .9; text-transform: uppercase; letter-spacing: -.035em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line > span { display: inline-block; }
.js .hero__line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-loaded .hero__line > span { transform: none; }
.js .is-loaded .hero__line:nth-child(2) > span { transition-delay: .08s; }
.js .is-loaded .hero__line:nth-child(3) > span { transition-delay: .16s; }
.hero__cycle { font-size: var(--t-xl); font-variation-settings: "wdth" 115; font-weight: 500; display: flex; gap: .4em; align-items: baseline; color: var(--mist); }
.hero__cycle-word { color: var(--paper); display: inline-block; min-width: 8ch; position: relative; }
.hero__cycle-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--signal); transform-origin: left; animation: cycleBar 2.6s var(--ease) infinite; }
@keyframes cycleBar { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.hero__foot { display: grid; gap: 28px; max-width: 1100px; }
.hero__lede { font-size: var(--t-lg); color: var(--mist); max-width: 46ch; line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
}
.hero__hud {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding-block: 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark);
  font-family: var(--f-mono); font-size: var(--t-xs); color: var(--steel);
}
.hud__stage { display: flex; gap: 10px; align-items: baseline; min-width: 190px; }
.hud__v { color: var(--cyan); }
.hud__track { display: flex; gap: 0; justify-content: space-between; position: relative; }
.hud__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-dark); }
.hud__track li { position: relative; padding: 0 10px; background: var(--carbon); transition: color .4s; }
.hud__track li.is-active { color: var(--paper); }
.hud__track li.is-active::before { content: ""; position: absolute; left: 50%; top: -10px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cyan); }
.hud__scroll { display: flex; align-items: center; gap: 10px; }
.hud__scroll i { width: 1px; height: 28px; background: linear-gradient(var(--paper), transparent); animation: scrollCue 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 899px) {
  .hero__hud { grid-template-columns: 1fr auto; }
  .hud__track { display: none; }
}

/* ---------- PROPOSITION (signature scroll) ---------- */
.prop { position: relative; height: 420vh; background: var(--carbon); border-top: 1px solid var(--line-dark); }
.prop__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.prop__grid { display: grid; gap: 48px; align-items: center; }
.prop__text { display: grid; gap: 20px; max-width: 560px; }
.prop__text p:not(.prop__lead) { color: var(--steel); }
.prop__lead { font-size: var(--t-lg); color: var(--paper); line-height: 1.45; }
.prop__machine { display: grid; place-items: center; }
.prop__ring { position: relative; width: min(64vh, 560px, 88vw); aspect-ratio: 1; display: grid; place-items: center; }
.prop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.prop__orbit { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.prop__progress { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 200px 200px; }
.prop__svg .tick { fill: var(--graphite-2); stroke: var(--steel); stroke-width: 1; transition: fill .4s, stroke .4s; }
.prop__svg .tick.on { fill: var(--signal); stroke: var(--signal); }
.prop__svg .tick-label { font-family: var(--f-mono); font-size: 11px; fill: var(--steel); transition: fill .4s; }
.prop__svg .tick-label.on { fill: var(--paper); }
.prop__word {
  font-size: clamp(2.25rem, 7vw, 5.5rem); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.035em; line-height: 1;
  text-align: center;
}
.prop__word .ch { display: inline-block; transition: opacity .2s; }
.prop__count { position: absolute; bottom: 26%; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--steel); }
@media (min-width: 1024px) { .prop__grid { grid-template-columns: 1fr 1.1fr; } }
@media (max-width: 1023px) {
  .prop__grid { align-content: center; gap: 28px; }
  .prop__text p:not(.prop__lead) { display: none; }
  .prop__ring { width: min(46vh, 88vw); }
  .prop__svg .tick-label { display: none; }
}

/* ---------- JOURNEY (horizontal) ---------- */
.journey { position: relative; background: var(--graphite); border-top: 1px solid var(--line-dark); }
.journey__head { display: grid; gap: 16px; padding-top: clamp(64px, 9vw, 120px); }
.journey__intro { color: var(--mist); max-width: 52ch; }
.journey__meter { height: 1px; background: var(--line-dark); margin-top: 16px; position: relative; }
.journey__meter span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.journey__viewport { padding: 40px 0 clamp(64px, 8vw, 100px); }
.journey__track { display: grid; gap: 1px; padding-inline: var(--gutter); }
.phase { background: var(--carbon); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; position: relative; min-height: 320px; overflow: hidden; }
.phase__num { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--signal-hi); }
.phase__name { font-size: var(--t-2xl); font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: -.02em; line-height: 1; }
.phase__desc { color: var(--mist); max-width: 32ch; }
.phase__acts { display: grid; gap: 6px; margin-top: 8px; font-size: var(--t-sm); }
.phase__acts li { padding-left: 16px; position: relative; color: var(--paper); }
.phase__acts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--signal-hi); }
.phase__glyph { position: absolute; right: 20px; bottom: 20px; width: 34%; max-width: 150px; fill: none; stroke: var(--line-dark); stroke-width: 1; transition: stroke .6s var(--ease); }
.phase__glyph .f { fill: var(--line-dark); stroke: none; transition: fill .6s; }
.phase.is-active .phase__glyph { stroke: var(--signal); }
.phase.is-active .phase__glyph .f { fill: var(--cyan); }
.phase--end { display: grid; align-content: center; gap: 24px; background: transparent; }
.phase--end p { font-size: var(--t-xl); font-weight: 600; font-variation-settings: "wdth" 112; max-width: 18ch; line-height: 1.2; }
@media (min-width: 700px) and (max-width: 1023px) { .journey__track { grid-template-columns: 1fr 1fr; } }

/* Horizontal mode enabled by JS on wide screens */
.journey.is-horizontal .journey__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.journey.is-horizontal .journey__viewport { flex: 1; display: flex; align-items: center; padding-block: 32px 48px; }
.journey.is-horizontal .journey__track { display: flex; gap: 1px; will-change: transform; padding-right: 20vw; }
.journey.is-horizontal .phase { flex: 0 0 min(440px, 34vw); height: min(62vh, 560px); }
.journey.is-horizontal .phase--end { flex-basis: 360px; }

/* ---------- CAPABILITIES ---------- */
.cap-grid { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.cap-card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--carbon); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; min-height: 260px;
  isolation: isolate; overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(74, 123, 255, .16), transparent 60%);
}
.cap-card:hover::before, .cap-card:focus-within::before { opacity: 1; }
.cap-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--signal-hi); }
.cap-card__top .icon { width: 30px; height: 30px; }
.cap-card__toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--paper); transition: transform .35s var(--ease), background .2s, border-color .2s; }
.cap-card__toggle .icon { width: 18px; height: 18px; }
.cap-card__toggle:hover { border-color: var(--paper); }
.cap-card__toggle[aria-expanded="true"] { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
.cap-card__title { font-size: var(--t-xl); font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: -.015em; line-height: 1.1; margin-top: auto; }
.cap-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cap-card__toggle, .cap-card__more a { position: relative; z-index: 1; }
.cap-card__short { color: var(--mist); max-width: 40ch; }
.cap-card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.cap-card__more > * { overflow: hidden; }
.cap-card__more ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-card__more li { font-size: var(--t-xs); font-family: var(--f-mono); border: 1px solid var(--line-dark); padding: 4px 9px; border-radius: 20px; color: var(--mist); }
.cap-card__more .textlink { margin-top: 14px; justify-self: start; }
.cap-card.is-open .cap-card__more { grid-template-rows: 1fr; }
.cap-card.is-open .cap-card__more > ul { overflow: visible; }
.cap-card__more { grid-template-columns: 1fr; }
.cap-card__more > ul, .cap-card__more > a { min-height: 0; }
@media (min-width: 700px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } .cap-card--7 { grid-column: span 2; } }
@media (min-width: 1100px) {
  .cap-grid { grid-template-columns: repeat(12, 1fr); }
  .cap-card--1 { grid-column: span 5; min-height: 360px; }
  .cap-card--2 { grid-column: span 4; min-height: 360px; }
  .cap-card--3 { grid-column: span 3; min-height: 360px; }
  .cap-card--4 { grid-column: span 3; }
  .cap-card--5 { grid-column: span 4; }
  .cap-card--6 { grid-column: span 5; background: var(--graphite); }
  .cap-card--7 { grid-column: span 12; min-height: 220px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; column-gap: 48px; }
  .cap-card--7 .cap-card__top { width: 100%; }
  .cap-card--7 .cap-card__title { font-size: var(--t-2xl); margin-top: 0; }
  .cap-card--7 .cap-card__more { flex-basis: 100%; }
}

/* ---------- AI diagram ---------- */
.ai__grid { display: grid; gap: 48px; align-items: center; }
.ai__text { display: grid; gap: 24px; align-content: start; }
.ai__text .textlink { justify-self: start; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-light); padding: 3px; gap: 3px; justify-self: start; }
.seg button { padding: 10px 14px; font-size: var(--t-sm); font-weight: 500; color: #4A4F59; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.seg button:hover:not([aria-selected="true"]) { color: var(--ink); background: var(--paper-2); }
.ai__caption { font-family: var(--f-mono); font-size: var(--t-sm); color: #3B4049; min-height: 3em; max-width: 44ch; }
.ai__diagram { color: var(--ink); border: 1px solid var(--line-light); background: #F5F3EE; }
.ai__diagram svg { width: 100%; height: auto; }
.ai-node rect { fill: #fff; stroke: var(--ink); stroke-width: 1; transition: fill .5s, stroke .5s; }
.ai-node text { font-family: var(--f-mono); font-size: 12px; fill: var(--ink); }
.ai-node .sub { font-size: 10px; fill: #6A6E77; }
.ai-node.is-human rect { fill: #fff; }
.ai-node.is-ai rect { fill: var(--signal); stroke: var(--signal); }
.ai-node.is-ai text { fill: #fff; }
.ai-node.is-ai .sub { fill: rgba(255,255,255,.75); }
.ai-node.is-gone { opacity: 0; }
.ai-node { transition: transform .9s var(--ease-io), opacity .6s; }
.ai-link { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; transition: opacity .5s, d .9s var(--ease-io); }
.ai-link.is-fast { stroke: var(--signal); stroke-dasharray: none; stroke-width: 1.5; }
.ai-queue { fill: #C0665F; font-family: var(--f-mono); font-size: 10px; transition: opacity .4s; }
.ai__pulse { fill: var(--signal); }
@media (min-width: 1024px) { .ai__grid { grid-template-columns: 1fr 1.25fr; gap: 80px; } }

/* ---------- Stage indicator ---------- */
.stage { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--t-xs); }
.stage__label { color: var(--paper); }
.section--light .stage__label { color: var(--ink); }
.stage__track { display: inline-flex; gap: 3px; }
.stage__track i { width: 14px; height: 4px; background: var(--line-dark); }
.section--light .stage__track i { background: var(--line-light); }
.stage__track i.on { background: var(--accent, var(--signal)); }
.stage--stealth .stage__label { color: var(--steel); }
.stage--stealth .stage__label::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

/* ---------- BUILT (sector cards) ---------- */
.built__sub { font-size: var(--t-xl); color: var(--mist); margin-top: 16px; font-variation-settings: "wdth" 110; max-width: 26ch; line-height: 1.25; }
.sector-grid { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.sector-card { background: var(--carbon); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; min-height: 300px; position: relative; transition: background .35s; }
.sector-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(.12); transform-origin: left; transition: transform .6s var(--ease); }
.sector-card:hover { background: var(--graphite); }
.sector-card:hover::after, .sector-card:focus-within::after { transform: scaleX(1); }
.sector-card__head { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.sector-card__name { font-size: var(--t-xl); font-weight: 700; font-variation-settings: "wdth" 120; letter-spacing: -.015em; color: var(--paper); }
.sector-card__desc { color: var(--steel); font-size: var(--t-sm); max-width: 36ch; }
.sector-card__venture { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; }
.sector-card__vname { font-weight: 600; font-size: var(--t-base); }
a.sector-card__vname:hover { color: var(--accent); }
.sector-card__vline { font-size: var(--t-sm); color: var(--mist); }
@media (min-width: 700px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Posts / editorial ---------- */
.lab__grid { display: grid; gap: 40px 32px; }
.post__link { display: grid; gap: 14px; }
.post__link .media { transition: filter .5s; }
.post__link:hover .media { filter: brightness(1.05) contrast(1.05); }
.post__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: var(--t-xs); color: #5B606B; }
.post__title { font-size: var(--t-lg); font-weight: 600; line-height: 1.25; font-variation-settings: "wdth" 108; max-width: 34ch; transition: color .2s; }
.post__link:hover .post__title { color: var(--signal); }
.post--lead .post__title { font-size: var(--t-2xl); font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: -.015em; line-height: 1.08; }
.post__excerpt { color: #4A4F59; max-width: 52ch; }
@media (min-width: 900px) {
  .lab__grid { grid-template-columns: 1.6fr 1fr; }
  .post--lead { grid-row: span 3; }
  .lab__grid .post:not(.post--lead) .post__link { grid-template-columns: 200px 1fr; align-items: start; column-gap: 20px; }
  .lab__grid .post:not(.post--lead) .media { grid-row: span 2; }
}

/* ---------- ENGAGE rows ---------- */
.engage .h-section { margin-bottom: clamp(32px, 5vw, 64px); }
.engage__list { border-top: 1px solid var(--line-dark); }
.engage__row { border-bottom: 1px solid var(--line-dark); }
.engage__link { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; position: relative; }
.engage__word { font-size: clamp(2.25rem, 1.5rem + 4vw, 5rem); font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: -.03em; line-height: 1; color: var(--steel); transition: color .35s, transform .5s var(--ease); }
.engage__desc { color: var(--mist); max-width: 40ch; }
.engage__cta { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: var(--t-sm); color: var(--signal-hi); }
.engage__cta .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.engage__link:hover .engage__word, .engage__link:focus-visible .engage__word { color: var(--paper); transform: translateX(12px); }
.engage__link:hover .engage__cta .icon { transform: translateX(4px); }
@media (min-width: 1024px) {
  .engage__link { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 230px; align-items: center; gap: 40px; padding: 36px 0; }
  .engage__cta { justify-self: end; }
  .engage__desc, .engage__cta { opacity: .55; transition: opacity .35s; }
  .engage__link:hover .engage__desc, .engage__link:hover .engage__cta,
  .engage__link:focus-visible .engage__desc, .engage__link:focus-visible .engage__cta { opacity: 1; }
}

/* ---------- FINAL CTA ---------- */
.final { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; background: var(--carbon); border-top: 1px solid var(--line-dark); isolation: isolate; }
.final__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final__inner { text-align: center; display: grid; justify-items: center; gap: 28px; padding-block: var(--section); }
.final__title { font-size: var(--t-4xl); line-height: .92; max-width: 13ch; letter-spacing: -.04em; }
.final__copy { font-size: var(--t-lg); color: var(--mist); max-width: 40ch; }
.final__ctas { display: grid; justify-items: center; gap: 18px; }
.final__mail { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--mist); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.final__mail:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--carbon); border-top: 1px solid var(--line-dark); padding-top: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.site-footer__top { display: grid; gap: 56px; }
.site-footer__top > * { min-width: 0; }
.site-footer__name { font-weight: 700; font-variation-settings: "wdth" 120; font-size: var(--t-xl); letter-spacing: -.01em; }
.site-footer__tag { color: var(--steel); margin-top: 4px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
.site-footer__h { font-size: var(--t-sm); color: var(--steel); margin-bottom: 14px; }
.site-footer__cols li + li { margin-top: 8px; }
.site-footer__cols a, .site-footer__cols button { font-size: var(--t-sm); color: var(--mist); transition: color .2s; text-decoration: none; }
.site-footer__cols a:hover, .site-footer__cols button:hover { color: var(--paper); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 40px 20px; margin-top: 64px; border-top: 1px solid var(--line-dark); font-size: var(--t-xs); color: var(--steel); }
.coords { font-family: var(--f-mono); }
.site-footer__giant {
  font-size: clamp(4rem, 19vw, 20rem); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.05em; line-height: .78;
  color: transparent; -webkit-text-stroke: 1px var(--line-dark); white-space: nowrap; padding-left: var(--gutter);
  padding-bottom: env(safe-area-inset-bottom, 0px); user-select: none; margin-bottom: -.08em;
}
.newsletter { margin-top: 36px; display: grid; gap: 10px; max-width: 520px; }
.newsletter__title { font-weight: 600; }
.newsletter__copy { color: var(--steel); font-size: var(--t-sm); }
.newsletter__row { display: grid; gap: 8px; }
.newsletter input { min-width: 0; width: 100%; height: 46px; background: transparent; border: 1px solid var(--line-dark); padding: 0 14px; border-radius: var(--radius); }
.newsletter input:focus { border-color: var(--signal); outline: none; }
@media (min-width: 560px) { .newsletter__row { grid-template-columns: 1fr 1.4fr auto; } }
.newsletter__note { font-size: var(--t-xs); color: var(--steel); }
.newsletter__note a { color: var(--mist); }
@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: 1.1fr 1.4fr; gap: 80px; }
  .site-footer__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 150; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; background: var(--graphite); border: 1px solid var(--line-dark); padding: 20px; display: grid; gap: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.cookie[hidden] { display: none; }
.cookie__title { font-weight: 600; }
.cookie__copy { font-size: var(--t-sm); color: var(--mist); }
.cookie__copy a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------- Forms ---------- */
.form-status { font-size: var(--t-sm); min-height: 1.4em; }
.form-status.is-ok { color: var(--sector-energy); }
.form-status.is-err { color: #FF8A80; }
.section--light .form-status.is-ok { color: #1D7A4F; }
.section--light .form-status.is-err { color: #B3261E; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(72px, 12vw, 160px)) 0 clamp(56px, 8vw, 104px); position: relative; border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.page-hero__inner { display: grid; gap: 28px; }
.page-hero h1 { font-size: var(--t-3xl); font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: -.03em; line-height: .98; max-width: 18ch; text-wrap: balance; }
.page-hero .lead { max-width: 60ch; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { justify-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--mist); }

/* ---------- Build System page ---------- */
.bs-rail { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-dark); margin-top: 16px; }
.bs-rail li { flex: 1 1 auto; }
.bs-rail a { display: flex; gap: 10px; align-items: baseline; padding: 14px 16px; font-size: var(--t-sm); font-weight: 600; color: var(--mist); border-right: 1px solid var(--line-dark); transition: background .25s, color .25s; }
.bs-rail a span { font-family: var(--f-mono); font-weight: 400; color: var(--steel); font-size: var(--t-xs); }
.bs-rail li:last-child a { border-right: 0; }
.bs-rail a.is-active, .bs-rail a:hover { background: var(--paper); color: var(--ink); }
.bs-rail a.is-active span { color: var(--signal); }
.bs-sticky { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(12,13,16,.9); backdrop-filter: blur(10px); padding-block: 10px; }
.bs-stage { display: grid; gap: 32px; padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line-dark); }
.bs-stage__num { font-family: var(--f-mono); color: var(--signal-hi); font-size: var(--t-sm); }
.bs-stage__name { font-size: var(--t-4xl); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.045em; line-height: .88; }
.bs-stage__body { display: grid; gap: 32px; }
.bs-stage__desc { font-size: var(--t-xl); line-height: 1.3; font-variation-settings: "wdth" 105; max-width: 30ch; }
.bs-cols { display: grid; gap: 28px; }
.bs-cols h3 { font-size: var(--t-sm); color: var(--steel); font-weight: 500; margin-bottom: 10px; }
.bs-cols li { padding: 8px 0; border-top: 1px solid var(--line-dark); font-size: var(--t-sm); }
.bs-example { border-left: 2px solid var(--signal); padding: 4px 0 4px 18px; color: var(--mist); font-size: var(--t-sm); }
.bs-example strong { display: block; color: var(--paper); font-weight: 600; margin-bottom: 4px; }
@media (min-width: 900px) {
  .bs-stage { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .bs-cols { grid-template-columns: 1fr 1fr 1.2fr; }
}
@media (max-width: 899px) { .bs-rail a { padding: 10px 12px; } .bs-rail li { flex: 0 0 auto; } .bs-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ---------- Capability detail ---------- */
.detail-grid { display: grid; gap: 48px; }
.detail-block + .detail-block { margin-top: clamp(48px, 6vw, 80px); }
.detail-block h2 { font-size: var(--t-xl); font-weight: 700; font-variation-settings: "wdth" 118; margin-bottom: 16px; letter-spacing: -.01em; }
.facts { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.facts div { background: var(--carbon); padding: 18px 20px; display: grid; gap: 4px; }
.facts dt { font-size: var(--t-xs); color: var(--steel); font-family: var(--f-mono); }
.facts dd { margin: 0; font-weight: 500; }
.method { counter-reset: m; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.method li { background: var(--carbon); padding: 22px; display: grid; gap: 6px; }
.method b { font-size: var(--t-lg); font-variation-settings: "wdth" 115; }
.method b::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal-hi); font-weight: 400; margin-right: 12px; vertical-align: 2px; }
.method p { color: var(--mist); font-size: var(--t-sm); }
.checklist li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line-dark); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 12px; height: 6px; border-left: 1.5px solid var(--signal-hi); border-bottom: 1.5px solid var(--signal-hi); transform: rotate(-45deg); }
.aside-cta { background: var(--graphite); padding: 28px; display: grid; gap: 16px; border: 1px solid var(--line-dark); }
.aside-cta p { color: var(--mist); }
@media (min-width: 900px) {
  .method { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr 340px; gap: 80px; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 24px; }
}

/* Capability index rows */
.cap-rows { border-top: 1px solid var(--line-dark); }
.cap-row a { display: grid; gap: 20px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-dark); align-items: center; }
.cap-row__title { display: flex; gap: 18px; align-items: center; font-size: var(--t-2xl); font-weight: 700; font-variation-settings: "wdth" 122; letter-spacing: -.02em; line-height: 1.05; transition: color .3s; }
.cap-row__title .icon { width: 32px; height: 32px; color: var(--signal-hi); }
.cap-row p { color: var(--mist); max-width: 46ch; }
.cap-row ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-row li { font-family: var(--f-mono); font-size: var(--t-xs); border: 1px solid var(--line-dark); border-radius: 20px; padding: 3px 9px; color: var(--steel); }
.cap-row a:hover .cap-row__title { color: var(--signal-hi); }
@media (min-width: 1024px) { .cap-row a { grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; } }

/* ---------- Ventures page ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 40px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters__label { font-size: var(--t-xs); color: var(--steel); font-family: var(--f-mono); margin-right: 8px; min-width: 64px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 30px; font-size: var(--t-sm); color: var(--mist); transition: all .2s; }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.venture-grid { display: grid; gap: 40px 28px; }
.venture-card { display: grid; gap: 14px; transition: opacity .4s, transform .4s var(--ease); }
.venture-card[hidden] { display: none; }
.venture-card__link { display: grid; gap: 14px; }
.venture-card .media { border-top: 2px solid var(--accent); }
.venture-card__meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.venture-card__sector { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.venture-card__sector .icon { width: 18px; height: 18px; }
.venture-card__name { font-size: var(--t-xl); font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: -.015em; }
.venture-card__line { color: var(--mist); max-width: 44ch; }
.venture-card__link:hover .venture-card__name { color: var(--accent); }
.venture-card--stealth .media { filter: grayscale(1) brightness(.6); }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line-dark); color: var(--mist); display: grid; gap: 12px; justify-items: center; }
@media (min-width: 700px) { .venture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .venture-grid { grid-template-columns: repeat(3, 1fr); } }

.venture-hero .media { border-bottom: 1px solid var(--line-dark); }
.venture-sections { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.venture-sections > div { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line-dark); }
.venture-sections h2 { font-size: var(--t-sm); color: var(--steel); font-weight: 500; }
.venture-sections p { font-size: var(--t-lg); line-height: 1.5; max-width: 60ch; }
@media (min-width: 900px) { .venture-sections > div { grid-template-columns: 220px 1fr; gap: 40px; } }

/* ---------- Ecosystem ---------- */
.eco { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 1; }
.eco svg { width: 100%; height: 100%; overflow: visible; }
.eco .ring { fill: none; stroke: var(--line-dark); }
.eco .edge { stroke: var(--line-dark); stroke-width: 1; fill: none; }
.eco .edge.is-hot { stroke: var(--signal); }
.eco .node circle { fill: var(--carbon); stroke: var(--steel); stroke-width: 1; transition: fill .3s, stroke .3s; }
.eco .node text { fill: var(--mist); font-size: 13px; font-family: var(--f-sans); text-anchor: middle; }
.eco .node.cap circle { stroke: var(--signal-hi); }
.eco .node.sec text { fill: var(--paper); font-weight: 600; }
.eco .node.core circle { fill: var(--signal); stroke: var(--signal); }
.eco .node.core text { fill: #fff; font-weight: 700; font-size: 15px; }
.eco .node.out circle { fill: var(--paper); stroke: var(--paper); }
.eco .node.out text { fill: var(--paper); font-weight: 600; }
.eco .node:hover circle, .eco .node.is-hot circle { stroke: var(--cyan); }
.eco .spark { fill: var(--cyan); }
.eco .node { cursor: default; }

/* ---------- About ---------- */
.pillars { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.pillars li { background: var(--paper); padding: 28px; font-size: var(--t-xl); font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: -.015em; }
.pillars li small { display: block; font-size: var(--t-sm); font-weight: 400; color: #555A64; margin-top: 8px; font-variation-settings: "wdth" 100; letter-spacing: 0; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.team-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.team-card { display: grid; gap: 12px; }
.team-card h3 { font-size: var(--t-lg); font-weight: 600; }
.team-card p { color: var(--steel); font-size: var(--t-sm); }
.split { display: grid; gap: 40px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* ---------- Insights page ---------- */
.ins-grid { display: grid; gap: 48px 32px; }
@media (min-width: 700px) { .ins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ins-grid { grid-template-columns: repeat(3, 1fr); } .ins-grid .post--lead { grid-column: span 2; grid-row: span 2; } }
.page-insights .post__meta { color: var(--steel); }
.page-insights .post__excerpt { color: var(--mist); }
.page-insights .post__link:hover .post__title { color: var(--signal-hi); }
.share { display: flex; gap: 10px; font-size: var(--t-xs); font-family: var(--f-mono); color: var(--steel); }
.share a:hover { color: var(--paper); }

/* ---------- Start form ---------- */
.start { display: grid; gap: 48px; padding-bottom: var(--section); }
@media (min-width: 1024px) { .start { grid-template-columns: 300px 1fr; gap: 80px; } }
.start__aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .start__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.steps-nav { display: grid; gap: 0; border-left: 1px solid var(--line-dark); }
.steps-nav li { padding: 8px 0 8px 18px; font-size: var(--t-sm); color: var(--steel); position: relative; transition: color .3s; }
.steps-nav li::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .3s; }
.steps-nav li.is-done { color: var(--mist); }
.steps-nav li.is-current { color: var(--paper); }
.steps-nav li.is-current::before { background: var(--signal); }
.steps-nav span { font-family: var(--f-mono); font-size: var(--t-xs); margin-right: 10px; }
.progress { height: 2px; background: var(--line-dark); position: relative; }
.progress span { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.pform { position: relative; }
.pstep { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 24px; }
.js .pstep:not(.is-current) { display: none; }
.pstep legend { font-size: var(--t-2xl); font-weight: 700; font-variation-settings: "wdth" 120; letter-spacing: -.02em; line-height: 1.1; padding: 0; margin-bottom: 8px; max-width: 24ch; }
.pstep__hint { color: var(--mist); margin-top: -12px; }
.pstep__count { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal-hi); }
.choice-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 18px; border: 1px solid var(--line-dark); font-weight: 500; transition: border-color .2s, background .2s; }
.choice span::before { content: ""; width: 16px; height: 16px; border: 1px solid var(--steel); border-radius: 50%; flex: none; transition: all .2s; }
.choice input[type="checkbox"] + span::before { border-radius: 2px; }
.choice:hover span { border-color: var(--mist); }
.choice input:checked + span { border-color: var(--signal); background: rgba(74,123,255,.08); }
.choice input:checked + span::before { border-color: var(--signal); background: var(--signal); box-shadow: inset 0 0 0 3px var(--carbon); }
.choice input:focus-visible + span { outline: 2px solid var(--signal-hi); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 500; font-size: var(--t-sm); }
.field .opt { color: var(--steel); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); padding: 12px 0; font-size: var(--t-lg); border-radius: 0;
  transition: border-color .2s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9BEC8' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 18px; padding-right: 32px; }
.field select option { background: var(--graphite); color: var(--paper); }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; font-size: var(--t-base); border: 1px solid var(--line-dark); padding: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: #5E6470; }
.field__err { color: #FF8A80; font-size: var(--t-xs); min-height: 1em; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #FF8A80; }
.fields-2 { display: grid; gap: 24px; }
@media (min-width: 700px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.pnav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.pnav__back { font-weight: 600; font-size: var(--t-sm); color: var(--mist); }
.pnav__back:hover { color: var(--paper); }
.pnav__back[hidden] { visibility: hidden; display: inline; }
.consent { display: flex; gap: 12px; font-size: var(--t-sm); color: var(--mist); align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--signal); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.review { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.review div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--t-sm); }
.review dt { color: var(--steel); }
.review dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.done { display: grid; gap: 20px; justify-items: start; padding: 40px 0; }
.done h2 { font-size: var(--t-3xl); font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: -.03em; line-height: 1; }
.done p { color: var(--mist); max-width: 50ch; }
.done__ref { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--cyan); }

/* ---------- Legal ---------- */
.legal { padding-bottom: var(--section); }
.legal h2 { font-size: var(--t-xl); font-weight: 700; margin: 2em 0 .6em; font-variation-settings: "wdth" 112; }
.legal p, .legal li { color: var(--mist); }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: .4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.notice { border: 1px dashed var(--signal); padding: 16px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal-hi); margin-top: 24px; }

/* ---------- Scroll reveal (single orchestrated behaviour) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive nav ---------- */
@media (max-width: 1099px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu:not([hidden]) { z-index: -1; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--carbon); }
}
@media (min-width: 1100px) { .mobile-menu { display: none !important; } }


.form-alert { border: 1px solid #C0665F; border-left-width: 3px; padding: 14px 18px; margin: 0 0 28px; color: var(--paper); background: rgba(192,102,95,.08); }
.section--light .form-alert { color: var(--ink); }

/* Start form: on small screens show only the current step name; the progress bar carries the rest */
@media (max-width: 899px) {
  .steps-nav li:not(.is-current) { display: none; }
  .steps-nav { margin-block: 12px 4px; }
}

/* ---------- Supplied imagery ---------- */
.hero--video .hero__grid { opacity: .35; }
.hero--video .hud__stage { visibility: hidden; } /* the stage readout tracks the particle scene only */
.hero--video .hero__stage { background: var(--carbon) url("../img/home/hero-poster.webp") center / cover no-repeat; }
@media (max-width: 767px) { .hero--video .hero__stage { background-image: url("../img/home/hero-poster-mobile.webp"); } }
.hero--video .hero__video .media__el { object-fit: cover; }
@media (max-width: 767px) {
  .hero--video .hero__stage::after { background: linear-gradient(0deg, var(--carbon) 0%, rgba(12,13,16,.86) 38%, rgba(12,13,16,.62) 70%, rgba(12,13,16,.4) 100%); }
}
.page-hero--bg { position: relative; isolation: isolate; }
.page-hero--bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-bg) center / cover no-repeat; opacity: .9; }
.page-hero--bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(0deg, var(--carbon), transparent); }
.page-home .final { background: var(--carbon) url("../img/backgrounds/final-cta.svg") center / cover no-repeat; }
@media (max-width: 767px) { .page-home .final { background-image: url("../img/backgrounds/final-cta-mobile.svg"); } }
.nf { position: relative; }
.nf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6vh; height: 22vh; background: url("../img/backgrounds/404.svg") center / cover no-repeat; pointer-events: none; }
.media__el { display: block; width: 100%; height: 100%; object-fit: cover; }
.media img[src$=".svg"] { object-fit: contain; background: var(--carbon); }
.cap-figure { margin-bottom: 20px; border: 1px solid var(--line-dark); }
.gallery-note { margin-top: 14px; font-size: var(--t-xs); color: var(--steel); font-family: var(--f-mono); }
.icon--brand { overflow: visible; }

/* ---------- Venture lifecycle (ventures page) ---------- */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.lifecycle__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 18px 26px 0; border-right: 1px solid var(--line-dark); padding-left: 18px; }
.lifecycle__step:first-child { padding-left: 0; }
.lifecycle__step:last-child { border-right: 0; }
.lifecycle__n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--steel); }
.lifecycle__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.lifecycle__count { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--mist); }
.lifecycle__bar { display: block; height: 2px; margin-top: 10px; background: var(--line-dark); position: relative; overflow: hidden; }
.lifecycle__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(min(var(--n, 0), 4) * 25%); background: var(--signal); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.lifecycle__step--out .lifecycle__n { color: var(--signal-hi); }
.lifecycle__step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.lifecycle__step:not(:first-child)::before { left: 18px; }
.lifecycle__step--out::before { background: var(--signal-hi); box-shadow: 0 0 0 4px rgba(74,123,255,.2); }
@media (max-width: 1023px) {
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lifecycle__step:nth-child(3n) { border-right: 0; }
  .lifecycle__step:nth-child(3n+1) { padding-left: 0; }
  .lifecycle__step:nth-child(3n+1)::before { left: 0; }
  .lifecycle__step:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 599px) {
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .lifecycle__step { border-right: 0 !important; padding-left: 0 !important; }
  .lifecycle__step::before { left: 0 !important; }
  .lifecycle__step:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
.bs-diagram svg text { font-family: var(--f-mono); }

/* ---------- Page transitions (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .hero__line > span { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .prop { height: auto; }
  .prop__sticky { position: relative; height: auto; padding-block: var(--section); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cookie, .final__field, .hero__stage, .site-footer__giant { display: none !important; }
  body { background: #fff; color: #000; }
}
