/* ============ Intertie v2 — Infrastructure Ledger Theater ============
   Acts alternate a near-black ground and a warm paper ground.
   One accent: copper. No rounded corners, no gray drop shadows,
   no decorative gradients (scrims and the conductor pulse only). */
/* ============ Intertie v2.1 — copper on patina (2026-09-06) ============
   Grounds: verdigris-black (oxidized copper) and cool paper. One accent: copper.
   Decision: Flex 2026-09-06 — colour moves to copper + patina; tagline unchanged. */
:root {
  --black:       #0F2F33;   /* patina-black — verdigris ground */
  --black-ink:   #ECEFEA;
  --black-steel: #9FB3B2;
  --black-dim:   #7E9493;   /* unlit statement words — AA ≥4.5:1 on patina */
  --black-line:  rgba(236,239,234,0.16);
  --copper-d:    #D98A4B;   /* copper on patina */
  --paper:       #F2F4F2;   /* cool paper */
  --paper-ink:   #161A1F;
  --paper-steel: #5B6B6E;
  --paper-line:  rgba(22,26,31,0.16);
  --copper-l:    #8F5525;   /* copper on paper — AA 5.0:1 for 11px labels */
  --btn-fg:      #14181F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--black);
  color: var(--black-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }

/* micro-label — the one detail carried across every act */
.micro {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--black-steel);
}
.act-paper .micro { color: var(--paper-steel); }

/* acts */
.act-black { background: var(--black); color: var(--black-ink); }
.act-paper { background: var(--paper); color: var(--paper-ink); }

/* reveal on scroll (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.btn {
  display: inline-block;
  background: var(--copper-d);
  color: var(--btn-fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px; font-weight: 500;
  padding: 14px 30px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 220ms ease;
}
.btn:hover { background: #E8A96B; }
.act-paper .btn { background: #B87333; color: #14181D; }     /* ink on copper: 5.0:1 (Kit B3) */
.act-paper .btn:hover { background: #8A5626; color: #F2F4F2; }

/* hairline link with copper progress segment */
.linkline {
  display: inline-flex; flex-direction: column; gap: 12px;
  text-decoration: none; min-width: 220px;
}
.linkline .lbl { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 24px; }
.linkline .rule { position: relative; height: 1px; background: var(--black-line); }
.linkline .rule::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 44px;
  background: var(--copper-d);
  transition: transform 320ms ease;
}
.linkline:hover .rule::after { transform: translateX(56px); }
.act-paper .linkline .rule { background: var(--paper-line); }
.act-paper .linkline .rule::after { background: var(--copper-l); }

/* ============ Header — hangs over the hero ============ */
header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand svg { display: block; height: 20px; width: auto; }
.brand .hm-c { fill: var(--copper-d); }
.brand .hm-i { fill: var(--black-ink); }
nav { display: flex; gap: 34px; align-items: center; }
nav a.navlink {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  color: var(--black-steel);
  transition: color 220ms ease;
}
nav a.navlink:hover { color: var(--copper-d); }
nav a.navlink.accent { color: var(--copper-d); }
nav a.navlink.accent:hover { color: #E8A96B; }
@media (max-width: 760px) { nav a.navlink:not(.accent) { display: none; } }

/* ============ ACT I — Hero: the headline crosses the plate ============ */
.hero { position: relative; overflow: hidden; min-height: max(92vh, 640px); display: flex; flex-direction: column; }
.hero .art { position: absolute; inset: 0; }
.hero .still img, .hero .film {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.92);
}
/* the still is the LCP; the film fades in over it only once it is actually playing */
.hero .film { opacity: 0; transition: opacity 0.9s ease; }
.hero.film-on .film { opacity: 1; }
.hero .film-toggle {
  position: absolute; right: 32px; bottom: 22px; z-index: 3;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--black-ink); background: rgba(15,47,51,0.55); border: 1px solid var(--black-line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer;
}
.hero .film-toggle:hover { border-color: var(--copper-d); color: #fff; }
.hero .film-toggle:focus-visible { outline: 2px solid var(--copper-d); outline-offset: 3px; }
.hero.film-unavailable .film-toggle { display: none; }
@media (max-width: 720px) { .hero .film-toggle { right: 20px; bottom: 16px; padding: 8px 12px; } }
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,47,51,0.72) 0%, rgba(15,47,51,0.30) 34%, rgba(15,47,51,0.40) 58%, rgba(15,47,51,0.62) 82%, rgba(15,47,51,0.90) 100%)   /* full-bleed backing under the headline band */,
    linear-gradient(90deg, rgba(15,47,51,0.62) 0%, rgba(15,47,51,0.30) 45%, rgba(15,47,51,0.06) 75%);
}
.hero .inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; }
.hero h1 { position: relative; text-shadow: 0 1px 2px rgba(15,47,51,0.6), 0 8px 32px rgba(15,47,51,0.55); }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 6.6rem);
  line-height: 1.04;
  max-width: none;              /* the headline runs into the etched plate */
  margin-bottom: clamp(40px, 7vh, 96px);
}
/* baseline band — content sits ON the rule */
.baseband { position: relative; border-top: 1px solid var(--black-line); }
.baseband .row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) auto;
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding-block: 22px clamp(36px, 6vh, 64px);
}
.baseband .sub { font-size: 15px; line-height: 1.7; color: var(--black-steel); max-width: 52ch; }
.baseband .sub strong { color: var(--black-ink); font-weight: 600; }
@media (max-width: 820px) {
  .baseband .row { grid-template-columns: 1fr; gap: 18px; }
}
/* conductor pulse rides the baseline */
.baseband .pulse {
  position: absolute; top: -2px; left: 0;
  width: 110px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper-d), transparent);
  animation: travel 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}
