/* Scoped home narrative extracted from the reviewed prototype. */
:root {
  --hairline: var(--line);
  --hairline-strong: color-mix(in srgb, var(--ink) 32%, transparent);
  --font-sans: var(--font-body);
  --header-bg: color-mix(in srgb, var(--paper-solid) 84%, transparent);
  --header-edge: color-mix(in srgb, white 58%, transparent);
  --button-bg: color-mix(in srgb, var(--surface) 40%, transparent);
  --button-hover: color-mix(in srgb, var(--surface) 82%, transparent);
  --button-active: color-mix(in srgb, var(--ink) 6%, transparent);
  --vignette-mid: color-mix(in srgb, var(--paper) 18%, transparent);
  --vignette-edge: color-mix(in srgb, var(--paper) 48%, transparent);
  --orbit-primary: color-mix(in srgb, var(--ink) 18%, transparent);
  --orbit-secondary: color-mix(in srgb, var(--ink) 10%, transparent);
  --token-outline: rgba(255, 255, 255, .85);
  --token-shadow: color-mix(in srgb, var(--ink) 13%, transparent);
  --core-border: color-mix(in srgb, var(--ink) 27%, transparent);
  --core-inner: color-mix(in srgb, var(--ink) 7%, transparent);
  --core-glow: color-mix(in srgb, var(--math) 7%, transparent);
  --port-halo: color-mix(in srgb, var(--paper) 62%, transparent);
  --port-ring: color-mix(in srgb, var(--ink) 18%, transparent);
}

.story-panel {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
.story-panel .focus-panel { opacity: 1; }
.story-panel .fusion-mark { opacity: 0; }
.story-panel .sphere-title { overflow-wrap: anywhere; }
.sphere-journey .math-token circle { fill: var(--math); }
.sphere-journey .stats-token circle { fill: var(--stats); }
.sphere-journey .cs-token circle { fill: var(--cs); }
.sphere-journey .moving-token text {
  fill: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-anchor: middle;
  dominant-baseline: middle;
}

    .story-panel .scroll-story {
      position: relative;
      height: 230svh;
    }

    .story-panel .hero {
      position: sticky;
      top: 0;
      height: 100svh;
      min-height: 620px;
      display: grid;
      place-items: center;
      padding: 108px 24px 34px;
      overflow: hidden;
    }

    .story-panel .hero::after {
      content: "";
      position: absolute;
      inset: 76px 0 0;
      z-index: 0;
      pointer-events: none;
      background: radial-gradient(ellipse at 50% 48%, transparent 42%, var(--vignette-mid) 76%, var(--vignette-edge) 100%);
    }

    .story-panel .system {
      position: relative;
      width: min(1160px, 94vw);
      height: min(720px, calc(100svh - 142px));
      min-height: 560px;
      z-index: 1;
      isolation: isolate;
    }

    .story-panel .focus-panel {
      position: absolute;
      inset: 76px 0 0;
      z-index: 6;
      display: grid;
      place-items: center;
      padding: 72px 24px 40px;
      opacity: 0;
      pointer-events: none;
      transform: translateY(58vh);
      will-change: opacity, transform;
    }

    .story-panel .focus-inner {
      width: min(920px, 88vw);
      text-align: center;
    }

    .story-panel .fusion-mark {
      --fusion-token-size: 24px;
      --fusion-token-offset: 12px;
      position: relative;
      width: 76px;
      height: 76px;
      margin: 0 auto 34px;
      border: 1px solid var(--hairline);
      border-radius: 50%;
      box-shadow: 0 0 0 12px color-mix(in srgb, var(--math) 4%, transparent), 0 24px 60px var(--token-shadow);
    }

    .story-panel .fusion-mark::before,
.story-panel .fusion-mark::after {
      content: "";
      position: absolute;
      inset: -14px;
      border: 1px dashed var(--hairline);
      border-radius: 50%;
      animation: fusion-ring 12s linear infinite;
      animation-play-state: paused;
    }

    .story-panel .fusion-mark::after {
      inset: -26px;
      border-style: dotted;
      animation-direction: reverse;
      animation-duration: 18s;
    }

    .story-panel .fusion-mark.is-motion-active::before,
    .story-panel .fusion-mark.is-motion-active::after {
      animation-play-state: running;
    }

    .story-panel .fusion-mark span {
      position: absolute;
      top: 50%;
      width: var(--fusion-token-size);
      height: var(--fusion-token-size);
      border: 2px solid var(--token-outline);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 7px 18px var(--token-shadow);
    }

    .story-panel .fusion-mark span:nth-child(1) { left: calc(50% - var(--fusion-token-offset)); background: var(--math); }
    .story-panel .fusion-mark span:nth-child(2) { left: 50%; background: var(--stats); }
    .story-panel .fusion-mark span:nth-child(3) { left: calc(50% + var(--fusion-token-offset)); background: var(--cs); }

    .story-panel .focus-kicker {
      margin: 0 0 18px;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .story-panel .focus-panel h2 {
      max-width: 820px;
      margin: 0 auto;
      font-size: clamp(36px, 5.4vw, 72px);
      line-height: 1.06;
      letter-spacing: -0.055em;
      font-weight: 690;
    }

    .story-panel .focus-lede {
      max-width: 650px;
      margin: 26px auto 0;
      color: var(--muted);
      font-size: clamp(14px, 1.5vw, 17px);
      line-height: 1.8;
    }

    .story-panel .focus-paths {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 46px;
      border-block: 1px solid var(--hairline);
    }

    .story-panel .focus-path {
      position: relative;
      padding: 22px 24px 24px;
      text-align: left;
    }

    .story-panel .focus-path + .focus-path { border-left: 1px solid var(--hairline); }
    .story-panel .focus-path small { color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
    .story-panel .focus-path strong { display: block; margin-top: 9px; font-size: 15px; font-weight: 620; }
    .story-panel .focus-path::before { content: ""; position: absolute; top: -4px; left: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--math); }
    .story-panel .focus-path:nth-child(2)::before { background: var(--stats); }
    .story-panel .focus-path:nth-child(3)::before { background: var(--cs); }

    .story-panel .orbit-field {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      z-index: 1;
    }

    .story-panel .orbit {
      fill: none;
      stroke: var(--orbit-primary);
      stroke-width: 1;
      stroke-dasharray: 3 7;
    }

    .story-panel .orbit.secondary {
      stroke: var(--orbit-secondary);
      stroke-dasharray: 1 8;
    }

    .story-panel .moving-token circle {
      stroke: var(--token-outline);
      stroke-width: 3;
      filter: drop-shadow(0 7px 10px var(--token-shadow));
    }

    .story-panel .moving-token { will-change: transform, opacity; }

    .story-panel .moving-token text {
      fill: white;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-anchor: middle;
      dominant-baseline: middle;
    }

    .story-panel .math-token circle { fill: var(--math); }
    .story-panel .stats-token circle { fill: var(--stats); }
    .story-panel .cs-token circle { fill: var(--cs); }

    .story-panel .static-tokens { display: none; }
    .story-panel .static-tokens text {
      fill: white;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-anchor: middle;
      dominant-baseline: middle;
    }

    .story-panel .core {
      position: absolute;
      z-index: 3;
      left: 50%;
      top: 50%;
      width: clamp(500px, 48vw, 580px);
      min-height: 244px;
      transform: translate(-50%, -50%);
      display: grid;
      place-items: center;
      padding: 56px 36px 46px;
      border: 1px solid var(--core-border);
      border-radius: 18px;
      background: var(--surface);
      box-shadow: var(--shadow);
      backdrop-filter: blur(20px) saturate(1.08);
      -webkit-backdrop-filter: blur(20px) saturate(1.08);
    }

    .story-panel .core::before,
.story-panel .core::after {
      content: "";
      position: absolute;
      pointer-events: none;
    }

    .story-panel .core::before {
      inset: 16px;
      border: 1px solid var(--core-inner);
      border-radius: 11px;
    }

    .story-panel .core::after {
      z-index: -1;
      inset: -80px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--core-glow), transparent 65%);
      animation: none;
    }

    .story-panel .core.is-motion-active::after {
      animation: field-breathe 10s ease-in-out infinite;
    }

    .story-panel .core-label {
      position: absolute;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.19em;
      text-transform: uppercase;
    }

    .story-panel .core-label::before,
