:root {
  --paper: #f7f5ef;
  --ink: #141c26;
  --ink-soft: #222b39;
  --muted: #68717e;
  --line: #b9b9b3;
  --signal: #ff5b3d;
  --rust: #ad2c16;
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --shell: min(100% - 9rem, 86rem);
  --index-width: 200px;
  --portfolio-gap: 70px;
  --header-height: 70px;
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--muted);
  --rule: var(--line);
  --accent: var(--rust);
  --hover: var(--rust);
  color-scheme: light;
}
* { box-sizing: border-box; }
/* Overlap by one pixel to avoid a seam from fractional scroll rounding. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) - 1px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper); background: var(--rust); }
a { color: inherit; text-underline-offset: 5px; }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
h1,h2,h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.055em; }
p { margin: 0 0 1.25rem; }
dl,dd,figure { margin: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow, .row-number, .year, .text-link, .expand-control { font: 500 11px/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: block; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: var(--paper); border: 1px solid var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 70px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 32px; background: var(--ink-soft); color: var(--paper); border-bottom: 1px solid #ffffff24; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .055em; text-decoration: none; white-space: nowrap; }
.wordmark-mark { display: grid; place-items: center; width: 28px; height: 28px; background: var(--signal); color: var(--ink); font-size: 10px; font-weight: 800; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { font-size: 12px; text-decoration: none; color: #ffffffaa; border-bottom: 1px solid transparent; padding: 6px 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--paper); border-bottom-color: var(--signal); }
.header-contact { text-decoration: none; font: 11px/1.5 var(--mono); text-transform: uppercase; white-space: nowrap; }
.site-header a:hover { color: var(--signal); }
.hero { color: var(--paper); background: var(--ink); }
.hero-grid { padding: clamp(60px,7vw,110px) 0 36px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); column-gap: clamp(36px,6vw,100px); align-items: center; }
.hero-copy > .eyebrow { color: #ffb6a7; margin-bottom: 25px; }
.hero h1 { font-size: clamp(48px,5.8vw,92px); line-height: 1.01; max-width: 17ch; }
.hero h1 em, .contact-section h2 em { color: var(--signal); font-weight: 400; }
.button { display: inline-flex; align-items: center; gap: 36px; padding: 14px 19px; background: var(--signal); color: var(--ink); font: 600 12px/1.5 var(--sans); text-decoration: none; margin-top: 35px; transition: background 160ms; }
.button:hover { background: #ffb6a7; color: var(--ink); }
.hero-evidence { padding-top: 12px; }
.hero-intro { color: #ffffffb3; font-size: 15px; line-height: 1.65; margin-bottom: 38px; max-width: 38ch; }
.evidence-label { color: #ffffff6b; margin-bottom: 14px; }
.metrics > div { border-top: 1px solid var(--line); padding: 16px 0; }
.metrics dt { font: 400 46px/1.1 var(--display); letter-spacing: -.05em; }
.metrics dd { font-size: 12px; line-height: 1.5; color: var(--muted); }
.hero-metrics > div { border-color: #ffffff30; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.hero-metrics dt { color: var(--paper); font-size: clamp(34px,3.2vw,51px); }
.hero-metrics dd { color: #ffffffa0; max-width: 18ch; }
.availability { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; color: #ffffff8c; font-size: 11px; margin: 52px 0 0; padding-top: 20px; border-top: 1px solid #ffffff25; }
.status-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.portfolio-layout { display: grid; grid-template-columns: var(--index-width) minmax(0,1fr); gap: var(--portfolio-gap); padding-top: 84px; padding-bottom: 80px; }
.section-index { position: sticky; top: 100px; align-self: start; }
.section-index > .eyebrow { color: var(--muted); margin-bottom: 16px; }
.section-index > a { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid #d1d0c9; text-decoration: none; color: var(--muted); font-size: 13px; }
.section-index > a span { font: 11px/1.8 var(--mono); }
.section-index > a:hover { color: var(--ink); }
.section-index > a:hover span { color: var(--rust); }
.index-note { padding-top: 20px; border-top: 1px solid #d1d0c9; font-size: 12px; color: var(--muted); }
.ecosystem-links { display: grid; gap: 12px; }
.ecosystem-links a { font: 10px/1.5 var(--mono); text-decoration: none; }
.portfolio-section { margin-bottom: 88px; scroll-margin-top: 0; }
.portfolio-section:last-child { margin-bottom: 0; }
.section-heading { margin-bottom: 32px; }
.section-heading > .eyebrow { color: var(--rust); margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(43px,4.6vw,65px); line-height: 1.05; }
.section-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-tools > .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .055em; }
.expand-control { padding: 3px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font-size: 10px; white-space: nowrap; }
.expand-control:hover { color: var(--rust); border-color: var(--rust); }
.editorial-row { border-top: 1px solid var(--line); }
.portfolio-section > .editorial-row:last-child { border-bottom: 1px solid var(--line); }
summary { display: grid; grid-template-columns: 32px minmax(0,1fr) auto 28px; gap: 18px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.row-number { color: var(--rust); align-self: start; padding-top: 2px; }
.row-title > .eyebrow { color: var(--muted); margin-bottom: 6px; font-size: 10px; }
summary h3 { font-size: clamp(27px,2.55vw,39px); line-height: 1.14; }
summary:hover h3 { color: var(--rust); }
.year { font-size: 9px; color: var(--muted); white-space: nowrap; align-self: start; padding-top: 2px; }
.toggle { position: relative; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; grid-column: 4; }
.toggle::before,.toggle::after { content: ''; position: absolute; top: 11px; left: 6px; right: 6px; height: 1px; background: var(--ink); }
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { transform: rotate(0); }
.editorial-row[open] > summary { padding-bottom: 22px; }
.row-body { padding: 0 46px 32px 50px; }
.row-body p { color: var(--muted); font-size: 15px; max-width: 68ch; }
.row-body > p:last-child { margin: 0; }
.case-copy { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 35px; }
.case-copy .eyebrow { color: var(--ink); margin: 0 0 10px; font-size: 9px; }
.case-metrics { display: flex; gap: 24px; margin-top: 14px; }
.case-metrics > div { flex: 1; min-width: 0; }
.case-metrics dt { font-size: 38px; margin-bottom: 9px; }
.case-metrics dd { font-size: 11px; max-width: 20ch; }
.principles-intro { margin-bottom: 34px; max-width: 52rem; }
.principles-intro p { color: var(--muted); font-size: 15px; }
.principles-intro p:first-child { color: var(--ink); font: 400 25px/1.35 var(--display); letter-spacing: -.025em; }
.model-intro { margin-bottom: 34px; }
.model-intro > p { max-width: 54ch; margin-bottom: 23px; font: 400 clamp(24px,2.3vw,31px)/1.35 var(--display); letter-spacing: -.03em; }
.model-cta { display: inline-flex; align-items: center; gap: 24px; padding: 12px 16px; background: var(--ink); color: var(--paper); font: 500 11px/1.5 var(--mono); text-decoration: none; }
.model-cta span { color: var(--signal); font-size: 16px; }
.model-cta:hover { background: var(--ink-soft); color: var(--paper); }
.operating-loop { margin: 0 0 30px; border: 1px solid #ffffff38; background: var(--ink); color: var(--paper); }
.operating-loop-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #ffffff38; }
.operating-loop-head p { margin: 0; color: #ffffff73; font: 10px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.operating-loop-head p:first-child { color: #ffffffd9; }
.operating-loop-svg { width: 100%; height: auto; max-height: 550px; display: block; padding: 18px; }
.loop-path,.loop-return { fill: none; stroke: #ffffff3d; stroke-width: 1.5; }
.loop-return { stroke: var(--signal); stroke-dasharray: 5 7; }
.loop-circle { fill: var(--ink); stroke: #ffffff80; stroke-width: 1.5; transition: fill 160ms, stroke 160ms; }
.loop-hit-target { fill: transparent; stroke: none; pointer-events: all; }
.loop-node text { fill: #fff; font: 700 13px var(--mono); text-anchor: middle; pointer-events: none; }
.loop-node-accent .loop-circle { fill: var(--signal); stroke: var(--signal); }
.loop-node-accent text { fill: var(--ink); }
.loop-label { fill: #ffffff80; font: 700 9px var(--mono); letter-spacing: .1em; pointer-events: none; }
.loop-center { fill: #ffffff80; font: 700 11px var(--mono); letter-spacing: .12em; }
.loop-center-accent { fill: var(--signal); }
.loop-link { cursor: pointer; }
.loop-link:hover .loop-circle,.loop-link:focus-visible .loop-circle { fill: #344254; stroke: var(--signal); stroke-width: 3; }
.loop-link:hover .loop-node-accent .loop-circle,.loop-link:focus-visible .loop-node-accent .loop-circle { fill: #ffb6a7; }
.loop-link:focus-visible { outline: none; }
.operating-loop > figcaption { display: block; margin: 0; padding: 14px 22px; border-top: 1px solid #ffffff26; color: #ffffff9c; font: 10px/1.6 var(--mono); }
.principles-foundation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-foundation > summary { grid-template-columns: minmax(0,1fr) 28px; gap: 24px; padding: 72px 0 26px; }
.principles-foundation > summary h3 { font-size: clamp(27px,2.55vw,39px); }
.principles-foundation > summary .toggle { grid-column: 2; }
.foundation-content { padding: 6px 0 26px; }
.principles-foundation .row-body p { max-width: 46rem; }
.quote { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 32px minmax(0,1fr); column-gap: 18px; }
.quote:last-child { border-bottom: 1px solid var(--line); }
blockquote { margin: 0; font: 400 clamp(23px,2.1vw,31px)/1.35 var(--display); letter-spacing: -.025em; }
figcaption { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font: 10px/1.6 var(--mono); }
figcaption a { text-decoration: none; }
figcaption span { color: var(--muted); }
.system-section { background: var(--ink); color: var(--paper); padding: 76px 0; }
.system-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 70px; }
.system-heading .section-heading > .eyebrow { color: #ffb6a7; }
.system-heading h2 { font-size: 48px; }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 10px; }
.system-heading > .text-link { display: inline-block; color: #ffffffa5; letter-spacing: .01em; }
.system-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; }
.system-card { padding: 24px 0; border-top: 1px solid #ffffff30; }
.system-card > .row-number { color: var(--signal); display: block; margin-bottom: 12px; }
.system-card h3 { font-size: 31px; line-height: 1.1; margin-bottom: 16px; }
.system-card p { color: #ffffffa5; font-size: 14px; margin: 0; }
.contact-section { display: grid; grid-template-columns: 1.15fr 1fr; gap: 85px; padding-block: 86px; }
.contact-section > div > .eyebrow { color: var(--rust); margin-bottom: 20px; }
.contact-section h2 { font-size: clamp(42px,4.3vw,64px); line-height: 1.03; max-width: 15ch; }
.contact-section h2 em { display: block; color: var(--signal); }
.contact-copy > p { color: var(--muted); font-size: 15px; }
.contact-location { display: block; }
.contact-list > div { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-list dt { font: 10px/1.9 var(--mono); color: var(--muted); text-transform: uppercase; }
.contact-list dd { font-size: 13px; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 25px 0 35px; border-top: 1px solid var(--line); font: 10px/1.7 var(--mono); }
.site-footer a { text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; color: var(--muted); }
@media(min-width:1800px) { .hero-grid { padding-top: 110px; padding-bottom: 40px; } }
@media(max-width:1100px) {
  :root { --shell: min(100% - 5rem,86rem); --index-width: 150px; --portfolio-gap: 40px; }
  .site-header nav { gap: 18px; }
  .portfolio-layout,.system-layout { grid-template-columns: 150px minmax(0,1fr); gap: 40px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 40px; }
  .hero h1 { font-size: clamp(48px,6.3vw,76px); }
  .case-copy { grid-template-columns: 1fr; gap: 12px; }
  .row-body { padding-right: 0; }
  .contact-section { gap: 45px; }
  .year { display: none; }
  .system-heading h2 { font-size: 38px; }
}
@media(max-width:760px) {
  :root { --shell: calc(100% - 40px); --index-width: 0px; --portfolio-gap: 0px; }
  :root { --header-height: 105px; }
  .site-header { flex-wrap: wrap; padding: 12px 20px 0; gap: 8px 20px; }
  .wordmark { font-size: 11px; }
  .header-contact { margin-left: auto; }
  .site-header nav { width: 100%; order: 3; gap: 23px; overflow-x: auto; padding-bottom: 8px; }
  .site-header nav a { font-size: 11px; white-space: nowrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 45px; }
  .hero-copy > .eyebrow { font-size: 9px; }
  .hero h1 { font-size: clamp(43px,9.5vw,67px); max-width: 18ch; }
  .button { margin-top: 26px; }
  .hero-evidence { padding-top: 35px; }
  .hero-intro { max-width: 60ch; margin-bottom: 22px; }
  .evidence-label { font-size: 9px; }
  .hero-metrics { display: flex; gap: 16px; }
  .hero-metrics > div { flex: 1; display: block; }
  .hero-metrics dt { font-size: 34px; margin-bottom: 8px; }
  .hero-metrics dd { font-size: 10px; }
  .availability { margin-top: 22px; font-size: 10px; align-items: flex-start; }
  .status-dot { margin-top: 5px; }
  .portfolio-layout { display: block; padding-top: 38px; padding-bottom: 44px; }
  .section-index { position: static; display: flex; flex-wrap: wrap; gap: 5px 20px; margin-bottom: 42px; }
  .section-index > .eyebrow { width: 100%; margin-bottom: 4px; }
  .section-index > a { border: 0; padding: 2px 0; gap: 6px; font-size: 12px; }
  .index-note,.ecosystem-links { display: none; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: 46px; }
  .portfolio-section { margin-bottom: 54px; }
  .section-tools > .eyebrow { max-width: 28ch; line-height: 1.6; }
  summary { grid-template-columns: 22px minmax(0,1fr) 0 24px; gap: 10px; padding-block: 22px; }
  summary h3 { font-size: clamp(26px,6.8vw,34px); }
  .row-title > .eyebrow { font-size: 9px; }
  .row-number { font-size: 10px; }
  .toggle { width: 24px; height: 24px; }
  .toggle::before,.toggle::after { top: 10px; }
  .row-body { padding-left: 32px; padding-bottom: 26px; }
  .row-body p { font-size: 14px; }
  .case-metrics { gap: 12px; }
  .case-metrics dt { font-size: 30px; }
  .case-metrics dd { font-size: 10px; }
  .principles-intro p:first-child { font-size: 24px; }
  .operating-loop-head { display: block; padding: 15px; }
  .operating-loop-head p + p { margin-top: 5px; }
  .operating-loop-svg { padding: 0; }
  .loop-node text { font-size: 22px; }
  .loop-label { font-size: 16px; letter-spacing: .02em; }
  .loop-center { font-size: 16px; letter-spacing: .05em; }
  .operating-loop > figcaption { padding: 12px 15px; }
  .model-intro > p { font-size: 25px; }
  .model-cta { gap: 16px; font-size: 10px; padding-inline: 12px; }
  .principles-foundation > summary { padding: 40px 0 24px; }
  .principles-foundation > summary h3 { font-size: 27px; }
  .quote { grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding-block: 26px; }
  blockquote { font-size: 25px; }
  figcaption { display: grid; gap: 4px; margin-top: 14px; }
  .system-section { padding-block: 45px; }
  .system-layout { display: block; }
  .system-heading { margin-bottom: 30px; }
  .system-heading .section-heading { margin-bottom: 18px; }
  .system-heading h2 { font-size: 46px; }
  .system-grid { gap: 0 24px; }
  .system-card h3 { font-size: 27px; }
  .system-card p { font-size: 13px; }
  .contact-section { display: block; padding-block: 48px; }
  .contact-section h2 { font-size: 48px; margin-bottom: 30px; }
  .site-footer { display: block; }
  .site-footer nav { margin-top: 16px; }
}
@media(max-width:430px) { .system-grid { grid-template-columns: 1fr; } .case-metrics { flex-wrap: wrap; } .case-metrics > div { flex-basis: 26%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Reusable section theme. Add data-theme-on-view="inverse" to any
   .theme-section to invert it while active; .theme-inverse is permanent. */