@keyframes travel {
  0%   { transform: translateX(-110px); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .baseband .pulse { animation: none; opacity: 0; } }

/* ============ ACT II — Statement: the page reads itself ============ */
.statement { padding-block: clamp(120px, 20vh, 220px) clamp(96px, 14vh, 160px); }
.statement .lede {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  font-weight: 500; line-height: 1.32; letter-spacing: -0.01em;
  max-width: 34ch;
}
.statement.js-armed .lede span { color: var(--black-dim); transition: color 0.4s ease; }
.statement.js-armed .lede span.lit { color: var(--black-ink); }
.statement.js-armed .lede em span.lit { color: var(--copper-d); }
.statement .lede em { font-style: normal; }
.statement .after { margin-top: clamp(56px, 9vh, 88px); }

/* ============ ACT III — The Line: a scroll-driven journey from grid to rack.
   The section pins for 240vh while a copper scan-head traces the plate;
   stations light as the current passes them. ============ */
.lineact { padding-block: 0; }
.lineact .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lineact h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
.journey { height: 520vh; }   /* same length as .world so the swap never moves the page */
.j-sticky {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding-block: clamp(32px, 5vh, 56px);
}
.j-sticky > .wrap { width: 100%; }  /* margin-inline:auto blocks flex stretch */
.j-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: var(--copper-l); opacity: 0.85; will-change: transform;
}
.plate .pin span, .plate .pin::before { transition: color 0.35s ease, background 0.35s ease, opacity 0.35s ease; }
.plate .pin.passed span { color: var(--copper-l); }
.plate .pin.passed::before { background: var(--copper-l); opacity: 0.9; }
.j-readout { display: flex; align-items: center; gap: 24px; width: 100%; }
.j-station { min-width: 14ch; }
.j-rule { flex: 1; position: relative; height: 1px; background: var(--paper-line); }
.j-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 0%; background: var(--copper-l); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .j-sticky { position: static; min-height: 0; }
  .j-scan, .j-readout { display: none; }
}
.plate { position: relative; }
.plate img { display: block; width: 100%; height: auto; }
.plate .pin {
  position: absolute; top: 6%;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.plate .pin::before { content: ""; display: block; width: 1px; height: 34px; background: var(--paper-ink); opacity: 0.55; }
.plate .pin span { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--paper-steel); }
@media (max-width: 700px) { .plate .pin { display: none; } }
.plate-caption { border-block: 1px solid var(--paper-line); }
.plate-caption .row { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }

/* pillars as a ledger — rows, not cards */
.ledger { padding-block: clamp(72px, 11vh, 120px); }
.ledger .rows > div {
  border-top: 1px solid var(--paper-line);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(20px, 3.5vw, 56px);
  padding-block: clamp(28px, 4.5vh, 44px);
}
.ledger .rows > div:last-child { border-bottom: 1px solid var(--paper-line); }
.ledger .num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--copper-l); padding-top: 6px; }
.ledger h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.ledger .rows p { font-size: 15.5px; line-height: 1.7; color: var(--paper-steel); max-width: 56ch; }
@media (max-width: 820px) {
  .ledger .rows > div { grid-template-columns: minmax(0,1fr); gap: 10px; }
}