.story-panel .core-label::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 22px;
      height: 1px;
      background: var(--hairline);
    }

    .story-panel .core-label::before { right: calc(100% + 12px); }
    .story-panel .core-label::after { left: calc(100% + 12px); }

    .story-panel .identity {
      position: relative;
      z-index: 2;
      width: 100%;
      min-width: 0;
      text-align: center;
    }

    .story-panel h1 {
      margin: 0;
      max-width: 100%;
      font-size: clamp(40px, 4.15vw, 58px);
      line-height: 1;
      letter-spacing: -0.055em;
      font-weight: 720;
      white-space: nowrap;
    }

    .story-panel .identity-rule {
      width: 44px;
      height: 1px;
      margin: 24px auto 18px;
      background: var(--ink);
      transform-origin: center;
      animation: none;
    }

    .story-panel .core.is-motion-active .identity-rule {
      animation: rule-pulse 10s ease-in-out infinite;
    }

    .story-panel .identity p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      letter-spacing: 0.04em;
    }

    .story-panel .attention-matrix {
      position: absolute;
      z-index: 1;
      inset: 28px;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 7px;
      opacity: 0.12;
      overflow: hidden;
      pointer-events: none;
    }

    .story-panel .attention-matrix span {
      width: 4px;
      height: 4px;
      align-self: center;
      justify-self: center;
      border-radius: 50%;
      background: var(--ink);
      animation: none;
      animation-delay: calc(var(--i) * 35ms);
    }

    .story-panel .core.is-motion-active .attention-matrix span {
      animation: matrix-attend 10s ease-in-out infinite;
      animation-delay: calc(var(--i) * 35ms);
    }

    .story-panel .port {
      position: absolute;
      top: 50%;
      width: 10px;
      height: 10px;
      border: 1px solid var(--ink);
      border-radius: 50%;
      background: var(--paper);
      box-shadow: 0 0 0 4px var(--port-halo);
    }

    .story-panel .port-in { left: -6px; transform: translateY(-50%); }
    .story-panel .port-out { right: -6px; transform: translateY(-50%); }

    .story-panel .port::after {
      content: "";
      position: absolute;
      inset: -7px;
      border: 1px solid var(--port-ring);
      border-radius: inherit;
      animation: none;
    }

    .story-panel .core.is-motion-active .port::after {
      animation: port-ping 2.66s ease-out infinite;
    }

    .story-panel .core.is-motion-active .port-out::after {
      animation-delay: 1.2s;
    }

    .story-panel .port-out::after { animation-delay: 1.2s; }

    .story-panel .annotation {
      position: absolute;
      z-index: 4;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.14em;
      line-height: 1.7;
      text-transform: uppercase;
    }

    .story-panel .annotation.left { left: 1.5%; bottom: 4%; }
    .story-panel .annotation.right { right: 1.5%; bottom: 4%; text-align: right; }

    .story-panel .route-links {
      position: absolute;
      z-index: 5;
      left: 50%;
      bottom: 3.5%;
      transform: translateX(-50%);
      display: flex;
      gap: 34px;
    }

    .story-panel .route-links a {
      position: relative;
      padding: 8px 0;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      transition: color 180ms ease, transform 180ms ease;
    }

    .story-panel .route-links a::before {
      content: "";
      display: inline-block;
      width: 7px;
      height: 7px;
      margin-right: 9px;
      border-radius: 50%;
      background: var(--math);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--math) 13%, transparent);
    }

    .story-panel .route-links a:nth-child(2)::before {
      background: var(--stats);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--stats) 13%, transparent);
    }

    .story-panel .route-links a:nth-child(3)::before {
      background: var(--cs);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs) 13%, transparent);
    }

    .story-panel .route-links a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: 4px;
      height: 1px;
      background: var(--ink);
      transition: right 180ms ease;
    }

    .story-panel .route-links a:hover,
