/* ════════════════════════════════════
   LATTICE v18 — site.css
   One stylesheet. Every selector matches the document.
════════════════════════════════════ */

/* ════════ FONTS — self-hosted ════════ */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500.woff2') format('woff2');
}

/* ════════ THEME TOKENS ════════ */
:root {
  /* spacing scale — 8px base */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px;  --s6: 64px;  --s7: 96px;  --s8: 128px;
  --gutter: clamp(24px, 5vw, 72px);

  /* signal accent — constant across themes */
  --signal:  #3a8fc4;
  --signalb: #5aabdc;
  --thermal: #c4501a;

  /* one size for every subtitle / deck / sub-line, page-wide */
  --sub: clamp(17px, 2vw, 26px);

  /* measure for the in-section detail blocks, so they centre under the
     centred section head rather than spanning the full grid */
  --detail: 920px;
}

[data-theme="dark"] {
  --bg:       #05080e;
  --bg2:      #090d15;
  --bg3:      #0c1520;
  --fg:       #e6eef5;   /* headings */
  --body:     #d0e8f4;   /* frost — primary body */
  --body2:    #c4d8e8;   /* mist — secondary body */
  --muted:    #6f93b4;
  --dim:      #3d5f7e;
  --label:    #3a8fc4;   /* signal, as-is — dark ground carries it */
  --line:     rgba(58,143,196,.10);
  --line2:    rgba(58,143,196,.18);

  /* card fills — translucent, so the walkthrough reads through them;
     the card being read firms up */
  --card:       color-mix(in srgb, var(--bg2) 55%, transparent);
  --card2:      color-mix(in srgb, var(--bg3) 60%, transparent);
  --card-focus: color-mix(in srgb, var(--bg2) 82%, transparent);

  /* hero grade */
  --ink:  #eef4fa;
  --gw1: rgba(235,244,251,.55);
  --gw2: rgba(150,200,235,.42);
  --gw3: rgba(80,150,205,.32);
}

[data-theme="light"] {
  --bg:       #eef2f7;
  --bg2:      #ffffff;
  --bg3:      #f6f9fc;
  --fg:       #0a141f;
  --body:     #2a4255;
  --body2:    #3a5268;
  --muted:    #46627a;   /* darker on light ground for legibility */
  --dim:      #7590a6;
  --label:    #245e88;   /* signal, deepened — small type holds contrast */
  --line:     rgba(22,58,88,.10);
  --line2:    rgba(22,58,88,.16);

  /* card fills — stronger in light mode so ink text holds its contrast */
  --card:       color-mix(in srgb, var(--bg2) 74%, transparent);
  --card2:      color-mix(in srgb, var(--bg3) 78%, transparent);
  --card-focus: color-mix(in srgb, var(--bg2) 92%, transparent);

  /* hero grade */
  --ink:  #0b141e;
  --gw1: rgba(40,90,140,.30);
  --gw2: rgba(58,143,196,.26);
  --gw3: rgba(90,171,220,.18);
}

/* ════════ BASE ════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

/* dotted engineering grid — between the environmental layer and the document.
   It also carries the readability scrim: the environmental layer runs hot
   (orange) at some depths, which washed out body copy sitting on top of it.
   Tinting toward --bg here mutes the layer without touching the hero, where
   the canvas is already at opacity 0. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: color-mix(in srgb, var(--bg) 62%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233a8fc4' stroke-width='1' stroke-dasharray='6 6' stroke-opacity='0.10'%3E%3Cpath d='M0 0 H72'/%3E%3Cpath d='M0 0 V72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23163a58' stroke-width='1' stroke-dasharray='6 6' stroke-opacity='0.08'%3E%3Cpath d='M0 0 H72'/%3E%3Cpath d='M0 0 V72'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; }

::selection { background: var(--signal); color: #05080e; }

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

/* ════════ SHARED UTILITY ════════ */
.mono { font-family: 'DM Mono', monospace; }

.eyebrow {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: .5px;
  background: var(--label);
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: -48px; left: var(--s2);
  z-index: 200;
  padding: var(--s1) var(--s3);
  background: var(--signal);
  color: #05080e;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--s2); }

/* ════════ ENVIRONMENTAL LAYER ════════ */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  /* invisible through the hero — scene.js drives the fade from scroll */
  opacity: 0;
}
#gl[hidden] { display: none; }

main { position: relative; z-index: 2; }