/* ============ ACT IV — Structure diagram ============ */
.structure { padding-block: 0 clamp(96px, 14vh, 150px); }
.structure .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
.structure h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.diagram-scroll { overflow-x: auto; }
.diagram-scroll svg { display: block; min-width: 880px; width: 100%; height: auto; }
.diagram-scroll text { font-family: "IBM Plex Mono", Menlo, monospace; }
.diagram-scroll text.disp { font-family: "Space Grotesk", Inter, sans-serif; }
/* SVG theming (paper act) */
.f-copper { fill: var(--copper-l); }
.f-fg     { fill: var(--paper-ink); }
.f-steel  { fill: var(--paper-steel); }
.f-bg     { fill: var(--paper); }
.s-line   { stroke: rgba(22,26,31,0.38); }
.s-ink    { stroke: var(--paper-ink); }
.s-steel  { stroke: var(--paper-steel); }
.s-copper { stroke: var(--copper-l); }

/* ============ ACT V — Status ledger: the numbers get their size ============ */
.status { border-top: 1px solid var(--paper-line); }
.status .grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.status .grid > div {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(44px, 7vh, 72px) 28px clamp(44px, 7vh, 72px) 0;
}
.status .grid > div + div { border-left: 1px solid var(--paper-line); padding-left: 28px; }
.status .val {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  min-width: 0; overflow-wrap: anywhere;   /* "300 MW–1 GW" may break after the dash instead of crossing the rule */
}
.status .stat { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--copper-l); }
.status .lbl { font-size: 13.5px; color: var(--paper-steel); }
@media (max-width: 880px) {
  .status .grid { grid-template-columns: 1fr 1fr; }
  .status .grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .status .grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--paper-line); }
}
@media (max-width: 520px) {
  .status .grid { grid-template-columns: 1fr; }
  .status .grid > div, .status .grid > div + div { border-left: 0; padding-left: 0; padding-right: 0; padding-block: 28px; border-bottom: 1px solid var(--paper-line); }
  .status .grid > div:last-child { border-bottom: 0; }
  .status .val { font-size: 2rem; }
}

/* ============ ACT VI — Network: dark, the globe ============ */
.netstrip { overflow: hidden; }
.netstrip .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(96px, 14vh, 160px);
}
.netstrip h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; }
.netstrip p { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--black-steel); max-width: 52ch; }
.netstrip .legend {
  margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--black-steel);
}
.netstrip .legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.netstrip .legend .dot.supply { background: #D98A4B; box-shadow: 0 0 8px rgba(217,138,75,0.7); }
.netstrip .legend .dot.demand { background: #6FA3D2; box-shadow: 0 0 8px rgba(111,163,210,0.7); }
.netstrip .cta { margin-top: 30px; }
.globe-box { position: relative; aspect-ratio: 1 / 1; max-width: 500px; width: 100%; margin-left: auto; }
.globe-box canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.globe-box canvas.dragging { cursor: grabbing; }
@media (max-width: 900px) {
  .netstrip .inner { grid-template-columns: 1fr; }
  .globe-box { max-width: 380px; margin-inline: auto; }
}

/* ============ ACT VII — Compliance: a statement, not a strip ============ */
.compliance { position: relative; overflow: hidden; border-top: 1px solid var(--black-line); }
.compliance .art {
  position: absolute; inset: 0;
  background-image: url("/assets/05-dark-copper.webp");
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.compliance .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,47,51,0.94) 0%, rgba(15,47,51,0.78) 55%, rgba(15,47,51,0.45) 100%);
}
.compliance .inner { position: relative; padding-block: clamp(110px, 17vh, 190px); }
.compliance h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); margin-top: 18px; max-width: 14ch; }
.compliance p { margin-top: 26px; font-size: 16px; line-height: 1.8; color: var(--black-steel); max-width: 58ch; }
.compliance p strong { color: var(--black-ink); font-weight: 500; }