.story-panel .route-links a:focus-visible { color: var(--ink); transform: translateY(-1px); }
    .story-panel .route-links a:hover::after,
.story-panel .route-links a:focus-visible::after { right: 0; }

    .story-panel .content-stream {
      position: relative;
      z-index: 2;
      overflow: clip;
      background: color-mix(in srgb, var(--paper) 94%, transparent);
    }

    .story-panel .stream-bridge {
      position: relative;
      width: 50px;
      height: 132px;
      margin: 0 auto -18px;
    }

    .story-panel .stream-bridge::before,
.story-panel .stream-bridge::after,
.story-panel .stream-bridge span {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, transparent, var(--math) 24%, var(--math) 76%, transparent);
    }

    .story-panel .stream-bridge::before { left: 12px; }
    .story-panel .stream-bridge span { left: 50%; background: linear-gradient(to bottom, transparent, var(--stats) 24%, var(--stats) 76%, transparent); }
    .story-panel .stream-bridge::after { right: 11px; background: linear-gradient(to bottom, transparent, var(--cs) 24%, var(--cs) 76%, transparent); }

    .story-panel .section-shell {
      width: min(1120px, calc(100vw - 48px));
      margin: 0 auto;
      padding: 120px 0;
    }

    .story-panel .section-intro {
      display: grid;
      grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.65fr);
      gap: clamp(40px, 8vw, 120px);
      align-items: start;
      padding-top: 28px;
      border-top: 1px solid var(--hairline-strong);
    }

    .story-panel .section-index,
.story-panel .section-kicker,
.story-panel .project-meta,
.story-panel .project-status,
.story-panel .note-date,
.story-panel .note-kind,
.story-panel .contact-label {
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.15em;
      line-height: 1.6;
      text-transform: uppercase;
    }

    .story-panel .section-index { display: flex; align-items: center; gap: 12px; }

    .story-panel .section-index::before {
      content: "";
      width: 28px;
      height: 1px;
      background: var(--hairline-strong);
    }

    .story-panel .section-heading h2 {
      max-width: 840px;
      margin: 0;
      font-size: clamp(42px, 6.4vw, 88px);
      font-weight: 680;
      letter-spacing: -0.065em;
      line-height: 0.98;
    }

    .story-panel .section-heading p {
      max-width: 640px;
      margin: 28px 0 0;
      color: var(--muted);
      font-size: clamp(14px, 1.4vw, 17px);
      line-height: 1.8;
    }

    .story-panel .project-ledger {
      margin-top: 88px;
      border-top: 1px solid var(--hairline);
    }

    .story-panel .project-entry {
      --entry-accent: var(--math);
      position: relative;
      isolation: isolate;
      display: grid;
      grid-template-columns: 76px minmax(260px, 1.15fr) minmax(250px, 0.9fr) 42px;
      gap: clamp(20px, 4vw, 58px);
      align-items: center;
      min-height: 184px;
      padding: 34px 4px;
      border-bottom: 1px solid var(--hairline);
      transition: background 220ms ease;
    }

    .story-panel .project-entry::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: color-mix(in srgb, var(--entry-accent) 4%, transparent);
      opacity: 0;
      transition: opacity 220ms ease;
    }

    .story-panel .project-entry:hover::before,