/* ════════ NAV — glass bar, auto hide on scroll down / show on up ════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter);
  height: 60px;
  /* frosted glass — translucent ground + blur, present from the top */
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: .5px solid var(--line);
  transition: transform .45s cubic-bezier(.16,1,.3,1), background .4s, border-color .4s;
  will-change: transform;
}
/* firmer glass once past the hero */
nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: .5px solid var(--line2);
}
/* auto-hide: slides up out of view while scrolling down, returns on scroll up */
nav.nav-hidden { transform: translateY(-100%); }
/* browsers without backdrop-filter get a more opaque bar so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav { background: color-mix(in srgb, var(--bg) 90%, transparent); }
  nav.scrolled { background: color-mix(in srgb, var(--bg) 95%, transparent); }
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.nav-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.nav-mark span { border-radius: 1px; background: var(--signal); }
.nav-mark span:nth-child(1) { opacity: .18; }
.nav-mark span:nth-child(2) { opacity: .5; }
.nav-mark span:nth-child(3) { opacity: .9; }
.nav-mark span:nth-child(4) { opacity: .5; }
.nav-mark span:nth-child(5) { opacity: 1; }
.nav-mark span:nth-child(6) { opacity: .5; }
.nav-mark span:nth-child(7) { opacity: .9; }
.nav-mark span:nth-child(8) { opacity: .5; }
.nav-mark span:nth-child(9) { opacity: .18; }
.nav-right { display: flex; align-items: center; gap: var(--s4); }
.nav-link {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body2);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--signal); }

.theme-toggle {
  width: 38px; height: 20px;
  border-radius: 20px;
  border: .5px solid var(--line2);
  background: var(--bg3);
  position: relative;
  cursor: pointer;
  transition: background .3s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--signal);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(18px); }

.nav-cta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: .5px solid var(--line2);
  color: var(--label);
  text-decoration: none;
  border-radius: 2px;
  transition: all .2s;
}
.nav-cta:hover { background: var(--signal); color: #05080e; border-color: var(--signal); }

/* burger — fine pointer devices never see it */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.nav-burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ════════ MOBILE MENU ════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s3);
  padding: 80px var(--gutter) var(--s6);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.mobile-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 9vw, 56px);
  letter-spacing: .05em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: .5px solid var(--line);
  padding-bottom: var(--s2);
  transition: color .2s;
}
.mobile-link:hover { color: var(--signal); }

body.menu-open { overflow: hidden; }

/* ════════ HERO — the schematic pins and teaches ════════
   A tall section with a sticky viewport-height inner: the title card
   holds, then the elevation grows to fullscreen and scroll-synced
   callouts explain the loop. The environmental layer only arrives
   after this section. */
.lh {
  position: relative;
  width: 100%;
}
/* static hero — the schematic teaches on HOVER, so the hero no longer
   pins or grows across a 340vh scroll */
.lh-pin {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 26px);
  padding: 132px var(--gutter) var(--s7);
  text-align: center;
}
.lh-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: .96;
  letter-spacing: .03em;
  text-align: center;
  color: var(--ink);
  text-shadow: 0 0 .06em var(--gw1), 0 0 .16em var(--gw2), 0 0 .36em var(--gw3);
  transition: color .6s ease;
  opacity: 0;
  animation: wordIn 1.1s cubic-bezier(.16,1,.3,1) .15s forwards;
}
/* the hero's glow is white; tint it under each highlighted word so the
   colour is not washed out by the halo */
.lh-title .h-water {
  text-shadow: 0 0 .06em rgba(58,143,196,.60), 0 0 .18em rgba(58,143,196,.40), 0 0 .40em rgba(58,143,196,.24);
}
.lh-title .h-heat {
  text-shadow: 0 0 .06em rgba(196,80,26,.60), 0 0 .18em rgba(196,80,26,.40), 0 0 .40em rgba(196,80,26,.24);
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(24px) scale(.99); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.lh-caption {
  /* base size only — site.js rescales it so the line spans exactly
     the width of the title above it */
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .3em;
  text-indent: .3em; /* rebalances the trailing letter-space */
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  opacity: 0;
  animation: fadeUpLH 1s ease .55s forwards;
}
.lh-caption em { font-style: normal; color: var(--label); }
.lh-stage {
  position: relative;
  width: min(78vw, 1040px);
  height: calc(min(78vw, 1040px) * 8 / 21);
  opacity: 0;
  animation: fadeUpLH 1.2s ease .8s forwards;
}
.lh-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes fadeUpLH {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* callouts — one at a time, pinned near the component they name */
.lh-callouts { position: absolute; inset: 0; pointer-events: none; }
.lh-co {
  position: absolute;
  max-width: 300px;
  padding: 12px 15px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.lh-co.on { opacity: 1; transform: none; }
.co-k { font-size: 10px; letter-spacing: .18em; color: var(--label); font-weight: 500; }
.co-t { font-size: 14px; line-height: 1.55; font-weight: 300; color: var(--body); }
.lh-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--signalb);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.lh-dot.on { opacity: 1; animation: lhPulse 1.6s ease-in-out infinite; }
@keyframes lhPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.45); }
}
.lh-hint {
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUpLH 1s ease 1.4s forwards;
  transition: opacity .3s ease;
}
.lh-hint.off { opacity: 0 !important; }

/* statement-room eyebrow + loop spec chips */
.th-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--label);
  margin-bottom: 16px;
}
/* ──── standards belt — a continuous, seamless marquee ────
   Two identical runs sit side by side and the pair translates by
   exactly -50%, so the moment the first run leaves the frame the
   second is where it started and the loop restarts invisibly. */