.theme-inverse {
  --surface: var(--ink);
  --text: var(--paper);
  --text-muted: #b6b7ba;
  --rule: #ffffff30;
  --accent: #ffb6a7;
  --hover: #ffb6a7;
  color-scheme: dark;
}
.theme-section { background: var(--surface); color: var(--text); }
.theme-section .section-heading > .eyebrow { color: var(--accent); }
.theme-section .row-number { color: var(--rust); }
.theme-section.theme-inverse .row-number { color: var(--signal); }
.theme-section .case-copy .eyebrow { color: var(--text); }
.theme-section :is(.metrics dd, figcaption span) { color: var(--text-muted); }
.theme-section .metrics > div { border-color: var(--rule); }
.theme-section :is(.row-title > .eyebrow, .section-tools > .eyebrow, .row-body p, .principles-intro p, .year) { color: var(--text-muted); }
.theme-section .principles-intro p:first-child { color: var(--text); }
.theme-section :is(.editorial-row, .principles-foundation, .toggle) { border-color: var(--rule); }
.theme-section .toggle::before, .theme-section .toggle::after { background: var(--text); }
.theme-section .expand-control { color: var(--text); border-color: var(--text); }
.theme-section summary:hover h3, .theme-section .expand-control:hover { color: var(--hover); }
.theme-section .expand-control:hover { border-color: var(--hover); }
.theme-section.theme-inverse a:hover { color: var(--hover); }
.theme-section.theme-inverse .model-cta { border-color: var(--rule); }
.model-cta { border: 1px solid transparent; }
.theme-section .model-cta:hover { color: var(--paper); }

/* The full-width band includes the sticky index without moving content. */
main { overflow-x: clip; }
.portfolio-section.theme-section {
  position: relative;
  padding-block: 44px;
  margin-top: -44px;
  margin-bottom: 44px;
  background: transparent;
  isolation: isolate;
}
.portfolio-section.theme-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: calc(50% - 50vw - (var(--index-width) + var(--portfolio-gap)) / 2);
  width: 100vw;
  background: var(--surface);
}
.section-index { z-index: 1; color: var(--text); }
.section-index > .eyebrow, .section-index > a, .section-index .index-note { color: var(--text-muted); }
.section-index > a, .section-index .index-note { border-color: var(--rule); }
.section-index > a:hover, .section-index > a:hover span, .section-index .ecosystem-links a:hover { color: var(--hover); }
.site-header { background: var(--surface); color: var(--text); border-bottom-color: var(--rule); }
.site-header nav a { color: var(--text-muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.site-header a:hover { color: var(--hover); }
.site-header, .theme-section, .theme-section::before, .section-index {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
@media(max-width:760px) {
  .portfolio-section.theme-section { padding-block: 27px; margin-top: -27px; margin-bottom: 27px; }
}