/* ============ ACT VIII — FAQ ledger ============ */
.faqact { padding-block: clamp(96px, 14vh, 150px); }
.faqact .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 60px); }
.faqact h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.faq > div {
  border-top: 1px solid var(--paper-line);
  padding-block: 26px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px;
}
.faq > div:last-child { border-bottom: 1px solid var(--paper-line); }
.faq h3 { font-size: 1.05rem; }
.faq p { font-size: 15px; line-height: 1.7; color: var(--paper-steel); max-width: 62ch; }
@media (max-width: 820px) { .faq > div { grid-template-columns: 1fr; gap: 10px; } }

/* ============ Footer ============ */
footer { position: relative; overflow: hidden; }
footer .inner { padding-block: clamp(80px, 12vh, 130px) clamp(56px, 8vh, 88px); }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) auto;
  gap: clamp(24px, 4vw, 72px); align-items: end;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-boiler { font-size: 14.5px; line-height: 1.75; color: var(--black-steel); max-width: 60ch; }
.foot-cta { justify-self: end; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } .foot-cta { justify-self: start; } }
.foot-row {
  margin-top: clamp(40px, 6vh, 64px); padding-top: 18px;
  border-top: 1px solid var(--black-line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
}
.foot-row a { font-size: 13px; color: var(--black-steel); text-decoration: none; border-bottom: 1px solid var(--black-line); transition: color 220ms ease, border-color 220ms ease; }
.foot-row a:hover { color: var(--copper-d); border-color: var(--copper-d); }
.foot-row .legal { font-size: 12px; color: var(--black-steel); }
/* ============ Subpage hero ============ */
.hero > .wrap, .page-hero > .wrap { width: 100%; }   /* margin-inline:auto blocks flex stretch (a short H1 floated to the centre) */
.page-hero { position: relative; overflow: hidden; min-height: max(58vh, 460px); display: flex; flex-direction: column; }
.page-hero .inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; }
.page-hero .kicker { display: block; margin-bottom: 18px; color: var(--copper-d); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.05; margin-bottom: clamp(36px, 6vh, 72px); max-width: 18ch; }
.page-hero .art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; }
.page-hero .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,47,51,0.94) 0%, rgba(15,47,51,0.72) 55%, rgba(15,47,51,0.4) 100%); }
nav a.navlink[aria-current="page"] { color: var(--copper-d); }

/* ============ Generic text act (subpages) ============ */
.textact { padding-block: clamp(80px, 12vh, 140px); }
.textact h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; }
.textact .body { margin-top: 22px; font-size: 16px; line-height: 1.8; max-width: 58ch; }
.act-black .textact .body { color: var(--black-steel); }
.act-paper .textact .body { color: var(--paper-steel); }
.act-black .textact .body strong { color: var(--black-ink); font-weight: 500; }

/* ============ Ledger variants ============ */
.ledger .tag {
  display: block; margin-top: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-l);
}
.ledger .rows > div.two { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); }

/* ============ Chain band (about) ============ */
.chain-band { border-block: 1px solid var(--paper-line); }
.chain-band img { display: block; width: 100%; height: auto; }
.chain-band .cap { display: flex; justify-content: center; padding-block: 14px; border-top: 1px solid var(--paper-line); }

/* ============ Footer site links ============ */
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a {
  font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 600;
  text-decoration: none; color: var(--black-ink); width: max-content;
  transition: color 220ms ease;
}
.foot-links a:hover { color: var(--copper-d); }

/* ============ The world — isometric 3D journey (desktop + WebGL; .journey is the fallback) ============ */
.has-world .journey { display: none; }
.w-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.w-ui {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: clamp(96px, 12vh, 130px) clamp(36px, 5vh, 56px);
}
.w-ui > .wrap { width: 100%; }  /* margin-inline:auto blocks flex stretch */
.w-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.w-layer { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }
.w-layer h3 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; color: var(--paper-ink); }
.w-layer .desc { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.12em; color: var(--paper-steel); }
.w-layer.swap h3, .w-layer.swap .desc { animation: wswap 0.55s ease both; }
@keyframes wswap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.w-readout { display: flex; align-items: center; gap: 24px; flex: 1; max-width: 480px; }
.w-station { min-width: 14ch; text-align: left; }
.w-rule { flex: 1; position: relative; height: 1px; background: var(--paper-line); }
.w-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 0%; background: var(--copper-l); }

/* ============ Act III world v3 — five chapters (2026-09-05) ============ */
.has-world .world { display: block; }
.world { display: none; position: relative; height: 520vh; background: var(--paper); }
.world .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; }
#intertie-world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.world .stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(21,26,30,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(21,26,30,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent 8%, black 35%, black 72%, transparent 96%);
  opacity: .45;
  z-index: 2;
}
.world .stage-vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 57% 50%, transparent 0 40%, rgba(242,239,232,.15) 70%, rgba(242,239,232,.72) 100%); }

