:root {
  --navy: #07152f;
  --navy-2: #0d2144;
  --blue: #2868f2;
  --blue-soft: #e8efff;
  --coral: #ff6b5f;
  --coral-soft: #fff0ed;
  --paper: #f7f8fc;
  --white: #ffffff;
  --ink: #0b1830;
  --muted: #60708d;
  --line: #d8e0ed;
  --display: 'Instrument Serif', serif;
  --body: 'Instrument Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-display: var(--display);
  --font-body: var(--body);
  --font-mono: var(--mono);
  --shadow: 0 18px 50px rgba(7, 21, 47, .11);
  --radius: 5px;
  --shell: min(88vw, 1320px);
}

html[data-theme="dark"], html.dark {
  --paper: #08162e;
  --white: #102344;
  --ink: #f5f8ff;
  --muted: #aebbd1;
  --line: #294061;
  --blue-soft: #132e62;
  --coral-soft: #412d36;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 86% 7%, rgba(40,104,242,.12), transparent 27rem), radial-gradient(circle at 7% 40%, rgba(255,107,95,.06), transparent 24rem);
  content: "";
  pointer-events: none;
}
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.site-header { width: var(--shell); margin: 0 auto; padding: 1.35rem 0 0; }
.header-bar { display: flex; align-items: center; min-height: 3.5rem; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: var(--white); background: var(--blue); border-radius: 50%; box-shadow: 5px 5px 0 var(--coral); }
.brand-mark svg { width: 1.55rem; height: 1.55rem; }
.brand-copy { display: grid; line-height: 1; gap: .27rem; }
.brand-name { font-family: var(--font-display); font-size: 1.64rem; font-weight: 600; letter-spacing: -.025em; }
.brand-note { color: var(--muted); font-family: var(--font-mono); font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.primary-nav a { color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: .3rem; }
.project-link, .button-coral { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.7rem; padding: .6rem 1rem; color: #fff; background: var(--coral); border: 1px solid var(--coral); border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.project-link:hover, .button-coral:hover { color: #fff; background: #e95349; }
[data-theme-toggle] { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; color: var(--blue); background: transparent; border: 1px solid var(--line); border-radius: 50%; }
[data-theme-toggle] span { font-size: 1.1rem; line-height: 1; }
.menu-toggle { display: none; width: 2.35rem; height: 2.35rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.chrome-rule { height: 2px; margin-top: 1.25rem; background: linear-gradient(90deg, var(--blue) 0 18%, var(--line) 18% 100%); }

.shell { width: var(--shell); margin: 0 auto; }
.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; align-items: start; gap: 1.35rem; }
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links { position: sticky; top: 1.4rem; padding: 1rem 0 1rem 1rem; border-left: 2px solid var(--line); }
.side-links h2 { margin: 0 0 .85rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.side-links ol { display: grid; gap: .65rem; margin: 0; padding: 0 0 0 1rem; }
.side-links li { padding-left: .15rem; color: var(--muted); font-size: .78rem; }
.side-links a { color: var(--ink); text-decoration: none; }
.side-links a:hover { color: var(--blue); }
main { min-width: 0; }

.eyebrow { margin: 0 0 .7rem; color: var(--blue); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.display-title, h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: .98; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.lead-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 42rem; }
.text-link { color: var(--blue); font-size: .8rem; font-weight: 700; text-decoration: none; }
.text-link::after { margin-left: .35rem; content: "↗"; }
.button-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .6rem 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.button-ghost:hover { color: var(--blue); border-color: var(--blue); }

.hero { padding: 4.2rem 0 3.2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(11rem, 1fr) minmax(14rem, 1.35fr); align-items: stretch; gap: 1.2rem; }
.hero-lead { min-height: 32rem; padding: clamp(1.6rem, 3vw, 3.2rem); color: #fff; background: var(--navy); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero-lead::after { position: absolute; right: -4rem; bottom: -5rem; width: 17rem; height: 17rem; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(255,255,255,.04), 0 0 0 4rem rgba(255,255,255,.025); content: ""; }
.hero-lead .eyebrow { color: #8eb1ff; position: relative; z-index: 1; }
.hero-lead h1 { max-width: 12ch; margin-bottom: 1.35rem; font-size: clamp(3rem, 5.2vw, 5.6rem); position: relative; z-index: 1; }
.hero-lead p { max-width: 34rem; color: #c0cee4; position: relative; z-index: 1; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .65rem; position: relative; z-index: 1; }
.hero-lead .button-ghost { color: #fff; border-color: #506486; }
.service-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-top: 2.2rem; position: relative; z-index: 1; }
.mini-service { padding: 1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; }
.mini-service strong { display: block; margin-bottom: .3rem; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.mini-service span { color: #aabbda; font-size: .72rem; }
.capability-row { display: flex; flex-wrap: wrap; gap: .45rem .7rem; padding-top: 1rem; color: #9fb2d1; border-top: 1px solid rgba(255,255,255,.15); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; position: relative; z-index: 1; }
.capability-row span::before { margin-right: .45rem; color: var(--coral); content: "•"; }
.proof-rail { display: flex; flex-direction: column; gap: .7rem; }
.proof-card { padding: 1.05rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(7,21,47,.04); }
.proof-card.case { color: #fff; background: var(--blue); border-color: var(--blue); }
.proof-card .card-label { display: block; margin-bottom: .7rem; color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.proof-card.case .card-label, .proof-card.case p { color: #c9d9ff; }
.proof-card h3 { margin-bottom: .45rem; font-size: 1.42rem; }
.proof-card p { margin-bottom: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.metric { color: var(--coral); font-family: var(--font-display); font-size: 2.9rem; line-height: .9; }
.quote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.1; }
.action-stack { display: flex; flex-direction: column; gap: .7rem; }
.inquiry-card { padding: 1.35rem; background: var(--coral); color: #fff; border-radius: 4px; box-shadow: var(--shadow); }
.inquiry-card h2 { margin-bottom: .55rem; font-size: 2.25rem; }
.inquiry-card p { color: #fff3f0; font-size: .85rem; }
.choice-list { display: grid; gap: .45rem; margin: 1rem 0 1.15rem; padding: 0; list-style: none; }
.choice-list li { padding: .62rem .7rem; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 3px; font-size: .76rem; }
.choice-list li::before { margin-right: .5rem; content: "↗"; }
.inquiry-card .button-ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.snapshot-card { padding: 1.35rem; color: #fff; background: var(--navy-2); border-radius: 4px; }
.snapshot-card h3 { font-size: 1.65rem; }
.snapshot-card p { color: #b6c6df; font-size: .82rem; }
.response-card { padding: 1.1rem; background: var(--white); border: 1px dashed var(--blue); border-radius: 4px; }
.response-card strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.25rem; }
.response-card span { color: var(--muted); font-size: .76rem; }

.section { padding: 3.4rem 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.35rem; }
.section-header h2 { max-width: 14ch; margin-bottom: 0; }
.section-header p { max-width: 28rem; margin-bottom: .2rem; color: var(--muted); font-size: .9rem; }
.interlock { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(17rem, 1fr); align-items: stretch; gap: 1.2rem; }
.service-matrix { padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.service-matrix > p { max-width: 35rem; color: var(--muted); font-size: .88rem; }
.matrix-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-top: 1.15rem; }
.matrix-item { min-height: 8.5rem; padding: 1rem; background: var(--paper); border-left: 3px solid var(--blue); }
.matrix-item:nth-child(2n) { border-left-color: var(--coral); }
.matrix-item h3 { margin-bottom: .35rem; font-size: 1.45rem; }
.matrix-item p { margin-bottom: 0; color: var(--muted); font-size: .75rem; }
.strength-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.strength-strip span { padding: .3rem .55rem; color: var(--muted); background: var(--blue-soft); border-radius: 999px; font-family: var(--font-mono); font-size: .58rem; text-transform: uppercase; }
.case-stack { display: flex; flex-direction: column; gap: .7rem; }
.case-feature { min-height: 12.2rem; padding: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--navy), #153a77); border-radius: 4px; display: flex; flex-direction: column; justify-content: end; }
.case-feature h3 { max-width: 12ch; margin-bottom: .45rem; font-size: 2.15rem; }
.case-feature p { max-width: 28rem; margin-bottom: 0; color: #cad6ed; font-size: .8rem; }
.case-compact { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.case-compact h3 { margin: 0; font-size: 1.25rem; }
.case-compact p { margin: .25rem 0 0; color: var(--muted); font-size: .72rem; }
.case-number { color: var(--coral); font-family: var(--font-mono); font-size: .7rem; }
.case-footer { display: flex; justify-content: space-between; align-items: center; padding-top: .35rem; font-size: .76rem; }
.case-footer a { font-weight: 700; text-decoration: none; }

.process-band { padding: 3.7rem 0; background: var(--navy); color: #fff; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(15rem, .9fr); align-items: stretch; gap: 1.2rem; }
.process-intro p { max-width: 26rem; color: #b7c8e4; }
.process-lane { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.process-card { padding: 1.1rem; background: #10284e; border: 1px solid #29456e; border-radius: 4px; }
.process-card:nth-child(2), .process-card:nth-child(3) { transform: translateY(1rem); }
.process-card .step { color: var(--coral); font-family: var(--font-mono); font-size: .68rem; }
.process-card h3 { margin: .65rem 0 .4rem; font-size: 1.6rem; }
.process-card p { min-height: 3rem; margin-bottom: .9rem; color: #b7c8e4; font-size: .78rem; }
.process-card small { display: block; padding-top: .65rem; color: #7fa4e9; border-top: 1px solid #29456e; font-size: .66rem; }
.testimonial-spine { display: flex; flex-direction: column; gap: .7rem; }
.spine-card { padding: 1.05rem; background: #f3f6fd; color: var(--ink); border-radius: 4px; }
.spine-card h3 { margin-bottom: .45rem; font-size: 1.45rem; }
.spine-card p { margin-bottom: 0; color: #586b8e; font-size: .78rem; }
.spine-card.accent { background: var(--coral); color: #fff; }
.spine-card.accent p, .spine-card.accent a { color: #fff4f2; }
.spine-list { margin: .45rem 0 0; padding-left: 1rem; color: #586b8e; font-size: .75rem; }

.mosaic { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(8rem, .62fr); grid-template-rows: repeat(2, minmax(10rem, 1fr)); gap: .8rem; }
.mosaic-tile { padding: 1.3rem; border-radius: 4px; }
.mosaic-tile h3 { margin-bottom: .45rem; font-size: 1.7rem; }
.mosaic-tile p { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.mosaic-main { grid-row: span 2; color: #fff; background: var(--blue); display: flex; flex-direction: column; justify-content: space-between; }
.mosaic-main p { color: #d4e1ff; max-width: 28rem; font-size: .95rem; }
.mosaic-main .eyebrow { color: #c8d8ff; }
.mosaic-blue { background: var(--blue-soft); }
.mosaic-coral { background: var(--coral-soft); }
.mosaic-stack { display: grid; grid-template-rows: 1fr 1fr; gap: .8rem; }
.mosaic-stack .mosaic-tile { padding: 1rem; background: var(--navy-2); color: #fff; }
.mosaic-stack h3 { font-size: 1.25rem; }
.mosaic-stack p { color: #bdcbe1; font-size: .7rem; }

.proof-band { padding: 3.7rem 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.55fr) minmax(13rem, 1fr); align-items: stretch; gap: 1.2rem; }
.logo-rail { padding: 1.25rem; border-right: 1px solid var(--line); }
.logo-rail h3 { margin-bottom: .7rem; font-size: 1.65rem; }
.logo-cluster { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.logo-cluster span { padding: .45rem .55rem; color: var(--navy); background: #e7edf7; border-radius: 3px; font-family: var(--font-mono); font-size: .59rem; font-weight: 700; }
.logo-rail p { margin-bottom: 0; color: var(--muted); font-size: .75rem; }
.scoreboard { padding: 1.25rem; background: var(--paper); border-radius: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.metrics strong { display: block; color: var(--blue); font-family: var(--font-display); font-size: 2.5rem; line-height: .9; }
.metrics span { display: block; margin-top: .45rem; color: var(--muted); font-size: .68rem; }
.proof-story { padding-top: 1.2rem; }
.proof-story h3 { max-width: 15ch; margin-bottom: .5rem; font-size: 2rem; }
.proof-story p { max-width: 40rem; margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.quote-stack { display: flex; flex-direction: column; gap: .7rem; }
.small-quote { padding: 1rem; background: var(--paper); border-left: 3px solid var(--coral); }
.small-quote p { margin-bottom: .4rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.05; }
.small-quote span { color: var(--muted); font-size: .67rem; }
.tool-note { padding: 1rem; color: #fff; background: var(--navy-2); border-radius: 4px; font-size: .76rem; }
.tool-note strong { display: block; margin-bottom: .3rem; color: #9fbfff; }

.profile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; gap: 1.2rem; }
.profile-copy { padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.profile-copy h2 { max-width: 10ch; margin-bottom: .8rem; }
.profile-copy p { color: var(--muted); font-size: .9rem; }
.studio-image { width: 100%; aspect-ratio: 2.2 / 1; margin-top: 1.1rem; object-fit: cover; border-radius: 3px; filter: saturate(.8); }
.approach-wrap { padding: 1.35rem; color: #fff; background: var(--navy); border-radius: 4px; }
.approach-wrap h2 { max-width: 13ch; margin-bottom: 1.15rem; }
.approach-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; }
.approach-card { min-height: 10rem; padding: 1rem; background: #10284e; border: 1px solid #2a456b; border-radius: 3px; }
.approach-card h3 { margin-bottom: .4rem; font-size: 1.35rem; }
.approach-card p { margin-bottom: 0; color: #bdcbe1; font-size: .75rem; }
.working-style { display: flex; flex-wrap: wrap; gap: .55rem .85rem; margin-top: 1rem; padding-top: .9rem; color: #bbcae1; border-top: 1px solid #2a456b; font-family: var(--font-mono); font-size: .61rem; text-transform: uppercase; }

.closing { padding: 3.7rem 0 5rem; }
.closing-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(15rem, .8fr); align-items: stretch; gap: 0; overflow: hidden; color: #fff; background: var(--blue); border-radius: 4px; }
.closing-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.closing-copy h2 { max-width: 12ch; margin-bottom: .85rem; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.closing-copy p { max-width: 33rem; color: #d4e1ff; }
.closing-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.3rem; }
.closing-copy .button-ghost { color: #fff; border-color: #a9c4ff; }
.response-panel { padding: 1.5rem; color: var(--ink); background: #f4f7ff; }
.response-panel h3 { margin-bottom: 1rem; font-size: 1.7rem; }
.response-point { padding: .8rem 0; border-top: 1px solid #d5e0f2; }
.response-point strong { display: block; margin-bottom: .2rem; font-size: .8rem; }
.response-point span { color: var(--muted); font-size: .74rem; }

.site-footer { width: var(--shell); margin: 0 auto; padding: 1.5rem 0 2rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; }
.site-footer p { margin: 0; }

.page-intro { padding: 4.3rem 0 2.4rem; max-width: 54rem; }
.page-intro h1 { max-width: 11ch; margin-bottom: 1rem; }
.page-intro p { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.archive-tools { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.archive-tools form { flex: 1; max-width: 28rem; }
.archive-tools label { display: block; margin-bottom: .4rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; }
.archive-tools input { width: 100%; padding: .75rem .85rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.filter-list { display: flex; flex-wrap: wrap; justify-content: end; gap: .4rem; }
.filter-list a { padding: .45rem .65rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; text-decoration: none; }
.filter-list a:hover { color: var(--blue); border-color: var(--blue); }
.archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; gap: 1rem; padding-bottom: 4rem; }
.archive-results .story-card { display: flex; height: 100%; flex-direction: column; padding: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.archive-results .story-image { display: block; position: relative; aspect-ratio: 1.45 / 1; overflow: hidden; margin: -.8rem -.8rem .85rem; }
.archive-results .story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-results .story-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: .45rem 0; font-size: 1.45rem; }
.archive-results .story-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: var(--muted); font-size: .82rem; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; color: var(--muted); font-family: var(--font-mono); font-size: .62rem; }
.category-label { color: var(--blue); font-weight: 700; text-transform: uppercase; }
.empty-state { padding: 2rem; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: 4px; }

.content-sections { display: grid; gap: 1rem; padding-bottom: 4rem; }
.content-card { padding: clamp(1.2rem, 2.5vw, 2.1rem); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.content-card h2 { max-width: 14ch; margin-bottom: .8rem; }
.content-card p { max-width: 48rem; color: var(--muted); font-size: .92rem; }
.content-card p:last-child { margin-bottom: 0; }
.service-detail-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-top: 1.2rem; }
.service-detail { padding: 1.1rem; background: var(--paper); border-top: 3px solid var(--blue); }
.service-detail:nth-child(2n) { border-top-color: var(--coral); }
.service-detail h3 { margin-bottom: .45rem; font-size: 1.55rem; }
.service-detail p { margin-bottom: 0; font-size: .8rem; }
.numbered-list { display: grid; gap: .7rem; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: item; }
.numbered-list li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-top: 1px solid var(--line); }
.numbered-list li::before { color: var(--coral); font-family: var(--font-mono); font-size: .75rem; counter-increment: item; content: counter(item, decimal-leading-zero); }
.numbered-list strong { display: block; margin-bottom: .15rem; font-family: var(--font-display); font-size: 1.35rem; }
.numbered-list span { color: var(--muted); font-size: .8rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-top: 1.1rem; }
.faq-item { padding: 1rem; background: var(--blue-soft); }
.faq-item h3 { margin-bottom: .35rem; font-size: 1.25rem; }
.faq-item p { margin-bottom: 0; font-size: .76rem; }
.contact-grid .contact-card { padding: 1.15rem; background: var(--navy); color: #fff; border-radius: 3px; }
.contact-card h3 { font-size: 1.7rem; }
.contact-card p { color: #bbcae1; font-size: .8rem; }
.contact-card a { color: #9dbbff; font-weight: 700; }
.contact-form { display: grid; gap: .8rem; max-width: 43rem; margin-top: 1.2rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.field { display: grid; gap: .3rem; }
.field label { color: var(--muted); font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: .72rem .8rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--muted); font-size: .72rem; }

.not-found { min-height: 62vh; display: grid; place-items: center; padding: 4rem 0; }
.not-found-card { max-width: 39rem; padding: clamp(1.6rem, 5vw, 4rem); color: #fff; background: var(--navy); border-radius: 4px; text-align: center; }
.not-found-card h1 { margin-bottom: .8rem; font-size: clamp(3rem, 8vw, 6rem); }
.not-found-card p { color: #bfcee7; }

.article-layout { padding: 3.6rem 0 4rem; }
.byline { display: grid; grid-template-columns: 3.2rem 1fr; gap: .7rem; align-items: center; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.byline img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 50%; }
.byline strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.byline p { grid-column: 2; margin: -.45rem 0 0; color: var(--muted); font-size: .75rem; }
.article-header h1 { max-width: 17ch; margin-bottom: .8rem; font-size: clamp(2.7rem, 6vw, 5rem); }
.article-deck { max-width: 46rem; color: var(--muted); font-size: 1.15rem; }
.article-cover { width: 100%; max-height: 34rem; margin: 1.5rem 0; object-fit: cover; border-radius: 4px; }
.prose { max-width: 48rem; }
.prose p, .prose li { color: var(--ink); font-size: 1.06rem; line-height: 1.75; }
.prose p { margin-bottom: 1.3rem; }
.prose a { color: var(--blue); font-weight: 600; }
.prose h2, .prose h3 { margin: 2.1rem 0 .7rem; }
.prose blockquote { margin: 1.8rem 0; padding: 1rem 1.2rem; color: var(--blue); border-left: 3px solid var(--coral); font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.category-shell { padding-bottom: 4rem; }
#category-title { margin-bottom: .65rem; }
#category-description { color: var(--muted); }

@media (max-width: 1050px) {
  :root { --shell: min(92vw, 900px); }
  .primary-nav { gap: .8rem; }
  .project-link { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(10rem, .9fr); }
  .hero-lead { grid-row: span 2; }
  .action-stack { grid-column: 2; }
  .mosaic { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .mosaic-stack { grid-column: span 2; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 1fr; }
}
@media (max-width: 760px) {
  :root { --shell: min(92vw, 620px); }
  .site-header { padding-top: 1rem; }
  .header-bar { gap: .65rem; }
  .brand-note { display: none; }
  .brand-name { font-size: 1.4rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .primary-nav { position: absolute; z-index: 5; top: 5.2rem; right: 4vw; left: 4vw; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .7rem; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; }
  .rail-layout { grid-template-columns: minmax(0,1fr); }
  .side-links { display: none; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .interlock, .process-grid, .proof-grid, .profile-grid, .closing-band { grid-template-columns: 1fr; }
  .hero-lead { grid-row: auto; min-height: 0; }
  .action-stack { grid-column: auto; }
  .process-lane { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-card:nth-child(2), .process-card:nth-child(3) { transform: none; }
  .logo-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .closing-copy { padding-bottom: 2rem; }
  .section-header, .archive-tools { display: block; }
  .section-header p { margin-top: .8rem; }
  .filter-list { justify-content: start; margin-top: 1rem; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-main { grid-column: span 2; grid-row: auto; min-height: 14rem; }
  .mosaic-stack { grid-column: span 2; }
  .approach-cards, .service-detail-grid, .faq-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: .45rem; }
}
@media (max-width: 480px) {
  .hero-lead h1 { font-size: 3.25rem; }
  .service-split, .matrix-grid, .process-lane, .metrics, .mosaic { grid-template-columns: 1fr; }
  .mosaic-main, .mosaic-stack { grid-column: auto; }
  .mosaic-stack { grid-template-columns: 1fr; }
  .metrics { gap: .9rem; }
  .metrics strong { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
