/* ============ 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). */
:root {
  --black:       #0B0E11;
  --black-ink:   #EDEAE3;
  --black-steel: #98A1AC;
  --black-dim:   #767F8B;   /* unlit statement words — AA 4.7:1 on black */
  --black-line:  rgba(237,234,227,0.16);
  --copper-d:    #D98A4B;   /* copper on black */
  --paper:       #F2EFE8;
  --paper-ink:   #161A1F;
  --paper-steel: #5D6570;
  --paper-line:  rgba(22,26,31,0.16);
  --copper-l:    #8F5525;   /* copper on paper — AA 5.0:1 for 11px labels */
  --btn-fg:      #14181D;
}

*, *::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: #F7F5F0; }

/* 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;
  background-size: cover;
  filter: brightness(0.82);
  opacity: 0; will-change: transform, opacity;
  transition: opacity 1.2s ease;
}
.hero .art.on { opacity: 1; }
/* three shots from two plates — wide, campus close-up, dark plate — each with its own 13s drift */
.hero .shot-a { background-image: url("/assets/01-hero-copper.webp"); background-position: center 30%; transform-origin: 62% 40%; }
.hero .shot-b { background-image: url("/assets/01-hero-copper.webp"); background-position: 72% 48%; transform-origin: 72% 48%; }
.hero .shot-c { background-image: url("/assets/05-dark-copper.webp"); background-position: center 60%; transform-origin: 40% 55%; filter: brightness(0.9); }
.hero .shot-a.play { animation: kb-a 13s ease-in-out forwards; }
.hero .shot-b.play { animation: kb-b 13s ease-in-out forwards; }
.hero .shot-c.play { animation: kb-c 13s ease-in-out forwards; }
@keyframes kb-a { from { transform: scale(1); }                      to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes kb-b { from { transform: scale(1.35); }                   to { transform: scale(1.58) translate(-2%, 1%); } }
@keyframes kb-c { from { transform: scale(1.06) translate(1%, 0); }  to { transform: scale(1.2) translate(-1%, -1.5%); } }
.hero .pins { transition: opacity 0.8s ease; }
.hero[data-shot="b"] .pins, .hero[data-shot="c"] .pins { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero .art.play { animation: none; } .hero .art { transition: none; } }
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,17,0.86) 0%, rgba(11,14,17,0.42) 34%, rgba(11,14,17,0.30) 58%, rgba(11,14,17,0.90) 100%),
    linear-gradient(90deg, rgba(11,14,17,0.82) 0%, rgba(11,14,17,0.45) 45%, rgba(11,14,17,0.10) 75%);
}
.hero .inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; }
/* hero annotation pins — quiet facts pinned to the plate, one copper pin on the line itself */
.hero .pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero .pin { position: absolute; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; opacity: 0; animation: pinfade 0.9s ease forwards; }
.hero .pin::before { content: ""; width: 1px; height: 30px; background: var(--black-ink); opacity: 0.5; }
.hero .pin span { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--black-steel); text-transform: uppercase; }
.hero .pin.line-pin::before { background: var(--copper-d); opacity: 0.9; }
.hero .pin.line-pin span { color: var(--copper-d); }
@keyframes pinfade { to { opacity: 1; } }
.hero .pin:nth-child(1) { animation-delay: 0.7s; }
.hero .pin:nth-child(2) { animation-delay: 1.05s; }
.hero .pin:nth-child(3) { animation-delay: 1.4s; }
@media (max-width: 900px) { .hero .pins { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero .pin { animation: none; opacity: 1; } }
.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: 460vh; }   /* 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.5vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  white-space: nowrap;
}
.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(11,14,17,0.94) 0%, rgba(11,14,17,0.78) 55%, rgba(11,14,17,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 ============ */
.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(11,14,17,0.94) 0%, rgba(11,14,17,0.72) 55%, rgba(11,14,17,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) ============ */
.world { display: none; height: 460vh; position: relative; }
.has-world .world { display: block; }
.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); }