.story-panel .project-entry:focus-visible::before { opacity: 1; }
    .story-panel .project-entry:focus-visible { outline-offset: -2px; }
    .story-panel .project-entry[data-accent="stats"] { --entry-accent: var(--stats); }
    .story-panel .project-entry[data-accent="cs"] { --entry-accent: var(--cs); }
    .story-panel .project-entry[data-accent="all"] { --entry-accent: var(--ink); }

    .story-panel .project-entry.featured {
      min-height: 330px;
      grid-template-columns: 76px minmax(300px, 1.05fr) minmax(340px, 1fr) 42px;
    }

    .story-panel .project-number {
      align-self: start;
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 1px solid var(--hairline);
      border-radius: 50%;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 10px;
    }

    .story-panel .project-number.triple {
      grid-template-columns: repeat(3, 6px);
      gap: 3px;
    }

    .story-panel .project-number.triple i,
.story-panel .discipline-tags i {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--math);
    }

    .story-panel .project-number.triple i:nth-child(2),
.story-panel .discipline-tags i:nth-child(2) { background: var(--stats); }
    .story-panel .project-number.triple i:nth-child(3),
.story-panel .discipline-tags i:nth-child(3) { background: var(--cs); }

    .story-panel .project-copy h3 {
      margin: 12px 0 0;
      font-size: clamp(27px, 3.6vw, 52px);
      font-weight: 660;
      letter-spacing: -0.05em;
      line-height: 1.03;
    }

    .story-panel .project-entry:not(.featured) .project-copy h3 { font-size: clamp(24px, 2.6vw, 36px); }

    .story-panel .project-copy p {
      max-width: 510px;
      margin: 20px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.75;
    }

    .story-panel .discipline-tags {
      display: inline-flex;
      gap: 5px;
      margin-left: 10px;
      vertical-align: middle;
    }

    .story-panel .project-flow {
      position: relative;
      min-height: 210px;
      padding: 28px 22px;
      border: 1px solid var(--hairline);
      background:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        color-mix(in srgb, var(--surface) 66%, transparent);
      background-size: 18px 18px;
      overflow: hidden;
    }

    .story-panel .flow-track {
      display: grid;
      grid-template-columns: 1fr 20px 1fr 20px 1fr;
      align-items: center;
      min-height: 150px;
    }

    .story-panel .flow-node {
      position: relative;
      min-height: 86px;
      display: grid;
      place-items: center;
      padding: 12px 8px;
      border: 1px solid var(--hairline);
      background: var(--surface);
      text-align: center;
    }

    .story-panel .flow-node small {
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 8px;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .story-panel .flow-node strong { display: block; margin-top: 8px; font-size: 11px; line-height: 1.35; }

    .story-panel .flow-node::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -13px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--math);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--math) 12%, transparent);
      animation: none;
    }

    .story-panel .flow-node:nth-of-type(2)::after { background: var(--stats); animation-delay: 0.7s; }
    .story-panel .flow-node:last-child::after { display: none; }

    .story-panel .flow-arrow { height: 1px; background: var(--hairline-strong); }

    .story-panel .project-summary {
      display: grid;
      gap: 14px;
      align-content: center;
    }

    .story-panel .project-status { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
    .story-panel .project-status strong { color: var(--ink); font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; text-transform: none; }

    .story-panel .project-arrow {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid var(--hairline);
      border-radius: 50%;
      color: var(--muted);
      transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
    }

    .story-panel .project-entry:hover .project-arrow,
.story-panel .project-entry:focus-visible .project-arrow {
      color: var(--ink);
      border-color: var(--hairline-strong);
      transform: translate(3px, -3px);
    }

    .story-panel .notes-section { padding-top: 40px; }

    .story-panel .notes-layout {
      display: grid;
      grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
      gap: clamp(48px, 9vw, 130px);
      margin-top: 80px;
    }

    .story-panel .notes-aside {
      align-self: start;
      position: sticky;
      top: 116px;
    }

    .story-panel .notes-aside p {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.75;
    }

    .story-panel .notes-axis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      margin-top: 30px;
    }

    .story-panel .notes-axis span {
      height: 3px;
      background: var(--math);
    }

    .story-panel .notes-axis span:nth-child(2) { background: var(--stats); }
    .story-panel .notes-axis span:nth-child(3) { background: var(--cs); }

    .story-panel .note-list { border-top: 1px solid var(--hairline-strong); }

    .story-panel .note-row {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr) auto;
      gap: 24px;
      align-items: center;
      padding: 28px 0;
      border-bottom: 1px solid var(--hairline);
    }

    .story-panel .note-title {
      display: block;
      font-size: clamp(18px, 2vw, 27px);
      font-weight: 610;
      letter-spacing: -0.035em;
      line-height: 1.25;
      transition: transform 180ms ease;
    }

    .story-panel .note-row:hover .note-title,
