:root {
  --midnight: #071426;
  --navy: #0b1f3a;
  --navy-raised: #102b50;
  --royal: #2457d6;
  --sapphire: #1769e0;
  --signal: #4aa3ff;
  --ice: #dcebff;
  --paper: #f7faff;
  --paper-deep: #e8eef7;
  --white: #fff;
  --text: #101c32;
  --muted: #607089;
  --silver: #a7b8d0;
  --line: rgba(11, 31, 58, .16);
  --line-dark: rgba(220, 235, 255, .18);
  --shadow: 0 28px 80px rgba(7, 20, 38, .14);
  --shadow-small: 0 14px 42px rgba(7, 20, 38, .1);
  --radius-sm: .75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shell: 1220px;
  --header-height: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: var(--midnight); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
h1, h2, h3, p, li, dd, a, span { overflow-wrap: break-word; }

.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }
.section { position: relative; overflow: clip; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section-compact { padding-block: clamp(4rem, 7vw, 6.5rem); }
.section-bluegray { background: var(--paper-deep); }
.border-top { border-top: 1px solid var(--line); }
.page-main { min-height: 70vh; }
.skip-link {
  position: fixed; z-index: 1000; top: 1rem; left: 1rem; translate: 0 -220%;
  border-radius: .5rem; padding: .7rem 1rem; background: var(--white); color: var(--midnight); font-weight: 800;
}
.skip-link:focus { translate: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared header */
.site-header {
  position: sticky; z-index: 100; top: 0; min-height: var(--header-height);
  border-bottom: 1px solid rgba(220,235,255,.11); background: rgba(7,20,38,.94); color: var(--paper);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .78rem; color: inherit; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 58px; height: 40px; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: .94rem; letter-spacing: .01em; }
.brand small { margin-top: .25rem; color: var(--silver); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.8rem; font-size: .84rem; font-weight: 700; }
.primary-nav a { position: relative; color: #c7d5e7; text-decoration: none; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -.48rem; left: 0; height: 2px; background: var(--signal); scale: 0 1; transform-origin: left; transition: scale .2s ease; }
.primary-nav > a:not(.nav-cta):hover::after, .primary-nav > a:not(.nav-cta):focus-visible::after, .primary-nav > a[aria-current="page"]::after { scale: 1; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: var(--white); }
.nav-cta { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .64rem 1.08rem; }
.nav-cta:hover, .nav-cta:focus-visible { border-color: var(--signal); background: rgba(74,163,255,.1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: transparent; color: inherit; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: currentColor; transition: rotate .2s ease, translate .2s ease, opacity .2s ease; }

/* Editorial and technical accents */
.eyebrow, .technical-strip {
  margin: 0 0 1.25rem; color: var(--royal); font: 800 .7rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .17em; text-transform: uppercase;
}
.technical-strip { display: inline-flex; align-items: center; flex-wrap: wrap; max-width: 100%; gap: .7rem; margin-bottom: 1.5rem; }
.technical-strip::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.display-word {
  position: absolute; z-index: 0; margin: 0; pointer-events: none; user-select: none;
  color: rgba(23,105,224,.06); font-family: "Bahnschrift", "Segoe UI Variable Display", system-ui, sans-serif;
  font-size: clamp(5rem, 16vw, 15rem); font-weight: 800; letter-spacing: -.08em; line-height: .8; white-space: nowrap;
}
.display-word-right { top: 1rem; right: -1.5rem; }
.display-word-left { bottom: 1rem; left: -1rem; }
.section > .shell { position: relative; z-index: 1; }
.section-heading { margin-bottom: clamp(2.4rem, 5vw, 4.2rem); }
.section-heading h2, .method-intro h2, .contact-band h2, .page-hero h1, .contact-intro h2 {
  margin: 0; font-family: "Segoe UI Variable Display", "Bahnschrift", "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 4.8vw, 4.7rem); font-weight: 680; letter-spacing: -.055em; line-height: 1.02;
}
.split-heading { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.55fr); align-items: end; gap: 3rem; }
.split-heading > p { max-width: 470px; margin: 0 0 .35rem; color: var(--muted); font-size: 1.03rem; }

/* Home hero */
.hero {
  position: relative; overflow: hidden; min-height: calc(100svh - var(--header-height)); padding-block: clamp(4.8rem,8vw,7.5rem);
  background:
    radial-gradient(circle at 82% 35%, rgba(74,163,255,.18), transparent 27%),
    radial-gradient(circle at 7% 96%, rgba(36,87,214,.22), transparent 32%),
    linear-gradient(135deg, var(--midnight), var(--navy)); color: var(--paper);
}
.hero::before, .page-hero::before, .project-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: linear-gradient(rgba(220,235,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(220,235,255,.06) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 94%);
}
.hero::after { content: ""; position: absolute; right: -7vw; bottom: -8vw; width: 54vw; aspect-ratio: 1.4; opacity: .055; background: url("../img/mark-watermark.png") center/contain no-repeat; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(390px,.85fr); align-items: center; gap: clamp(2.5rem,5vw,5.5rem); }
.hero .eyebrow, .hero .technical-strip, .page-hero .eyebrow, .page-hero .technical-strip, .method-section .eyebrow { color: var(--signal); }
.hero h1 { max-width: 790px; margin: 0; font-family: "Segoe UI Variable Display", "Bahnschrift", system-ui, sans-serif; font-size: clamp(3.15rem,5.35vw,6.55rem); font-weight: 680; letter-spacing: -.065em; line-height: .95; }
.hero h1 span { color: transparent; background: linear-gradient(105deg, var(--ice), var(--signal) 52%, #75bdff); background-clip: text; -webkit-background-clip: text; }
.lede { max-width: 720px; margin: 2rem 0 0; color: #c5d4e8; font-size: clamp(1.05rem,1.45vw,1.28rem); line-height: 1.68; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .76rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .84rem; font-weight: 800; text-decoration: none; transition: translate .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { translate: 0 -2px; }
.button-primary { background: linear-gradient(115deg, var(--royal), var(--sapphire)); color: var(--white); box-shadow: 0 12px 30px rgba(23,105,224,.28); }
.button-primary:hover, .button-primary:focus-visible { background: linear-gradient(115deg, #2e64e9, #2580ed); }
.button-secondary { border-color: currentColor; background: transparent; color: inherit; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--signal); background: rgba(74,163,255,.09); }
.button-light { background: var(--paper); color: var(--navy); }
.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; max-width: 700px; margin: 3.5rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line-dark); list-style: none; }
.hero-facts li { display: grid; gap: .2rem; }
.hero-facts strong { color: var(--paper); font-size: .85rem; }
.hero-facts span { color: #93a8c4; font-size: .72rem; }
.hero-visual { position: relative; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.2rem; background: rgba(11,31,58,.68); box-shadow: 0 32px 100px rgba(0,0,0,.3); }
.hero-visual::before { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(74,163,255,.12); border-radius: calc(var(--radius-lg) - 8px); }
.diagram-label { position: absolute; z-index: 1; top: 1.35rem; left: 1.5rem; color: var(--silver); font: 700 .61rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .14em; }
.hero-visual svg { width: 100%; height: auto; }
.map-grid path { fill: none; stroke: var(--silver); stroke-width: 1; }
.map-lines path { fill: none; stroke: rgba(220,235,255,.3); stroke-width: 2; }
.map-lines .signal-line { stroke: url(#signal); stroke-dasharray: 8 8; }
.node circle { fill: var(--navy); stroke: rgba(220,235,255,.32); stroke-width: 2; }
.node-center circle:first-child { fill: var(--navy-raised); stroke: url(#signal); stroke-width: 3; }
.node-center .node-ring { fill: none; stroke: rgba(74,163,255,.24); stroke-width: 1; stroke-dasharray: 6 6; }
.node-title, .node-kicker, .node-small { fill: var(--paper); font-family: ui-sans-serif,system-ui,sans-serif; }
.node-title { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.node-kicker { fill: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.node-small { fill: var(--silver); font-size: 10px; }
.pulse { fill: var(--signal); }
.diagram-note { display: flex; align-items: center; gap: .6rem; margin: -.5rem .7rem .5rem; color: var(--silver); font-size: .7rem; }
.diagram-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(74,163,255,.11); }

/* Capability and project cards */
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.capability-card { position: relative; padding: 2.5rem clamp(1.5rem,3vw,2.8rem) 2.9rem; }
.capability-card + .capability-card { border-left: 1px solid var(--line); }
.card-index { color: var(--sapphire); font: 800 .67rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .14em; }
.capability-card h3 { margin: 2.5rem 0 .8rem; font-size: 1.45rem; letter-spacing: -.03em; }
.capability-card p { margin: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.tag-list li { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .62rem; color: #445875; font-size: .67rem; font-weight: 750; }
.work-section { background: var(--paper-deep); }
.featured-work { display: grid; grid-template-columns: 1.18fr .82fr; gap: 1rem; }
.project-stack { display: grid; gap: 1rem; }
.project-card { position: relative; overflow: hidden; display: flex; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); color: inherit; text-decoration: none; transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease; }
.project-card::after { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 2px; background: linear-gradient(90deg, transparent, var(--signal)); }
.project-card[data-visual]::before {
  content: attr(data-visual); position: absolute; z-index: 0; top: 1.15rem; right: 1.25rem; max-width: 74%;
  color: rgba(23,105,224,.075); font: 850 clamp(2.1rem,5vw,5.2rem)/.82 "Bahnschrift",ui-monospace,monospace;
  letter-spacing: -.08em; text-align: right; white-space: pre-line; pointer-events: none; user-select: none;
}
.project-card[data-visual] .project-card-copy::after {
  content: ""; position: absolute; z-index: -1; right: -18%; bottom: -36%; width: 62%; aspect-ratio: 1;
  border: 1px solid rgba(23,105,224,.1); border-radius: 50%; box-shadow: 0 0 0 24px rgba(23,105,224,.035), 0 0 0 52px rgba(23,105,224,.025);
}
.project-card:hover, .project-card:focus-visible { translate: 0 -4px; border-color: rgba(23,105,224,.65); box-shadow: var(--shadow); }
.project-card-large { display: grid; grid-template-rows: minmax(280px,1fr) auto; }
.project-card-copy { position: relative; z-index: 1; align-self: end; padding: clamp(1.5rem,3vw,2.5rem); }
.project-number { display: block; margin-bottom: 1.4rem; color: rgba(23,105,224,.2); font: 800 clamp(2.6rem,5vw,4.5rem)/.8 "Bahnschrift",system-ui,sans-serif; letter-spacing: -.06em; }
.project-domain { margin: 1.3rem 0 .5rem; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.project-card h3 { max-width: 640px; margin: 0; font-size: clamp(1.45rem,2.5vw,2.25rem); letter-spacing: -.04em; line-height: 1.08; }
.project-card p:not(.project-domain) { max-width: 650px; margin: 1rem 0 0; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid currentColor; border-radius: 999px; padding: .36rem .62rem; font-size: .62rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.status::before { display: grid; place-items: center; width: .92rem; height: .92rem; border-radius: 50%; background: currentColor; color: var(--white); font-size: .58rem; line-height: 1; }
.status-deployed { background: #e0edff; color: #174ba8; }
.status-deployed::before { content: "✓"; }
.status-used { background: #edf3ff; color: #31599e; }
.status-used::before { content: "◆"; font-size: .42rem; }
.status-prototype { background: #e8f2ff; color: #20538f; }
.status-prototype::before { content: "◇"; font-size: .58rem; }
.status-designed { background: #f3f5f8; color: #53657e; }
.status-designed::before { content: "○"; font-size: .68rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem; color: #164fae; font-size: .81rem; font-weight: 850; text-decoration: none; }
.text-link span { transition: translate .2s ease; }
.project-card:hover .text-link span, .project-card:focus-visible .text-link span { translate: .25rem 0; }
.project-art { position: relative; display: grid; place-items: center; min-height: 285px; background: linear-gradient(145deg,var(--midnight),var(--navy-raised)); }
.project-art svg { position: relative; z-index: 1; width: min(90%,700px); }
.kiosk-art .outline, .kiosk-art .screen, .kiosk-art .line, .kiosk-art .signal, .kiosk-art .power { fill: none; stroke: rgba(220,235,255,.66); stroke-width: 3; }
.kiosk-art .screen { fill: rgba(74,163,255,.1); stroke: var(--signal); }
.kiosk-art .signal { stroke: #80c5ff; stroke-linecap: round; }
.kiosk-art .power { stroke: #8da8ff; }
.kiosk-art .accent-dot { fill: var(--signal); opacity: .9; }
.section-action { display: flex; justify-content: center; margin-top: 2rem; }

/* Method and contact bands */
.method-section { overflow: hidden; background: linear-gradient(135deg,var(--midnight),var(--navy)); color: var(--paper); }
.method-section::after { content: ""; position: absolute; right: -8rem; bottom: -8rem; width: 38rem; aspect-ratio: 1.4; opacity: .045; background: url("../img/mark-watermark.png") center/contain no-repeat; }
.method-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px,.8fr) minmax(400px,1.2fr); gap: clamp(4rem,10vw,10rem); }
.method-intro { position: sticky; top: calc(var(--header-height) + 2.5rem); align-self: start; }
.method-intro p:not(.eyebrow) { color: #a8bad0; }
.method-intro .text-link { color: var(--signal); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.process-list li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line-dark); }
.process-list > li > span { color: var(--signal); font: 800 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .14em; }
.process-list h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.process-list p { margin: 0; color: #99adc6; }
.contact-band { background: linear-gradient(115deg,var(--royal),var(--sapphire)); color: var(--white); }
.contact-band .eyebrow { color: var(--ice); }
.contact-band-inner { display: grid; grid-template-columns: 1.1fr .65fr; align-items: end; gap: 4rem; }
.contact-band p:not(.eyebrow) { margin: 0 0 1.5rem; color: #e3efff; }

/* Interior heroes */
.page-hero { position: relative; overflow: hidden; padding: clamp(5rem,10vw,9rem) 0 clamp(4rem,8vw,7rem); background: linear-gradient(135deg,var(--midnight),var(--navy)); color: var(--paper); }
.page-hero::after { content: ""; position: absolute; right: -8%; bottom: -45%; width: min(58vw,760px); aspect-ratio: 1.4; opacity: .06; background: url("../img/mark-watermark.png") center/contain no-repeat; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1000px; }
.page-hero .lede { max-width: 820px; }
.hero-code {
  position: absolute; z-index: -1; right: -1rem; bottom: -1.25rem; max-width: 58%; margin: 0;
  color: rgba(74,163,255,.08); font: 850 clamp(3.6rem,10vw,9rem)/.78 "Bahnschrift",ui-monospace,monospace;
  letter-spacing: -.075em; text-align: right; white-space: pre-line; pointer-events: none; user-select: none;
}
.not-found { min-height: 100svh; display: grid; place-items: center; }
.not-found .technical-strip { margin-top: 2rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 2rem; color: #93a7c0; font-size: .72rem; }
.breadcrumbs a { color: #c6d6ea; }
.breadcrumbs span[aria-hidden] { color: #657b98; }
.page-meta { display: flex; flex-wrap: wrap; gap: .7rem 2rem; margin-top: 2.5rem; color: #a7bad1; font-size: .78rem; }
.page-meta strong { color: var(--paper); }

/* Projects index and case studies */
.project-index-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.project-index-grid .project-card { min-height: 360px; }
.project-index-grid .project-card-copy { align-self: stretch; display: flex; flex-direction: column; }
.project-index-grid .text-link { margin-top: auto; padding-top: 2rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: -1.5rem 0 2.5rem; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .82rem; background: transparent; color: var(--muted); cursor: pointer; font-size: .71rem; font-weight: 800; }
.filter-button:hover, .filter-button:focus-visible, .filter-button[aria-pressed="true"] { border-color: var(--royal); background: var(--royal); color: var(--white); }
[hidden] { display: none !important; }
.case-study-layout { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: clamp(3rem,8vw,7rem); }
.case-study-layout > *, .case-study-body, .case-study-body > section, .page-meta > *, .ownership-grid > * { min-width: 0; }
.case-study-body > section + section { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--line); }
.case-study-body h2 { margin: 0 0 1.2rem; font-size: clamp(1.8rem,3vw,2.75rem); letter-spacing: -.045em; line-height: 1.1; }
.case-study-body h3 { margin: 2rem 0 .65rem; font-size: 1.12rem; }
.case-study-body p, .case-study-body ul { max-width: 790px; color: #4d607b; }
.case-study-body ul { padding-left: 1.2rem; }
.case-study-body li + li { margin-top: .55rem; }
.case-sidebar { align-self: start; }
.case-sidebar-inner { position: sticky; top: calc(var(--header-height) + 2rem); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem; background: rgba(255,255,255,.75); box-shadow: var(--shadow-small); }
.case-sidebar h2 { margin: 0 0 1rem; font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; }
.case-facts { margin: 0; }
.case-facts div { padding: .9rem 0; border-top: 1px solid var(--line); }
.case-facts dt { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-facts dd { margin: .3rem 0 0; font-size: .86rem; font-weight: 700; }
.evidence-note { margin-top: 1.2rem; padding: 1rem; border-left: 3px solid var(--sapphire); background: rgba(23,105,224,.08); color: #3e587c; font-size: .75rem; }
.architecture { margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1rem,3vw,2rem); background: linear-gradient(145deg,var(--midnight),var(--navy-raised)); }
.architecture figcaption { margin-top: 1rem; color: #9eb2ca; font-size: .72rem; }
.architecture svg { width: 100%; }
.architecture-mobile { display: none; margin: 0; padding: 0; list-style: none; }
.architecture-mobile li {
  position: relative; display: grid; grid-template-columns: 2.3rem minmax(0,1fr); gap: .2rem .75rem;
  padding: .95rem; border: 1px solid rgba(220,235,255,.2); border-radius: .75rem; background: rgba(16,43,80,.82);
}
.architecture-mobile li + li { margin-top: 1.55rem; }
.architecture-mobile li + li::before {
  content: "↓"; position: absolute; top: -1.48rem; left: 1.55rem; color: var(--signal); font: 800 1rem/1 ui-monospace,monospace;
}
.architecture-mobile .flow-index { grid-row: 1 / span 2; color: var(--signal); font: 850 .68rem/1.4 ui-monospace,monospace; letter-spacing: .08em; }
.architecture-mobile strong { color: var(--paper); font-size: .9rem; line-height: 1.3; }
.architecture-mobile small { color: #b1c4dc; font-size: .73rem; line-height: 1.45; }
.system-board {
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem;
  margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1rem,3vw,2rem);
  background:
    linear-gradient(rgba(220,235,255,.055) 1px, transparent 1px),
    linear-gradient(90deg,rgba(220,235,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%,rgba(74,163,255,.16),transparent 33%),
    linear-gradient(145deg,var(--midnight),var(--navy-raised));
  background-size: 34px 34px,34px 34px,auto,auto;
}
.system-board::after {
  content: attr(data-system); position: absolute; right: .7rem; bottom: -.25rem; color: rgba(74,163,255,.07);
  font: 850 clamp(3.4rem,8vw,7.5rem)/.75 "Bahnschrift",ui-monospace,monospace; letter-spacing: -.08em;
  pointer-events: none; user-select: none;
}
.system-node {
  position: relative; z-index: 1; min-width: 0; min-height: 130px; padding: 1rem; border: 1px solid rgba(220,235,255,.24);
  border-radius: .8rem; background: rgba(11,31,58,.82); color: var(--paper);
}
.system-node-accent { border-color: var(--signal); background: rgba(23,105,224,.17); }
.system-node::before { content: attr(data-code); display: block; margin-bottom: 1rem; color: var(--signal); font: 850 .64rem/1 ui-monospace,monospace; letter-spacing: .13em; }
.system-node h3 { margin: 0 0 .45rem; font-size: 1rem; letter-spacing: -.02em; }
.system-node p { margin: 0; color: #b4c7de; font-size: .74rem; line-height: 1.5; }
.system-link {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 2.2rem;
  color: var(--signal); font: 850 .63rem/1.25 ui-monospace,monospace; letter-spacing: .08em; text-align: center; text-transform: uppercase;
}
.system-link::before, .system-link::after { content: ""; flex: 1 1 auto; height: 1px; margin-inline: .55rem; background: linear-gradient(90deg,transparent,var(--signal)); }
.system-link::after { background: linear-gradient(90deg,var(--signal),transparent); }
.system-board figcaption { position: relative; z-index: 1; grid-column: 1 / -1; margin-top: .35rem; color: #9eb2ca; font-size: .72rem; }
.tech-ribbon { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tech-ribbon li { border: 1px solid rgba(23,105,224,.25); border-radius: .55rem; padding: .45rem .6rem; background: rgba(23,105,224,.07); color: #294b80; font: 800 .68rem/1.2 ui-monospace,monospace; }
.arch-box { fill: #102b50; stroke: rgba(220,235,255,.38); stroke-width: 2; }
.arch-box-accent { fill: rgba(74,163,255,.14); stroke: var(--signal); stroke-width: 2; }
.arch-line { fill: none; stroke: rgba(220,235,255,.56); stroke-width: 2; marker-end: url(#arrow); }
.arch-line-alt { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 7 6; marker-end: url(#arrow-alt); }
.arch-title { fill: var(--paper); font: 750 16px ui-sans-serif,system-ui,sans-serif; }
.arch-small { fill: #a6b8ce; font: 12px ui-sans-serif,system-ui,sans-serif; }
.ownership-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.ownership-grid div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; background: rgba(255,255,255,.55); }
.ownership-grid strong { display: block; margin-bottom: .35rem; font-size: .9rem; }
.ownership-grid span { color: var(--muted); font-size: .78rem; }
.next-project { border-top: 1px solid var(--line); background: var(--paper-deep); }
.next-project a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2.5rem; text-decoration: none; }
.next-project small { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.next-project strong { font-size: 1.12rem; }
.next-project .arrow { color: var(--sapphire); font-size: 2rem; }

/* Experience and foundations */
.foundations-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.foundation-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem; background: rgba(255,255,255,.74); }
.foundation-card-wide { grid-column: 1 / -1; }
.foundation-card::after { content: ""; position: absolute; top: 0; right: 0; width: 5rem; height: 2px; background: var(--signal); }
.foundation-date { color: var(--sapphire); font: 800 .68rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .1em; text-transform: uppercase; }
.foundation-card h3 { margin: 1rem 0 .65rem; font-size: 1.25rem; letter-spacing: -.025em; }
.foundation-card p { margin: 0; color: var(--muted); }
.foundation-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 1.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--line); }
.foundation-detail-grid > div { min-width: 0; padding: 1rem; background: rgba(247,250,255,.96); }
.foundation-detail-grid strong, .foundation-detail-grid span { display: block; }
.foundation-detail-grid strong { color: var(--navy); font-size: .78rem; line-height: 1.35; }
.foundation-detail-grid span { margin-top: .5rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.foundation-detail-grid code { font-size: .76rem; }
.foundation-card .text-link { margin-top: 1rem; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem,7vw,6rem); padding: 3rem 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font: 700 .71rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .06em; text-transform: uppercase; }
.timeline-content h2 { margin: 0; font-size: clamp(1.5rem,3vw,2.3rem); letter-spacing: -.04em; }
.timeline-role { margin: .2rem 0 1rem; color: #164fae; font-weight: 800; }
.timeline-content ul { max-width: 820px; margin: 1.2rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.timeline-content li + li { margin-top: .55rem; }

/* Résumé */
.print-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; margin-bottom: 1rem; }
.resume-sheet { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.resume-header { position: relative; overflow: hidden; padding: clamp(2rem,5vw,4rem); background: linear-gradient(135deg,var(--midnight),var(--navy)); color: var(--paper); }
.resume-mark { position: absolute; right: 2rem; top: 50%; width: 210px; height: auto; translate: 0 -50%; opacity: .09; }
.resume-mark-print { display: none; }
.resume-header h1, .resume-header h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(2.4rem,5vw,4.8rem); letter-spacing: -.06em; line-height: 1; }
.resume-title { position: relative; z-index: 1; margin: .75rem 0 0; color: var(--signal); font-weight: 800; }
.resume-contact { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 1.5rem; color: #b0c2d8; font-size: .8rem; }
.resume-body { padding: clamp(2rem,5vw,4rem); }
.resume-section + .resume-section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.resume-section h2 { margin: 0 0 1rem; color: var(--royal); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.resume-section p { color: #41526b; }
.resume-item + .resume-item { margin-top: 1.55rem; }
.resume-item-head { display: flex; justify-content: space-between; gap: 1rem; }
.resume-item h3 { margin: 0; font-size: 1rem; }
.resume-item-head span { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-weight: 750; }
.resume-item .role { margin: .18rem 0 .5rem; color: #164fae; font-size: .78rem; font-weight: 800; }
.resume-item p { margin: .45rem 0 0; font-size: .83rem; }
.resume-item ul { margin: .55rem 0 0; padding-left: 1.1rem; color: #4b5c73; font-size: .8rem; }
.resume-item li + li { margin-top: .25rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.skill-cloud li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .65rem; font-size: .7rem; font-weight: 750; }
.concurrency-note { margin: 1.6rem 0 0; color: var(--muted); font-size: .77rem; }

/* Contact and footer */
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(3rem,8vw,7rem); }
.contact-intro p { margin-top: 1.5rem; color: var(--muted); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; background: var(--white); box-shadow: var(--shadow-small); }
.contact-card + .contact-card { margin-top: 1rem; }
.contact-card h2 { margin: 0; font-size: 1.15rem; }
.contact-card p { color: var(--muted); }
.contact-link { color: #164fae; font-weight: 850; }
.contact-privacy-note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.privacy-list { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: .84rem; }
.site-footer { padding: 3rem 0; background: #050f1d; color: #91a6c0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; align-items: start; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 50px; height: 36px; object-fit: contain; }
.footer-brand p, .footer-note { margin: 0; font-size: .75rem; line-height: 1.6; }
.footer-brand strong { color: var(--paper); }
.site-footer nav { display: grid; gap: .45rem; }
.site-footer nav a { width: fit-content; color: #b7c7d9; font-size: .77rem; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--signal); }
.footer-note { text-align: right; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 690px; }
  .featured-work, .split-heading, .method-grid, .contact-band-inner, .contact-grid { grid-template-columns: 1fr; }
  .method-intro { position: static; }
  .contact-band-inner { align-items: start; gap: 2rem; }
  .case-study-layout { grid-template-columns: 1fr; }
  .case-sidebar-inner { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .shell { width: min(calc(100% - 1.5rem), var(--shell)); }
  .brand img { width: 52px; height: 36px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: .75rem; border-bottom: 1px solid var(--line-dark); background: rgba(7,20,38,.98); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
  .site-header[data-nav-open] .primary-nav { display: grid; }
  .primary-nav a { padding: .78rem .8rem; }
  .primary-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: .35rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { translate: 0 6px; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) { translate: 0 -6px; rotate: -45deg; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(2.9rem,14vw,4.8rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { grid-template-columns: 9rem 1fr; }
  .capability-grid, .project-index-grid, .foundations-grid { grid-template-columns: 1fr; }
  .foundation-detail-grid { grid-template-columns: 1fr; }
  .capability-card + .capability-card { border-top: 1px solid var(--line); border-left: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: .8rem; }
  .ownership-grid { grid-template-columns: 1fr; }
  .resume-item-head { display: block; }
  .resume-item-head span { display: block; margin-top: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .page-hero { padding-block: 3.4rem 3rem; }
  .page-hero h1 { font-size: clamp(2.35rem,12vw,3.7rem); }
  .page-hero .lede { font-size: 1rem; }
  .hero-code { right: -.25rem; bottom: -.5rem; max-width: 72%; font-size: clamp(3rem,18vw,5rem); opacity: .8; }
  .case-study-body > section + section { margin-top: 3.2rem; padding-top: 3.2rem; }
  .case-study-body h2 { font-size: clamp(1.65rem,8vw,2.3rem); }
  .architecture { overflow: hidden; padding: .85rem; }
  .architecture > svg { display: none; }
  .architecture-mobile { display: grid; }
  .architecture figcaption { margin: .9rem .2rem .15rem; }
  .system-board { grid-template-columns: 1fr; padding: .85rem; }
  .system-board::after { font-size: 4rem; }
  .system-node { min-height: auto; }
  .system-link { min-height: 1.5rem; }
  .system-link::before, .system-link::after { display: none; }
  .system-board figcaption { grid-column: auto; }
  .case-sidebar-inner { padding: 1rem; }
  .next-project a { align-items: flex-start; }
}

@media (max-width: 430px) {
  .brand small { font-size: .57rem; letter-spacing: .11em; }
  .hero-visual { padding: .55rem; }
  .hero-facts li { grid-template-columns: 1fr; }
  .button-row .button, .print-actions .button { width: 100%; }
  .page-meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: .38in; }
  body { background: #fff; color: #101c32; font-size: 8.8pt; line-height: 1.42; }
  .skip-link, .site-header, .site-footer, .page-hero, .print-actions { display: none !important; }
  .section { padding: 0; }
  .shell { width: 100%; }
  .resume-sheet { max-width: none; border: 0; box-shadow: none; }
  .resume-header { padding: 0 0 .12in; border-bottom: 2px solid #2457d6; background: #fff; color: #101c32; }
  .resume-mark-screen { display: none !important; }
  .resume-mark-print { display: block; top: 0; right: 0; width: 1.02in; height: auto; translate: 0; opacity: 1; }
  .resume-header h1, .resume-header h2 { font-size: 24pt; }
  .resume-title { color: #2457d6; }
  .resume-contact { gap: .04in .2in; margin-top: .1in; color: #42526b; }
  .resume-body { padding: .12in 0 0; }
  .resume-section + .resume-section { margin-top: .1in; padding-top: .08in; }
  .resume-section h2 { margin-bottom: .04in; color: #2457d6; }
  .resume-section p { margin-block: .025in; }
  .resume-item + .resume-item { margin-top: .075in; }
  .resume-item .role { margin: .015in 0 .035in; }
  .resume-item ul { margin-top: .03in; }
  .resume-item li + li { margin-top: .015in; }
  .skill-cloud { gap: .03in; }
  .skill-cloud li { padding: .02in .06in; }
  .concurrency-note { margin-top: .075in; }
  a { text-decoration: none; }
}