.specbelt {
  max-width: var(--detail);
  margin: 0 auto;
  overflow: hidden;
  /* Feather both ends so entries arrive and leave rather than being
     clipped against a hard edge. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.specbelt-track {
  display: flex;
  width: max-content;
  animation: specbelt-run 38s linear infinite;
}
.specbelt-run {
  display: flex;
  gap: 10px;
  padding-right: 10px;
  flex: 0 0 auto;
}
.specbelt:hover .specbelt-track { animation-play-state: paused; }

@keyframes specbelt-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Motion-sensitive visitors get the full set, wrapped and still. */
@media (prefers-reduced-motion: reduce) {
  .specbelt { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .specbelt-track { width: auto; animation: none; flex-wrap: wrap; justify-content: center; }
  .specbelt-run[aria-hidden="true"] { display: none; }
  .specbelt-run { flex-wrap: wrap; justify-content: center; padding-right: 0; }
}

/* Still the static treatment in "Markets we serve" — only the standards
   list is a belt. */
.loop-specs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s4);
}
.loop-spec {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--label);
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 7px 12px;
}

/* no-JS: the hero reads as a static page with the callouts listed */
html:not(.js) .lh { height: auto; }
html:not(.js) .lh-pin { position: static; height: auto; }
html:not(.js) .lh-callouts {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
html:not(.js) .lh-co { position: static; opacity: 1; transform: none; max-width: none; }
html:not(.js) .lh-dot, html:not(.js) .lh-hint { display: none; }

/* ════════ HERO SUPPORT — sub, CTAs, tagline, hover hotspots ════════ */
.lh-sub {
  font-size: var(--sub);
  font-weight: 300;
  line-height: 1.55;
  color: var(--body2);
  max-width: 64ch;
  margin: 0 auto;
  /* evens the line lengths and keeps a single word off the last line */
  text-wrap: balance;
}
.lh-tagline { font-size: 14px; font-weight: 300; color: var(--muted); }

/* invisible hit targets pinned to each live component anchor; the ring
   is the visible affordance so people know what is hoverable */
.lh-spot {
  position: absolute;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  padding: 0; border: 0; background: transparent;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  pointer-events: auto;
}
.lh-spot::after {
  content: '';
  position: absolute; inset: 16px;
  border-radius: 50%;
  border: 1px solid var(--signal);
  opacity: .5;
  transition: opacity .3s ease, transform .3s ease;
}
.lh-spot:hover::after, .lh-spot.on::after { opacity: 1; transform: scale(1.5); }
.lh-spot:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ════════ SHARED SECTION COMPONENTS ════════ */
.stack-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: var(--sub); font-weight: 300; color: var(--body2); line-height: 1.6; }
.prose p + p { margin-top: var(--s3); }
.prose strong { color: var(--body); font-weight: 500; }
.prose em { font-style: normal; color: var(--signalb); }
p.prose-tight {
  max-width: 900px;
  margin: var(--s4) auto 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--body2);
  line-height: 1.75;
}

.sub-head { max-width: var(--detail); margin: var(--s6) auto var(--s3); display: flex; align-items: center; gap: var(--s2); }
.sub-head span { font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.sub-head::after { content: ''; flex: 1; height: .5px; background: var(--line); }

/* ──── mini cards — the inventory lists, as objects rather than bullets ──── */
.minicards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s3);
  max-width: var(--detail);
  margin: 0 auto;
}
.minicard {
  border: .5px solid var(--line2);
  border-top: 1px solid var(--line2);
  background: var(--card);
  padding: var(--s3) var(--s4) var(--s4);
  transition: border-top-color .4s ease, background .5s ease;
}
.minicard:hover { border-top-color: var(--signal); background: var(--card-focus); }
.minicard-h {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 500; color: var(--fg);
  line-height: 1.35; margin-bottom: 5px;
}
.minicard-t { font-size: 15px; font-weight: 300; color: var(--body2); line-height: 1.55; }

/* ──── process journey — a wrapping rail ────
   Nine stops on an auto-fit grid. A row's worth fits, the rest wrap to the
   next line, and the connector changes with the position: a right arrow
   between stops, a return arrow where a row ends. Which stop ends a row
   depends on the width, so the JS measures offsetTop and tags them —
   nth-child maths would need one rule per breakpoint and would be wrong
   the moment the measure changed. */
.journey { max-width: var(--detail); margin: 0 auto; }
.journey-rail {
  display: grid;
  /* Three per row, so each stop gets ~300px and no label has to wrap more
     than twice. The row gap is a token because the row-end connector spans
     it — when those two drifted apart the arrow stopped reaching the next
     row. */
  --journey-row-gap: var(--s7);
  /* Connectors carry the sequence, so they are drawn stronger than a plain
     hairline: --line2 is an 18% tint, and the 108px row-break line crossing
     the environmental layer disappeared into it entirely. */
  --journey-line: color-mix(in srgb, var(--signal) 55%, transparent);
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: var(--journey-row-gap);
  /* A lane down each side for the path to turn in. Without it the row break
     had to drop through the middle of a stop, straight across its label. */
  padding: 0 var(--s4);
  position: relative;
}

/* The routed path sits behind the stops and is drawn from their measured
   positions, so it re-routes at any column count. Absolutely positioned, so
   it takes no grid cell. */
.journey-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.journey-path-base {
  stroke: var(--journey-line);
  stroke-width: 1;
}
.journey-path-walked {
  stroke: var(--signal);
  stroke-width: 1.5;
  transition: stroke-dasharray .45s ease;
}
.journey-path-head {
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-linecap: square;
}