.world .stage-top { position: absolute; z-index: 5; top: clamp(84px, 10vh, 112px); left: clamp(24px, 4vw, 68px); right: clamp(24px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; font: 500 10px/1 IBM Plex Mono, monospace; letter-spacing: .18em; }
.world .chapter { display: flex; align-items: center; gap: 10px; }
.world .chapter i { width: 48px; height: 1px; background: var(--paper-line); }
.world .principle { display: flex; gap: 30px; color: var(--paper-steel); }

.world .stage-copy { position: absolute; z-index: 5; left: clamp(24px, 4vw, 68px); bottom: clamp(48px, 8vh, 88px); width: min(43vw, 580px); }
.world .eyebrow { display: block; margin-bottom: 18px; font: 500 10px/1 IBM Plex Mono, monospace; letter-spacing: .2em; color: var(--copper-l); }
.world .stage-copy h2 { margin: 0; font: 500 clamp(2.2rem, 4.8vw, 5rem)/.98 Space Grotesk, sans-serif; letter-spacing: -.045em; }
.world .stage-copy p { max-width: 48ch; margin: 24px 0 0; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; color: var(--paper-steel); }
.world .stage-copy.is-changing > * { animation: copy-in .55s cubic-bezier(.2,.7,.2,1) both; }
.world .stage-copy.is-changing h2 { animation-delay: .04s; }
.world .stage-copy.is-changing p { animation-delay: .08s; }
@keyframes copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.world .stage-facts { position: absolute; z-index: 5; right: clamp(50px, 8vw, 120px); bottom: clamp(58px, 9vh, 100px); width: min(260px, 22vw); padding-left: 18px; border-left: 2px solid var(--copper-l); display: grid; gap: 8px; }
.world .fact-label, .world .fact-detail { font: 500 9px/1.4 IBM Plex Mono, monospace; letter-spacing: .16em; color: var(--paper-steel); text-transform: uppercase; }
.world .stage-facts strong { font: 600 20px/1 Space Grotesk, sans-serif; letter-spacing: -.02em; }

.world .stage-nav { position: absolute; z-index: 8; right: clamp(22px, 3vw, 52px); top: 50%; transform: translateY(-50%); display: grid; gap: 15px; }
.world .stage-nav button { position: relative; appearance: none; border: 0; background: none; width: 24px; height: 24px; padding: 0; cursor: pointer; }
.world .stage-nav button::after { content: ""; position: absolute; top: 10px; right: 0; width: 9px; height: 2px; background: rgba(21,26,30,.3); transition: width .25s ease, background .25s ease; }
.world .stage-nav button span { position: absolute; right: 30px; top: 5px; opacity: 0; transform: translateX(5px); transition: .25s ease; font: 500 9px/1 IBM Plex Mono, monospace; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.world .stage-nav button:hover span, .world .stage-nav button:focus-visible span, .world .stage-nav button[aria-current] span { opacity: 1; transform: none; }
.world .stage-nav button[aria-current]::after { width: 24px; background: var(--copper-l); }

.world .scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font: 500 9px/1 IBM Plex Mono, monospace; letter-spacing: .16em; color: var(--paper-steel); transition: opacity .35s ease; }
.world .scroll-cue i { width: 42px; height: 1px; background: var(--paper-line); position: relative; overflow: hidden; }
.world .scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--copper-l); transform: translateX(-100%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50%, 100% { transform: translateX(100%); } }
.world.has-progress .scroll-cue { opacity: 0; }

.world.is-overview .stage-copy { width: min(54vw, 760px); }
.world.is-overview .stage-copy h2 { font-size: clamp(3rem, 6.4vw, 7rem); max-width: 10ch; }
.world.is-overview .stage-copy p { max-width: 54ch; }
.world.is-overview .stage-facts { border-left-color: var(--paper-ink); }