.story-panel .note-row:focus-visible .note-title { transform: translateX(8px); }
    .story-panel .note-kind { text-align: right; }

    .story-panel .contact-section {
      min-height: 86svh;
      display: grid;
      place-items: center;
      padding: 120px 0 54px;
    }

    .story-panel .contact-core {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
      gap: clamp(60px, 10vw, 150px);
      align-items: end;
      padding: 58px 0;
      border-block: 1px solid var(--hairline-strong);
    }

    .story-panel .contact-core::before {
      content: "";
      position: absolute;
      top: -4px;
      left: 0;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--math);
      box-shadow: 14px 0 0 var(--stats), 28px 0 0 var(--cs);
    }

    .story-panel .contact-copy h2 {
      max-width: 720px;
      margin: 18px 0 0;
      font-size: clamp(48px, 7.7vw, 108px);
      font-weight: 680;
      letter-spacing: -0.07em;
      line-height: 0.9;
    }

    .story-panel .contact-copy p {
      max-width: 600px;
      margin: 32px 0 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.75;
    }

    .story-panel .contact-links { border-top: 1px solid var(--hairline); }

    .story-panel .contact-link {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: center;
      padding: 20px 0;
      border-bottom: 1px solid var(--hairline);
    }

    .story-panel .contact-link small { display: block; margin-bottom: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; }
    .story-panel .contact-link strong { font-size: 14px; font-weight: 580; }
    .story-panel .contact-link > span:last-child { color: var(--muted); transition: transform 180ms ease, color 180ms ease; }
    .story-panel .contact-link:hover > span:last-child,