.journey-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
}
.journey-node {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: .5px solid var(--line2);
  border-radius: 50%;
  /* Opaque, not --card: the routed path runs underneath and a translucent
     node would let it show straight through the number. */
  background: var(--bg);
  font-size: 13px; font-weight: 500; color: var(--body2);
  transition: border-color .3s ease, color .3s ease, background .3s ease, transform .3s ease;
}
.journey-label {
  /* Heavier and brighter than the site's 300-weight body copy on purpose:
     this sits over the 3D layer at its busiest, where --muted at 13/300
     disappeared into the pipework behind it. */
  font-size: 15px; font-weight: 400; line-height: 1.45;
  color: var(--body2);
  transition: color .3s ease;
}

/* the path already walked */
.journey-stop.is-done .journey-node { border-color: var(--signal); color: var(--signal); }
.journey-stop.is-done .journey-label { color: var(--body); }

/* where you are now */
.journey-stop.is-active .journey-node {
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 16%, var(--bg));
  color: var(--signalb);
  transform: scale(1.12);
}
.journey-stop.is-active .journey-label { color: var(--fg); font-weight: 500; }
/* The last stop is where the journey lands, so it reads as arrival rather
   than as the point the line happens to stop at. */
.journey-stop.is-last .journey-node {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--bg);
}
.journey-stop.is-last.is-active .journey-node { background: var(--signalb); border-color: var(--signalb); }

.journey-stop:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 4px; }

.journey-readout {
  max-width: var(--detail);
  margin: var(--s5) auto 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body2);
  text-align: center;
}

/* No JS: every stop is still legible and in order — only the walked-path
   highlight and the row-aware connectors are missing, so the connectors
   are suppressed rather than drawn pointing at nothing. */
html:not(.js) .journey-path { display: none; }
html:not(.js) .journey-readout { display: none; }

@media (prefers-reduced-motion: reduce) {
  .journey-node, .journey-label,
  .journey-stop.is-active .journey-node { transform: none; }
}

@media (max-width: 760px) {
  .journey-rail { grid-template-columns: repeat(2, 1fr); --journey-row-gap: var(--s6); }
}

@media (max-width: 460px) {
  .journey-rail { grid-template-columns: 1fr; --journey-row-gap: var(--s5); }
}

@media (max-width: 560px) {
  .journey-node { width: 40px; height: 40px; font-size: 12px; }
  .journey-label { font-size: 14px; }
}

/* footer legal — sits with the brand block now, not in the bottom rule */
.footer-legal { margin-top: var(--s4); }
.footer-legal div { font-size: 11px; color: var(--muted); line-height: 1.9; }

.callout-band {
  max-width: var(--detail); margin: var(--s6) auto 0;
  border: .5px solid var(--signal); border-radius: 14px;
  background: var(--card-focus); padding: var(--s5) var(--s6);
}
.callout-band-label { font-size: 14px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); margin-bottom: var(--s3); }
.callout-band p { font-size: var(--sub); font-weight: 300; color: var(--body2); line-height: 1.6; }
.callout-band strong { color: var(--body); font-weight: 500; }

.cta-alt { margin-top: var(--s3); font-size: 15px; font-weight: 300; color: var(--muted); }
.cta-alt a { color: var(--signal); }
.cta-alt a:hover { color: var(--signalb); }

/* ════════ THESIS — a full room of its own ════════
   The environmental layer fades in across this section, so the
   statement floats while the die materializes behind it. */
.thesis {
  min-height: 48vh;
  min-height: 48svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6) var(--gutter);
  text-align: center;
}
.thesis-text {
  font-family: 'Space Grotesk', sans-serif;
  max-width: 900px;
}
.thesis-lead {
  display: block;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.3;
  color: var(--fg);
}
.thesis-line {
  display: block;
  margin-top: 10px;
  font-weight: 300;
  font-size: var(--sub);
  line-height: 1.5;
  color: var(--body2);
}
/* multi-paragraph statement body — left-aligned in a readable column so a
   longer "what we make" reads cleanly inside the centered room */
.thesis-body {
  text-align: left;
  max-width: 660px;
  margin: var(--s4) auto 0;
}
.thesis-body .thesis-line { margin-top: 0; }
.thesis-body .thesis-line + .thesis-line { margin-top: var(--s3); }

/* ════════ THE IDEA — statement on the walkthrough ════════ */
.argument-panel {
  padding: var(--s8) var(--gutter);
  position: relative;
  text-align: center;
}
.argument-panel-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.argument-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: var(--s5);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.argument-eyebrow::before,
.argument-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: .5px;
  background: var(--label);
}
.argument-headline {
  font-size: clamp(48px, 8vw, 110px);
  letter-spacing: .04em;
  line-height: .94;
  color: var(--fg);
  text-transform: uppercase;
  margin-bottom: var(--s6);
  transition: color .5s ease;
}
.argument-headline em { font-style: normal; color: var(--signal); }

/* semantic word colours in headers — heat runs orange, water runs blue */
.h-heat { font-style: normal; color: var(--thermal); }
.h-water { font-style: normal; color: var(--signal); }
.argument-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.argument-p {
  font-size: var(--sub);
  font-weight: 300;
  color: var(--body2);
  line-height: 1.6;
  margin-bottom: var(--s3);
  transition: color .5s ease;
}
.argument-p:last-child { margin-bottom: 0; }
.argument-p strong { font-weight: 500; color: var(--body); }
.argument-p em { font-style: italic; color: var(--signalb); }