@media (max-width: 820px) {
    .world .principle span:first-child { display: none; }
  .world .stage-top { top: 84px; }
  .world .stage-copy { width: calc(100% - 48px); bottom: 84px; }
  .world .stage-copy h2 { font-size: clamp(2.15rem, 10vw, 4rem); max-width: 11ch; }
  .world .stage-copy p { max-width: 33ch; }
  .world .stage-facts { top: 124px; right: 24px; bottom: auto; width: 42vw; }
  .world .stage-facts strong { font-size: 16px; }
  .world .stage-nav { right: 18px; }
  .world .stage-nav button span { display: none; }
  .world { height: 520vh; }
  .world.is-overview .stage-copy { width: calc(100% - 48px); }
  .world.is-overview .stage-copy h2 { font-size: clamp(2.6rem, 12vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .world .scroll-cue { display: none; }
  .world .stage-copy.is-changing > *, .world .scroll-cue i::after { animation: none; }
}


.no-webgl 
/* projected labels (perf/UI pass 2026-09-05) */
.world .stage-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.world .w-label { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity;
  font: 500 10px/1 IBM Plex Mono, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-steel);
  padding: 3px 6px 5px; border-bottom: 1px solid rgba(89,97,106,.55); background: rgba(242,239,232,.82); transition: opacity .25s ease; }
.world .w-label.accent { color: var(--copper-l); border-bottom-color: var(--copper-l); }
.world .w-label.small { font-size: 9px; letter-spacing: .14em; }


/* ============ v2.2 — restructure (2026-09-07): mobile menu, hero explanation,
   "where to begin" rows, run-sheet field sample, /start page, stacked diagram ============ */

/* --- mobile menu: the hidden links get a real menu below 760px --- */
.nav-toggle {
  display: none;
  appearance: none; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--black-ink); background: rgba(15,47,51,0.55);
  border: 1px solid var(--black-line); padding: 9px 14px;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--copper-d); color: #fff; outline: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--copper-d); outline-offset: 3px; }
@media (max-width: 760px) {
  .js header nav a.navlink.accent { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black);
    border-top: 1px solid var(--black-line); border-bottom: 1px solid var(--black-line);
    padding: 6px 0 10px;
  }
  .js header.nav-open nav { display: flex; }
  .js header.nav-open nav a.navlink, .js header.nav-open nav a.navlink.accent {
    display: block; padding: 15px clamp(20px, 5vw, 72px); font-size: 13px;
    border-top: 1px solid var(--black-line);
  }
  .js header.nav-open nav a.navlink:first-child { border-top: 0; }
  html:not(.js) header nav { flex-wrap: wrap; gap: 14px 22px; justify-content: flex-end; }
  html:not(.js) header nav a.navlink:not(.accent) { display: inline; }
}

/* --- hero: the precise sentence is the explanation, not a footnote --- */
.hero .baseband .sub { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: var(--black-ink); max-width: 56ch; }
.hero .baseband .sub strong { color: var(--copper-d); }

/* --- where to begin: three rows, demand first, one action each --- */
.begin { padding-block: clamp(88px, 13vh, 150px) clamp(80px, 12vh, 140px); border-top: 1px solid var(--black-line); }
.begin .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 52px); }
.begin h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.begin .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: clamp(18px, 3vw, 48px); align-items: start;
  border-top: 1px solid var(--black-line); padding-block: clamp(24px, 4vh, 38px);
  text-decoration: none; color: inherit;
}
.begin .row:last-child { border-bottom: 1px solid var(--black-line); }
.begin .num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--copper-d); padding-top: 6px; }
.begin .who { display: flex; flex-direction: column; gap: 8px; }
.begin .who strong { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; transition: color 220ms ease; }
.begin .who em { font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black-steel); }
.begin .what { font-size: 15.5px; line-height: 1.7; color: var(--black-steel); max-width: 52ch; }
.begin .go { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; color: var(--copper-d); white-space: nowrap; padding-top: 4px; }
.begin .row:hover .who strong, .begin .row:focus-visible .who strong { color: var(--copper-d); }
.begin .row:focus-visible { outline: 2px solid var(--copper-d); outline-offset: 4px; }
.begin .after { margin-top: clamp(36px, 6vh, 56px); display: flex; gap: 32px; flex-wrap: wrap; align-items: baseline; }
@media (max-width: 820px) {
  .begin .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .begin .num { padding-top: 0; }
  .begin .go { padding-top: 4px; }
}

