/* Harbison Consulting, version 2
   Layout: left-aligned on a 76rem measure. The logo's sky-blue field and white inset frame
   open and close each page; the frame draws itself when it comes into view. Between them,
   white paper with ruled rows, one pinned diagram that assembles as you scroll, and a black
   footer carrying the wordmark the way the back of the business card does.
   Single light theme by choice: the sky blue is the brand. */
:root {
  color-scheme: light;
  --sky: #93D1FF;
  --sky-wash: #EAF5FF;
  --sky-line: #B9DFFB;
  --deep: #0A5A8C;
  --ink: #404040;
  --text: #2B2F33;
  --muted: #5A6873;
  --line: #D3E3EF;
  --paper: #FFFFFF;
  --black: #000000;
  --display: "Montserrat", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1.125rem; line-height: 1.62; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--deep); text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.3rem, 1.1rem + 4.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 1.25rem + 2vw, 3rem); line-height: 1.06; letter-spacing: -0.026em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
p, ul, ol, dl, figure { margin: 0; }
code { font-family: var(--code); font-size: 0.86em; background: var(--sky-wash); padding: 0.08em 0.3em; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1.1rem; justify-items: start; }
.stack > * { min-width: 0; max-width: 100%; }
.lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.9rem 1.35rem; border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--black); border-color: var(--black); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.on-dark { background: var(--paper); color: var(--black); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.textlink { font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.textlink:hover { text-decoration-color: var(--deep); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand svg { width: 168px; height: auto; display: block; }
.logo-text { font-family: var(--display); fill: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--display); font-size: 0.95rem; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.4rem; }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sky); }
.nav a.btn { color: var(--paper); padding: 0.62rem 1rem; font-size: 0.92rem; box-shadow: none; }
.menu { display: none; position: relative; font-family: var(--display); }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; padding: 0.5rem 0.9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--paper); border: 2px solid var(--ink); display: grid; min-width: 220px; padding: 0.4rem 0; }
.menu nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.7rem 1.1rem; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--sky-wash); }