/* ════════ SECTION SCAFFOLD ════════ */
.section {
  padding: var(--s8) var(--gutter);
}
/* centered section heads — one pattern for physics, audience, model */
.section-head {
  max-width: 1320px;
  margin: 0 auto var(--s6);
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: var(--s3);
  justify-content: center;
}
.section-head .eyebrow::after {
  content: '';
  width: 24px; height: .5px;
  background: var(--label);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: .05em;
  line-height: 1.02;
  color: var(--fg);
  max-width: 800px;
  margin: 0 auto;
}
.section-deck {
  font-size: var(--sub);
  font-weight: 300;
  color: var(--body2);
  line-height: 1.6;
  max-width: 720px;
  margin: var(--s3) auto 0;
  text-wrap: pretty;
}

/* ════════ THE PHYSICS — horizontal focus strip ════════
   Same pattern as The Model: four cards side by side; the one
   being read takes the room. */
/* Fixed equal columns — widths NEVER change on hover, so no card ever
   rescales when you move across the strip. The active card reveals its
   explanation downward; the strip reserves the tall height so the row
   never jumps. */
.phys-strip {
  display: flex;
  gap: var(--s2);
  max-width: 1320px;
  margin: 0 auto;
  /* Fixed reserved height: cards are equal-height (stretch) and the active
     one reveals its body IN PLACE — the strip never grows, so nothing below
     it ever shifts on hover. Reserve tracks width because narrower cards wrap
     the body taller; clamped so it never clips (narrow) or over-reserves
     (ultrawide, where the strip is capped at 1320 and cards are widest). */
  align-items: stretch;
  min-height: clamp(560px, calc(960px - 28vw), 690px);
}
.phys-card {
  flex: 1 1 0;                    /* equal, fixed — hover changes nothing here */
  min-width: 0;
  min-height: 264px;             /* uniform, intentional resting row */
  display: flex;
  flex-direction: column;
  border: .5px solid var(--line2);
  border-radius: 12px;
  background: var(--card);
  padding: var(--s4);
  overflow: hidden;
  cursor: default;
  transition: border-color .4s ease, background .5s ease;
}
/* active state = accent only, no size change; sticky-active (JS), :hover
   fallback without JS, :focus-within for keyboard */
.phys-strip .phys-card.is-active,
html:not(.js) .phys-strip .phys-card:hover,
.phys-strip .phys-card:focus-within {
  border-color: var(--signal);
  background: var(--card-focus);
}

.phys-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
}
.phys-card-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
.phys-card-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 50px);
  letter-spacing: -.02em;
  line-height: .9;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.phys-num-unit {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 20px);
  letter-spacing: -.005em;
  color: var(--signal);
  line-height: 1;
}
.phys-card-cap {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}
.phys-card-h {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg);
}

.phys-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .45s ease .05s, max-height .55s cubic-bezier(.16,1,.3,1), margin-top .45s ease;
}
.phys-card.is-active .phys-card-body,
html:not(.js) .phys-card:hover .phys-card-body,
.phys-card:focus-within .phys-card-body {
  max-height: 480px;
  opacity: 1;
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: .5px solid var(--line);
}
.phys-card-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--body2);
  line-height: 1.7;
}
.phys-card-text strong { color: var(--body); font-weight: 500; }

.physics-signoff {
  text-align: center;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
  max-width: 1320px;
  margin: var(--s6) auto 0;
  padding-top: var(--s4);
  border-top: .5px solid var(--line);
}

/* ════════ 04 · THE STACK — the loop we manufacture ════════
   Flagship CDU block over a four-part component grid. Everything reads
   at rest: the flagship carries the accent border, the four parts show
   their copy in full — no hover-reveal, nothing to hunt for. */
.section.stack { padding-top: var(--s8); }
.stack-lead {
  max-width: 1320px;
  margin: 0 auto var(--s4);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s6);
  align-items: center;
  border: .5px solid var(--signal);
  border-radius: 14px;
  background: var(--card-focus);
  padding: var(--s6);
}
.stack-lead-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--s3);
}
.stack-lead-h {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: .03em;
  line-height: 1.02;
  color: var(--fg);
  max-width: 16ch;
}
.stack-lead-p {
  font-size: var(--sub);
  font-weight: 300;
  color: var(--body2);
  line-height: 1.6;
  margin-top: var(--s3);
  max-width: 48ch;
}
.stack-lead-p strong { color: var(--body); font-weight: 500; }
.stack-lead .loop-specs { justify-content: flex-start; }
.stack-lead-fig { display: flex; align-items: center; justify-content: center; }
.stack-lead-fig svg { width: 100%; max-width: 340px; height: auto; }
.stack-lead-fig .cdu-box  { fill: none; stroke: var(--fg); stroke-width: 1.4; opacity: .8; }
.stack-lead-fig .cdu-dim  { fill: none; stroke: var(--line2); stroke-width: 1; }
.stack-lead-fig .cdu-cool { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; }
.stack-lead-fig .cdu-hot  { fill: none; stroke: var(--thermal); stroke-width: 2.2; stroke-linecap: round; }
.stack-lead-fig .cdu-fill-cool { fill: var(--signal); stroke: none; }
.stack-lead-fig .cdu-fill-hot  { fill: var(--thermal); stroke: none; }
.stack-lead-fig text {
  fill: var(--label);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.stack-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}
