@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
      --bg: #07080c;
      --ink: #f4f2ee;
      --muted: #a39e96;
      --quiet: #8a857c;
      --line: rgba(255, 255, 255, 0.14);
      --brand: #8eb6ff;
      --energy: var(--brand);
      --live: #ff8f70;
      --consumer: #d7c4a8;
      --infra: #8fd0c8;
      --accent: var(--energy);
      --accent-ink: #101620;
      --field: var(--energy);
      --pad: 64px;
      --sec: 112px;
      --head-gap: 20px;
      --body-gap: 48px;
      --card-gap: 32px;
      --axis: 44px;
      --gutter: 12px;
      --label-gap: 8px;
      color-scheme: dark;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    html, body { margin: 0; min-height: 100%; }
    body {
      background: var(--bg);
      color: var(--ink);
      font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
      font-weight: 400;
      letter-spacing: -0.011em;
      line-height: 1.6;
      overflow-x: hidden;
    }
    body[data-mode="energy"] { --accent: var(--energy); --accent-ink: #101620; --field: var(--energy); }
    body[data-mode="live"]   { --accent: var(--live); --accent-ink: #1c100c; --field: var(--live); }
    body[data-mode="infra"]  { --accent: var(--infra); --accent-ink: #10201d; --field: var(--infra); }
    ::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); }

    canvas#field {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    .screen {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      padding: 8px var(--pad) 28px;
    }

    .screen > header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 36px;
      flex: none;
    }
    .brand {
      color: inherit;
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.03em;
    }
    .modes {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
    }
    .modes button {
      appearance: none;
      border: 0;
      background: transparent;
      height: 36px;
      padding: 0 16px 0 14px;
      border-radius: 999px;
      color: #c8c2ba;
      font: 500 15px/1 "Instrument Sans", sans-serif;
      letter-spacing: -0.02em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .modes button[aria-selected="true"] {
      background: var(--ink);
      color: #14120f;
    }
    .modes button::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      box-shadow: 0 0 0 0 transparent;
    }
    .modes button[aria-selected="true"]::before { background: var(--accent); }
    .modes button:hover { color: var(--ink); }
    .modes button[aria-selected="true"]:hover { color: #14120f; }
    .modes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    .talk {
      margin-left: 8px;
      color: var(--quiet);
      text-decoration: none;
      font-size: 15px;
      letter-spacing: -0.02em;
    }
    .talk:hover { color: var(--ink); }
    .talk:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

    .intro {
      flex: none;
      max-width: 760px;
      padding: 12px 0 0;
    }
    h1 {
      margin: 0;
      text-wrap: balance;
      font-size: 64px;
      font-weight: 500;
      letter-spacing: -0.046em;
      line-height: 0.96;
    }
    h1 span { display: block; white-space: nowrap; }
    .intro .lede {
      margin: 22px 0 0;
      max-width: 40em;
      color: #d5d0c8;
      font-size: 18px;
      line-height: 1.5;
    }
    .proof {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 0;
      margin: 14px 0 0;
      padding: 0;
      list-style: none;
      color: var(--quiet);
      font-size: 15px;
      line-height: 1.45;
    }
    .proof li:not(:last-child)::after { content: "·"; margin: 0 0.55em; color: #6f6a62; }
    .intro .modes { margin-top: 28px; }

    .charthead {
      flex: none;
      min-height: 36px;
      margin-top: 24px;
      padding-left: var(--axis);
      padding-right: var(--gutter);
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .charthead .titles { min-width: 0; }
    .charttitle, .yname { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; }
    .yname { text-align: right; }
    .charttitle { height: 20px; font-size: 14px; line-height: 20px; }
    #kicker { font-weight: 500; }
    #context { color: var(--muted); }
    .yname {
      height: 16px;
      color: var(--quiet);
      font-size: 13px;
      line-height: 16px;
    }

    .plot {
      flex: none;
      height: clamp(280px, 31vh, 440px);
      cursor: crosshair;
      touch-action: pan-y;
    }


    .dock {
      flex: none;
      display: grid;
      grid-template-columns: 196px 220px 168px minmax(0, 1fr);
      column-gap: 28px;
      align-items: start;
      margin-top: 8px;
      padding: 8px var(--gutter) 0 var(--axis);
    }
    .readouts p { margin: 0; min-width: 0; }
    .k {
      display: block;
      height: 18px;
      overflow: hidden;
      white-space: nowrap;
      color: var(--quiet);
      font-size: 13px;
      line-height: 18px;
    }
    .v {
      display: block;
      height: 46px;
      margin-top: 2px;
      overflow: hidden;
      white-space: nowrap;
      font-size: 40px;
      font-weight: 500;
      letter-spacing: -0.048em;
      line-height: 46px;
      font-variant-numeric: tabular-nums;
    }
    .decision {
      min-width: 0;
      padding-left: 28px;
      border-left: 1px solid var(--line);
    }
    .rule {
      display: block;
      height: 18px;
      overflow: hidden;
      white-space: nowrap;
      color: var(--accent);
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 12px;
      line-height: 18px;
    }
    .decision strong {
      display: block;
      height: 46px;
      margin-top: 2px;
      overflow: hidden;
      font-size: 18px;
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.25;
    }
    .why {
      display: block;
      height: 40px;
      margin-top: 4px;
      overflow: hidden;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .page {
      position: relative;
      z-index: 3;
      background: var(--bg);
      border-top: 1px solid var(--line);
    }
    .index {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 28px;
      padding: 28px var(--pad) 0;
    }
    .index a {
      color: #c4bfb6;
      text-decoration: none;
      font-size: 15px;
      letter-spacing: -0.015em;
    }
    .index a:hover { color: var(--ink); }
    .page section { padding: 72px var(--pad); scroll-margin-top: 20px; }
    .sec-head { max-width: 38em; }
    .page h2 {
      margin: 0;
      max-width: 16em;
      font-size: 40px;
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 1.08;
    }
    .sec-head p, .ask {
      margin: 14px 0 0;
      max-width: 36em;
      color: #d5d0c8;
      font-size: 18px;
      line-height: 1.5;
    }
    .facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 28px 32px;
      margin-top: 36px;
    }
    .facts h3 {
      margin: 0;
      color: #9a948c;
      font-size: 14px;
      font-weight: 400;
    }
    .facts p {
      margin: 8px 0 0;
      font-size: 20px;
      font-weight: 500;
      letter-spacing: -0.028em;
      line-height: 1.3;
    }
    .rows { margin-top: 40px; max-width: 40em; }
    .row {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr);
      gap: 8px 16px;
      padding: 28px 0 0;
    }
    .row + .row { margin-top: 8px; }
    .row .n, .stream .n {
      color: #9a948c;
      font-size: 14px;
      font-variant-numeric: tabular-nums;
      padding-top: 6px;
    }
    .page h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.2;
    }
    .row .body, .aside, .step p, .defs p, .sector .desc, .stream p, .block .body {
      margin: 8px 0 0;
      max-width: 38em;
      color: #cfc9c0;
      font-size: 16.5px;
      line-height: 1.55;
    }
    .io { margin: 12px 0 0; display: grid; gap: 4px; max-width: 34em; }
    .io span {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 10px;
      color: #cfc9c0;
      font-size: 15px;
      line-height: 1.45;
    }
    .io b { font-weight: 500; color: #9a948c; }
    .kicker {
      margin: 36px 0 0;
      color: #d5d0c8;
      font-size: 16px;
    }
    .streams {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px 48px;
      margin-top: 20px;
    }
    .stream h3 { font-size: 20px; }
    .aside { margin-top: 28px; }
    .block { margin-top: 56px; max-width: 40em; }
    .block h3 { font-size: 26px; }
    .flow { margin-top: 22px; }
    .flow p { margin: 0 0 12px; font-size: 17px; line-height: 1.4; }
    .flow strong { font-weight: 500; }
    .flow span { display: block; margin-bottom: 2px; color: #9a948c; font-size: 13px; font-weight: 400; }
    .protocols { margin: 8px 0 0; color: #9a948c; font-size: 14px; }
    .sector {
      max-width: 40em;
      padding: 26px 0;
      border-top: 1px solid var(--line);
    }
    .sector-head {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: baseline;
    }
    .sector h3 { font-size: 22px; }
    .status {
      margin: 0;
      flex: none;
      color: #b7b1a8;
      font-size: 14px;
      line-height: 1.3;
      text-align: right;
    }
    .status .who { display: block; margin-top: 2px; color: #8f8a82; font-size: 13px; }
    a.link, button.link {
      appearance: none;
      display: inline-block;
      text-decoration: none;
      margin-top: 12px;
      padding: 0;
      border: 0;
      background: none;
      color: var(--ink);
      font: 500 15px/1 "Instrument Sans", sans-serif;
      letter-spacing: -0.015em;
      cursor: pointer;
      border-bottom: 1px solid rgba(255, 255, 255, 0.35);
      padding-bottom: 2px;
    }
    button.link:hover { color: var(--accent); border-bottom-color: var(--accent); }
    button.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .steps {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0 28px;
      margin: 36px 0 0;
      padding: 22px 0 0;
      list-style: none;
    }
    .steps::before {
      content: "";
      position: absolute;
      top: 4px;
      left: 4px;
      right: calc(25% - 4px);
      height: 1px;
      background: rgba(255, 255, 255, 0.28);
    }
    .step { position: relative; min-width: 0; padding-top: 16px; }
    .step::before {
      content: "";
      position: absolute;
      top: -22px;
      left: 0;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--ink);
      box-shadow: 0 0 0 4px var(--bg);
    }
    .step .when { margin: 0; color: #9a948c; font-size: 14px; font-weight: 400; }
    .step h3 { margin: 8px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
    .step p { margin: 8px 0 0; max-width: 28em; }
    .note { margin: 22px 0 0; color: #9a948c; font-size: 14px; font-weight: 400; }
    .defs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px 56px;
      max-width: 920px;
      margin-top: 36px;
    }
    .defs h3 { font-size: 18px; }
    .defs p { margin-top: 6px; }
    .people .prose {
      margin: 18px 0 0;
      color: #ddd8d0;
      font-size: 19px;
      line-height: 1.55;
    }
    .contact h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
    .contact .ask { font-size: 18px; }
    .mail {
      display: inline-block;
      margin-top: 28px;
      color: var(--ink);
      font-size: 26px;
      letter-spacing: -0.03em;
      text-decoration: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.4);
      padding-bottom: 3px;
    }
    .mail:hover { border-bottom-color: var(--accent); }
    .site-foot {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 24px var(--pad) 36px;
      border-top: 1px solid var(--line);
      color: #9a948c;
      font-size: 14px;
    }

    .site-nav {
      position: sticky;
      top: 0;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      height: 56px;
      padding: 0 var(--pad);
      background: rgba(7, 8, 12, 0.9);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .site-nav nav { display: flex; align-items: center; gap: 28px; }
    .site-nav a {
      color: #9a948c;
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    .site-nav a:hover { color: var(--ink); }
    .site-nav a[aria-current="page"] { color: var(--ink); }
    .site-nav .brand { color: var(--ink); }
    .site-nav .talk {
      margin-left: 8px;
      display: inline-flex;
      align-items: center;
      height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      background: var(--ink);
      color: #14120f;
    }
    .site-nav .talk:hover { background: #fff; color: #14120f; }
    .nav-burger {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      margin-left: auto;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
    }
    .nav-burger .lines,
    .nav-burger .lines::before,
    .nav-burger .lines::after {
      display: block;
      width: 18px;
      height: 1.5px;
      background: currentColor;
      border-radius: 1px;
    }
    .nav-burger .lines { position: relative; }
    .nav-burger .lines::before,
    .nav-burger .lines::after {
      content: "";
      position: absolute;
      left: 0;
      transition: transform .18s ease, top .18s ease;
    }
    .nav-burger .lines::before { top: -6px; }
    .nav-burger .lines::after { top: 6px; }
    .site-nav.is-open .nav-burger .lines { background: transparent; }
    .site-nav.is-open .nav-burger .lines::before { top: 0; transform: rotate(45deg); }
    .site-nav.is-open .nav-burger .lines::after { top: 0; transform: rotate(-45deg); }
    @media (prefers-reduced-motion: no-preference) {
      a:active, button:active { transform: scale(0.97); }
      .nav-burger,
      .modes button,
      .cta,
      .places a,
      .pipe a,
      a.link,
      .mail {
        transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s ease, color .2s ease, border-color .2s ease;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .site-nav nav, .site-nav nav a, .nav-burger, .modes button, .cta, .places a, .pipe a { transition: none; }
    }

    .home { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); }
    .home section { padding: var(--sec) var(--pad) 0; }
    .home section:first-of-type { padding-top: 96px; }
    .home section:last-of-type { padding-bottom: var(--sec); }
    .home h2 { margin: 0 0 var(--body-gap); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
    .door {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 8px 22px;
      align-items: center;
      padding: 26px 0;
      border-top: 1px solid var(--line);
      color: inherit;
      text-decoration: none;
    }
    .doors {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 32px;
      margin-top: 28px;
    }
    .door { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-bottom: 0; }
    .door:last-child { border-bottom: 0; }
    .door p { margin: 6px 0 0; max-width: 36em; color: #cfc9c0; font-size: 16.5px; line-height: 1.45; }
    .mark { width: 36px; height: 36px; display: block; }
    .mark path, .mark circle, .mark rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .door { color: var(--ink); }
    .door h2, .door p { color: var(--ink); }
    .door p { color: #cfc9c0; }
    .places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--card-gap); margin-top: 0; }
    .places a {
      display: block;
      padding-top: 0;
      border-top: 0;
      color: inherit;
      text-decoration: none;
    }
    .places strong {
      display: block;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
      font-size: 18px;
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    .places span { display: block; margin-top: 8px; color: #9a948c; font-size: 14px; }
    .scene { display: block; width: 176px; height: 123px; }
    .scene path { fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
    .scene .grid { stroke: rgba(255, 255, 255, 0.14); }
    .scene path.face, .scene path.hotfill { fill: var(--bg); }
    .scene path.hotsolid { fill: currentColor; fill-opacity: 0.55; }
    .scene .thin { stroke-opacity: 0.7; }
    .scene .flow, .scene .shift { stroke: currentColor; stroke-dasharray: 2 3; animation: scene-flow 1.6s linear infinite; }
    .scene .newsvc { stroke: currentColor; stroke-dasharray: 2 2; }
    .scene .cap { stroke: #e6e1da; stroke-dasharray: 1.5 2; }
    @keyframes scene-flow { to { stroke-dashoffset: -10; } }
    @media (prefers-reduced-motion: reduce) { .scene .flow, .scene .shift { animation: none; } }
    .places a:nth-child(1) .scene { color: var(--energy); }
    .places a:nth-child(2) .scene { color: var(--live); }
    .places a:nth-child(3) .scene { color: var(--consumer); }
    .places a:nth-child(4) .scene { color: var(--infra); }
    .scene .dim { stroke: rgba(213, 208, 200, 0.5); }
    .scene .line { stroke: #e6e1da; }
    .places a:nth-child(1) .hot { stroke: var(--energy); }
    .places a:nth-child(2) .hot { stroke: var(--live); }
    .places a:nth-child(3) .hot { stroke: var(--consumer); }
    .places a:nth-child(4) .hot { stroke: var(--infra); }

    .split { margin-top: 112px; }
    .home .contact { margin-top: 0; }
    .split h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
    .split .lede { margin: var(--head-gap) 0 0; color: #d5d0c8; font-size: 18px; line-height: 1.5; }
    .doc { position: relative; z-index: 3; padding: 96px var(--pad) var(--sec); background: var(--bg); }
    .doc-head { max-width: none; padding-bottom: 0; }
    .eyebrow { margin: 0 0 12px; color: #9a948c; font-size: 14px; }
    .doc h1 {
      margin: 0;
      max-width: 14em;
      font-size: 56px;
      font-weight: 500;
      letter-spacing: -0.045em;
      line-height: 1.02;
    }
    .doc-head .lede { margin: 24px 0 0; max-width: 36em; color: #d5d0c8; font-size: 18px; line-height: 1.5; }
    .piece { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 20px; max-width: 40em; padding: 32px 0; border-top: 1px solid var(--line); }
    .piece .mark { color: var(--ink); }
    .piece h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
    .piece .body { margin: 8px 0 0; color: #cfc9c0; font-size: 16.5px; line-height: 1.55; }
    .path { list-style: none; margin: 28px 0 0; padding: 0; max-width: 32em; }
    .path li { position: relative; margin: 0; padding: 0 0 26px 22px; }
    .path li:last-child { padding-bottom: 0; }
    .path li:not(:last-child)::after {
      content: "";
      position: absolute;
      z-index: 0;
      left: -1px;
      top: 10.5px;
      bottom: -10.5px;
      width: 1px;
      background: color-mix(in srgb, var(--accent) 55%, transparent);
    }
    .path li::before {
      content: "";
      position: absolute;
      z-index: 1;
      left: -4px;
      top: 7px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
    }
    .path span { display: block; color: #9a948c; font-size: 13px; }
    .path strong { font-weight: 500; font-size: 17px; }
    .world { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px 20px; max-width: 40em; padding: 40px 0; border-top: 1px solid var(--line); }
    .world h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
    .world .desc { margin: 12px 0 0; color: #cfc9c0; font-size: 16.5px; line-height: 1.55; }
    #energy { --accent: var(--energy); --accent-ink: #101620; }
    #energy-world { color: var(--energy); }
    #live-world { color: var(--live); }
    #consumer-world { color: var(--consumer); }
    #mobility-world { color: var(--infra); }
    #energy-world h3, #live-world h3, #consumer-world h3, #mobility-world h3,
    #energy-world .link, #live-world .link, #consumer-world .link, #mobility-world .link { color: var(--ink); }
    #energy-world .desc, #live-world .desc, #consumer-world .desc, #mobility-world .desc { color: #cfc9c0; }
    .world h3, .world .desc, .world .status, .world .link { color: var(--ink); }
    .world .desc { color: #cfc9c0; }
    .world .status { color: #b7b1a8; font-size: 14px; margin: 6px 0 0; text-align: left; }
    .world .status .who { display: block; margin-top: 2px; color: #8f8a82; font-size: 13px; }

    .band { margin-top: var(--sec); padding-top: 48px; border-top: 1px solid var(--line); }
    .worlds .world { border-top: 0; }
    .band > h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
    .band > .lede { margin: var(--head-gap) 0 0; color: #d5d0c8; font-size: 18px; line-height: 1.5; }
    .grid3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 36px 32px;
      margin-top: 36px;
    }
    .grid3 article { min-width: 0; }
    .grid3 h3 { margin: 16px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }
    .grid3 .body { margin: 8px 0 0; color: #cfc9c0; font-size: 16px; line-height: 1.5; }
    .grid3 .mark { color: inherit; }
    #forecasting, #optimisation, #record { color: var(--ink); }
    .spread {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
      gap: 48px 64px;
      align-items: start;
      margin-top: 48px;
    }
    .spread h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
    .spread .body { margin: 12px 0 0; color: #cfc9c0; font-size: 16.5px; line-height: 1.55; }
    .worlds {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 64px;
      margin-top: 8px;
    }
    .worlds .world { display: block; max-width: none; }
    .worlds .scene { width: 228px; height: auto; aspect-ratio: 160 / 112; margin-bottom: 20px; }
    #energy-world .hot { stroke: var(--energy); }
    #live-world .hot { stroke: var(--live); }
    #consumer-world .hot { stroke: var(--consumer); }
    #mobility-world .hot { stroke: var(--infra); }

    @media (max-width: 980px) {
      :root { --pad: 24px; --sec: 88px; --head-gap: 16px; --body-gap: 32px; --card-gap: 16px; --axis: 28px; --gutter: 8px; }
      body { overflow: auto; line-height: 1.55; }
      .screen { height: auto; padding-bottom: 24px; }
      .screen > header { height: auto; flex-wrap: wrap; gap: 12px; }
      .intro { max-width: none; padding: 20px 0 0; }
      .intro .lede { font-size: 16.5px; }
      .intro .modes { margin-top: 20px; }
      .charthead { flex-wrap: wrap; row-gap: 6px; margin-top: 20px; padding-left: 0; }
      .charttitle, .yname { white-space: normal; overflow: visible; height: auto; }
      .yname { text-align: left; margin-top: 2px; }
      h1 { font-size: 40px; }
      h1 span { white-space: normal; }
      .plot { height: 300px; }
      .dock { grid-template-columns: 1fr 1fr; row-gap: 20px; column-gap: 16px; padding-left: 0; padding-right: 0; }
      .k, .rule, .decision strong, .why { height: auto; white-space: normal; overflow: visible; }
      .v { font-size: 32px; height: auto; line-height: 1.05; }
      .decision { grid-column: 1 / -1; margin-top: 4px; padding-top: 16px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
      .facts, .defs, .streams, .places, .doors, .grid3, .spread, .worlds { grid-template-columns: 1fr; }
      .home section:first-of-type { padding-top: 72px; }
      .eyebrow, .band > h2, .doc h1, .split > h2, .close h2 { text-align: left; }
      .scene { width: min(200px, 100%); height: auto; aspect-ratio: 160 / 112; }
      .places { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
      .places .scene { width: 100%; height: auto; aspect-ratio: 160 / 112; margin-left: -6px; }
      .places strong { margin-top: 8px; padding-top: 10px; font-size: 15px; line-height: 1.3; }
      .nav-burger { display: inline-flex; }
      .site-nav { height: 56px; flex-wrap: nowrap; }
      .site-nav .brand { font-size: 22px; letter-spacing: -0.04em; }
      .site-nav nav {
        display: flex;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin: 0;
        padding: 6px var(--pad) 18px;
        background: rgba(7, 8, 12, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s;
      }
      .site-nav.is-open nav {
        background: #07080c;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s;
      }
      .site-nav nav a {
        height: 48px;
        font-size: 18px;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity .28s ease, transform .28s cubic-bezier(.2,.7,.2,1), color .2s ease, background .2s ease;
      }
      .site-nav.is-open nav a { opacity: 1; transform: none; }
      .site-nav.is-open nav a:nth-child(2) { transition-delay: .04s; }
      .site-nav.is-open nav a:nth-child(3) { transition-delay: .08s; }
      .site-nav .talk { margin: 8px 0 0; height: 44px; padding: 0 16px; }
      .doc { padding: 56px var(--pad) var(--sec); }
      .doc h1 { font-size: 36px; }
      .band { padding-top: 32px; }
      .split { margin-top: 80px; }
      .world { padding: 32px 0; }
      .band > h2 { font-size: 32px; }
      .steps {
        display: block;
        margin-top: 28px;
        padding: 4px 0 0 4px;
      }
      .steps::before { top: 8px; bottom: 24px; left: 8px; right: auto; width: 1px; height: auto; }
      .step { padding: 0 0 28px 28px; }
      .step::before { top: 4px; left: 0; }
      .step:last-child { padding-bottom: 0; }
      .spread { gap: 28px; }
      .worlds { gap: 0; }
      .worlds .world + .world { border-top: 1px solid var(--line); }
      .sector-head { display: block; }
      .status { text-align: left; margin-top: 6px; }
      .page h2, .contact h2 { font-size: 36px; }
      .page section { padding: 48px var(--pad); }
    }

    @media (max-width: 640px) {
      .modes {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
      }
      .modes button {
        justify-content: center;
        width: auto;
        height: 40px;
        padding: 0 6px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        font-size: 12.5px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
      }
      .modes button::before { display: none; }
      .mark { width: 32px; height: 32px; }
    }

    /* Engagement Gantt */
    .gantt { --lab: 260px; --span: 14; --accent: var(--ink); --accent-ink: #14120f; position: relative; margin: 56px 0 0; }
    .g-axis, .g-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 0 24px; align-items: center; }
    .g-unit { color: #c8c3ba; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
    .g-ticks { position: relative; height: 18px; border-bottom: 1px solid var(--line); }
    .g-ticks span { position: absolute; left: calc(var(--w) / var(--span) * 100%); bottom: 6px; transform: translateX(-50%); color: #c8c3ba; font: 400 12px/1 "IBM Plex Mono", monospace; }
    .g-ticks span:first-child { transform: none; }
    .g-ticks .g-more { color: #6f6a62; }
    .g-ticks::after { content: ""; position: absolute; inset: 18px 0 auto 0; height: 0; }
    .g-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .g-label strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
    .g-label span { display: block; margin-top: 3px; color: #9a948c; font-size: 13px; line-height: 1.35; }
    .g-track { position: relative; height: 22px;
      background-image: repeating-linear-gradient(to right, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / var(--span) * 2)); }
    .g-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--s) / var(--span) * 100%); width: calc((var(--e) - var(--s)) / var(--span) * 100%);
      border-radius: 999px; background: color-mix(in srgb, var(--accent) calc(var(--o) * 100%), #2a2622);
      transform-origin: left center; animation: g-grow .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--s) * 60ms); }
    .g-bar em { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 500 12px/1 "IBM Plex Mono", monospace; font-style: normal; color: var(--accent-ink); white-space: nowrap; }
    .g-row:first-of-type .g-bar em { color: var(--ink); }
    .live .g-bar { border-radius: 999px 0 0 999px; background: linear-gradient(to right, var(--accent) 55%, color-mix(in srgb, var(--accent) 0%, transparent)); }
    .g-sep { height: 18px; }
    .lane { border-bottom: 0; padding: 7px 0; }
    .lane .g-label strong { color: #b7b1a8; font-size: 13px; font-weight: 500; }
    .lane .g-track { height: 18px; background: none; }
    .g-seg { position: absolute; top: 0; bottom: 0; left: calc(var(--s) / var(--span) * 100% + 2px); width: calc((var(--e) - var(--s)) / var(--span) * 100% - 4px);
      display: flex; align-items: center; padding: 0 10px; border-radius: 999px; font: 400 12px/1 "IBM Plex Mono", monospace; white-space: nowrap; overflow: hidden; }
    .g-seg.off { border: 1px dashed rgba(255,255,255,.28); color: #9a948c; }
    .g-seg.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
    .g-gate { position: absolute; top: 18px; bottom: 0; left: calc(var(--lab) + 24px + (100% - var(--lab) - 24px) * var(--w) / var(--span)); width: 0; border-left: 1px solid var(--accent); pointer-events: none; }
    .g-gate span { position: absolute; top: -26px; left: 0; transform: translateX(-50%); padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
    .g-ticks .t10 { visibility: hidden; }
    @keyframes g-grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { .g-bar { animation: none; } }
    @media (max-width: 760px) {
      .gantt { --lab: 0px; }
      .g-axis, .g-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
      .g-unit { display: none; }
      .g-gate, .g-ticks .g-more { display: none; }
      .g-ticks .t10 { visibility: visible; }
    }

    /* Home: pipeline */
    .home-h { max-width: 22em; font-size: 28px; }
    .pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1.15fr 1.15fr 1fr; gap: 0; position: relative; }
    .pipe li { position: relative; padding: 0; }
    .pipe li:not(:last-child) { margin-right: 28px; }
    .pipe li:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: -28px; width: 28px; height: 1px;
      background: repeating-linear-gradient(to right, #a39e96 0 3px, transparent 3px 6px); background-size: 12px 1px; animation: pipe-run 1s linear infinite; }
    .pipe li:not(:last-child)::before { content: ""; position: absolute; top: 25px; right: -8px; border: 3.5px solid transparent; border-left: 5px solid #a39e96; }
    .pipe a, li.pipe-end { display: block; min-height: 100%; padding: 20px 18px 22px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
    li.pipe-end { border-style: dashed; }
    .pipe-core a { background: color-mix(in srgb, var(--c) 6%, transparent); }
    .pipe-core a:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
    .pipe strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
    .pipe p { margin: 4px 0 0; color: #9a948c; font-size: 13.5px; line-height: 1.4; }
    .pipe-brace { position: relative; margin: 20px 0 0; height: 18px; margin-left: calc(100% * 1 / 5.45); width: calc(100% * 3.45 / 5.45 - 22px); border: 1px solid rgba(255,255,255,.22); border-top: 0; border-radius: 0 0 10px 10px; }
    .pipe-brace span { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 0 10px; background: var(--bg); color: #c8c3ba; font: 500 13px/1 "Instrument Sans", sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
    @keyframes pipe-run { to { background-position: 12px 0; } }
    @media (prefers-reduced-motion: reduce) { .pipe li::after { animation: none; } }

    /* Credentials */
    .creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 0; border-top: 1px solid var(--line); }
    .cred { padding: 22px 24px 4px 0; }
    .cred + .cred { padding-left: 24px; border-left: 1px solid var(--line); }
    .cred b { display: block; color: var(--ink); font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
    .cred span { display: block; margin-top: 8px; color: #9a948c; font-size: 14px; line-height: 1.4; max-width: 16em; }
    .creds-more { margin: 40px 0 0; }
    .creds-pubs { margin: 28px 0 0; color: #9a948c; font-size: 14px; }
    .doc-head .creds { margin-top: 56px; }

    /* Work: capacity bar */
    .capbar { margin-top: 18px; max-width: none; }
    .cap-scale { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #c8c3ba; font: 400 12px/1.35 "IBM Plex Mono", monospace; margin-bottom: 8px; }
    .cap-scale span:nth-child(2) { flex: 1; min-width: 0; text-align: center; }
    .cap-track, .cap-brackets { display: flex; gap: 3px; }
    .cap-seg { flex: var(--w) 0 0; min-width: 0; height: 54px; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
      transform-origin: left; animation: g-grow .9s cubic-bezier(.2,.7,.2,1) both; }
    .cap-seg b { font: 500 12px/1 "IBM Plex Mono", monospace; }
    .cap-seg span { font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cap-seg.held, .sw.held { background: repeating-linear-gradient(135deg, #dbe6ff 0 6px, #8eb6ff 6px 12px); color: #07080c; }
    .cap-seg.v1, .sw.v1 { background: color-mix(in srgb, var(--energy) 55%, #1a1714); color: #f4f2ee; }
    .cap-seg.v2, .sw.v2 { background: color-mix(in srgb, var(--energy) 30%, #1a1714); color: #f4f2ee; }
    .cap-seg.opt, .sw.opt { background: transparent; border: 1px dashed rgba(255,255,255,.35); color: #a39e96; }
    .cap-seg:nth-child(2) { animation-delay: .12s; } .cap-seg:nth-child(3) { animation-delay: .24s; } .cap-seg:nth-child(4) { animation-delay: .36s; }
    .cap-br { flex: var(--w) 0 0; height: 12px; margin-top: 6px; border: 1px solid rgba(255,255,255,.3); border-top: 0; border-radius: 0 0 8px 8px; position: relative; }
    .cap-br.rest { border-color: color-mix(in srgb, var(--energy) 55%, transparent); }
    .cap-br span { position: absolute; top: 18px; left: 0; color: #c8c3ba; font: 400 12px/1.3 "IBM Plex Mono", monospace; white-space: nowrap; }
    .cap-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; margin: 52px 0 0; }
    .cap-legend dt { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
    .cap-legend dd { margin: 6px 0 0; color: #9a948c; font-size: 14px; line-height: 1.45; }
    .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }

    /* Company: data boundary */
    .bnd { margin: 36px 0 0; max-width: none; }
    .bnd svg { display: block; width: 100%; height: auto; font-family: inherit; }
    .b-zone { fill: rgba(244,242,238,.03); stroke: rgba(244,242,238,.45); stroke-dasharray: 5 5; }
    .b-zl { fill: #c8c3ba; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .08em; }
    .b-node rect { fill: #0d0f14; stroke: rgba(255,255,255,.28); }
    .b-node.core rect { stroke: var(--ink); fill: rgba(244,242,238,.06); }
    .b-node text, .b-out text { fill: #f4f2ee; font-size: 17px; text-anchor: middle; }
    .b-node text.s { fill: #9a948c; font-size: 13px; }
    .b-out rect { fill: none; stroke: rgba(255,255,255,.18); stroke-dasharray: 3 4; }
    .b-out text { fill: #6f6a62; font-size: 15px; }
    .b-ln { fill: none; stroke: #a39e96; stroke-width: 1.2; }
    .b-ln.hot { stroke: var(--ink); stroke-width: 1.6; }
    .b-ln.no { stroke: rgba(255,107,90,.6); stroke-dasharray: 3 4; }
    .b-x circle { fill: #07080c; stroke: #ff6b5a; } .b-x path { stroke: #ff6b5a; stroke-width: 1.6; }
    .b-tag { fill: #c8c3ba; font: 400 12px "IBM Plex Mono", monospace; text-anchor: middle; }
    .b-tag.l { text-anchor: start; }
    .bnd figcaption { margin-top: 12px; color: #9a948c; font-size: 13px; }
    .chips { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: none; margin: 28px 0 0; padding: 0; }
    .chips li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: #cfc9c0; font-size: 14px; line-height: 1.4; }
    .chips b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 15px; }

    @media (max-width: 900px) {
      .pipe { grid-template-columns: 1fr; gap: 14px; }
      .pipe li:not(.pipe-end) { padding: 0; }
      .pipe li:not(:last-child) { margin-right: 0; }
      .pipe li:not(:last-child)::after { top: auto; bottom: -14px; left: 24px; right: auto; width: 1px; height: 14px; background: repeating-linear-gradient(to bottom, #a39e96 0 3px, transparent 3px 6px); animation: none; }
      .pipe li:not(:last-child)::before { display: none; }
      .pipe-brace { display: none; }
      .creds, .cap-legend, .chips { grid-template-columns: 1fr 1fr; }
      #security > .bnd { margin-top: 32px; }
      #security > .chips { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
      .cred:nth-child(3) { border-left: 0; padding-left: 0; }
      .cap-seg span { display: none; }
      .cap-br span { white-space: normal; max-width: 9em; }
      .cap-br.rest span { max-width: 14em; }
    }
    .cred b { white-space: nowrap; font-size: clamp(24px, 2.3vw, 34px); }
    .bnd .bnd-stack { display: none; }
    @media (max-width: 980px) {
      .bnd .bnd-wide { display: none; }
      .bnd .bnd-stack { display: block; }
      .bnd-stack .b-out text { fill: #d5d0c8; }
    }

    abbr[data-def] {
      text-decoration: underline dotted rgba(255,255,255,.45);
      text-underline-offset: 3px;
      cursor: pointer;
    }
    abbr[data-def]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .def {
      position: fixed;
      z-index: 20;
      max-width: 260px;
      margin: 0;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 8px;
      background: #07080c;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.4;
      letter-spacing: 0;
    }
    .def[hidden] { display: none; }
    .cred a, .lede a, .split a { color: var(--ink); }
    .site-foot a { color: inherit; }
    .site-foot a:hover { color: var(--ink); }

    .close {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
      margin-top: var(--sec);
    }
    .doc .close { margin-bottom: 8px; }
    .close h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; }
    .close p { margin: var(--head-gap) 0 0; max-width: 36em; color: #d5d0c8; font-size: 17px; line-height: 1.5; }
    .cta {
      flex: none;
      display: inline-flex;
      align-items: center;
      height: 48px;
      padding: 0 18px;
      border-radius: 999px;
      background: var(--ink);
      color: #14120f;
      text-decoration: none;
      font-weight: 500;
    }
    .cta:hover { background: #fff; }

    .grid3 article { display: flex; flex-direction: column; align-items: flex-start; }
    .grid3 .body { max-width: 36em; }
    .grid3 .io { width: 100%; }

    .spread { align-items: stretch; }
    .spread > div {
      display: flex;
      flex-direction: column;
      padding: 22px 22px 20px;
      border: 1px solid var(--line);
      border-radius: 16px;
    }
    .spread > div .link { margin-top: auto; }
    .path {
      max-width: none;
      margin: 0;
      height: 100%;
      padding: 22px 22px 8px;
      border-radius: 16px;
      background: #101218;
      border: 1px solid var(--line);
    }

    @media (max-width: 980px) {
      .close { display: block; }
      .close h2 { font-size: 32px; text-align: left; }
      .cta { margin-top: 20px; }
      .spread > div, .path { padding: 0; border: 0; background: none; border-radius: 0; }
      .doc-head .creds { margin-top: 40px; }
      .gantt { margin-top: 40px; }
    }

/* T08: content sits above the stage canvas (.sr-only keeps its own positioning) */
.screen > *:not(canvas):not(.sr-only) { position: relative; z-index: 1; }

/* T03 pause button (mode-button look, 32x32, icon only) */
.demo-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.demo-pause:hover { color: var(--ink); }
.demo-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.demo-pause svg { width: 12px; height: 12px; display: block; }

/* T05 HTML legend replacing on-chart curve labels */
.legend { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.legend i { display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; }
.legend .k-actual { border-top: 2px solid var(--ink); }
.legend .k-fc { border-top: 2px solid var(--field); }
.legend .k-band { height: 8px; background: color-mix(in srgb, var(--field) 30%, transparent); }
@media (max-width: 640px) { .charthead { flex-wrap: wrap; row-gap: 6px; } }

/* narrow screens: the contact email must not force horizontal overflow */
@media (max-width: 420px) {
  .mail { font-size: 16px; overflow-wrap: anywhere; }
}

/* T11 mobile details */
@media (max-width: 640px) {
  .intro { padding-top: 8px; }
  h1 { font-size: clamp(36px, 10.5vw, 46px); text-wrap: balance; }
  .intro .lede { margin-top: 12px; font-size: 16px; line-height: 1.45; }
  .intro .modes { margin-top: 12px; }
  .charthead { margin-top: 10px; }
  .intro h1 span { display: inline; }
  .intro h1 span + span::before { content: " "; }
  .proof { flex-direction: column; gap: 4px; align-items: flex-start; }
  .proof li:not(:last-child)::after { content: none; }
  .modes { flex-wrap: nowrap; overflow-x: auto; }
  .modes button { white-space: nowrap; }
}

/* T04 at laptop widths: keep the decision dock inside the first screen */
@media (max-width: 1310px) {
  h1 { font-size: 44px; }
  .plot { height: 280px; }
  .intro .lede { font-size: 15px; line-height: 1.4; }
  .screen { padding-top: 2px; }
  .proof { margin-top: 6px; }
  .intro .modes { margin-top: 10px; }
  .charthead { margin-top: 20px; min-height: 26px; }
}

/* F2: one chart-head row — title left, legend/unit/pause grouped right */
.charthead .charttitle { margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { flex: none; }
.yname { flex: none; }
.demo-pause { width: 28px; height: 28px; border: 1px solid var(--line); }

/* F2 mobile: row 1 title + pause at the far right; row 2 legend (+unit, hidden when tight) */
@media (max-width: 640px) {
  .charthead .charttitle { order: 1; flex: 0 1 auto; max-width: calc(100% - 44px); margin-right: auto; white-space: normal; overflow: visible; text-overflow: clip; }
  .charthead .demo-pause { order: 2; flex: 0 0 auto; margin-left: auto; }
  .charthead .demo-pause { order: 2; }
  .charthead .legend { order: 3; }
  .charthead .yname { order: 4; margin-top: 0; }
}
@media (max-width: 400px) {
  .charthead .yname { display: none; }
}
