:root {
  --ink: #0b1928;
  --ink-soft: #142b3e;
  --surface: #eef4f8;
  --surface-alt: #dde8f0;
  --accent: #67d2ff;
  --coral: #f0b690;
  --white: #f4f8fc;
  --muted-dark: #9caebe;
  --muted-light: #53677a;
  --hairline-dark: rgba(217, 229, 239, .19);
  --hairline-light: rgba(11, 25, 40, .18);
  --heading: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--surface); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
button:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
button, a { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, h4, figure { margin: 0; }
p { line-height: 1.6; }
.container { width: min(100% - 96px, 1380px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; color: var(--ink); background: var(--accent); font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.section-index { display: flex; align-items: center; gap: 15px; font: 500 11px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.section-index > span { display: inline-block; width: 31px; height: 1px; background: currentColor; opacity: .6; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; }
.text-link span, .header-contact span { transition: transform .22s ease; }
.text-link:hover span, .header-contact:hover span { transform: translate(3px, -3px); }

.site-header { position: relative; z-index: 10; color: var(--white); background: var(--ink); border-bottom: 1px solid var(--hairline-dark); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { color: var(--white); font: 700 43px/.8 var(--heading); letter-spacing: -.13em; }
.brand-mark span { color: var(--accent); }
.brand-name { display: grid; gap: 3px; font: 700 15px/1 var(--heading); letter-spacing: -.02em; }
.brand-name small { color: var(--muted-dark); font: 400 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 50px); color: #d0d7dc; }
.site-nav a { padding: 20px 0; font-size: 13px; font-weight: 600; transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.header-contact { display: flex; align-items: center; gap: 16px; min-height: 42px; padding: 0 0 0 24px; border-left: 1px solid var(--hairline-dark); color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.header-contact span { display: inline-block; font-size: 19px; }

.hero { overflow: hidden; color: var(--white); background: radial-gradient(ellipse at 80% 45%, #14344c 0, transparent 46%), var(--ink); }
.hero-grid { min-height: 730px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(35px, 6vw, 85px); padding-top: 74px; padding-bottom: 70px; }
.hero-copy { position: relative; z-index: 2; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; color: var(--muted-dark); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.meta-separator { padding-inline: 3px; color: var(--accent); }
.hero-index { margin-bottom: 25px; color: var(--accent); }
.hero h1 { font: 500 clamp(58px, 6.5vw, 103px)/.97 var(--heading); letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 540px; margin-top: 30px; color: #cbd2d8; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -.03em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 58px; padding: 0 23px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-accent { color: var(--ink); background: var(--accent); }
.button-accent:hover { background: #a5e6ff; }
.button span { font-size: 21px; font-weight: 400; }
.hero-profile { color: var(--white); }
.hero-footnote { max-width: 440px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline-dark); color: #acbcc9; font-size: 13px; line-height: 1.6; }
.hero-instrument { min-width: 0; border: 1px solid rgba(103, 210, 255, .31); background: #0e2437; box-shadow: 26px 26px 0 rgba(0, 0, 0, .11), 0 20px 100px rgba(0, 0, 0, .15); transform: rotate(1.5deg); }
.instrument-head, .hero-instrument figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 17px 20px; color: #afc0ce; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; }
.instrument-head { border-bottom: 1px solid var(--hairline-dark); }
.instrument-live { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.instrument-live i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-instrument svg { display: block; width: 100%; height: auto; }
.hero-instrument figcaption { border-top: 1px solid var(--hairline-dark); }
.hero-instrument figcaption span:not(:last-child) { color: var(--accent); }
.instrument-caption { margin-left: auto; color: #8b9ba9; text-transform: none; letter-spacing: 0; }
.workbench-film { transform: none; }
.workbench-film video { display: block; width: 100%; height: auto; aspect-ratio: 854 / 480; background: #081522; }
.workbench-film figcaption { align-items: center; flex-wrap: wrap; }
.media-toggle { min-height: 36px; padding: 7px 12px; border: 1px solid var(--hairline-dark); color: var(--accent); background: transparent; font: 500 11px var(--mono); cursor: pointer; }
.media-toggle:hover { background: #1a4058; }
.media-status { order: 3; flex-basis: 100%; font: 400 11px/1.5 var(--mono); }
.hero-bottom { display: flex; gap: 14px; padding-top: 20px; padding-bottom: 25px; border-top: 1px solid var(--hairline-dark); color: var(--muted-dark); font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-bottom span:last-child { margin-left: auto; }

.discipline-strip { overflow: hidden; color: var(--ink); background: var(--accent); }
.discipline-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(100% - 96px, 1380px); min-height: 62px; margin-inline: auto; white-space: nowrap; }
.discipline-inner span { font: 600 11px var(--mono); letter-spacing: .1em; }
.discipline-inner i { font-size: 22px; font-style: normal; font-weight: 400; }

.light-section { background: var(--surface); }
.intro { padding: 144px 0 140px; }
.intro-grid { display: grid; grid-template-columns: 25% 75%; padding-bottom: 105px; }
.intro-grid > .section-index { align-self: start; padding-top: 15px; color: #545b61; }
.intro h2, .about-section h2 { max-width: 1100px; font: 500 clamp(56px, 6.2vw, 100px)/1.02 var(--heading); letter-spacing: -.07em; }
.intro h2 em, .about-section h2 em { color: #5e788e; font-style: normal; }
.intro-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: end; gap: 40px; margin-top: 44px; }
.intro-bottom p { max-width: 690px; color: #484d51; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.5; letter-spacing: -.015em; }
.intro-asterisk { color: #5e7d97; font: 400 120px/.8 var(--heading); text-align: right; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline-light); border-left: 1px solid var(--hairline-light); }
.expertise-item { min-width: 0; border-right: 1px solid var(--hairline-light); border-bottom: 1px solid var(--hairline-light); background: var(--surface); }
.expertise-item summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 26px; list-style: none; cursor: pointer; }
.expertise-item summary::-webkit-details-marker, .engineering-stages summary::-webkit-details-marker { display: none; }
.expertise-item summary:hover { background: var(--surface-alt); }
.expertise-item summary:focus-visible, .engineering-stages summary:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.expertise-number { align-self: center; color: #53677a; font: 500 10px/1.5 var(--mono); letter-spacing: .04em; }
.expertise-expand { grid-column: 2; grid-row: 1; color: var(--ink); font: 400 24px/1 var(--mono); text-align: right; }
.expertise-expand::before { content: "+"; }
.expertise-item[open] .expertise-expand::before { content: "−"; }
.expertise-item summary strong { grid-column: 1; grid-row: 1; color: var(--ink); font: 500 clamp(25px, 2.4vw, 35px)/1.1 var(--heading); letter-spacing: -.045em; }
.expertise-intro { grid-column: 1 / -1; max-width: 310px; color: #4d5e6a; font-size: 14px; line-height: 1.6; }
.expertise-detail { padding: 0 26px 20px; }
.expertise-detail p { max-width: 330px; color: #4d5e6a; font-size: 14px; line-height: 1.6; }
.expertise-detail a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; color: #143b55; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.expertise-item[open] { background: #e5eef5; }
.expertise-item[open] summary { min-height: 0; }

.engineering-practice { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 74px); margin-top: 80px; padding: clamp(28px, 4vw, 58px); border: 1px solid var(--hairline-dark); color: var(--white); background: var(--ink); scroll-margin-top: 28px; }
.engineering-practice .section-index { color: var(--accent); font-size: 10px; }
.engineering-intro h3 { max-width: 550px; margin-top: 42px; font: 500 clamp(38px, 4.2vw, 64px)/1.05 var(--heading); letter-spacing: -.055em; }
.engineering-intro h3 em { color: var(--accent); font-style: normal; }
.engineering-intro > p:not(.section-index) { max-width: 520px; margin-top: 26px; color: #c0ced9; font-size: 16px; line-height: 1.65; }
.engineering-artifacts { margin: 32px 0 0; border-top: 1px solid var(--hairline-dark); }
.engineering-artifacts > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hairline-dark); }
.engineering-artifacts dt { color: var(--accent); font: 500 10px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.engineering-artifacts dd { margin: 0; color: #b9c9d5; font-size: 13px; line-height: 1.6; }
.engineering-loop { min-width: 0; padding: 24px; border: 1px solid var(--hairline-dark); background: #0e2437; }
.engineering-loop-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #b5c5d2; font: 500 10px/1.5 var(--mono); }
.engineering-loop-label > span:last-child { color: var(--accent); }
.engineering-stages { margin: 24px 0 0; padding: 0; list-style: none; }
.engineering-stages > li { border-top: 1px solid var(--hairline-dark); }
.engineering-stages summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 21px 0; cursor: pointer; list-style: none; }
.stage-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #557e99; border-radius: 50%; color: var(--accent); font: 500 11px/1 var(--mono); }
.engineering-stages summary strong { color: var(--white); font: 500 28px/1.15 var(--heading); letter-spacing: -.035em; }
.engineering-stages summary small { display: block; margin-top: 6px; color: #b5c5d2; font-size: 13px; line-height: 1.4; }
.stage-indicator { color: var(--accent); font: 400 22px/1 var(--mono); text-align: right; }
.stage-indicator::before { content: "+"; }
.engineering-stages details[open] .stage-indicator::before { content: "−"; }
.engineering-stages details[open] summary strong { color: var(--accent); }
.stage-detail { padding: 0 0 22px 48px; color: #c0ced9; font-size: 14px; line-height: 1.6; }
.stage-detail p + p { margin-top: 17px; padding-left: 12px; border-left: 2px solid var(--accent); }
.stage-detail p > span { display: block; margin-bottom: 4px; color: var(--accent); font: 500 10px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.engineering-loop-note { padding-top: 16px; border-top: 1px solid var(--hairline-dark); color: #b5c5d2; font-size: 12px; line-height: 1.6; }
.agent-research { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px clamp(32px, 5vw, 74px); padding-top: 44px; border-top: 1px solid var(--hairline-dark); }
.research-intro h4 { margin-top: 26px; font: 500 clamp(32px, 3.1vw, 44px)/1.1 var(--heading); letter-spacing: -.045em; }
.research-intro h4 em { color: var(--accent); font-style: normal; }
.research-intro > p:not(.section-index) { max-width: 520px; margin-top: 24px; color: #c0ced9; font-size: 16px; line-height: 1.65; }
.research-topics summary strong { overflow-wrap: anywhere; }
.research-topics .stage-detail p + p { margin-top: 14px; padding-left: 0; border-left: 0; }
.research-reference { display: block; min-height: 44px; margin-top: 14px; padding-block: 10px; color: var(--accent); font-size: 13px; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

.systems-section { padding: 132px 0 115px; color: var(--white); background: #12334b; }
.systems-heading { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: end; margin-bottom: 52px; }
.systems-heading .section-index { margin-bottom: 24px; color: var(--accent); }
.systems-heading h2 { max-width: 850px; font: 500 clamp(60px, 6.3vw, 98px)/.99 var(--heading); letter-spacing: -.07em; }
.systems-heading h2 em { color: var(--accent); font-style: normal; }
.systems-heading > p { max-width: 320px; padding-bottom: 5px; color: #c2cad1; font-size: 15px; }
.systems-explorer { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr); min-height: 760px; border: 1px solid rgba(103, 210, 255, .27); background: #0e2437; }
.systems-selector { display: flex; flex-direction: column; border-right: 1px solid var(--hairline-dark); }
.system-tab { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 17px; width: 100%; padding: 29px 27px 31px; border: 0; border-bottom: 1px solid var(--hairline-dark); color: #c0c9d1; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.system-tab:hover { background: #1a4058; }
.system-tab[aria-selected="true"] { color: var(--ink); background: var(--accent); }
.system-tab > span:first-child { grid-column: 1 / -1; font: 500 10px/1.4 var(--mono); letter-spacing: .12em; }
.system-tab strong { font: 500 clamp(21px, 2vw, 29px)/1.13 var(--heading); letter-spacing: -.04em; }
.system-tab-arrow { align-self: end; font: 400 24px/1 var(--heading); }
.systems-selector-note { margin: auto 27px 27px; padding-top: 30px; color: #8c99a4; font: 400 10px/1.6 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.system-panel { min-width: 0; padding: 26px clamp(25px, 3.8vw, 58px) 38px; }
.system-panel[hidden] { display: none; }
.system-panel-top { display: flex; justify-content: space-between; gap: 20px; color: #8f9ca6; font: 500 10px/1.3 var(--mono); letter-spacing: .12em; }
.system-panel-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; align-items: end; margin: 67px 0 35px; }
.system-panel-eyebrow { grid-column: 1 / -1; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.system-panel h3 { max-width: 510px; font: 500 clamp(36px, 3.3vw, 54px)/1.03 var(--heading); letter-spacing: -.055em; }
.system-panel-copy > p:last-child { max-width: 360px; color: #c0c8ce; font-size: 14px; }
.system-visual { position: relative; display: grid; place-items: center; height: clamp(260px, 25vw, 335px); overflow: hidden; border: 1px solid rgba(103, 210, 255, .18); background-color: #153b52; background-image: linear-gradient(rgba(103, 210, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 210, 255, .09) 1px, transparent 1px); background-size: 26px 26px; }
.visual-corner { position: absolute; z-index: 3; color: #adc7dd; font: 500 9px/1.3 var(--mono); letter-spacing: .07em; }
.top-left { top: 19px; left: 20px; }.top-right { top: 19px; right: 20px; }.bottom-left { bottom: 18px; left: 20px; }.bottom-right { bottom: 18px; right: 20px; }
.shot-analysis { height: auto; min-height: 320px; grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr); gap: 0 20px; padding: 20px 26px 14px; background: #0e283b; }
.group-plot { min-width: 0; width: 100%; }
.group-plot img { display: block; width: 100%; height: auto; }
.group-key { width: 100%; display: grid; gap: 22px; }
.group-key > div { display: flex; align-items: center; gap: 14px; }
.measure-key { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1.5px solid currentColor; border-radius: 50%; font: 600 10px var(--mono); }
.key-es { color: var(--accent); }.key-sd { color: var(--coral); border-style: dashed; }
.mean-key { flex-shrink: 0; width: 36px; color: var(--white); text-align: center; font: 400 29px var(--mono); }
.group-key p { line-height: 1.4; }
.group-key strong { display: block; color: var(--white); font: 500 14px var(--body); }
.group-key p span { display: block; margin-top: 5px; color: #afc0ce; font-size: 12px; }
.shot-analysis figcaption { grid-column: 1 / -1; justify-self: start; padding-top: 10px; color: #afc0ce; font: 400 10px/1.5 var(--mono); }
.engineering-visual { height: auto; padding: 12px 20px 16px; background: #0e283b; }
.engineering-visual img { display: block; width: min(100%, 640px); height: auto; }
.engineering-visual figcaption { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #c0ced9; font: 400 10px/1.5 var(--mono); }
.engineering-visual figcaption span { color: #9caebe; }
.system-visual svg { width: min(100%, 640px); height: 100%; }
.flow-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100% - 72px, 760px); }
.flow-node { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 122px; padding: 17px 14px; border: 1px solid rgba(103, 210, 255, .5); background: #102d43; box-shadow: inset 0 3px 0 rgba(103, 210, 255, .34); }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -13px; z-index: 2; transform: translateY(-50%); color: var(--accent); font: 600 16px/1 var(--mono); }
.flow-node span { color: #aabcca; font: 500 9px/1.4 var(--mono); letter-spacing: .07em; }
.flow-node strong { color: var(--white); font: 500 clamp(17px, 1.8vw, 25px)/1.1 var(--heading); letter-spacing: -.04em; }
.trust-system .flow-node-boundary { border-color: var(--coral); box-shadow: inset 0 3px 0 rgba(240, 182, 144, .55); }
.system-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 23px; border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.system-stages > div { padding: 17px 13px 18px 0; }
.system-stages > div + div { padding-left: 13px; border-left: 1px solid var(--hairline-dark); }
.system-stages span { color: var(--accent); font: 500 10px/1.4 var(--mono); text-transform: uppercase; }
.system-stages p { margin-top: 9px; color: #b7c1ca; font-size: 12px; line-height: 1.45; }
.system-case-link { display: inline-flex; justify-content: space-between; gap: 25px; min-width: 220px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 700; }
.system-case-link:hover span { transform: translate(3px, -3px); }
.system-case-link span { transition: transform .2s; }
.systems-disclaimer { margin-top: 16px; color: #9aa7b2; font: 400 10px/1.5 var(--mono); }

.dark-section { color: var(--white); background: var(--ink); }
.work-section { padding: 138px 0 145px; }
.section-heading { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: end; margin-bottom: 62px; }
.section-heading .section-index { margin-bottom: 30px; color: var(--accent); }
.section-heading h2 { font: 500 clamp(64px, 6.9vw, 108px)/.97 var(--heading); letter-spacing: -.075em; }
.section-heading h2 em { color: var(--accent); font-style: normal; }
.section-heading > p { padding-bottom: 8px; color: #aab2b8; font-size: 15px; }
.section-heading > p a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(103, 210, 255, .45); text-underline-offset: 5px; }
.case { border: 1px solid var(--hairline-dark); }
.case-feature { display: grid; grid-template-columns: 49% 51%; background: #143149; }
.case-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 62px); }
.case-kicker { display: flex; justify-content: space-between; gap: 20px; width: 100%; color: var(--accent); font: 500 10px/1.45 var(--mono); letter-spacing: .08em; }
.case-kicker span:last-child { color: #a5aeb5; white-space: nowrap; }
.case-feature h3 { margin-top: 45px; font: 600 clamp(58px, 6vw, 96px)/1 var(--heading); letter-spacing: -.075em; }
.case-dot { color: var(--accent); }
.case-role { margin-top: 24px; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--accent); font: 500 11px/1.6 var(--mono); }
.case-subtitle { margin-top: 12px; color: var(--white); font: 500 clamp(20px, 2vw, 26px)/1.25 var(--heading); letter-spacing: -.03em; }
.case-content > p:not(.case-kicker):not(.case-subtitle):not(.case-role) { max-width: 530px; margin-top: 26px; color: #bbc3c9; font-size: 16px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 27px; }
.case-tags span { padding: 7px 10px; border: 1px solid rgba(209, 223, 234, .22); color: #c6d0d9; font: 400 10px/1.3 var(--mono); }
.case-links { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 33px; }
.case-links .text-link { color: var(--accent); }
.source-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #a4afb8; font: 500 10px/1.4 var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.source-link:hover { color: var(--white); }
.aimlink-figure { display: flex; flex-direction: column; min-width: 0; background: #dcecf7; color: #16344c; overflow: hidden; }
.figure-top, .figure-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 25px; border-bottom: 1px solid rgba(22, 33, 42, .22); font: 600 10px/1.3 var(--mono); letter-spacing: .07em; }
.figure-bottom { border-top: 1px solid rgba(22, 33, 42, .22); border-bottom: 0; }
.target-field { position: relative; min-height: 390px; flex: 1; display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(rgba(22, 52, 76, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 52, 76, .065) 1px, transparent 1px); background-size: 28px 28px; }
.group-case { min-height: 0; padding: 10px 25px; background: #0e283b; }
.group-case img { display: block; width: min(100%, 420px); height: auto; }
.aimlink-figure { background: #0e283b; color: #c0ced9; }
.aimlink-figure .group-key { grid-template-columns: 1fr; gap: 16px; padding: 20px 25px; border-top: 1px solid var(--hairline-dark); }
.aimlink-figure .figure-top { border-color: var(--hairline-dark); }
.aimlink-figure figcaption { padding: 0 25px 17px; color: #afc0ce; font: 400 10px/1.3 var(--mono); }

.venture-map { min-width: 0; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 54px); color: var(--white); background: #0e283b; border-left: 1px solid var(--hairline-dark); }
.venture-map-head { display: flex; justify-content: space-between; gap: 18px; color: #b5c5d2; font: 500 10px/1.5 var(--mono); letter-spacing: .06em; }
.venture-map-head > span:last-child { color: var(--accent); font-size: 22px; }
.venture-map h4 { font: 500 clamp(38px, 4.4vw, 64px)/1.04 var(--heading); letter-spacing: -.055em; }
.venture-map h4 em { color: var(--accent); font-style: normal; }
.venture-products { margin-top: 34px; border-top: 1px solid var(--hairline-dark); }
.venture-products > a { display: grid; grid-template-columns: 70px minmax(0, 1fr) 20px; gap: 16px; align-items: center; min-height: 98px; padding: 18px 0; border-bottom: 1px solid var(--hairline-dark); }
.venture-product-name { color: var(--accent); font: 600 13px/1.3 var(--mono); }
.venture-products strong { display: block; color: var(--white); font: 500 21px/1.2 var(--heading); letter-spacing: -.025em; }
.venture-products small { display: block; margin-top: 7px; color: #b5c5d2; font-size: 13px; line-height: 1.5; }
.venture-product-arrow { color: var(--accent); font-size: 23px; transition: transform .2s; }
.venture-products > a:hover .venture-product-arrow { transform: translate(3px, -3px); }
.venture-map-note { margin-top: 23px; color: #b5c5d2; font-size: 12px; line-height: 1.6; }

.visual-code { position: absolute; top: 22px; left: 27px; color: #aac1d4; font: 500 10px var(--mono); letter-spacing: .1em; }

.cybersecurity-feature { margin-top: 40px; padding: clamp(30px, 4.5vw, 64px); border: 1px solid var(--hairline-dark); border-top: 2px solid var(--accent); background: #12334b; scroll-margin-top: 30px; }
.cybersecurity-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(35px, 6vw, 90px); align-items: end; }
.cybersecurity-heading .section-index { margin-bottom: 34px; color: var(--accent); font-size: 10px; }
.cybersecurity-heading h3 { font: 500 clamp(40px, 4.3vw, 68px)/1.04 var(--heading); letter-spacing: -.06em; }
.cybersecurity-heading h3 em { color: var(--accent); font-style: normal; }
.cybersecurity-intro > p:first-child { max-width: 540px; color: #d0d8de; font-size: 16px; line-height: 1.6; }
.cybersecurity-scope { margin-top: 23px; color: #a0b0bd; font: 500 9px/1.6 var(--mono); letter-spacing: .07em; }
.cybersecurity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.cybersecurity-grid > div { min-width: 0; padding: 27px 20px 30px 0; }
.cybersecurity-grid > div + div { padding-left: 20px; border-left: 1px solid var(--hairline-dark); }
.cybersecurity-grid > div > span { color: var(--accent); font: 500 9px/1.5 var(--mono); letter-spacing: .05em; }
.cybersecurity-grid h4 { margin-top: 27px; font: 500 clamp(21px, 2vw, 28px)/1.15 var(--heading); letter-spacing: -.035em; }
.cybersecurity-grid p { max-width: 280px; margin-top: 16px; color: #b3bfc9; font-size: 13px; line-height: 1.6; }
.cybersecurity-feature > .system-case-link { margin-top: 28px; }

.about-section { padding: 156px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .65fr; gap: clamp(80px, 12vw, 180px); align-items: end; }
.about-section .section-index { margin-bottom: 40px; color: #545b61; }
.about-section h2 { font-size: clamp(56px, 5.4vw, 88px); }
.about-copy { padding-bottom: 10px; }
.about-copy > p { margin-top: 23px; color: #4e555b; font-size: 18px; line-height: 1.6; }
.technical-profile { margin: 30px 0 0; border-top: 1px solid var(--hairline-light); }
.technical-profile > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--hairline-light); }
.technical-profile dt { color: #53677a; font: 500 10px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.technical-profile dd { margin: 0; color: #364c5e; font-size: 14px; line-height: 1.6; }
.about-signoff { display: flex; align-items: center; gap: 17px; margin-top: 40px; padding-top: 23px; border-top: 1px solid var(--hairline-light); font: 600 16px/1.25 var(--heading); }
.about-signoff small { color: #656c72; font: 400 11px/2 var(--mono); }
.about-monogram { color: #547692; font: 700 42px/.8 var(--heading); letter-spacing: -.1em; }

.contact-section { padding: 130px 0 145px; color: var(--white); background: #12384f; }
.contact-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 80px; align-items: end; }
.contact-section .section-index { margin-bottom: 35px; color: var(--accent); }
.contact-section h2 { font: 500 clamp(60px, 6.3vw, 100px)/1 var(--heading); letter-spacing: -.075em; }
.contact-section h2 span { color: var(--accent); }
.contact-section p:not(.section-index) { margin-top: 30px; color: #c1cbd3; font-size: 18px; }
.contact-action { display: flex; flex-direction: column; align-items: stretch; gap: 15px; padding-bottom: 8px; }
.contact-action a { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px 0; border-bottom: 1px solid var(--accent); color: var(--accent); font: 500 clamp(26px, 3vw, 42px)/1.1 var(--heading); letter-spacing: -.04em; }
.contact-action a span { font-size: 44px; transition: transform .2s; }
.contact-action a:hover span { transform: translate(4px, -4px); }
.contact-action small { color: #9ea7af; font: 400 11px var(--mono); }

.site-footer { color: #9ba5ae; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 95px; font: 400 11px var(--mono); }
.footer-brand { color: var(--accent); font: 700 30px var(--heading); letter-spacing: -.09em; white-space: nowrap; }
.footer-brand strong { margin-left: 10px; color: var(--white); font: 600 13px var(--heading); letter-spacing: 0; }
.footer-inner a:hover { color: var(--accent); }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: var(--white); background: var(--ink); }
.not-found-card { width: min(100%, 680px); padding: clamp(30px, 6vw, 70px); border: 1px solid var(--hairline-dark); background: #143149; }
.not-found-card .eyebrow { color: var(--accent); font: 500 11px var(--mono); letter-spacing: .2em; }
.not-found-card h1 { margin-top: 30px; font: 600 clamp(48px, 8vw, 90px)/1 var(--heading); letter-spacing: -.06em; }
.not-found-card p:not(.eyebrow) { margin: 25px 0; color: #c1c9d0; }
.not-found-card .button { color: var(--ink); background: var(--accent); }


@media (max-width: 1120px) {
  .container, .discipline-inner { width: min(100% - 64px, 1380px); }
  .hero-grid { min-height: 650px; gap: 35px; }
  .hero-meta { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(52px, 6.9vw, 80px); }
  .hero-actions { gap: 20px; }
  .discipline-inner { gap: 13px; }
  .discipline-inner span { font-size: 9px; }
  .discipline-inner i { font-size: 17px; }
  .system-panel-copy { grid-template-columns: 1fr; margin-top: 44px; }
  .system-panel-copy > p:last-child { max-width: 600px; margin-top: 13px; }
  .cybersecurity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cybersecurity-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cybersecurity-grid > div:nth-child(n+3) { border-top: 1px solid var(--hairline-dark); }
}

@media (max-width: 800px) {
  .container, .discipline-inner { width: min(100% - 44px, 1380px); }
  .header-inner { min-height: 84px; gap: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .header-contact { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; padding-top: 75px; }
  .hero-meta { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(60px, 10.5vw, 96px); }
  .hero-instrument { width: min(100%, 560px); margin-inline: auto; }
  .discipline-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .discipline-inner::-webkit-scrollbar { display: none; }
  .discipline-inner span { font-size: 10px; }
  .intro { padding: 100px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 45px; padding-bottom: 80px; }
  .intro h2 { font-size: clamp(55px, 8vw, 78px); }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .engineering-practice { grid-template-columns: 1fr; gap: 35px; margin-top: 60px; }
  .agent-research { grid-template-columns: 1fr; gap: 28px; padding-top: 35px; }
  .engineering-intro h3 { margin-top: 28px; max-width: 660px; }
  .engineering-intro > p:not(.section-index) { max-width: 620px; }
  .engineering-artifacts { max-width: 620px; }
  .venture-map { border-left: 0; border-top: 1px solid var(--hairline-dark); }
  .systems-section { padding: 100px 0 88px; }
  .systems-heading { grid-template-columns: 1fr; gap: 20px; }
  .systems-heading > p { max-width: 580px; }
  .systems-explorer { grid-template-columns: 1fr; min-height: 0; }
  .systems-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--hairline-dark); }
  .system-tab { min-height: 132px; padding: 18px; border-bottom: 0; }
  .system-tab:nth-child(even) { border-left: 1px solid var(--hairline-dark); }
  .system-tab:nth-child(n+3) { border-top: 1px solid var(--hairline-dark); }
  .system-tab strong { font-size: 20px; }
  .systems-selector-note { display: none; }
  .system-panel-copy { margin-top: 40px; }
  .work-section { padding: 100px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .section-heading > p { max-width: 600px; }
  .case-feature { grid-template-columns: 1fr; }
  .case-content { min-height: 490px; }
  .aimlink-figure { min-height: 500px; }
  .cybersecurity-heading { grid-template-columns: 1fr; gap: 28px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-section { padding: 110px 0; }
  .about-copy { max-width: 620px; }
  .contact-section { padding: 110px 0; }
  .contact-action { max-width: 590px; }
}

@media (max-width: 560px) {
  .container, .discipline-inner { width: min(100% - 36px, 1380px); }
  .header-inner { min-height: 82px; flex-wrap: wrap; padding-block: 15px; }
  .brand-mark { font-size: 37px; }
  .brand-name { font-size: 13px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hairline-dark); }
  .site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; font-size: 11px; }
  .systems-section { padding: 80px 0; }
  .systems-heading { margin-bottom: 34px; }
  .systems-heading h2 { font-size: clamp(48px, 11vw, 66px); }
  .system-tab { min-height: 88px; grid-template-columns: 1fr; align-content: start; gap: 8px; padding: 14px 12px; border-bottom: 1px solid var(--hairline-dark); }
  .system-tab:nth-child(n+3) { border-top: 0; }
  .system-tab > span:first-child { font-size: 8px; }
  .system-tab strong { font-size: 17px; }
  .system-tab-arrow { display: none; }
  .system-panel { padding: 20px 18px 28px; }
  .system-panel-copy { margin: 36px 0 26px; }
  .system-panel h3 { font-size: 38px; }
  .system-visual { height: 245px; }
  .shot-analysis { height: auto; grid-template-columns: 1fr; gap: 0; padding: 10px 15px 15px; }
  .group-key { gap: 16px; padding: 12px 0; }
  .engineering-visual { height: auto; padding: 10px 12px 14px; }
  .engineering-visual figcaption { font-size: 9px; }
  .workbench-film .instrument-live { display: none; }
  .flow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: calc(100% - 30px); }
  .flow-node { min-height: 72px; padding: 10px; }
  .flow-node::after { display: none; }
  .flow-node span { font-size: 8px; }
  .flow-node strong { font-size: 17px; }
  .flow-system .top-right { display: none; }
  .visual-corner { font-size: 7px; }
  .top-left { top: 11px; left: 10px; }.top-right { top: 11px; right: 10px; }.bottom-left { bottom: 11px; left: 10px; }.bottom-right { bottom: 11px; right: 10px; }
  .system-stages { grid-template-columns: 1fr; }
  .system-stages > div { padding: 11px 0; }
  .system-stages > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline-dark); }
  .system-stages p { margin-top: 3px; }
  .hero-grid { gap: 50px; padding-top: 52px; padding-bottom: 52px; }
  .hero-meta { margin-bottom: 28px; font-size: 9px; }
  .hero h1 { font-size: clamp(48px, 10.8vw, 70px); }
  .hero-lead { margin-top: 30px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 29px; }
  .hero-instrument { transform: none; }
  .instrument-head, .hero-instrument figcaption { padding: 12px; font-size: 8px; }
  .instrument-caption { display: none; }
  .hero-bottom { font-size: 8px; }
  .hero-bottom span:last-child { display: none; }
  .discipline-inner { min-height: 54px; }
  .intro { padding: 80px 0; }
  .intro-grid { gap: 30px; padding-bottom: 65px; }
  .intro h2, .about-section h2 { font-size: clamp(45px, 11vw, 66px); }
  .intro-bottom { grid-template-columns: 1fr; margin-top: 28px; }
  .intro-bottom p { font-size: 17px; }
  .intro-asterisk { display: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item summary { min-height: 0; padding: 22px; gap: 12px; }
  .expertise-item summary strong { font-size: 28px; }
  .expertise-detail { padding: 0 22px 20px; }
  .expertise-intro { max-width: none; }
  .engineering-practice { gap: 28px; padding: 24px 20px; margin-top: 48px; }
  .engineering-practice .section-index { flex-wrap: wrap; gap: 9px; font-size: 9px; }
  .engineering-intro h3 { font-size: clamp(35px, 8.6vw, 46px); }
  .engineering-intro > p:not(.section-index) { font-size: 15px; }
  .engineering-artifacts > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .engineering-loop { padding: 18px; }
  .engineering-loop-label { font-size: 9px; }
  .engineering-stages summary { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; padding: 19px 0; }
  .engineering-stages summary strong { font-size: 25px; }
  .engineering-stages summary small { font-size: 12px; }
  .stage-number { width: 30px; height: 30px; font-size: 10px; }
  .stage-detail { padding-left: 0; }
  .venture-map { padding: 28px 24px; }
  .venture-map h4 { font-size: 44px; }
  .venture-products > a { grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 12px; }
  .venture-product-name { font-size: 11px; }
  .venture-products strong { font-size: 20px; }
  .technical-profile > div { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .work-section { padding: 80px 0; }
  .section-heading { margin-bottom: 39px; }
  .section-heading h2 { font-size: clamp(50px, 12vw, 72px); }
  .section-heading > p { font-size: 14px; }
  .case-content { min-height: 480px; padding: 25px; }
  .case-feature h3 { font-size: 64px; }
  .case-content > p:not(.case-kicker):not(.case-subtitle):not(.case-role) { font-size: 15px; }
  .case-kicker { font-size: 9px; }
  .case-links { align-items: flex-start; flex-direction: column; gap: 12px; }
  .aimlink-figure { min-height: 400px; }
  .target-field { min-height: 300px; }
  .figure-top, .figure-bottom { padding: 15px; font-size: 8px; }
  .aimlink-figure figcaption { padding: 0 15px 13px; font-size: 8px; }
  .cybersecurity-feature { margin-top: 28px; padding: 28px 22px; }
  .cybersecurity-heading .section-index { flex-wrap: wrap; gap: 9px; margin-bottom: 28px; font-size: 9px; }
  .cybersecurity-heading h3 { font-size: clamp(35px, 8.8vw, 48px); }
  .cybersecurity-intro > p:first-child { font-size: 15px; }
  .cybersecurity-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .cybersecurity-grid > div { padding: 23px 0; }
  .cybersecurity-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline-dark); }
  .cybersecurity-grid h4 { margin-top: 17px; font-size: 25px; }
  .cybersecurity-grid p { margin-top: 12px; }
  .cybersecurity-feature > .system-case-link { min-width: 0; width: 100%; }
  .about-section { padding: 85px 0; }
  .about-grid { gap: 40px; }
  .about-copy > p { font-size: 16px; }
  .contact-section { padding: 85px 0; }
  .contact-grid { gap: 60px; }
  .contact-section h2 { font-size: clamp(49px, 11vw, 66px); }
  .contact-section p:not(.section-index) { font-size: 16px; }
  .contact-action a { font-size: 29px; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: 12px 25px; padding-block: 25px; }
  .footer-brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 380px) {
  .case-feature h3 { font-size: 52px; }
}

@page { size: A4; margin: 16mm; }

/* A three-chapter reading path, within the existing Applied Crypto identity. */
.narrative-page .hero-grid { min-height: 680px; padding-top: 64px; padding-bottom: 54px; }
.narrative-page .hero h1 { font-size: clamp(48px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -.06em; }
.narrative-page .hero-lead { max-width: 520px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.narrative-page .hero-footnote { max-width: 510px; font-size: 14px; }
.narrative-page .hero-bottom { letter-spacing: .05em; }
.story-route { background: var(--surface-alt); color: var(--ink); }
.story-route-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-route a { position: relative; display: grid; gap: 12px; min-width: 0; padding: 29px 42px 29px 0; }
.story-route a + a { padding-left: 30px; border-left: 1px solid var(--hairline-light); }
.story-route a > span:first-child { color: #365a75; font: 500 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.story-route strong { font: 500 clamp(20px, 2.1vw, 29px)/1.15 var(--heading); letter-spacing: -.035em; }
.story-route small { color: var(--muted-light); font-size: 12px; line-height: 1.5; }
.story-route .route-arrow { position: absolute; top: 28px; right: 15px; color: #365a75; font-size: 24px; }
.story-route a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.story-route a:focus-visible { outline-offset: -5px; }
.narrative-page .work-section { padding-top: 100px; padding-bottom: 96px; }
.narrative-page .section-heading h2 { font-size: clamp(48px, 5.8vw, 86px); }
.narrative-page .section-heading > p { font-size: 17px; line-height: 1.65; }
.observation-trace { margin-top: 76px; padding-top: 44px; border-top: 1px solid var(--hairline-dark); }
.trace-copy h3 { font: 500 clamp(34px, 4vw, 56px)/1.08 var(--heading); letter-spacing: -.05em; }
.trace-copy h3 em { color: var(--accent); font-style: normal; }
.trace-lead { max-width: 660px; margin-top: 16px; color: #b9c9d5; }
.trace-steps { counter-reset: trace; margin: 29px 0; padding: 0; list-style: none; }
.trace-steps li { position: relative; counter-increment: trace; padding: 0 0 23px 40px; border-left: 1px solid #557e99; }
.trace-steps li::before { content: "0" counter(trace); position: absolute; top: 0; left: -1px; width: 28px; padding-block: 3px; color: var(--accent); background: var(--ink); font: 500 10px/1.5 var(--mono); }
.trace-steps li:last-child { padding-bottom: 0; }
.trace-steps strong { color: var(--white); font: 500 21px/1.25 var(--heading); letter-spacing: -.025em; }
.trace-steps p { max-width: 480px; margin-top: 8px; color: #b9c9d5; font-size: 15px; }
.concept-note { border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.concept-note summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; color: var(--accent); font-size: 14px; line-height: 1.5; cursor: pointer; list-style: none; }
.concept-note summary::-webkit-details-marker { display: none; }
.concept-note summary > span { font: 400 22px/1 var(--mono); }
.concept-note[open] summary > span { transform: rotate(45deg); }
.concept-note summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.concept-note > div { max-width: 660px; padding-bottom: 20px; color: #b9c9d5; font-size: 14px; }
.trace-copy > .text-link { margin-top: 24px; color: var(--accent); }
.story-memory .chapter-heading { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(30px, 7vw, 100px); align-items: end; }
.chapter-heading .section-index { margin-bottom: 30px; color: #365a75; }
.story-memory .chapter-heading h2 { font-size: clamp(48px, 6vw, 86px); }
.chapter-intro p { color: #364c5e; font-size: 18px; line-height: 1.65; }
.chapter-intro p + p { margin-top: 16px; }
.narrative-page .engineering-practice { margin-top: 52px; }
.narrative-page .engineering-intro h3 { margin-top: 28px; font-size: clamp(34px, 3.8vw, 52px); }
.narrative-page .agent-research { margin-top: 8px; }
.narrative-page .research-intro h4 { font-size: clamp(30px, 3.2vw, 43px); }
.chapter-handoff { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 35px; margin-top: 30px; color: #365a75; font-size: 14px; }
.chapter-handoff a { display: inline-flex; gap: 20px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-weight: 600; }
.narrative-page .systems-section { padding-top: 66px; padding-bottom: 80px; border-top: 1px solid var(--hairline-dark); }
.narrative-page .systems-heading h2 { font-size: clamp(40px, 4.6vw, 64px); }
.background-detail { margin-top: 64px; border-top: 1px solid var(--hairline-light); }
.background-detail > summary { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px 25px; padding: 25px 0; cursor: pointer; color: var(--ink); font: 500 24px/1.25 var(--heading); letter-spacing: -.03em; }
.background-detail > summary span { color: #53677a; font: 400 12px/1.5 var(--body); letter-spacing: 0; }
.background-detail > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.background-detail .expertise-grid { margin-top: 12px; }
.narrative-page .contact-section h2 { font-size: clamp(45px, 5.8vw, 82px); }
.narrative-page .contact-section .section-index { flex-wrap: wrap; }
@media (max-width: 800px) {
  .narrative-page .hero-grid { min-height: 0; padding-top: 48px; gap: 35px; }
  .narrative-page .hero h1 { font-size: clamp(40px, 6.6vw, 62px); }
  .story-route a { padding: 24px 28px 24px 0; }
  .story-route a + a { padding-left: 20px; }
  .story-route .route-arrow { right: 8px; font-size: 19px; }
  .story-route strong { font-size: 21px; }
  .observation-trace { margin-top: 45px; padding-top: 30px; }
  .story-memory .chapter-heading { grid-template-columns: 1fr; gap: 24px; }
  .chapter-intro p { max-width: 620px; }
  .narrative-page .work-section { padding-block: 72px; }
  .narrative-page .section-heading > p { font-size: 16px; }
}
@media (max-width: 600px) {
  .narrative-page .hero h1 { font-size: clamp(30px, 8.6vw, 46px); }
  .narrative-page .hero-grid { padding-block: 38px; gap: 30px; }
  .narrative-page .hero-lead { margin-top: 24px; }
  .narrative-page .hero-footnote { margin-top: 24px; font-size: 13px; }
  .narrative-page .hero-bottom { font-size: 8px; }
  .story-route-inner { grid-template-columns: 1fr; }
  .story-route a, .story-route a + a { grid-template-columns: 78px minmax(0, 1fr); gap: 6px 14px; padding: 20px 26px 20px 0; border-left: 0; }
  .story-route a + a { border-top: 1px solid var(--hairline-light); }
  .story-route a > span:first-child { grid-row: 1 / 3; align-self: center; font-size: 9px; }
  .story-route strong { font-size: 21px; }
  .story-route small { grid-column: 2; font-size: 11px; }
  .story-route .route-arrow { top: 27px; right: 0; }
  .chapter-heading .section-index { margin-bottom: 24px; font-size: 10px; flex-wrap: wrap; }
  .story-memory .chapter-heading h2 { font-size: clamp(43px, 10.5vw, 60px); }
  .chapter-intro p { font-size: 16px; }
  .narrative-page .engineering-practice { margin-top: 32px; }
  .trace-copy h3 { font-size: 36px; }
  .trace-steps strong { font-size: 20px; }
  .trace-steps p { font-size: 14px; }
  .chapter-handoff { font-size: 13px; }
  .narrative-page .work-section { padding-block: 64px; }
  .narrative-page .section-heading h2 { font-size: clamp(43px, 10.5vw, 60px); }
  .narrative-page .section-heading > p { font-size: 15px; }
  .narrative-page .systems-heading h2 { font-size: 40px; }
  .background-detail { margin-top: 36px; }
  .background-detail > summary { font-size: 21px; }
}
.context-map { padding: 28px; border: 1px solid var(--hairline-dark); background: #0e2437; }
.context-map-label { margin-bottom: 24px; color: #b5c5d2; font: 500 10px/1.5 var(--mono); letter-spacing: .08em; }
.context-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.context-sources > div, .context-task, .context-result { padding: 22px; border: 1px solid #557e99; }
.context-map span { display: block; margin-bottom: 12px; color: var(--accent); font: 500 10px/1.5 var(--mono); text-transform: uppercase; }
.context-map strong { display: block; color: var(--white); font: 500 clamp(23px, 2.2vw, 31px)/1.18 var(--heading); letter-spacing: -.035em; }
.context-map p { margin-top: 12px; color: #b9c9d5; font-size: 13px; line-height: 1.6; }
.context-task, .context-result { position: relative; margin-top: 36px; }
.context-task::before, .context-result::before { content: "↓"; position: absolute; top: -30px; left: calc(50% - 7px); color: var(--accent); font-size: 21px; }
.context-task { border-color: var(--accent); }
.context-result { border: 0; border-top: 1px solid #557e99; padding-bottom: 0; }
.context-map figcaption { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--hairline-dark); color: #9caebe; font: 400 11px/1.6 var(--mono); }
.method-deep-dive { grid-column: 1 / -1; border-top: 1px solid var(--hairline-dark); }
.method-deep-dive > summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; padding: 22px 0; color: var(--accent); cursor: pointer; font: 500 22px/1.3 var(--heading); }
.method-deep-dive > summary span { color: #b5c5d2; font: 400 11px/1.6 var(--mono); }
.method-deep-dive > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 600px) {
  .context-map { padding: 20px; }
  .context-sources { grid-template-columns: 1fr; gap: 12px; }
  .context-sources > div, .context-task, .context-result { padding: 18px; }
  .context-result { padding-bottom: 0; }
  .method-deep-dive > summary { font-size: 20px; }
}

/* Design review: discoverable disclosure states and content-led composition. */
.context-map { align-self: start; }
.method-deep-dive > summary, .background-detail > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  list-style: none;
}
.method-deep-dive > summary::-webkit-details-marker,
.background-detail > summary::-webkit-details-marker { display: none; }
.method-deep-dive > summary .disclosure-title,
.background-detail > summary .disclosure-title { color: inherit; font: inherit; letter-spacing: inherit; }
.method-deep-dive > summary > span:nth-child(2):not(.disclosure-indicator) { grid-column: 1; }
.disclosure-indicator { grid-column: 2; grid-row: 1 / 3; }
.method-deep-dive > summary .disclosure-indicator,
.background-detail > summary .disclosure-indicator { color: inherit; font: 400 24px/1 var(--mono); }
.disclosure-indicator::before { content: "+"; }
details[open] > summary > .disclosure-indicator::before { content: "−"; }
.method-deep-dive > summary:hover .disclosure-title,
.background-detail > summary:hover .disclosure-title { text-decoration: underline; text-underline-offset: 5px; }
.engineering-loop > .engineering-artifacts { margin-top: 0; margin-bottom: 28px; }
#aimlink-section-title, #intro-title { scroll-margin-top: 28px; }

@media print {
  html { scroll-behavior: auto; }
  body { min-width: 0; font-size: 10pt; }
  *, *::before, *::after {
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #bbb !important;
  }
  .container, .discipline-inner { width: 100%; max-width: none; }
  .skip-link, .site-nav, .header-contact, .hero-actions, .hero-bottom,
  .discipline-strip, .media-toggle, .media-status, .systems-selector,
  .system-case-link, .case-links, .intro-asterisk, .site-footer a { display: none !important; }
  .site-header { border-bottom: 1px solid #999; }
  .header-inner { min-height: 0; padding: 0 0 10pt; }
  .brand-mark { font-size: 30pt; }
  .brand-name { font-size: 13pt; }
  h1 { font-size: 30pt !important; line-height: 1.05 !important; }
  h2 { font-size: 22pt !important; line-height: 1.1 !important; }
  h3 { font-size: 16pt !important; line-height: 1.15 !important; }
  h4 { font-size: 11pt !important; }
  h1, h2, h3, h4 { break-after: avoid; }
  p { font-size: 9.5pt !important; line-height: 1.45 !important; orphans: 3; widows: 3; }
  .section-index, .case-kicker, .system-panel-top { font-size: 7pt; }
  .engineering-loop-label, .section-index, .case-kicker { break-after: avoid; }
  .hero-grid { min-height: 0; grid-template-columns: 1.1fr .9fr; gap: 20pt; padding: 16pt 0; break-inside: avoid; }
  .hero-meta { margin: 0 0 10pt; font-size: 7pt; }
  .hero-index { margin-bottom: 8pt; }
  .hero-lead { margin-top: 12pt; }
  .hero-instrument { width: 100%; margin: 0; transform: none; break-inside: avoid; }
  .instrument-head, .hero-instrument figcaption { padding: 6pt; font-size: 6.5pt; }
  .intro, .systems-section, .work-section, .about-section, .contact-section { padding: 14pt 0; }
  .intro-grid { display: block; padding-bottom: 12pt; }
  .intro-grid > .section-index { margin-bottom: 8pt; }
  .intro-bottom { display: block; margin-top: 10pt; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-item { min-height: 0; padding: 10pt !important; break-inside: avoid; }
  .expertise-symbol { height: 25pt; font-size: 24pt; margin: 5pt 0; }
  .expertise-item h3 { font-size: 13pt !important; }
  .expertise-item p { margin-top: 5pt; }
  .expertise-item summary { min-height: 0; padding: 10pt; }
  .expertise-item summary strong { font-size: 13pt; }
  .expertise-item .expertise-number { font-size: 7pt; }
  .expertise-expand, .stage-indicator { display: none; }
  .expertise-detail { padding: 0 10pt 10pt; }
  .expertise-detail a { display: none; }
  .engineering-practice { display: block; padding: 12pt; margin-top: 12pt; }
  .engineering-practice > .engineering-loop { margin-top: 12pt; }
  .engineering-intro h3 { margin-top: 8pt; }
  .engineering-intro > p:not(.section-index) { margin-top: 8pt; }
  .agent-research { display: block; margin-top: 12pt; padding-top: 10pt; }
  .agent-research > .engineering-loop { margin-top: 10pt; }
  .research-intro h4 { margin-top: 8pt; font-size: 14pt !important; }
  .research-intro > p:not(.section-index) { margin-top: 8pt; }
  .research-reference { min-height: 0; padding: 0; font-size: 8pt; }
  .research-reference::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  .disclosure-hint { display: none !important; }
  .agent-research .engineering-loop { padding: 0; border: 0; }
  .agent-research .research-topics { margin-top: 0; }
  .research-topics .stage-detail p + p { margin-top: 4pt; }
  .research-topics summary { padding: 5pt 0; }
  .research-topics .stage-detail { padding-bottom: 4pt; }
  .research-reference { margin-top: 6pt; }
  .engineering-artifacts { margin-top: 8pt; break-inside: avoid; }
  .engineering-artifacts > div { padding: 6pt 0; }
  .engineering-loop { padding: 8pt; }
  .engineering-stages { margin-top: 8pt; break-before: avoid; }
  .engineering-stages > li { break-inside: avoid; }
  .engineering-stages summary { padding: 7pt 0; }
  .engineering-stages summary strong { font-size: 13pt; }
  .stage-detail { padding: 0 0 8pt 48px; }
  .engineering-loop-note { padding-top: 8pt; }
  details::details-content { content-visibility: visible !important; }
  .systems-heading, .section-heading { display: block; margin-bottom: 12pt; break-inside: avoid; break-after: avoid; }
  .systems-heading h2, .section-heading h2 { margin: 6pt 0; }
  .systems-heading > p, .section-heading > p { max-width: none; margin-top: 8pt; }
  .systems-explorer { display: block; min-height: 0; border: 0; }
  .system-panel, .system-panel[hidden] { display: block !important; padding: 12pt; margin-bottom: 12pt; border: 1px solid #bbb; break-inside: avoid; }
  .system-panel-copy { grid-template-columns: 1fr; margin: 12pt 0; gap: 6pt; }
  .system-panel-copy > p:last-child { max-width: none; margin: 0; }
  .system-visual { height: auto; min-height: 0; padding: 8pt; break-inside: avoid; }
  .shot-analysis { grid-template-columns: 220px 1fr; gap: 12pt; }
  .group-key { gap: 10pt; padding: 0; }
  .group-key > div { gap: 8pt; }
  .group-key strong { font-size: 9pt; }
  .group-key p span { font-size: 8pt; }
  .measure-key { width: 26pt; height: 26pt; font-size: 7pt; }
  .mean-key { width: 26pt; }
  .shot-analysis figcaption, .engineering-visual figcaption { font-size: 7pt; }
  .engineering-visual img { max-height: 180px; width: auto; max-width: 100%; }
  .flow-map { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-node { min-height: 65px; padding: 7pt; }
  .flow-node strong { font-size: 11pt; }
  .visual-corner { display: none; }
  .system-stages { margin-top: 8pt; grid-template-columns: repeat(3, 1fr); }
  .system-stages > div, .system-stages > div + div { padding: 6pt; border-top: 0; }
  .system-stages span { font-size: 7pt; }
  .system-stages p { margin-top: 4pt; font-size: 8pt !important; }
  .systems-disclaimer { margin-top: 5pt; font-size: 7pt !important; }
  .case-feature { grid-template-columns: 1fr; min-height: 0; }
  .venture-map { border-left: 0; border-top: 1px solid #bbb; padding: 12pt; break-inside: avoid; }
  .venture-map h4 { font-size: 20pt; margin-top: 8pt; }
  .venture-products { margin-top: 10pt; }
  .venture-products > a { min-height: 0; padding: 8pt 0; }
  .venture-products strong { font-size: 12pt; }
  .venture-product-arrow { display: none; }
  .venture-map-note { margin-top: 8pt; }
  .case-content { min-height: 0; padding: 12pt; }
  .case-feature h3 { margin-top: 12pt; font-size: 22pt !important; }
  .case-content > p:not(.case-kicker):not(.case-subtitle):not(.case-role) { margin-top: 10pt; }
  .case-tags { margin-top: 10pt; padding-top: 0; }
  .case-tags span { font-size: 7pt; padding: 4pt; }
  .aimlink-figure { min-height: 0; break-inside: avoid; }
  .figure-top { padding: 8pt; font-size: 6.5pt; }
  .target-field { min-height: 0; padding: 5pt; }
  .group-case img { max-height: 155px; width: auto; max-width: 100%; }
  .aimlink-figure .group-key { padding: 8pt; gap: 8pt; }
  .aimlink-figure figcaption { padding: 0 8pt 8pt; font-size: 6.5pt; }
  .cybersecurity-feature { padding: 12pt; margin-top: 12pt; }
  .cybersecurity-heading { grid-template-columns: 1fr; gap: 8pt; }
  .cybersecurity-heading .section-index { margin-bottom: 8pt; }
  .cybersecurity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cybersecurity-grid > div { padding: 10pt; break-inside: avoid; }
  .cybersecurity-grid h4 { margin-top: 8pt; }
  .cybersecurity-grid p { margin-top: 6pt; }
  .about-grid, .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 16pt; align-items: start; }
  .about-copy { max-width: none; }
  .about-copy > p + p { margin-top: 8pt; }
  .about-signoff { margin-top: 10pt; padding-top: 8pt; }
  .contact-section { break-before: page; break-inside: avoid; break-after: avoid; }
  .contact-section p:not(.section-index) { margin-top: 8pt; }
  .contact-action a { display: block; padding: 8pt 0; font-size: 11pt; }
  .contact-action a span { display: none; }
  .contact-action a::after { content: attr(href); display: block; margin-top: 5pt; font: 400 8pt var(--mono); overflow-wrap: anywhere; }
  .contact-action small { font-size: 8pt; }
  .site-footer { break-before: avoid; break-inside: avoid; }
  .footer-inner { min-height: 0; padding: 10pt 0 0; font-size: 7pt; }
}

@media print {
  .story-route, .chapter-handoff, .trace-copy > .text-link { display: none !important; }
  .narrative-page .hero-grid { min-height: 0; padding: 16pt 0; }
  .narrative-page .hero-lead { font-size: 9.5pt; }
  .narrative-page .work-section, .narrative-page .systems-section { padding: 14pt 0; }
  .observation-trace { margin-top: 12pt; padding-top: 12pt; }
  .trace-copy h3 { margin-top: 8pt; }
  .trace-steps { margin: 8pt 0; }
  .trace-steps li { padding-left: 24px; padding-bottom: 8pt; }
  .trace-steps strong { font-size: 11pt; }
  .trace-steps p { margin-top: 4pt; }
  .concept-note summary { font-size: 9pt; padding: 6pt 0; }
  .concept-note > div { padding-bottom: 6pt; }
  .story-memory .chapter-heading { display: block; }
  .chapter-heading .section-index { margin-bottom: 8pt; }
  .chapter-intro { margin-top: 8pt; }
  .narrative-page .engineering-practice { margin-top: 12pt; }
  .narrative-page .engineering-intro h3, .narrative-page .research-intro h4 { margin-top: 8pt; }
  .background-detail { margin-top: 12pt; }
  .background-detail > summary { font-size: 12pt; padding: 8pt 0; break-after: avoid; }
  .background-detail .expertise-grid { margin-top: 6pt; }
}

@media print {
  .context-map { margin-top: 10pt; padding: 8pt; break-inside: avoid; }
  .context-map-label { margin-bottom: 8pt; }
  .context-sources { grid-template-columns: 1fr 1fr; gap: 8pt; }
  .context-sources > div, .context-task, .context-result { padding: 6pt; }
  .context-task, .context-result { margin-top: 16pt; }
  .context-task::before, .context-result::before { top: -17pt; font-size: 12pt; }
  .context-map strong { font-size: 12pt; }
  .context-map span { margin-bottom: 4pt; font-size: 7pt; }
  .context-map p { margin-top: 4pt; }
  .context-map figcaption { margin-top: 8pt; padding-top: 6pt; font-size: 7pt; }
  .method-deep-dive > summary { padding: 8pt 0; font-size: 12pt; break-after: avoid; }
  .method-deep-dive > summary span { font-size: 8pt; }
}

/* Type ramp (2026-11-19): one size per heading level so the visual order matches
   the document order — page title > chapter > case > panel — at every width.
   Screen only; the print layout keeps its own sizes. */
:root {
  --type-h1: clamp(44px, 5.8vw, 88px);
  --type-h2: clamp(40px, 4.6vw, 68px);
  --type-h3: clamp(30px, 3.2vw, 46px);
  --type-h4: clamp(23px, 2.2vw, 32px);
}
@media (max-width: 800px) {
  :root { --type-h1: clamp(48px, 8vw, 64px); --type-h2: clamp(38px, 6.2vw, 50px); --type-h3: clamp(29px, 4.6vw, 38px); --type-h4: 26px; }
}
@media (max-width: 600px) {
  :root { --type-h1: clamp(34px, 11vw, 46px); --type-h2: clamp(30px, 9vw, 38px); --type-h3: clamp(26px, 7.4vw, 32px); --type-h4: 23px; }
}
@media screen {
  .narrative-page .hero h1 { font-size: var(--type-h1); }
  .narrative-page .section-heading h2,
  .narrative-page .chapter-heading h2,
  .narrative-page .systems-heading h2,
  .narrative-page .about-section h2,
  .narrative-page .contact-section h2 { font-size: var(--type-h2); line-height: 1.02; letter-spacing: -.06em; }
  .narrative-page .case-feature h3,
  .narrative-page .trace-copy h3,
  .narrative-page .engineering-intro h3,
  .narrative-page .cybersecurity-heading h3,
  .narrative-page .system-panel h3 { font-size: var(--type-h3); line-height: 1.08; letter-spacing: -.045em; }
  .narrative-page .case-feature h3 { letter-spacing: -.06em; }
  .narrative-page .venture-map h4,
  .narrative-page .research-intro h4,
  .narrative-page .cybersecurity-grid h4 { font-size: var(--type-h4); line-height: 1.15; letter-spacing: -.035em; }
}

/* Content-led composition (2026-11-19): surfaces end with their content, and the
   short element in a two-column block stays beside the long text it introduces. */
@media screen {
  .narrative-page .agent-research > .engineering-loop { align-self: start; }
}
@media screen and (min-width: 801px) {
  .narrative-page .about-grid { align-items: start; }
  .narrative-page .about-grid > div:first-child { position: sticky; top: 40px; }
  .narrative-page .about-copy { margin-top: calc(11px * 1.4 + 40px); }
}

/* Label floor (2026-11-19): mono metadata labels never render below 10px.
   Size alone carried the "secondary" role before; colour, case and tracking
   already do that, so the smallest labels gain legibility without new hierarchy. */
@media screen {
  .narrative-page .cybersecurity-scope,
  .narrative-page .cybersecurity-grid > div > span,
  .narrative-page .flow-node span,
  .narrative-page .visual-corner { font-size: 10px; }
}
@media screen and (max-width: 800px) {
  .narrative-page .system-tab > span:first-child,
  .narrative-page .engineering-visual figcaption,
  .narrative-page .discipline-inner span { font-size: 10px; }
}
@media screen and (max-width: 600px) {
  .narrative-page .hero-meta,
  .narrative-page .instrument-head,
  .narrative-page .hero-instrument figcaption,
  .narrative-page .hero-bottom,
  .narrative-page .engineering-practice .section-index,
  .narrative-page .engineering-loop-label,
  .narrative-page .case-kicker,
  .narrative-page .figure-top,
  .narrative-page .figure-bottom,
  .narrative-page .aimlink-figure figcaption,
  .narrative-page .cybersecurity-heading .section-index { font-size: 10px; }
  .narrative-page .story-route a,
  .narrative-page .story-route a + a { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .narrative-page .story-route a > span:first-child { grid-row: auto; font-size: 10px; }
  .narrative-page .story-route small { grid-column: auto; }
}

/* Chapter entry points (2026-11-19): nav, hero and route links all land on the
   chapter heading, with its "0X / Chapter" eyebrow kept in view above it. */
#aimlink-section-title, #intro-title, #about-title { scroll-margin-top: 84px; }
@media screen { .narrative-page .story-route a { grid-template-rows: auto 1fr auto; } }

/* Item level of the type ramp (2026-11-19): titles of list entries, diagram nodes
   and disclosure entries sit below the heading or disclosure that contains them.
   The two section disclosures take the H4 size because they open whole subsections. */
:root { --type-item: clamp(19px, 1.5vw, 22px); }
@media screen {
  .narrative-page .method-deep-dive > summary,
  .narrative-page .background-detail > summary { font-size: var(--type-h4); }
  .narrative-page .engineering-stages summary strong,
  .narrative-page .context-map strong,
  .narrative-page .expertise-item summary strong,
  .narrative-page .trace-steps strong,
  .narrative-page .venture-products strong { font-size: var(--type-item); line-height: 1.2; }
}

/* Touch targets (2026-11-19): the footer's "Back to top" and the chapter handoff
   get a 44px hit height; extra area sits above the text so the underline spacing is unchanged. */
@media screen {
  .narrative-page .footer-inner > a { display: inline-flex; align-items: center; min-height: 44px; }
  .narrative-page .chapter-handoff a { min-height: 44px; align-items: flex-end; }
}


/* Touch targets on touch screens and narrow layouts (2026-11-19): 44px hit height
   (Apple HIG) for secondary links and the video control. Extra height sits above
   link text, so text-to-underline spacing is unchanged; fine-pointer desktop is untouched. */
@media screen and (pointer: coarse), screen and (max-width: 800px) {
  .narrative-page .text-link,
  .narrative-page .system-case-link { min-height: 44px; align-items: flex-end; }
  .narrative-page .media-toggle,
  .narrative-page .brand { min-height: 44px; }
}

/* Bold chapter design (2026-11-19, user-selected direction).
   1. Each chapter opens with a large outlined numeral and a closing hairline.
   2. Diagrams become wide and centred, with their text above or below rather than beside.
   3. The chapter-2 method panel becomes a full-width band instead of a boxed card.
   Screen only; numerals are hidden in print. */
@media screen {
  .narrative-page .chapter-number {
    grid-column: 1 / -1; display: block; margin: 0 0 clamp(18px, 2.4vw, 34px) -.05em;
    font: 500 clamp(112px, 17vw, 264px)/.78 var(--heading); letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 2px rgba(103, 210, 255, .8); user-select: none;
  }
  .narrative-page .light-section .chapter-number { -webkit-text-stroke-color: rgba(11, 25, 40, .55); }
  .narrative-page .work-section, .narrative-page .intro.story-memory { padding-top: clamp(96px, 10vw, 150px); }
  .narrative-page .section-heading,
  .narrative-page .story-memory .chapter-heading { padding-bottom: clamp(40px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--hairline-dark); }
  .narrative-page .story-memory .chapter-heading { margin-bottom: 0; border-bottom-color: var(--hairline-light); }

  .narrative-page .engineering-practice {
    grid-template-columns: minmax(0, 1fr); margin-top: clamp(48px, 6vw, 88px);
    padding-inline: 0; padding-block: clamp(56px, 7vw, 104px); border: 0;
    box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  }
  .narrative-page .chapter-handoff { margin-top: clamp(40px, 5vw, 64px); }
}
@supports not (-webkit-text-stroke: 1px) {
  @media screen { .narrative-page .chapter-number { color: rgba(103, 210, 255, .22); } .narrative-page .light-section .chapter-number { color: rgba(11, 25, 40, .12); } }
}
@media screen and (min-width: 801px) {
  .narrative-page .trace-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: clamp(32px, 3.5vw, 48px) 0; }
  .narrative-page .trace-steps li { padding: 36px 0 0; border-left: 0; border-top: 1px solid #557e99; }
  .narrative-page .trace-steps li::before { top: 12px; left: 0; width: auto; padding: 0; background: transparent; }
}
@media screen and (min-width: 1024px) {
  .narrative-page .engineering-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 80px); }
  .narrative-page .engineering-intro > .section-index,
  .narrative-page .engineering-intro > h3 { grid-column: 1 / -1; }
  .narrative-page .engineering-intro > p:not(.section-index) { max-width: 600px; }
  .narrative-page .context-map { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; padding: clamp(32px, 3.5vw, 48px); }
  .narrative-page .context-map-label,
  .narrative-page .context-map figcaption { grid-column: 1 / -1; }
  .narrative-page .context-sources { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .narrative-page .context-task { grid-column: 2; margin-top: 0; }
  .narrative-page .context-result { grid-column: 3; margin-top: 0; padding: 22px 0 22px 28px; border-top: 0; border-left: 1px solid #557e99; }
  .narrative-page .context-task::before,
  .narrative-page .context-result::before { content: "→"; top: 50%; left: -46px; transform: translateY(-50%); }

}
@media print { .chapter-number { display: none !important; } }

/* Bold chapter design, phase 2 (2026-11-19): the hero and the security pipeline use the
   chapters' language — a full-width headline above a large centred film, and an unboxed
   band whose steps carry outlined numerals. Screen only. */
@media screen and (min-width: 801px) {
  :root { --type-h1: clamp(64px, 9.4vw, 140px); }
  .narrative-page .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 5vw, 72px); min-height: 0; padding-top: clamp(56px, 6vw, 88px); }
  .narrative-page .hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(40px, 6vw, 100px); align-items: start; }
  .narrative-page .hero-meta,
  .narrative-page .hero h1 { grid-column: 1 / -1; }
  .narrative-page .hero-lead { grid-column: 1; grid-row: 3 / span 2; max-width: 660px; }
  .narrative-page .hero-actions { grid-column: 2; grid-row: 3; margin-top: 34px; }
  .narrative-page .hero-footnote { grid-column: 2; grid-row: 4; max-width: none; }
  .narrative-page .hero-instrument { width: min(100%, 1100px); justify-self: center; transform: none; }
}
@media screen and (min-width: 601px) and (max-width: 800px) {
  :root { --type-h1: clamp(56px, 10.5vw, 84px); }
}
@media screen {
  .narrative-page .cybersecurity-feature {
    margin-top: clamp(56px, 6vw, 96px); padding-inline: 0; padding-block: clamp(56px, 7vw, 104px); border: 0;
    box-shadow: 0 0 0 100vmax #12334b; clip-path: inset(0 -100vmax);
  }
  .narrative-page .cybersecurity-grid { counter-reset: step; }
  .narrative-page .cybersecurity-grid > div { counter-increment: step; }
  .narrative-page .cybersecurity-grid > div::before {
    content: counter(step, decimal-leading-zero); content: counter(step, decimal-leading-zero) / "";
    display: block; margin-bottom: 22px; font: 500 clamp(56px, 6vw, 88px)/.8 var(--heading); letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(103, 210, 255, .8);
  }
}

/* Improve chapter: self-improving agents and the AI security scanner.
   Reuses the chapter opener, full-bleed band and disclosure list; adds an autonomy map
   (person lane above agent lane) and a two-loop diagram of how the scanner evolves. */
.story-improve .chapter-heading { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(30px, 7vw, 100px); align-items: end; }
#improve-title { scroll-margin-top: 84px; }
@media (max-width: 800px) { .story-improve .chapter-heading { grid-template-columns: 1fr; gap: 24px; } }
@media screen {
  .narrative-page .intro.story-improve { padding-top: clamp(96px, 10vw, 150px); }
  .narrative-page .story-improve .chapter-heading { padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--hairline-light); }

  .narrative-page .improve-band { margin-top: clamp(48px, 6vw, 88px); padding-block: clamp(56px, 7vw, 104px); color: var(--white); background: var(--ink); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
  .narrative-page .improve-block + .improve-block { margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--hairline-dark); }
  .narrative-page .improve-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
  .narrative-page .improve-intro .section-index { grid-column: 1 / -1; margin-bottom: 24px; color: var(--accent); flex-wrap: wrap; }
  .narrative-page .improve-intro h3 { grid-column: 1; font: 500 var(--type-h3)/1.08 var(--heading); letter-spacing: -.045em; }
  .narrative-page .improve-intro h3 em { color: var(--accent); font-style: normal; }
  .narrative-page .improve-intro > p:not(.section-index) { grid-column: 2; max-width: 620px; color: #c0ced9; font-size: 16px; line-height: 1.65; }
  .narrative-page .improve-intro > .text-link { grid-column: 2; justify-self: start; margin-top: 20px; color: var(--accent); }

  .narrative-page .autonomy-map { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--hairline-dark); background: #0e2437; }
  .narrative-page .autonomy-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 28px; padding: 0; list-style: none; color: #b5c5d2; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .narrative-page .autonomy-legend li { display: flex; align-items: center; gap: 10px; }
  .narrative-page .autonomy-legend li::before { content: ""; width: 18px; height: 12px; border: 1px solid var(--accent); background: rgba(103, 210, 255, .14); }
  .narrative-page .autonomy-legend .mode-optional::before { border: 1px dashed #b5c5d2; background: transparent; }
  .narrative-page .autonomy-legend .mode-person::before { border: 0; border-left: 3px solid var(--coral); background: rgba(240, 182, 144, .2); }
  .narrative-page .autonomy-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .narrative-page .autonomy-row + .autonomy-row { margin-top: 12px; }
  .narrative-page .lane-label { align-self: center; color: #b5c5d2; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .narrative-page .autonomy-person,
  .narrative-page .autonomy-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
  .narrative-page .autonomy-person > li:nth-child(1) { grid-column: 1; }
  .narrative-page .autonomy-person > li:nth-child(2) { grid-column: 2 / 8; }
  .narrative-page .autonomy-person > li:nth-child(3) { grid-column: 8; }
  .narrative-page .autonomy-person > li,
  .narrative-page .autonomy-steps > li { min-width: 0; padding: 16px 12px; }
  .narrative-page .autonomy-map li strong { display: block; color: var(--white); font: 500 clamp(15px, 1.15vw, 18px)/1.2 var(--heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
  .narrative-page .autonomy-map li p { margin-top: 8px; color: #b9c9d5; font-size: 13px; line-height: 1.5; }
  .narrative-page .autonomy-steps { counter-reset: auto-step; }
  .narrative-page .autonomy-steps > li { counter-increment: auto-step; border: 1px solid rgba(103, 210, 255, .55); background: rgba(103, 210, 255, .06); }
  .narrative-page .autonomy-steps > li::before { content: "0" counter(auto-step); content: "0" counter(auto-step) / ""; display: block; margin-bottom: 10px; color: var(--accent); font: 500 11px/1 var(--mono); }
  .narrative-page .autonomy-person > .mode-optional { display: flex; flex-direction: column; justify-content: center; border: 1px dashed rgba(181, 197, 210, .7); text-align: center; }
  .narrative-page .autonomy-person > .mode-person { border-left: 3px solid var(--coral); background: rgba(240, 182, 144, .1); }
  .narrative-page .autonomy-person > .mode-person strong { color: var(--coral); }
  .narrative-page .loop-back { display: block; margin-top: 8px; color: var(--accent); font: 500 11px/1.4 var(--mono); }
  .narrative-page .autonomy-map figcaption,
  .narrative-page .evolve-map figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hairline-dark); color: #9caebe; font: 400 11px/1.6 var(--mono); }

  .narrative-page .evolve-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .5fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: center; }
  .narrative-page .evolve-loop { align-self: stretch; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--hairline-dark); background: #0e2437; }
  .narrative-page .evolve-kicker { color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .narrative-page .evolve-loop > strong { display: block; margin-top: 12px; color: var(--white); font: 500 var(--type-item)/1.2 var(--heading); letter-spacing: -.02em; }
  .narrative-page .evolve-loop ul,
  .narrative-page .evolve-roles { margin: 20px 0 0; padding: 0; list-style: none; }
  .narrative-page .evolve-loop li { padding: 12px 0; border-top: 1px solid var(--hairline-dark); color: #c0ced9; font-size: 14px; line-height: 1.55; }
  .narrative-page .evolve-roles li span { display: block; margin-bottom: 4px; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .narrative-page .evolve-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline-dark); color: #9caebe; font: 400 11px/1.6 var(--mono); }
  .narrative-page .evolve-bridge p { color: #c0ced9; font-size: 13px; line-height: 1.55; }
  .narrative-page .evolve-bridge p + p { margin-top: 28px; }
  .narrative-page .evolve-bridge span { display: block; margin-bottom: 6px; color: var(--accent); font: 400 32px/1 var(--mono); }
  .narrative-page .evolve-map figcaption { grid-column: 1 / -1; margin-top: 0; }

  .narrative-page .improve-deep { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 74px); align-items: start; }
  .narrative-page .improve-deep .improve-intro { display: block; margin-bottom: 0; }
  .narrative-page .improve-deep .improve-intro > p:not(.section-index),
  .narrative-page .improve-deep .improve-intro > .text-link { margin-top: 24px; }
}
@media screen and (max-width: 1359px) {
  .narrative-page .autonomy-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .narrative-page .autonomy-person { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .narrative-page .autonomy-person > li:nth-child(n) { grid-column: auto; }
}
@media screen and (max-width: 800px) {
  .narrative-page .improve-intro,
  .narrative-page .improve-deep,
  .narrative-page .evolve-map,
  .narrative-page .autonomy-row,
  .narrative-page .autonomy-person { grid-template-columns: minmax(0, 1fr); }
  .narrative-page .improve-intro { row-gap: 20px; }
  .narrative-page .improve-intro h3,
  .narrative-page .improve-intro > p:not(.section-index),
  .narrative-page .improve-intro > .text-link { grid-column: 1; }
  .narrative-page .autonomy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .narrative-page .autonomy-row { gap: 8px; }
  .narrative-page .evolve-bridge { text-align: center; }
  .narrative-page .evolve-bridge span { display: inline-block; transform: rotate(90deg); }
}
@media screen and (max-width: 480px) {
  .narrative-page .autonomy-steps { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .story-improve .chapter-heading { display: block; }
  .autonomy-legend, .autonomy-person, .autonomy-steps, .evolve-loop ul, .evolve-roles { padding-left: 14pt; }
}
@media screen {
  .narrative-page .evolve-loop { display: flex; flex-direction: column; }
  .narrative-page .evolve-note { margin-top: auto; }
  .narrative-page .evolve-loop ul, .narrative-page .evolve-roles { margin-bottom: 16px; }
}

/* Message and access (2026-11-19 focus run): "Get in touch" stays reachable on narrow
   screens — beside the brand on phones, in the header row on tablets. */
@media screen and (max-width: 800px) {
  .narrative-page .header-contact { display: flex; min-height: 44px; padding-left: 16px; font-size: 12px; }
}
@media screen and (max-width: 560px) {
  .narrative-page .brand { order: 0; }
  .narrative-page .header-contact { order: 1; margin-left: auto; padding-left: 0; border-left: 0; }
  .narrative-page .site-nav { order: 2; }
}

/* Thread fix (2026-11-19 focus run): security now opens chapter 4. The band sits on the
   light chapter, so it sets its own text colour and meets the agent band without a gap. */
@media screen {
  .narrative-page .story-improve .cybersecurity-feature { color: var(--white); margin-bottom: 0; }
  .narrative-page .improve-security + .improve-band { margin-top: 0; }
}

/* Repetition (2026-11-19 focus run): the system explorer repeats the chapter diagrams, so it
   becomes a compact appendix whose tabs open on request. Markup, script and tests unchanged. */
@media screen {
  .narrative-page .systems-section { padding-block: clamp(56px, 6vw, 88px); }
  .narrative-page .systems-heading { margin-bottom: 8px; }
  .narrative-page .systems-heading h2 { font-size: var(--type-h3); line-height: 1.08; letter-spacing: -.045em; }
  .narrative-page .systems-notes { border-top: 1px solid var(--hairline-dark); }
  .narrative-page .systems-notes[open] > summary { margin-bottom: 24px; }
}
@media screen {
  .narrative-page .intro { padding-bottom: clamp(72px, 7vw, 104px); }
  .narrative-page .about-section { padding-block: clamp(80px, 8vw, 120px); }
}
@media screen {
  .narrative-page .work-section, .narrative-page .intro.story-memory, .narrative-page .intro.story-improve { padding-top: clamp(80px, 8vw, 120px); }
  .narrative-page .section-heading,
  .narrative-page .story-memory .chapter-heading,
  .narrative-page .story-improve .chapter-heading { padding-bottom: clamp(36px, 4vw, 56px); }
  .narrative-page .section-heading { margin-bottom: clamp(40px, 4.5vw, 64px); }
  .narrative-page .engineering-practice, .narrative-page .improve-security .cybersecurity-feature { margin-top: clamp(40px, 4.5vw, 64px); }
  .narrative-page .observation-trace { margin-top: clamp(40px, 4.5vw, 56px); padding-top: clamp(28px, 3vw, 40px); }
  .narrative-page .improve-block + .improve-block { margin-top: clamp(48px, 5.5vw, 80px); padding-top: clamp(40px, 4vw, 56px); }
}
@media screen { .narrative-page .chapter-handoff { margin-top: clamp(32px, 4vw, 48px); } }
@media screen { .narrative-page .site-nav a { white-space: nowrap; } }
/* Mobile autonomy map (2026-11-19 focus run): two step columns down to 340px instead of one. */
@media screen and (max-width: 480px) and (min-width: 340px) {
  .narrative-page .autonomy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .narrative-page .autonomy-steps > li { padding: 14px 10px; }
}

/* ===== Run 2026-11-19-wow: the page performs its message (APC-0039 hero field, APC-0040 autonomy run, APC-0041 chapter rail).
   Screen only. Content stays static and complete without JS; Reduce Motion gets the still end state (global rule above plus JS checks). ===== */
.hero-field, .chapter-rail { display: none; }
@media screen {
  .narrative-page .hero { position: relative; }
  .narrative-page .hero-field { position: absolute; top: 0; left: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
  .narrative-page .hero-grid { position: relative; z-index: 1; }

  .narrative-page .run-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: -12px 0 18px; }
  .narrative-page .run-bar[hidden] { display: none; }
  .narrative-page .run-status { min-height: 1.4em; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .narrative-page .run-replay { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid currentColor; color: var(--white); background: none; font: 700 14px/1 var(--body); cursor: pointer; }
  .narrative-page .run-replay span { transition: transform .4s ease; }
  .narrative-page .run-replay:hover span { transform: rotate(-180deg); }
  .narrative-page .run-replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .narrative-page .autonomy-map li { transition: opacity .35s ease, background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
  .narrative-page .autonomy-map[data-run-state="running"] .autonomy-steps > li:not(.is-active):not(.is-done) { opacity: .42; }
  .narrative-page .autonomy-map[data-run-state="running"] .autonomy-person > .mode-person:not(.is-active):not(.is-done) { opacity: .5; }
  .narrative-page .autonomy-map[data-run-state="running"] .autonomy-person > .mode-optional { animation: review-open 1.4s ease-in-out infinite alternate; }
  .narrative-page .autonomy-steps > li.is-done { background: rgba(103, 210, 255, .13); }
  .narrative-page .autonomy-steps > li.is-active { border-color: var(--accent); background: rgba(103, 210, 255, .22); box-shadow: 0 0 0 1px var(--accent), 0 14px 44px rgba(103, 210, 255, .2); transform: translateY(-4px); }
  .narrative-page .autonomy-person > .mode-person.is-active { background: rgba(240, 182, 144, .26); box-shadow: 0 0 0 1px var(--coral), 0 14px 44px rgba(240, 182, 144, .18); transform: translateY(-4px); }
  @keyframes review-open { from { border-color: rgba(181, 197, 210, .45); } to { border-color: rgba(226, 235, 242, 1); } }
}
@media screen and (min-width: 1180px) {
  .narrative-page .chapter-rail { position: fixed; z-index: 20; top: 50%; right: 10px; display: block; width: 30px; padding: 6px 0; border: 1px solid rgba(217, 229, 239, .2); border-radius: 15px; background: rgba(11, 25, 40, .88); pointer-events: none; opacity: 0; visibility: hidden; transform: translate(8px, -50%); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
  .narrative-page .chapter-rail.is-visible { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .3s ease, transform .3s ease, visibility 0s; }
  .narrative-page .chapter-rail span { position: relative; display: block; padding: 10px 0; color: #9caebe; font: 500 11px/1 var(--mono); text-align: center; }
  .narrative-page .chapter-rail .is-current { color: var(--accent); }
  .narrative-page .chapter-rail .is-current::after { content: ""; position: absolute; right: 8px; bottom: 3px; left: 8px; height: 2px; background: var(--accent); transform: scaleX(var(--chapter-progress, 0)); transform-origin: left; }
}
/* Wide: the run bar shares the legend's row, so the page does not grow (focus-run length budget). */
@media screen and (min-width: 1360px) {
  .narrative-page .autonomy-map { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .narrative-page .autonomy-map > * { grid-column: 1 / -1; }
  .narrative-page .autonomy-map > .autonomy-legend { grid-column: 1; grid-row: 1; }
  .narrative-page .autonomy-map > .run-bar { grid-column: 2; grid-row: 1; align-self: start; margin: -15px 0 0; }
}
@media print { .hero-field, .chapter-rail, .run-bar, .run-replay { display: none !important; } }

/* ===== Run 2026-11-20-thread: the red thread (APC-0043). One set of points is carried through the three chapter openers
   (observe → remember → improve), with a coral line through every stage. The canvases overlay the empty band
   beside each numeral, above the eyebrow/intro rows, so they add no height or text. Screen only. ===== */
.thread-stage { display: none; }
@media screen {
  .narrative-page .section-heading, .narrative-page .chapter-heading { position: relative; }
  .narrative-page .section-heading > :not(.thread-stage), .narrative-page .chapter-heading > :not(.thread-stage) { position: relative; z-index: 1; }
  .narrative-page .thread-stage { position: absolute; top: 0; left: 0; z-index: 0; display: block; width: 100%; height: 0; pointer-events: none; }
}
@media print { .thread-stage { display: none !important; } }

/* APC-0044: the thread starts at the hero's shot group (canvas) and ties off at the contact action. Screen only. */
.thread-end { display: none; }
@media screen {
  .narrative-page .contact-section { position: relative; }
  .narrative-page .contact-section > .contact-grid { position: relative; z-index: 1; }
  .narrative-page .thread-end { position: absolute; top: 0; left: 0; z-index: 0; display: block; width: 100%; height: 0; pointer-events: none; }
}
@media print { .thread-end { display: none !important; } }

/* Light and interaction accents for the existing hero, film and work links. */
@media screen {
  .narrative-page .hero {
    background:
      radial-gradient(ellipse at 84% 19%, #204963 0, transparent 45%),
      radial-gradient(ellipse at 50% 78%, #112c43 0, transparent 62%),
      var(--ink);
  }
  .narrative-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(103, 210, 255, .11) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(103, 210, 255, .11) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at 80% 19%, #000, transparent 64%);
  }
  .narrative-page .workbench-film {
    position: relative;
    border-color: rgba(103, 210, 255, .52);
    box-shadow: 0 24px 72px rgba(0, 0, 0, .32), 0 0 48px rgba(103, 210, 255, .16);
    transition: box-shadow .24s ease;
  }
  .narrative-page .workbench-film::before,
  .narrative-page .workbench-film::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: clamp(24px, 5vw, 64px);
    height: 15px;
    border: 0 solid var(--accent);
    pointer-events: none;
  }
  .narrative-page .workbench-film::before {
    inset: -1px auto auto -1px;
    border-width: 2px 0 0 2px;
  }
  .narrative-page .workbench-film::after {
    inset: auto -1px -1px auto;
    border-width: 0 2px 2px 0;
  }
  .narrative-page .workbench-film:is(:hover, :focus-within) {
    box-shadow: 0 24px 72px rgba(0, 0, 0, .32), 0 0 64px rgba(103, 210, 255, .25);
  }
  .narrative-page .story-route a,
  .narrative-page .venture-products > a {
    transition: background-color .2s ease;
  }
  .narrative-page .story-route a:is(:hover, :focus-visible, :active) {
    background-color: rgba(22, 93, 135, .075);
  }
  .narrative-page .story-route a:focus-visible strong {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .narrative-page .venture-products > a:is(:hover, :focus-visible, :active) {
    background-color: rgba(103, 210, 255, .1);
  }
}
@media screen and (forced-colors: none) {
  @supports (background-clip: text) {
    .narrative-page .hero h1 em {
      color: transparent;
      background: linear-gradient(100deg, #b5ecff, var(--accent) 62%, #82dcff);
      background-clip: text;
    }
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .narrative-page .story-route .route-arrow {
    transition: transform .2s ease;
  }
  .narrative-page .story-route a:is(:hover, :focus-visible) .route-arrow {
    transform: translate(3px, 3px);
  }
  .narrative-page .venture-products > a:focus-visible .venture-product-arrow {
    transform: translate(3px, -3px);
  }
}