.stack-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  /* a hairline rule across the top instead of a boxed border — the cards read
     as rows of one grid rather than as separate tiles. Background is kept so
     the copy stays legible over the environmental layer. */
  border: 0;
  border-top: 1px solid var(--line2);
  border-radius: 0;
  background: var(--card);
  padding: var(--s4) var(--s4) var(--s5);
  transition: border-color .4s ease, background .5s ease;
}
.stack-card:hover, .stack-card:focus-within {
  border-top-color: var(--signal);
  background: var(--card-focus);
}
.stack-card:hover .ico, .stack-card:focus-within .ico { color: var(--signal); opacity: 1; }

/* icon + bracketed index sit on one line under the rule */
.card-top {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.card-top .stack-card-label { line-height: 1; }
.card-top .card-idx { margin-left: auto; }
.card-idx {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
  line-height: 1;
}
.ico {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: .9;
  /* stroke-width is inherited by <use> content; 1.4 at a 50-unit viewBox
     rendered 38px lands on ~1px, matching the reference's hairline weight */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: color .35s ease, opacity .35s ease;
}
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stack-card-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
.stack-card-h {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 28px);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg);
}
.stack-card-role {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}
.stack-card-text {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--body2);
  line-height: 1.7;
  margin-top: var(--s2);
}
.stack-card-text strong { color: var(--body); font-weight: 500; }

/* ════════ WHO WE'RE BUILDING FOR ════════ */
.section.audience { padding-top: var(--s8); padding-bottom: var(--s7); }
.section.audience .section-head { margin-bottom: var(--s7); }

/* every archetype row shares one skeleton:
   header rail (index label — rule — load chip), then a top-aligned
   grid of instrument well and copy. Alternation flips sides; the
   rail keeps the numbering and rhythm identical across all three. */
.aud-row {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--s5) 0 var(--s6);
}
.aud-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.aud-rule {
  flex: 1;
  height: 1px;
  background: var(--journey-line);
}
.aud-load {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: .5px solid var(--line2);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.aud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.aud-row-right .aud-content { order: 1; }
.aud-row-right .aud-visual { order: 2; }
.aud-row-left .aud-visual { order: 1; }
.aud-row-left .aud-content { order: 2; }

.aud-visual {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--card2);
  border: .5px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  transition: background .5s ease;
}
/* instrument crop marks — the same frame on every well */
.aud-visual::before,
.aud-visual::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 1;
}
.aud-visual::before {
  top: 8px; left: 8px;
  border-top: 1px solid var(--label);
  border-left: 1px solid var(--label);
  opacity: .55;
}
.aud-visual::after {
  bottom: 8px; right: 8px;
  border-bottom: 1px solid var(--label);
  border-right: 1px solid var(--label);
  opacity: .55;
}
.aud-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aud-content { max-width: 540px; }
.aud-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
  white-space: nowrap;
}
.aud-h {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: var(--s3);
}
.aud-body {
  font-size: var(--sub);
  font-weight: 300;
  color: var(--body2);
  line-height: 1.6;
  margin-bottom: var(--s4);
}
.aud-body strong { color: var(--body); font-weight: 500; }
.aud-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.aud-spec {
  font-size: 9px;
  letter-spacing: .16em;
  padding: 6px 12px;
  border: .5px solid var(--line2);
  border-radius: 999px;
  color: var(--muted);
}

/* ════════ THE MODEL — focus strip ════════ */
.model-strip {
  display: flex;
  gap: var(--s2);
  max-width: 1320px;
  margin: 0 auto;
  min-height: 480px;
}
.model-card {
  flex: 1;
  min-width: clamp(140px, 13.5vw, 190px); /* siblings never compress past legibility */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: .5px solid var(--line2);
  border-radius: 12px;
  background: var(--card);
  padding: var(--s4);
  overflow: hidden;
  cursor: default;
  transition: flex .55s cubic-bezier(.16,1,.3,1), border-color .4s ease, background .5s ease;
}
.model-strip.has-active .model-card { flex: .7; }
.model-strip .model-card.is-active { flex: 2.4; border-color: var(--signal); background: var(--card-focus); }
html:not(.js) .model-strip:hover .model-card { flex: .7; }
html:not(.js) .model-strip:hover .model-card:hover { flex: 2.4; border-color: var(--signal); background: var(--card-focus); }
.model-strip:focus-within .model-card { flex: .7; }
.model-strip:focus-within .model-card:focus-within { flex: 2.4; border-color: var(--signal); background: var(--card-focus); }