/* --- run sheet: field structure, synthetic rows, the NDA boundary --- */
.sheet-sample { padding-bottom: clamp(88px, 13vh, 150px); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sample-tag { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--black); background: var(--copper-d); padding: 4px 8px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--black-line); }
table.sheet { width: 100%; min-width: 960px; border-collapse: collapse; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
table.sheet th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--black-steel); padding: 14px 14px 12px 0; border-bottom: 1px solid var(--black-line); white-space: nowrap; }
table.sheet td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--black-line); color: var(--black-ink); white-space: nowrap; vertical-align: top; }
table.sheet th:last-child, table.sheet td:last-child { padding-right: 0; }
table.sheet td.id { font-weight: 500; }
table.sheet td.id.demand { color: #6FA3D2; }
table.sheet td.id.supply { color: var(--copper-d); }
table.sheet td.nda { color: var(--black-steel); font-style: italic; }
table.sheet td.stage { color: var(--black-steel); letter-spacing: 0.08em; font-size: 11px; }
.sheet-bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin-top: 28px; }
.sheet-bounds p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--black-steel); max-width: 52ch; }
.sheet-bounds strong { color: var(--black-ink); font-weight: 500; }
.sheet-note { margin-top: 18px; font-size: 12.5px; line-height: 1.7; color: var(--black-steel); max-width: 80ch; }
@media (max-width: 700px) { .sheet-bounds { grid-template-columns: 1fr; } }

/* --- /start: three roles, one shown at a time when JS is present --- */
.startact { padding-block: clamp(56px, 8vh, 88px) clamp(96px, 14vh, 150px); }
.role-nav { display: flex; align-items: stretch; gap: 0; border-block: 1px solid var(--paper-line); margin-bottom: clamp(44px, 7vh, 72px); overflow-x: auto; }
.role-nav a {
  flex: 1 0 auto; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px 18px 0; margin-right: 22px;
  text-decoration: none; color: var(--paper-steel);
  font-family: "Space Grotesk", sans-serif; font-size: 15.5px; font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color 220ms ease, border-color 220ms ease;
}
.role-nav a .k { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-l); }
.role-nav a:hover { color: var(--paper-ink); }
.role-nav a[aria-current="true"] { color: var(--paper-ink); border-bottom-color: var(--copper-l); }
.role-nav a:focus-visible { outline: 2px solid var(--copper-l); outline-offset: -2px; }
.role + .role { margin-top: clamp(72px, 11vh, 120px); padding-top: clamp(56px, 8vh, 88px); border-top: 1px solid var(--paper-line); }
.js-roles .role + .role { margin-top: 0; padding-top: 0; border-top: 0; }
.role > .role-head .micro { display: block; color: var(--copper-l); margin-bottom: 16px; }
.role > .role-head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.role > .role-head .lead { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: var(--paper-steel); max-width: 56ch; }
.role .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 6vh, 56px); }
.role .cols > div { border-top: 1px solid var(--paper-line); padding-top: 20px; }
.role h3 { font-size: 1.05rem; margin-bottom: 14px; }
.role ol, .role ul { padding-left: 0; list-style: none; counter-reset: item; }
.role ol li, .role ul li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.65; color: var(--paper-steel); }
.role ol li + li, .role ul li + li { margin-top: 10px; }
.role ol li::before { counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--copper-l); }
.role ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 1px; background: var(--copper-l); }
.role .cols p { font-size: 15px; line-height: 1.7; color: var(--paper-steel); }
.role .cols strong, .role li strong { color: var(--paper-ink); font-weight: 500; }
.role .act { margin-top: clamp(32px, 5vh, 48px); display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.role .act .hint { font-size: 13.5px; line-height: 1.6; color: var(--paper-steel); max-width: 44ch; }
.role .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 6vh, 56px); }
.role .split > div { border-top: 1px solid var(--paper-line); padding-top: 22px; }
.role .split h3 { font-size: 1.35rem; margin-bottom: 8px; }
.role .split .sub { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-steel); margin-bottom: 18px; display: block; }
.role .split h4 { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; margin: 18px 0 10px; }
.role .split .act { margin-top: 24px; }
@media (max-width: 900px) { .role .cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .role .split { grid-template-columns: 1fr; }
  /* phones: the three roles stack as a list (a horizontal strip hid the third tab with no cue) */
  .role-nav { flex-direction: column; overflow: visible; }
  .role-nav a { padding: 14px 0 14px 16px; margin: 0; font-size: 15px; border-bottom: 1px solid var(--paper-line); border-left: 3px solid transparent; white-space: normal; }
  .role-nav a:last-child { border-bottom: 0; }
  .role-nav a[aria-current="true"] { border-bottom-color: var(--paper-line); border-left-color: var(--copper-l); }
}