/* Plaque and its frame */
.plaque { position: relative; background: var(--sky); color: var(--text); isolation: isolate; }
.frame { position: absolute; inset: clamp(10px, 1.6vw, 22px); pointer-events: none; z-index: 1; }
.frame i { position: absolute; background: var(--paper); }
.frame i:nth-child(1) { left: 0; top: 0; width: 100%; height: 3px; transform-origin: left center; }
.frame i:nth-child(2) { right: 0; top: 0; width: 3px; height: 100%; transform-origin: center top; }
.frame i:nth-child(3) { right: 0; bottom: 0; width: 100%; height: 3px; transform-origin: right center; }
.frame i:nth-child(4) { left: 0; bottom: 0; width: 3px; height: 100%; transform-origin: center bottom; }
.motion .frame i { transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.motion .frame i:nth-child(2) { transition-delay: 0.4s; }
.motion .frame i:nth-child(3) { transition-delay: 0.8s; }
.motion .frame i:nth-child(4) { transition-delay: 1.2s; }
.motion .frame:not(.is-drawn) i:nth-child(odd) { transform: scaleX(0); }
.motion .frame:not(.is-drawn) i:nth-child(even) { transform: scaleY(0); }
.plaque > .wrap { position: relative; z-index: 2; padding-inline: calc(var(--gutter) + clamp(14px, 2vw, 26px)); padding-block: clamp(3rem, 7vw, 6rem); }
.plaque.slim > .wrap { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }
.plaque h1, .plaque h2 { color: var(--ink); }

/* Hero */
.hero > .wrap { padding-block: clamp(3.25rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero-copy > * { min-width: 0; max-width: 100%; }
.hero h1 { max-width: 12.5em; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); width: 100%; max-width: 40rem; }
.facts dt { font-family: var(--display); font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.facts dd { margin: 0.15rem 0 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.portrait { background: var(--paper); padding: 8px 8px 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font-family: var(--display); font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--ink); padding: 0.65rem 0.2rem 0.7rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section.wash { background: var(--sky-wash); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: 1.15rem; }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.split-head p { font-size: 1.15rem; max-width: 34em; }

/* Ruled rows */
.ledger { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.ledger > li { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem clamp(2rem, 5vw, 5rem); padding-block: 1.6rem; }
.ledger h3 { font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; }
.ledger p { font-size: 1.08rem; }
.ledger .systems { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 0.45rem; }
.rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left center; }
.ledger-foot { margin-top: 2rem; }

/* System map */
.map-section { background: var(--sky-wash); }
.map-stage { max-width: 92rem; display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.map-stage.is-live { min-height: 100vh; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 1.5rem; }
.map-copy { display: grid; gap: 1.5rem; align-content: center; min-width: 0; }
.map-steps { list-style: none; padding: 0; counter-reset: mstep; border-top: 2px solid var(--ink); }
.map-steps li { counter-increment: mstep; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.4rem; padding-block: 0.85rem; border-bottom: 1px solid var(--sky-line); transition: opacity 0.35s ease; }
.map-steps li::before { content: counter(mstep); grid-row: 1 / span 2; font-family: var(--display); font-weight: 700; color: var(--deep); font-size: 1rem; line-height: 1.5; }
.map-steps h3 { font-size: 1.05rem; line-height: 1.5; }
.map-steps p { font-size: 0.98rem; line-height: 1.5; }
.map-stage.is-live .map-steps li:not(.is-active) { opacity: 0.38; }
.map-figure { min-width: 0; }
.map-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.m .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.m .hub { fill: var(--sky); }
.m .hub-frame { fill: none; stroke: var(--paper); stroke-width: 3.5; }
.m path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.m polygon { fill: var(--ink); }
.motion .m-link path { stroke-dasharray: 1; }
.motion .m-hub-frame { stroke-dasharray: 1; }
.m text { font-family: var(--display); fill: var(--ink); }
.m .t { font-size: 15px; font-weight: 700; }
.m .s { font-family: var(--body); font-size: 13.5px; fill: var(--muted); }
.m .g { font-size: 13.5px; font-weight: 600; fill: var(--muted); }
.m .h1 { font-size: 23px; font-weight: 700; letter-spacing: -0.3px; }
.m .h2 { font-family: var(--body); font-size: 14.5px; fill: var(--text); }
.map-mobile { display: none; }
.mm-label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--muted); margin: 1.25rem 0 0.5rem; }
.mm-label:first-child { margin-top: 0; }
.mm-group { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.mm-group li { background: var(--paper); border: 1.5px solid var(--ink); padding: 0.65rem 0.85rem; display: grid; }
.mm-group strong, .mm-hub strong { font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.mm-group span { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.mm-join { width: 2px; height: 28px; background: var(--ink); margin-inline: auto; }
.mm-hub { position: relative; background: var(--sky); padding: 1.4rem 1.2rem; text-align: center; display: grid; gap: 0.2rem; }
.mm-hub::before { content: ""; position: absolute; inset: 8px; border: 3px solid var(--paper); pointer-events: none; }
.mm-hub strong { font-size: 1.2rem; }
.mm-hub span { font-size: 0.95rem; }

/* Case teasers */
.cases { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: clamp(1rem, 2vw, 1.5rem); }
.case { background: var(--sky-wash); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 0.9rem; align-content: start; justify-items: start; min-width: 0; }
.case.feature { grid-row: 1 / span 2; background: var(--sky); position: relative; align-content: end; min-height: 26rem; }
.case .figure { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(2.8rem, 1.6rem + 4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.case.feature .figure { font-size: clamp(3.6rem, 1.8rem + 6.5vw, 7.5rem); }
.case h3 { font-size: 1.25rem; }
.case p { font-size: 1.05rem; max-width: 32em; }

/* Process */
.process-wrap { position: relative; }
.process { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: pstep; }
.process-wrap::before, .process-fill { content: ""; position: absolute; left: 0; right: 0; top: 1.1rem; height: 2px; background: var(--sky-line); z-index: 0; }
.process-fill { background: var(--ink); transform-origin: left center; }
.process li { position: relative; counter-increment: pstep; display: grid; gap: 0.55rem; align-content: start; }
.process li::before { content: counter(pstep); position: relative; z-index: 2; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); transition: background-color 0.3s ease, color 0.3s ease; }
.process li.is-reached::before { background: var(--ink); color: var(--paper); }
.process h3 { font-size: 1.08rem; margin-top: 0.5rem; }
.process p { font-size: 1rem; line-height: 1.5; }

/* About strip */
.about-strip { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.about-strip .prose { max-width: 36rem; }
.fields { background: var(--sky-wash); padding: 1.25rem 1.4rem; display: grid; gap: 0.95rem; }
.fields dt { font-family: var(--display); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.fields dd { margin: 0.1rem 0 0; font-size: 1.04rem; line-height: 1.4; }

/* Big closing plaque */
.closer h2 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); max-width: 13em; }

/* Records: services and case write-ups */
.record { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); border-top: 2px solid var(--ink); }
.record > * { min-width: 0; }
.record .side { display: grid; gap: 1rem; align-content: start; }
.record .side h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); letter-spacing: -0.02em; }
.record .main { display: grid; gap: 0.95rem; align-content: start; }
.record .main h3 { font-size: 0.98rem; margin-top: 0.6rem; }
.record .main h3:first-child { margin-top: 0; }
.record ul { padding-left: 1.15em; display: grid; gap: 0.3rem; }
.record .main .example { background: var(--sky-wash); padding: 1rem 1.15rem; }
.cols-2 { columns: 2 16rem; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; margin-bottom: 0.3rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { counter-increment: step; background: var(--paper); padding: 0.85rem 0.9rem; font-size: 0.95rem; line-height: 1.38; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; color: var(--deep); margin-bottom: 0.2rem; }

.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--ink); }
.checklist li { padding-block: 1rem; border-bottom: 1px solid var(--sky-line); font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

/* Long-form text */
.prose { display: grid; gap: 1.15rem; max-width: 38rem; }
.prose > * { min-width: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 1.5rem; letter-spacing: -0.02em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.45rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 6vw, 5.5rem); align-items: start; }
.about-grid .portrait { background: var(--sky); padding: 10px 10px 0; }
.dateline { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.article-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.article-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 0.4rem 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.article-list h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem); letter-spacing: -0.02em; }
.article-list h2 a { color: var(--ink); text-decoration-color: var(--sky); text-decoration-thickness: 3px; }
.article-list .body { display: grid; gap: 0.55rem; max-width: 42rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 5.5rem); align-items: start; }
.contact-grid > * { min-width: 0; display: grid; gap: 1rem; justify-items: start; }
.contact-grid h2 { font-size: 1.6rem; }
.contact-grid h2:not(:first-child) { margin-top: 1.5rem; }
.address { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
form { display: grid; gap: 1rem; width: 100%; }
label { display: grid; gap: 0.35rem; font-family: var(--display); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
input, textarea { font: inherit; font-family: var(--body); font-size: 1.05rem; font-weight: 400; color: var(--text); background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%; }
textarea { min-height: 9rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.composed { width: 100%; display: grid; gap: 0.8rem; justify-items: start; background: var(--sky-wash); padding: 1.1rem 1.2rem; }
.composed pre { margin: 0; width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: 1rem; line-height: 1.5; background: var(--paper); border: 1px solid var(--line); padding: 0.8rem 0.9rem; }
.note { font-size: 0.95rem; color: var(--muted); }

/* Footer: the back of the card */
.site-footer { background: var(--black); color: var(--paper); font-family: var(--display); overflow: hidden; }
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 5rem) 2rem; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.footer-mark { font-weight: 600; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; font-size: clamp(2.6rem, 9.6vw, 9.2rem); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.98rem; font-weight: 500; align-content: start; min-width: 0; }
.footer-cols li { overflow-wrap: anywhere; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { font-size: 0.82rem; font-weight: 500; color: var(--line); border-top: 1px solid var(--ink); padding-top: 1.2rem; }

@media (max-width: 899px) {
  .hero-grid, .about-grid, .about-strip, .contact-grid, .record, .split-head, .map-stage { grid-template-columns: minmax(0, 1fr); }
  .hero-grid .portrait { max-width: 260px; }
  .about-grid .portrait { max-width: 300px; }
  .map-svg { display: none; }
  .map-mobile { display: block; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case.feature { grid-row: auto; min-height: 0; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-left: 0; }
  .process-wrap::before, .process-fill { left: calc(1.15rem - 1px); right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process-fill { display: none; }
  .process li { grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: 1rem; }
  .process li::before { grid-row: 1 / span 2; }
  .process li > * { grid-column: 2; }
  .process h3 { margin-top: 0.35rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand svg { width: 150px; }
  .ledger > li, .article-list li, .checklist, .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .textlink { transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, text-decoration-color 0.15s ease; }
}

/* Version 3 additions */
.cases.four { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
.cases.four .case.feature { grid-column: 1 / -1; grid-row: auto; min-height: 0; align-content: start; padding: clamp(2rem, 4.5vw, 3.75rem); }
.cases.four .case.feature p:not(.figure) { max-width: 46rem; font-size: 1.1rem; }
.cases.four .case.feature h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); max-width: 30em; }
.case ul { padding-left: 1.15em; display: grid; gap: 0.35rem; font-size: 1.02rem; }
.checklist a { color: var(--ink); text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.record .main li strong { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 0.95em; }
.nav { gap: 1.35rem; }
@media (max-width: 1040px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 899px) { .cases.four { grid-template-columns: minmax(0, 1fr); } .cases.four .case.feature { grid-column: auto; } }

/* Version 4: scannable services and work */
.jump-row { padding-block: 1.25rem 0; }
.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.jump a { font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 2px; padding: 0.5rem 0.9rem; }
.jump a:hover { background: var(--ink); color: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem); }
.svc { display: grid; gap: 0.75rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 1.4rem; min-width: 0; }
.glyph { position: relative; width: 64px; height: 64px; background: var(--sky); color: var(--ink); display: grid; place-items: center; }
.glyph::before { content: ""; position: absolute; inset: 4px; border: 2px solid var(--paper); }
.glyph svg { width: 38px; height: 38px; position: relative; }
.svc h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.svc .svc-line { font-size: 1.05rem; }
.svc ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.svc ul li { padding-left: 1.1rem; position: relative; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--sky); }
.svc .proof { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--sky); padding-left: 0.75rem; }
.section.slim-top { padding-block: clamp(2rem, 4vw, 3rem) 0; }

.result-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--sky-line); border: 1px solid var(--sky-line); }
.result-index a { background: var(--paper); padding: 1.2rem 1.3rem; display: grid; gap: 0.25rem; text-decoration: none; color: var(--ink); }
.result-index a:hover { background: var(--sky-wash); }
.ri-fig { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.035em; line-height: 1; }
.ri-label { font-size: 1rem; color: var(--text); }

.stories .wrap { display: grid; gap: 0; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.story:nth-child(even) .story-text { order: 2; }
.story-text { display: grid; gap: 0.75rem; min-width: 0; }
.story-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.client { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--deep); }
.k { font-family: var(--display); font-weight: 700; font-size: 0.82rem; color: var(--ink); margin-right: 0.35rem; }
.result { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); background: var(--sky-wash); padding: 0.8rem 1rem; border-left: 4px solid var(--sky); }
.result a { font-weight: 700; }
.story-visual { min-width: 0; }

.viz { background: var(--sky-wash); padding: clamp(1.2rem, 2.5vw, 1.75rem); display: grid; gap: 0.9rem; }
.viz-title { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.viz figcaption { font-size: 0.9rem; color: var(--muted); }
.bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
.bar-label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.bar-track { height: 22px; }
.bar { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 0 4px 4px 0; }
.bar.sky { background: var(--deep); }
.bar-value { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.node-box { background: var(--paper); border: 1.5px solid var(--ink); padding: 0.6rem 0.8rem; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink); display: grid; gap: 0.1rem; }
.node-box small { font-family: var(--body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.node-box.hub-box { background: var(--sky); border-color: var(--sky); box-shadow: inset 0 0 0 3px var(--sky), inset 0 0 0 5px var(--paper); }
.node-box.big { font-size: 1.3rem; }
.link-arrow { width: 22px; height: 2px; background: var(--ink); position: relative; }
.link-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.flow { list-style: none; padding: 0; margin: 0; counter-reset: fl; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.flow li { counter-increment: fl; position: relative; background: var(--paper); border: 1.5px solid var(--ink); padding: 0.8rem 0.75rem 0.75rem; font-size: 0.92rem; line-height: 1.35; }
.flow li::before { content: counter(fl); display: block; font-family: var(--display); font-weight: 700; color: var(--deep); margin-bottom: 0.2rem; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -1.15rem; top: 50%; border-left: 8px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateY(-50%); }
.story .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.story .flow li { font-size: 0.82rem; padding: 0.6rem; }
.story .flow li:not(:last-child)::after { right: -0.95rem; }
.flow.big li { font-size: 1rem; padding: 1rem; }

.cycles { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem 0.9rem; align-items: center; }
.cy-label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.cy-track { position: relative; height: 34px; }
.cy-bar { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); background: var(--deep); color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; padding-inline: 0.6rem; border-radius: 0 4px 4px 0; white-space: nowrap; overflow: hidden; }
.cy-bar.warn { background: var(--ink); }

.stat-stack { display: grid; gap: 0.9rem; margin: 0; }
.stat-stack div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--sky-line); padding-bottom: 0.7rem; }
.stat-stack dt { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-stack dd { margin: 0; }

.merge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.rec { background: var(--paper); border: 1.5px solid var(--ink); padding: 0.6rem 0.8rem; display: grid; gap: 0.1rem; }
.rec small { font-family: var(--display); font-weight: 600; font-size: 0.75rem; color: var(--muted); }
.rec strong { font-family: var(--display); color: var(--ink); }
.rec span { font-size: 0.9rem; }
.merge-arrow { grid-column: 1 / -1; justify-self: center; width: 2px; height: 22px; background: var(--ink); position: relative; }
.merge-arrow::after { content: ""; position: absolute; bottom: -2px; left: -5px; border-top: 8px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.rec.kept { grid-column: 1 / -1; background: var(--sky); border-color: var(--sky); }

.diff { margin: 0; background: var(--paper); border: 1px solid var(--sky-line); padding: 1rem 1.1rem; font-family: var(--code); font-size: 0.86rem; line-height: 1.7; overflow-x: auto; color: var(--text); }
.diff .del { color: #9B2C2C; }
.diff .add { color: #1D6B3A; font-weight: 600; }

.fan { display: grid; grid-template-columns: auto 34px minmax(0, 1fr); align-items: center; }
.fan-lines { height: 2px; background: var(--ink); }
.fan-apps { display: grid; gap: 0.5rem; border-left: 2px solid var(--ink); padding-left: 0.9rem; }

.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.agents div { background: var(--sky-wash); padding: 1rem; display: grid; gap: 0.3rem; border-top: 3px solid var(--sky); }
.agents strong { font-family: var(--display); color: var(--ink); }
.agents span { font-size: 0.95rem; line-height: 1.45; }

.cr-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.cr-top .case.feature { min-height: 22rem; }
.platforms { display: grid; gap: 0.8rem; align-content: start; }
.platforms h2 { font-size: 1.5rem; }
.plat { border-top: 2px solid var(--ink); padding-top: 0.8rem; display: grid; gap: 0.2rem; }
.plat strong { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.two-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.two-lists h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35em; width: 0.45rem; height: 0.8rem; border-right: 2.5px solid var(--deep); border-bottom: 2.5px solid var(--deep); transform: rotate(40deg); }
.mini-steps { padding-left: 1.3rem; display: grid; gap: 0.6rem; }

@media (max-width: 899px) {
  .svc-grid, .result-index, .two-lists, .cr-top { grid-template-columns: minmax(0, 1fr); }
  .result-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story:nth-child(even) .story-text { order: 0; }
  .flow, .story .flow { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .flow li:not(:last-child)::after, .story .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1rem; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
}
@media (max-width: 520px) {
  .result-index { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-row .bar-label { grid-column: 1 / -1; }
  .fan { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .fan-lines { display: none; }
  .stat-stack div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* Version 5 */
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--paper); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.hero h1 { font-size: clamp(2.1rem, 1rem + 3.6vw, 4.1rem); }

/* service map */
.svc-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.sm-col { border-top: 3px solid var(--ink); padding-top: 1rem; min-width: 0; }
.sm-head { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep); margin-bottom: 0.9rem; }
.sm-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.sm-col li { position: relative; }
.sm-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0.85rem; padding: 0.55rem; background: var(--paper); border: 1.5px solid var(--sky-line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.sm-item .glyph { width: 44px; height: 44px; }
.sm-item .glyph::before { inset: 3px; border-width: 1.5px; }
.sm-item .glyph svg { width: 28px; height: 28px; }
.sm-name { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.sm-tip { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); background: var(--ink); color: var(--paper); font-size: 0.95rem; line-height: 1.45; padding: 0.75rem 0.9rem; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s, transform .18s; }
.sm-tip::before { content: ""; position: absolute; top: -7px; left: 22px; border-bottom: 7px solid var(--ink); border-left: 7px solid transparent; border-right: 7px solid transparent; }
.sm-item:hover, .sm-item:focus-visible { border-color: var(--ink); box-shadow: 4px 4px 0 var(--sky); }
.sm-item:hover .sm-tip, .sm-item:focus-visible .sm-tip { opacity: 1; transform: none; }
@media (hover: none) {
  .sm-item { grid-template-columns: 44px minmax(0, 1fr); row-gap: 0.15rem; align-items: start; }
  .sm-item .glyph { grid-row: 1 / span 2; align-self: center; }
  .sm-name { align-self: end; }
  .sm-tip { position: static; grid-column: 2; opacity: 1; transform: none; background: none; color: var(--muted); padding: 0; font-size: 0.9rem; line-height: 1.4; }
  .sm-tip::before { display: none; }
}

/* phone menu: wider panel, booking link as a button */
.menu nav { min-width: 260px; }
.menu nav a:last-child { margin: 0.5rem 1rem 0.6rem; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); text-align: center; }
.menu nav a:last-child:hover { background: var(--black); }

/* claude visual */
.cv { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.cv-src { display: grid; gap: 0.3rem; background: var(--paper); border: 1.5px solid var(--ink); padding: 0.6rem 0.7rem; font-size: 0.85rem; }
.cv-label { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.cv-src span:not(.cv-label) { border-left: 3px solid var(--sky); padding-left: 0.45rem; line-height: 1.3; }
.cv-gate { display: grid; place-items: center; position: relative; }
.cv-gate::before { content: ""; position: absolute; left: -0.6rem; right: -0.6rem; top: 50%; height: 2px; background: var(--ink); }
.cv-hub { position: relative; }
.cv-hub::after { content: ""; position: absolute; left: 100%; width: 0.6rem; top: 50%; height: 2px; background: var(--ink); }
.cv-gate span { z-index: 1; font-family: var(--display); font-weight: 700; font-size: 0.72rem; color: var(--paper); background: var(--deep); padding: 0.25rem 0.45rem; white-space: nowrap; position: relative; }
.cv-users { display: grid; gap: 0.1rem; }
.cv-users strong { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.cv-users span { font-size: 0.85rem; line-height: 1.35; }
.qa { display: grid; gap: 0.5rem; }
.qa .q { justify-self: start; background: var(--paper); border: 1.5px solid var(--ink); padding: 0.55rem 0.8rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--ink); border-radius: 12px 12px 12px 2px; }
.qa .a { justify-self: end; background: var(--sky); padding: 0.75rem 0.9rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: end; border-radius: 12px 12px 2px 12px; max-width: 30rem; }
.qa .a p { font-size: 0.88rem; line-height: 1.4; color: var(--ink); }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 56px; padding-bottom: 14px; }
.mini-bars span { width: 30px; height: var(--h); background: var(--ink); border-radius: 3px 3px 0 0; position: relative; }
.mini-bars i { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--display); font-size: 0.55rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* state bar dashboards */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.dash-panel { background: var(--paper); border: 1.5px solid var(--ink); padding: 0.7rem; display: grid; gap: 0.5rem; align-content: start; }
.dp-head { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink); border-bottom: 2px solid var(--sky); padding-bottom: 0.35rem; }
.dp-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.dp-tile b { font-family: var(--display); font-weight: 600; font-size: 0.78rem; color: var(--ink); line-height: 1.25; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.spark i { width: 6px; height: var(--h); background: var(--deep); border-radius: 2px 2px 0 0; }
.dash-std { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink); background: var(--sky); padding: 0.45rem 0.7rem; justify-self: start; }

/* rollouts ghost bar */
.bar.ghost { background: repeating-linear-gradient(135deg, var(--sky) 0 6px, var(--sky-wash) 6px 12px); border: 1.5px solid var(--deep); display: flex; align-items: center; padding-left: 0.5rem; }
.bar.ghost em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 0.72rem; color: var(--ink); white-space: nowrap; }

/* sync visual */
.sync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 1.2fr) minmax(0, 1fr); align-items: center; gap: 0.4rem; }
.sync > .node-box { min-height: 5.5rem; place-content: center; text-align: center; }
.sync-link { display: grid; gap: 0.9rem; }
.lane { display: flex; align-items: center; }
.lane b { flex: 1; height: 2px; background: var(--ink); }
.lane .hl, .lane .hr { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lane .hl { border-right: 8px solid var(--ink); }
.lane .hr { border-left: 8px solid var(--ink); }
.lane span { font-family: var(--display); font-weight: 700; font-size: 0.78rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--deep); border-radius: 999px; padding: 0.15rem 0.6rem; margin-inline: 0.3rem; }

.agents div.custom { background: var(--paper); border: 1.5px dashed var(--deep); border-top-width: 3px; grid-column: 1 / -1; }

/* callrail page */
.cr-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.cr-parts > div { border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.cr-num { font-family: var(--display); font-weight: 700; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--sky); color: var(--ink); }
.lwc-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.lwc { background: var(--paper); border: 1px solid var(--sky-line); border-radius: 6px; box-shadow: 0 1px 0 var(--sky-line), 0 10px 30px -18px rgba(10, 90, 140, 0.45); padding: 1rem 1.1rem; display: grid; gap: 0.8rem; }
.lwc-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.lwc-head b { font-size: 0.8rem; font-weight: 600; background: var(--sky-wash); padding: 0.15rem 0.5rem; border-radius: 999px; }
.lwc-calls { list-style: none; padding: 0; display: grid; gap: 0; }
.lwc-calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.8rem; padding: 0.6rem 0 0.6rem 0.8rem; border-left: 3px solid var(--sky); border-bottom: 1px solid var(--line); }
.lwc-calls strong { font-family: var(--display); font-size: 0.9rem; color: var(--ink); }
.lwc-calls span { grid-column: 1; font-size: 0.88rem; color: var(--muted); }
.lwc-calls small { grid-column: 2; grid-row: 1; font-family: var(--display); font-size: 0.75rem; color: var(--muted); }
.lwc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.lwc-kpis div { background: var(--sky-wash); padding: 0.6rem 0.7rem; display: grid; }
.lwc-kpis b { font-family: var(--display); font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.lwc-kpis span { font-size: 0.85rem; color: var(--muted); }
.lwc figcaption { font-family: var(--display); font-weight: 600; font-size: 0.8rem; color: var(--deep); }
.lwc-note { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }

/* nav: collapse to the menu before links wrap */
.nav a { white-space: nowrap; }
@media (max-width: 1239px) { .nav { display: none; } .menu { display: block; } }

/* phone map: builds on scroll */
.map-stage.is-mlive .map-steps li:not(.is-active) { opacity: 0.38; }
.map-mobile .mm-join { transition: background-color 0.5s ease; }
.map-mobile .mm-group li { transition: border-color 0.5s ease; }
.map-mobile.is-done .mm-join { background: var(--deep); width: 3px; }
.map-mobile.is-done .mm-group li { border-color: var(--deep); }
.map-mobile.is-done .mm-hub::before { border-width: 4px; }

/* fractional CTO */
.cto-fit { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.cto-note { background: var(--sky-wash); border-left: 4px solid var(--sky); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.8rem; }
@media (max-width: 899px) { .cto-fit { grid-template-columns: minmax(0, 1fr); } }

/* booking embed */
.embed-frame { background: var(--paper); border: 1.5px solid var(--sky-line); }
.embed-frame iframe { display: block; width: 100%; height: 800px; border: 0; }

/* contact booking steps */
.book-steps { list-style: none; padding: 0; counter-reset: bk; display: grid; gap: 0.6rem; }
.book-steps li { counter-increment: bk; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.book-steps li::before { content: counter(bk); width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--sky); font-family: var(--display); font-weight: 700; color: var(--ink); }

/* about */
.about-lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 3.1rem; height: 3px; background: var(--ink); }
.timeline li { display: grid; gap: 0; align-content: start; position: relative; }
.timeline li > .tl-year { order: -1; }
.timeline li > h3 { margin-bottom: 0.35rem; }
.tl-year { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; height: 3.1rem; line-height: 1.2; }
.timeline li::before { content: ""; width: 14px; height: 14px; background: var(--sky); border: 3px solid var(--ink); position: relative; margin-top: -8.5px; margin-bottom: 0.6rem; }
.timeline h3 { font-size: 1.05rem; }
.timeline p { font-size: 0.95rem; line-height: 1.45; }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.who > div { background: var(--sky-wash); padding: clamp(1.25rem, 2.5vw, 1.75rem); border-top: 4px solid var(--sky); display: grid; gap: 0.5rem; align-content: start; }

@media (max-width: 899px) {
  .svc-map, .cr-parts, .lwc-pair, .who { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-left: 1.6rem; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .timeline li::before { position: absolute; left: -1.6rem; top: 0.45rem; margin: 0; }
  .tl-year { height: auto; }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .cv-gate span { display: inline-block; }
  .cv-gate::before { left: 50%; right: auto; top: -0.6rem; bottom: -0.6rem; width: 2px; height: auto; }
  .cv-hub::after { display: none; }
}
@media (max-width: 560px) {
  .agents { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .qa .a { grid-template-columns: minmax(0, 1fr); }
}