.model-card-head { margin-bottom: var(--s3); }
.model-card-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: var(--s2);
}
/* LABELS — one bigger, bolder treatment across every mono kicker/label */
.eyebrow,
.th-eyebrow,
.argument-eyebrow,
.phys-card-label,
.stack-card-label,
.model-card-label,
.aud-label {
  font-size: 14px;
  font-weight: 500;
}
.model-card-h {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg);
}
.model-card-body {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .45s ease .1s, max-height .55s cubic-bezier(.16,1,.3,1), margin-top .45s ease;
}
.model-card.is-active .model-card-body,
html:not(.js) .model-card:hover .model-card-body,
.model-card:focus-within .model-card-body,
.model-card:focus .model-card-body {
  opacity: 1;
  max-height: 360px;
  margin-top: var(--s3);
}
.model-card-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--body2);
  line-height: 1.7;
}
.model-card-body p strong { color: var(--body); font-weight: 500; }

.model-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: .5px solid var(--line);
}
.model-stat-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4.8vw, 64px);
  letter-spacing: -.02em;
  line-height: .92;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.model-stat-num.is-animating { color: var(--thermal); }
.model-stat-num.is-done { color: var(--signal); }
.model-stat-unit {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -.005em;
  color: var(--signal);
  line-height: 1;
}
.model-stat-range {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-signoff {
  text-align: center;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
  max-width: 1320px;
  margin: var(--s6) auto 0;
  padding-top: var(--s4);
  border-top: .5px solid var(--line);
}

/* ════════ CTA ════════ */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s7) var(--gutter);
  border: .5px solid var(--line2);
  border-radius: 16px;
  background: var(--card);
  text-align: center;
  transition: background .5s ease;
}
.cta-h {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: .04em;
  line-height: .96;
  color: var(--fg);
  text-transform: uppercase;
}
.cta-h em { font-style: normal; color: var(--signal); }
.cta-sub {
  font-size: var(--sub);
  font-weight: 300;
  color: var(--body2);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}
.cta-btn {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 40px;
  background: var(--signal);
  color: #05080e;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
.cta-btn:hover { background: var(--signalb); }

/* ════════ FOOTER ════════ */
footer {
  position: relative;
  z-index: 2;
  /* Bottom padding reserves the brand mark's full height so nothing in the
     footer sits on its letterforms. Derived from the same expression the band
     uses — when that was left at a stale `20vh` the band grew past it and the
     bottom row ended up riding on the word. */
  padding: var(--s8) var(--gutter) calc((100vw - 2 * var(--gutter)) / 4.7095 - var(--s6));
  /* transparent at the top edge — the finale row reads as the footer's
     masthead — easing to solid ground before any text begins */
  background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--bg) 72%, transparent) 90px, var(--bg) 200px);
  transition: background .5s ease;
}
/* The curtain. The grid carries the page ground so the pinned mark is hidden
   behind it and emerges as it travels up past.
   Its lower padding is the blend zone: the background dissolves across it, and
   the footer's own bottom padding is short of the band by exactly --s6, so the
   top of the word sits *inside* this fade rather than in clear space below it.
   No bottom margin — that was 96px of nothing between the links and the mark. */
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s6);
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: var(--s7);
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 58%, transparent 100%);
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: var(--s2);
}
.footer-tagline { font-size: 13px; font-weight: 300; color: var(--muted); }
.footer-col-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s3);
}
.footer-links { display: flex; flex-direction: column; gap: var(--s2); }
.footer-link {
  font-size: 13px;
  color: var(--body2);
  text-decoration: none;
  transition: color .2s;
  width: fit-content;
}
.footer-link:hover { color: var(--signal); }

/* ════════ BRAND MARK — full-bleed wordmark, flush to the page bottom ════════
   Negative gutter margins break it out of the footer's padding so it spans the
   full viewport. The SVG's textLength snaps the word to exactly the viewBox
   width, so it always meets both edges regardless of viewport or font metrics. */