/* boundary band (dark) shared by /start */
.bounds { border-top: 1px solid var(--black-line); }
.bounds .inner { padding-block: clamp(80px, 12vh, 130px); }
.bounds h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 16px; max-width: 22ch; }
.bounds .sheet-bounds { margin-top: clamp(32px, 5vh, 48px); }
.bounds .data { margin-top: clamp(32px, 5vh, 48px); padding-top: 18px; border-top: 1px solid var(--black-line); font-size: 13.5px; line-height: 1.7; color: var(--black-steel); max-width: 70ch; }

/* --- structure diagram: stacked list replaces the wide SVG on narrow screens --- */
.stack { display: none; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--paper-line); }
.stack li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: baseline; padding: 16px 0 16px 18px; border-bottom: 1px solid var(--paper-line); position: relative; }
.stack li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(22,26,31,0.38); }
.stack li strong { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.stack li span { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--paper-steel); line-height: 1.5; }
.stack li.hub::before { width: 3px; background: var(--copper-l); }
.stack li.hub strong { color: var(--copper-l); }
.stack li.sub { padding-left: 34px; }
.stack li.sub::before { left: 16px; }
.stack li.sub strong { font-size: 0.98rem; }
.stack li.lead { grid-template-columns: 1fr; padding-left: 0; }
.stack li.lead::before { display: none; }
.stack li.lead span { font-family: "Inter", sans-serif; font-size: 13.5px; letter-spacing: 0; }
@media (max-width: 700px) { .diagram-scroll { display: none; } .stack { display: block; } }

/* --- run-sheet sample on phones: each synthetic row becomes a labelled card (no 11-column side-scroll) --- */
@media (max-width: 700px) {
  .sheet-sample .table-scroll { overflow: visible; border-top: 0; }
  table.sheet.stacked { min-width: 0; display: block; }
  table.sheet.stacked thead { display: none; }
  table.sheet.stacked tbody { display: block; }
  table.sheet.stacked tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 2px; border-top: 1px solid var(--black-line); padding: 16px 0 10px; }
  table.sheet.stacked tr:last-child { border-bottom: 1px solid var(--black-line); }
  table.sheet.stacked td { display: block; border: 0; padding: 5px 0; white-space: normal; font-size: 12.5px; }
  table.sheet.stacked td::before { content: attr(data-l); display: block; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--black-steel); margin-bottom: 3px; font-style: normal; }
  table.sheet.stacked td.id { grid-column: 1 / -1; font-size: 14px; padding-bottom: 8px; }
  table.sheet.stacked td.id::before { content: attr(data-l) " · listing"; }
  table.sheet.stacked td.stage { font-size: 11.5px; }
}

/* Locally packaged existing brand typefaces. */
@font-face{font-family:"Inter";src:url("/assets/fonts/Inter-400.woff2") format("woff2"),url("/assets/fonts/Inter-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url("/assets/fonts/Inter-500.woff2") format("woff2"),url("/assets/fonts/Inter-500.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/assets/fonts/SpaceGrotesk-500.woff2") format("woff2"),url("/assets/fonts/SpaceGrotesk-500.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/assets/fonts/SpaceGrotesk-600.woff2") format("woff2"),url("/assets/fonts/SpaceGrotesk-600.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/IBMPlexMono-400.woff2") format("woff2"),url("/assets/fonts/IBMPlexMono-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/assets/fonts/IBMPlexMono-500.woff2") format("woff2"),url("/assets/fonts/IBMPlexMono-500.ttf") format("truetype");font-weight:500;font-display:swap}

/* v4 content fits the existing visual system. */
.copy-section{padding-block:clamp(64px,9vh,112px)}.copy-section>.wrap>.head{margin-bottom:24px}.copy-section h2{font-size:clamp(2rem,4vw,3.1rem)}.copy-section .ledger{padding-block:0}.statement-support{margin-top:32px;font-size:17px;line-height:1.8;color:var(--black-steel);max-width:64ch}.model-note{max-width:72ch;margin:0 0 32px;line-height:1.8;color:var(--paper-steel)}.globe-caption{text-align:center;color:var(--black-steel);margin-top:-20px;position:relative}.status .val{font-size:clamp(1.65rem,2.6vw,2.75rem)}