.story-panel .contact-link:focus-visible > span:last-child { color: var(--ink); transform: translate(3px, -3px); }

    .story-panel .site-footer {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      padding-top: 26px;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .story-panel .js .reveal-item {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 720ms cubic-bezier(0.2, 0.75, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.75, 0.2, 1);
    }

    .story-panel .js .reveal-item.is-visible { opacity: 1; transform: none; }

    @keyframes data-pulse {
      0%, 100% { opacity: 0.35; transform: translateY(-50%) scale(0.75); }
      50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
    }

    @keyframes field-breathe {
      0%, 100% { opacity: 0.36; transform: scale(0.94); }
      48%, 58% { opacity: 1; transform: scale(1.05); }
    }

    @keyframes rule-pulse {
      0%, 38%, 100% { transform: scaleX(1); opacity: 0.85; }
      52% { transform: scaleX(2.4); opacity: 0.3; }
      62% { transform: scaleX(0.82); opacity: 1; }
    }

    @keyframes matrix-attend {
      0%, 35%, 72%, 100% { opacity: 0.28; transform: scale(0.8); }
      48%, 58% { opacity: 1; transform: scale(1.9); }
    }

    @keyframes port-ping {
      0% { transform: scale(0.45); opacity: 0; }
      28% { opacity: 0.7; }
      100% { transform: scale(1.75); opacity: 0; }
    }

    @keyframes fusion-ring { to { transform: rotate(1turn); } }

    @media (max-width: 760px) {
      .story-panel .hero { min-height: 0; padding: 114px 12px 18px; }

      .story-panel .scroll-story { height: 215svh; }

      .story-panel .system {
        width: 100%;
        height: calc(100svh - 126px);
        min-height: 0;
      }

      .story-panel .core {
        top: 48%;
        width: min(calc(100vw - 44px), 430px);
        min-height: 208px;
        padding-inline: 24px;
      }

      .story-panel h1 { font-size: clamp(28px, 8.4vw, 42px); }
      .story-panel .identity p { max-width: 230px; margin-inline: auto; line-height: 1.6; }
      .story-panel .annotation { display: none; }
      .story-panel .route-links { width: 100%; bottom: clamp(10%, calc(30% - 22vw), 18%); justify-content: center; gap: clamp(16px, 5vw, 24px); }
      .story-panel .route-links a { font-size: 11px; letter-spacing: 0.11em; }
      .story-panel .orbit-field { transform: scale(1.42); transform-origin: center 48%; }
      .story-panel .static-tokens { transform: translateY(-230px); }

      .story-panel .focus-panel { inset: var(--header-height) 0 0; padding: 54px 18px 26px; }
      .story-panel .focus-inner { width: min(100%, 560px); }
      .story-panel .fusion-mark { width: 66px; height: 66px; margin-bottom: 26px; }
      .story-panel .focus-panel h2 { font-size: clamp(31px, 9vw, 48px); }
      .story-panel .focus-lede { max-width: 440px; font-size: 13px; line-height: 1.7; }
      .story-panel .focus-paths { margin-top: 30px; }
      .story-panel .focus-path { padding: 18px 10px 20px; text-align: center; }
      .story-panel .focus-path + .focus-path { border-left: 0; }
      .story-panel .focus-path::before { left: 50%; transform: translateX(-50%); }
      .story-panel .focus-path small { font-size: 9px; }
      .story-panel .focus-path strong { font-size: 12px; }

      .story-panel .section-shell { width: min(100% - 32px, 620px); padding: 88px 0; }
      .story-panel .section-intro { grid-template-columns: 1fr; gap: 28px; }
      .story-panel .section-heading h2 { font-size: clamp(39px, 11vw, 58px); }
      .story-panel .project-ledger { margin-top: 58px; }
      .story-panel .project-entry,
.story-panel .project-entry.featured { grid-template-columns: 50px minmax(0, 1fr) 34px; min-height: 0; gap: 14px; padding: 26px 0; }
      .story-panel .project-entry .project-flow,
.story-panel .project-entry .project-summary { grid-column: 2 / -1; }
      .story-panel .project-number { width: 36px; height: 36px; }
      .story-panel .project-copy p { font-size: 13px; }
      .story-panel .project-arrow { width: 32px; height: 32px; }
      .story-panel .project-flow { min-height: 170px; padding: 18px 14px; }
      .story-panel .flow-track { min-height: 132px; }
      .story-panel .flow-node { min-height: 76px; padding-inline: 5px; }
      .story-panel .flow-node strong { font-size: 9px; }
      .story-panel .notes-section { padding-top: 12px; }
      .story-panel .notes-layout { grid-template-columns: 1fr; gap: 38px; margin-top: 54px; }
      .story-panel .notes-aside { position: static; }
      .story-panel .note-row { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
      .story-panel .note-kind { grid-column: 2; text-align: left; }
      .story-panel .contact-section { min-height: auto; padding-top: 88px; }
      .story-panel .contact-core { grid-template-columns: 1fr; gap: 54px; padding-block: 42px; }
      .story-panel .contact-copy h2 { font-size: clamp(52px, 15vw, 78px); }
      .story-panel .site-footer { flex-direction: column; }
    }

    @media (max-width: 420px) {
      .story-panel .site-header { padding-inline: 10px; }
      .story-panel .brand { gap: 8px; font-size: 16px; }
      .story-panel .brand-mark { width: 21px; }
      .story-panel .header-actions { gap: 4px; }
      .story-panel .header-actions button { min-width: 44px; height: 44px; }
      .story-panel .core { width: calc(100vw - 28px); min-height: 196px; padding-inline: 18px; }
      .story-panel .core::before { inset: 11px; }
      .story-panel .core-label { top: 20px; font-size: 8px; letter-spacing: 0.14em; }
      .story-panel .core-label::before,
.story-panel .core-label::after { display: none; }
      .story-panel h1 { font-size: clamp(25px, 8.2vw, 34px); letter-spacing: -0.06em; }
      .story-panel .identity-rule { margin-block: 20px 15px; }
      .story-panel .identity p { max-width: 210px; font-size: 11px; }
      .story-panel .route-links { gap: 13px; }
      .story-panel .route-links a { font-size: 10px; }
      .story-panel .route-links a::before { width: 6px; height: 6px; margin-right: 6px; }
      .story-panel .focus-panel { padding-inline: 14px; }
      .story-panel .fusion-mark {
        --fusion-token-size: calc(24px / 0.88);
        --fusion-token-offset: calc(12px / 0.88);
        transform: scale(0.88);
      }
      .story-panel .focus-panel h2 { font-size: clamp(29px, 8.7vw, 38px); }
      .story-panel .focus-lede { margin-top: 20px; }
      .story-panel .focus-paths { grid-template-columns: 1fr; width: min(280px, 86vw); margin-inline: auto; }
      .story-panel .focus-path { padding-block: 12px; }
      .story-panel .focus-path + .focus-path { border-top: 1px solid var(--hairline); }
      .story-panel .focus-path::before { display: none; }
      .story-panel .section-shell { width: calc(100% - 28px); }
      .story-panel .stream-bridge { height: 96px; }
      .story-panel .section-heading h2 { font-size: clamp(36px, 10.8vw, 48px); }
      .story-panel .project-entry,
.story-panel .project-entry.featured { grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 10px; }
      .story-panel .project-meta { font-size: 8px; }
      .story-panel .project-copy h3,
.story-panel .project-entry:not(.featured) .project-copy h3 { font-size: 25px; }
      .story-panel .project-entry .project-flow,
.story-panel .project-entry .project-summary { grid-column: 1 / -1; }
      .story-panel .flow-node small { font-size: 7px; }
      .story-panel .flow-node strong { font-size: 8px; }
      .story-panel .project-status { font-size: 8px; }
      .story-panel .project-status strong { font-size: 10px; }
      .story-panel .note-row { grid-template-columns: 1fr; gap: 9px; }
      .story-panel .note-kind { grid-column: 1; }
      .story-panel .contact-copy h2 { font-size: 51px; }
      .story-panel .contact-link strong { overflow-wrap: anywhere; }
    }

    @media (max-width: 760px) and (max-height: 700px) {
      .story-panel .scroll-story { height: max(215svh, calc(100svh + 720px)); }
      .story-panel .hero { height: 720px; min-height: 720px; }
      .story-panel .route-links { top: -15.5px; bottom: auto; }
      .story-panel .route-links a:focus-visible { transform: none; }
      .story-panel .focus-panel { padding: 38px 14px 16px; }
      .story-panel .fusion-mark {
        --fusion-token-size: 18px;
        --fusion-token-offset: 9px;
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
      }
      .story-panel .focus-kicker { margin-bottom: 10px; font-size: 8px; letter-spacing: 0.1em; }
      .story-panel .focus-panel h2 { font-size: clamp(29px, 8.7vw, 34px); }
      .story-panel .focus-lede { margin-top: 14px; font-size: 15px; line-height: 1.6; }
      .story-panel .focus-paths { grid-template-columns: 1fr; width: 100%; margin-top: 18px; }
      .story-panel .focus-path { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 7px 4px; text-align: left; }
      .story-panel .focus-path + .focus-path { border-top: 1px solid var(--hairline); border-left: 0; }
      .story-panel .focus-path small { font-size: 9px; }
      .story-panel .focus-path strong { margin-top: 0; font-size: 14px; line-height: 1.5; }
    }

    @media (max-width: 420px) and (max-height: 700px) {
      .story-panel .fusion-mark {
        --fusion-token-size: calc(18px / 0.88);
        --fusion-token-offset: calc(9px / 0.88);
      }
    }

    @media (min-width: 600px) and (max-width: 760px) and (max-height: 700px) {
      .story-panel .route-links { gap: 66px; }
    }

    @media (min-width: 761px) and (max-height: 680px) {
      .story-panel .hero { padding-top: 88px; }
      .story-panel .system { height: calc(100svh - 106px); min-height: 500px; }
      .story-panel .core { min-height: 218px; }
      .story-panel .annotation { display: none; }
      .story-panel .route-links { bottom: 1%; }
      .story-panel .focus-panel { padding: 32px 24px 16px; }
      .story-panel .fusion-mark {
        --fusion-token-size: 18px;
        --fusion-token-offset: 9px;
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
      }
      .story-panel .focus-kicker { margin-bottom: 10px; }
      .story-panel .focus-panel h2 { font-size: clamp(40px, 4vw, 52px); }
      .story-panel .focus-lede { margin-top: 14px; font-size: 15px; line-height: 1.6; }
      .story-panel .focus-paths { margin-top: 18px; }
      .story-panel .focus-path { padding: 10px 16px 12px; }
      .story-panel .focus-path strong { margin-top: 5px; font-size: 14px; line-height: 1.5; }
    }

    @media (min-width: 761px) {
      html[lang="en"] .story-panel h1 { min-width: 0; font-size: clamp(38px, 3.7vw, 52px); overflow-wrap: anywhere; }
    }

    @media (max-width: 760px) {
      .story-panel { --focus-marker-inset: calc(24px + 14px); }
      .story-panel .focus-panel { padding-inline: 16px; }
      .story-panel .focus-kicker,
      .story-panel .focus-panel h2,
      .story-panel .focus-lede,
      .story-panel .focus-paths {
        width: calc(100% - var(--focus-marker-inset) - var(--focus-marker-inset));
        margin-inline: var(--focus-marker-inset);
        box-sizing: border-box;
      }
    }

    @media (max-width: 520px) {
      .story-panel { --focus-marker-inset: calc(20px + 12px); }
      .story-panel .focus-panel { padding-inline: 14px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .story-panel *,
.story-panel *::before,
.story-panel *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .story-panel .moving-token { display: none; }
      .story-panel .static-tokens { display: block; }
      .story-panel .fusion-mark::before,
.story-panel .fusion-mark::after { animation: none; }
      .story-panel .flow-node::after { animation: none; }
      .story-panel .js .reveal-item { opacity: 1; transform: none; }
    }

/* 2026-09-25 approved refinement modules: D03/R01/D05/D07/D08/F01. */
.story-panel [data-content-figure] {
  color: color-mix(in srgb, var(--ink) 48%, transparent);
}

.story-panel [data-content-figure] svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-panel [data-content-figure="foundations"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.story-panel .foundation-figure,
.story-panel [data-content-figure="foundations"] .content-figure {
  width: 88px;
  height: 48px;
  margin: 12px 0 2px;
}

.story-panel .foundation-figure:nth-child(1),
.story-panel [data-content-figure="foundations"] .focus-path:nth-child(1) .content-figure { color: var(--math); }
.story-panel .foundation-figure:nth-child(2),
.story-panel [data-content-figure="foundations"] .focus-path:nth-child(2) .content-figure { color: var(--stats); }
.story-panel .foundation-figure:nth-child(3),
.story-panel [data-content-figure="foundations"] .focus-path:nth-child(3) .content-figure { color: var(--cs); }

.story-panel [data-content-figure="projects"] {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 20px;
  width: max-content;
  max-width: 100%;
  align-self: start;
}

.story-panel [data-content-figure="projects"] > svg {
  width: 90px;
  height: 64px;
}

.story-panel [data-content-figure="projects"] > svg:nth-child(1) { color: var(--math); }
.story-panel [data-content-figure="projects"] > svg:nth-child(2) { color: var(--stats); }
.story-panel [data-content-figure="projects"] > svg:nth-child(3) { color: var(--cs); }

.story-panel .project-process-figure {
  display: grid;
  grid-template-rows: 64px auto;
  gap: 7px;
  width: 90px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-panel .project-process-figure:nth-child(1) svg { color: var(--math); }
.story-panel .project-process-figure:nth-child(2) svg { color: var(--stats); }
.story-panel .project-process-figure:nth-child(3) svg { color: var(--cs); }

.story-panel [data-content-figure="writing"] {
  width: 100%;
  height: auto;
  color: var(--muted);
}

.story-panel [data-content-figure="contact"] {
  position: relative;
  width: min(160px, 100%);
  height: 88px;
  color: color-mix(in srgb, var(--ink) 44%, transparent);
  pointer-events: none;
}

.story-panel .project-entry,
.story-panel .project-entry.featured {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 28px;
}

.story-panel .project-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.story-panel .project-type-row {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  padding-right: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-panel .project-type-row > .card-type-orb.sphere-slot,
.story-panel .card-type-orb {
  position: relative;
  inset: auto;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 50%;
}

.story-panel .project-summary {
  margin-top: auto;
  padding-top: 28px;
  align-content: end;
}

.story-panel .project-status {
  align-items: end;
}

.story-panel .project-arrow {
  top: 24px;
  right: 24px;
}

.story-panel .note-index-figure {
  width: 44px;
  height: 40px;
  justify-self: end;
  transition: color 180ms ease, transform 180ms ease;
}

.story-panel .note-row:hover .note-index-figure,
.story-panel .note-row:focus-within .note-index-figure {
  color: var(--ink);
  transform: translateX(3px);
}

.story-panel .contact-sphere-dock {
  position: absolute;
  top: 20px;
  left: 4px;
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 4px;
  width: max-content;
  min-height: 24px;
  align-items: center;
}

.story-panel .contact-sphere-dock .sphere-slot {
  position: relative;
  inset: auto;
  width: 16px;
  height: 16px;
}

/* Content is readable by default. The single observer in script.js opts in. */
.story-panel .reveal-item {
  opacity: 1;
  transform: none;
  transition: opacity 360ms cubic-bezier(.2, .75, .2, 1), transform 360ms cubic-bezier(.2, .75, .2, 1);
}

html.reveal-ready .story-panel .reveal-item.is-reveal-pending:not(.is-visible) {
  opacity: .55;
  transform: translateY(10px);
}

html.reveal-ready .story-panel .reveal-item.is-visible,
html.reveal-ready .story-panel .reveal-item:focus-within,
html.reveal-ready .story-panel :target.reveal-item {
  opacity: 1;
  transform: none;
}

@media (min-width: 761px) {
  .story-panel .projects-section .section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(310px, 30vw, 330px);
    gap: clamp(20px, 3vw, 44px);
  }

  .story-panel .projects-section .section-index {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .story-panel .projects-section .section-heading {
    padding-left: 0;
  }

  .story-panel .projects-section .section-heading h2,
  .story-panel .projects-section .section-heading p {
    max-width: 520px;
  }

  .story-panel .project-ledger {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .story-panel .project-entry + .project-entry {
    border-left: 1px solid var(--hairline);
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .story-panel .projects-section .section-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-panel [data-content-figure="projects"] {
    grid-column: 1;
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .story-panel .reveal-item { transition-duration: 280ms; }

  html.reveal-ready .story-panel .reveal-item.is-reveal-pending:not(.is-visible) {
    transform: translateY(6px);
  }

  .story-panel [data-content-figure="foundations"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .story-panel .foundation-figure {
    width: 64px;
    height: 40px;
    margin-top: 9px;
  }

  .story-panel [data-content-figure="foundations"] .content-figure {
    grid-area: figure;
    width: 64px;
    height: 40px;
    margin: 0;
  }

  .story-panel [data-content-figure="foundations"] .focus-path {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "figure label"
      "figure copy";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    text-align: left;
  }

  .story-panel [data-content-figure="foundations"] .focus-path small {
    grid-area: label;
    align-self: end;
  }

  .story-panel [data-content-figure="foundations"] .focus-path strong {
    grid-area: copy;
    align-self: start;
    margin-top: 0;
  }

  .story-panel [data-content-figure="projects"] {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }

  .story-panel .project-process-figure {
    grid-template-rows: 52px auto;
    width: auto;
    min-width: 0;
    font-size: 7px;
    overflow-wrap: anywhere;
  }

  .story-panel .project-ledger {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    border-top: 0;
  }

  .story-panel .project-entry,
  .story-panel .project-entry.featured {
    min-height: 0;
    padding: 20px;
    border: 1px solid var(--hairline);
  }

  .story-panel .project-entry .project-summary {
    grid-column: auto;
    margin-top: 0;
    padding-top: 24px;
  }

  .story-panel .project-arrow {
    top: 17px;
    right: 17px;
  }

}

@media (max-width: 420px) {
  .story-panel .project-entry,
  .story-panel .project-entry.featured { padding: 20px; }

  .story-panel .project-type-row { padding-right: 36px; font-size: 9px; }
  .story-panel .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-panel .project-status { display: grid; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .story-panel .reveal-item.is-reveal-pending,
  .story-panel .note-index-figure {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