.brand-mark {
  /* Pinned between the content gutters, so the word's left edge sits under
     "Lattice." and its right edge under the Connect column at every width.
     `aspect-ratio` derives the height from the width the box actually gets —
     unlike a vw calculation, that cannot drift from a scrollbar or a
     container inset. 697/148 is the padded viewBox, so the ratio matches the
     artwork exactly and preserveAspectRatio has nothing left to letterbox. */
  /* Fixed, not absolute: the mark holds still against the viewport while the
     footer scrolls up across it. It stays a child of the footer so it paints
     above the footer's own background but beneath the footer's content, which
     is what lets the columns slide over it rather than under it.
     Opacity is driven from scroll — a fixed element is otherwise visible at
     the foot of every screen, not just this one. */
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  aspect-ratio: 697 / 148;
  height: auto;
  z-index: 0;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* Without JS, or with reduced motion, the mark simply sits at the foot of
   the page as it did before — no pinning, nothing to reveal. */
html:not(.js) .brand-mark { position: absolute; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .brand-mark { position: absolute; opacity: 1; will-change: auto; }
}
.brand-mark-svg {
  /* The band is already the right shape, so the artwork simply fills it.
     Both dimensions stay explicit: leaving either auto lets the SVG size
     itself from the other one and spill out of the band. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.brand-mark text {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  /* matches the viewBox the word was measured into (693x144 of ink) */
  font-size: 200px;
  /* A brand statement rather than a watermark: the footer's dominant element.
     The footer's content slides over it, so the grid above carries the page
     ground as a curtain and dissolves at its lower edge. */
  fill: var(--signalb);
  opacity: .32;
  /* Weight, without a bolder face to switch to.
     Only Bebas Neue 400 is self-hosted, and `font-weight: 700` against a
     single-weight family makes the browser synthesise a faux bold, which
     smears a display face at this size. Stroking the glyph in its own colour
     thickens every stem by a measured amount instead, and `paint-order` puts
     the stroke behind the fill so the letterforms stay crisp. The viewBox is
     padded by 4 units so the stroke is not clipped at the ink's edge. */
  stroke: var(--signalb);
  stroke-width: 4;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
/* the light ground swallows the tint — lift it so the mark carries equally */
[data-theme="light"] .brand-mark text { opacity: .40; }
/* Sits among the Connect links rather than in a rule of its own, so it takes
   their alignment and leaves only its monospaced casing to mark it as a
   control rather than a destination. */
.footer-totop {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: var(--s3);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.footer-totop:hover { color: var(--signal); }
.footer-totop .fm-arrow { display: inline-block; transition: transform .25s ease; }
.footer-totop:hover .fm-arrow { transform: translateY(-2px); }

/* ════════ SCROLL TRANSITIONS ════════ */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .nav-right { gap: var(--s3); }
}

/* physics + model + audience restack */
@media (max-width: 980px) {
  .phys-strip { flex-direction: column; min-height: auto; align-items: stretch; }
  .phys-card { flex: 1 1 auto; min-width: 0; background: var(--card-focus); }
  .phys-card .phys-card-body {
    max-height: 800px; opacity: 1; margin-top: var(--s3);
    padding-top: var(--s3); border-top: .5px solid var(--line);
  }
  .physics-signoff { margin-top: var(--s5); }

  .stack-lead { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s5); }
  .stack-lead-fig { order: -1; max-width: 300px; margin: 0 auto; }
  .stack-lead-h, .stack-lead-p { max-width: none; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid.cols-3, .stack-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .callout-band { padding: var(--s5); }

  .model-strip { flex-direction: column; min-height: auto; }
  .model-strip.has-active .model-card { flex: 1 1 auto; }
  .model-strip .model-card.is-active { flex: 1 1 auto; }
  .model-strip:focus-within .model-card { flex: 1 1 auto; }
  .model-strip:focus-within .model-card:focus-within { flex: 1 1 auto; }
  .model-card { flex: 1 1 auto; min-width: 0; background: var(--card-focus); }
  .model-card .model-card-body { opacity: 1; max-height: 360px; margin-top: var(--s3); }

  .aud-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .aud-row-right .aud-visual { order: 1; }
  .aud-row-right .aud-content { order: 2; }
  .aud-head { flex-wrap: wrap; row-gap: var(--s2); }
}

/* touch devices at desktop widths: no hover — keep both strips readable */
@media (hover: none) and (min-width: 981px) {
  .phys-card .phys-card-body {
    opacity: 1; max-height: 480px; margin-top: var(--s3);
    padding-top: var(--s3); border-top: .5px solid var(--line);
  }
  .model-card .model-card-body { opacity: 1; max-height: 380px; margin-top: var(--s3); }
}

/* nav collapse */
@media (max-width: 860px) {
  .nav-link, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* mobile */
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .section { padding: var(--s6) var(--gutter); }
  .section-head { margin-bottom: var(--s5); }
  .argument-panel { padding: var(--s6) var(--gutter); }
  .argument-headline { font-size: clamp(36px, 11vw, 64px); }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-grid.cols-3, .stack-grid.cols-2 { grid-template-columns: 1fr; }
  .stack-lead { padding: var(--s4); }
  .lh-pin { padding: 80px 16px 44px; }
  .lh-stage { width: 92vw; height: calc(92vw * 9 / 16); }
  .lh-co {
    left: 10px !important;
    right: 10px;
    top: auto !important;
    bottom: 16px;
    max-width: none;
  }
  .co-t { font-size: 13px; }
  .cta { padding: var(--s6) var(--s3); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  }

@media (max-width: 420px) {
  .cta-h { font-size: 36px; }
  .aud-h { font-size: 26px; }
}

/* ════════ REDUCED MOTION ════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lh-title, .lh-caption, .lh-stage, .lh-hint {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* the hero unpins; callouts read as a static list under the schematic */
  .lh { height: auto; }
  .lh-pin { position: static; height: auto; }
  .lh-callouts {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 16px;
  }
  .lh-co { position: static; opacity: 1; transform: none; max-width: none; transition: none; }
  .lh-dot, .lh-hint { display: none; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  nav,
  .phys-card-body, .phys-card, .model-card, .model-card-body, .stack-card,
  .theme-toggle::after, .mobile-menu, .nav-burger span {
    transition: none;
  }
  /* both strips: bodies always readable, no motion */
  .phys-card { background: var(--card-focus); }
  .phys-card .phys-card-body {
    max-height: 800px; opacity: 1; margin-top: var(--s3);
    padding-top: var(--s3); border-top: .5px solid var(--line);
  }
  .model-card { background: var(--card-focus); }
  .model-card .model-card-body { opacity: 1; max-height: 360px; margin-top: var(--s3); }
  .model-strip.has-active .model-card { flex: 1; }
  .model-strip .model-card.is-active { flex: 1; }
}
