/* Hoban story pages (site/work/*.html). Loaded after hoban.css. Owned by the story builder.
   Template parts are prefixed sp- (story page). Each build mockup has its own prefix (hc-, co-, re-, ho-, mf-, pr-)
   and uses the .ui kit from hoban.css, so it reads as client software rather than Hoban brand. */

/* ---------- Reading progress ---------- */
.sp-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.sp-progress i { display: block; height: 100%; background: var(--spark); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.sp-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.sp-crumbs { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sp-crumbs a { color: var(--ink-3); transition: color .2s; }
.sp-crumbs a:hover { color: var(--ink); }
.sp-crumbs i { font-style: normal; color: var(--ink-soft); }
.sp-head { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.sp-title { margin-top: 22px; font-size: clamp(40px, 5.2vw, 78px); max-width: 17ch; }
.sp-head-aside { display: grid; gap: 22px; padding-bottom: 6px; }
.sp-head-aside .lead { font-size: 18px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-photo { margin-top: clamp(40px, 5vw, 64px); position: relative; aspect-ratio: 16 / 7.4; }
.sp-photo img { position: absolute; inset: 0; }
.sp-photo .veil { background: linear-gradient(180deg, rgba(3,10,5,0) 52%, rgba(3,10,5,.58)); }
.sp-mark { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(18px, 2.6vw, 32px); z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; }
.sp-mark .wm { font: 700 clamp(24px, 2.4vw, 34px)/1 var(--f-display); letter-spacing: -0.035em; }
.sp-mark .desc { font: 600 clamp(17px, 1.6vw, 22px)/1.2 var(--f-text); letter-spacing: -0.015em; }
.sp-mark .glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sp-mark .glyph svg { width: 20px; height: 20px; }
.sp-credit { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(18px, 2.6vw, 32px); z-index: 2; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 32px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sp-fig b { display: block; font-family: var(--f-display); font-size: clamp(34px, 3vw, 46px); font-weight: var(--h2-wght); letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-fig b small { font-size: .55em; letter-spacing: -0.02em; margin-left: 2px; color: var(--ink-3); font-weight: 500; }
.sp-fig span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); max-width: 26ch; }
.sp-tools .mono { font-size: 11px; }
.sp-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-logo { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
html[data-look="b"] .sp-logo, html[data-look="c"] .sp-logo { border-radius: var(--r-sm); }
.sp-logo img, .sp-logo .lg { width: 18px; height: 18px; flex: none; object-fit: contain; }
.sp-logo.retired { color: var(--ink-3); background: transparent; border-style: dashed; }
.sp-logo.retired img, .sp-logo.retired .lg { filter: grayscale(1); opacity: .55; }
.sp-logo.retired s { text-decoration-thickness: 1px; }
/* Monochrome Simple Icons, recoloured to the brand's own colour through a mask */
.lg { display: inline-block; width: 18px; height: 18px; flex: none; background: var(--c, currentColor); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }

.sp-mark-sub { display: block; margin-top: 6px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
/* One build leading to the next: a chain of steps (used where a story grew beyond its first build) */
.sp-chain { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chain li { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 500; color: var(--ink-2); }
html[data-look="b"] .sp-chain li, html[data-look="c"] .sp-chain li { border-radius: var(--r-sm); }
.sp-chain li + li::before { content: "→"; margin-right: 10px; color: var(--ink-soft); font-weight: 400; }
.sp-chain li:last-child { background: var(--deep); color: var(--on-deep); }
.sp-chain li:last-child::before { color: var(--on-deep-3); }

/* ---------- The long read ---------- */
.sp-read { padding-block: clamp(80px, 9vw, 136px); }
.sp-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.sp-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.sp-facts { padding: 22px 22px 8px; border-radius: var(--r-lg); background: var(--panel); }
.sp-facts dl { display: grid; }
.sp-facts dt { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sp-facts dd { margin: 5px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sp-facts dd:last-of-type { border-bottom: 0; margin-bottom: 0; }
.sp-facts dd a { color: var(--accent-ink); font-weight: 500; }
.sp-facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-facts .tools { display: grid; gap: 8px; margin-top: 9px; }
.sp-facts .tools span { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.sp-facts .tools img, .sp-facts .tools .lg { width: 16px; height: 16px; object-fit: contain; flex: none; }
.sp-facts .tools .gone { color: var(--ink-3); }
.sp-facts .tools .gone img, .sp-facts .tools .gone .lg { filter: grayscale(1); opacity: .5; }
.sp-book { padding: 20px 22px 22px; border-radius: var(--r-lg); background: var(--deep); color: var(--on-deep-2); }
.sp-book b { display: block; font: 600 17px/1.3 var(--f-display); letter-spacing: -0.02em; color: var(--on-deep); }
.sp-book p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
.sp-book .btn { margin-top: 16px; width: 100%; justify-content: center; height: 42px; font-size: 14.5px; }
.sp-status { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); background: var(--sheet); }
.sp-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

.sp-body { max-width: 720px; min-width: 0; }
.sp-sec + .sp-sec { margin-top: clamp(72px, 8vw, 112px); }
.sp-kicker { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 12px; align-items: center; }
.sp-kicker b { color: var(--accent-ink); font-weight: 500; }
.sp-h2 { margin-top: 16px; font-family: var(--f-display); font-size: clamp(30px, 3.1vw, 44px); font-weight: var(--h2-wght); letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; font-variation-settings: "opsz" var(--display-opsz); }
html[data-look="c"] .sp-h2 { letter-spacing: -0.015em; }
.sp-h2 em { font-family: var(--em-font); font-style: var(--em-style); font-weight: var(--em-wght); letter-spacing: var(--em-track); color: var(--accent-ink); }
.sp-prose { margin-top: 26px; }
.sp-prose p { font-size: 18px; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.sp-prose p + p { margin-top: 1.1em; }
.sp-prose strong { color: var(--ink); font-weight: 600; }
.sp-prose .first::first-line { color: var(--ink); }
.sp-pull { margin: 44px 0 40px; padding-left: 28px; border-left: 2px solid var(--spark); }
.sp-pull p { font-family: var(--f-display); font-size: clamp(24px, 2.3vw, 31px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.24; color: var(--ink); text-wrap: balance; }
html[data-look="c"] .sp-pull p { font-weight: 440; letter-spacing: -0.01em; }
.sp-pull footer { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.sp-pull footer b { color: var(--ink-2); font-weight: 600; }

/* The audit: five, ranked */
.sp-rank { margin-top: 34px; counter-reset: rank; border-top: 1px solid var(--line); }
.sp-rank li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sp-rank .n { font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); padding-top: 5px; }
.sp-rank h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); }
.sp-rank p { grid-column: 2; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); }
.sp-rank .tag { grid-column: 3; grid-row: 1; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; align-self: start; }
.sp-rank li.first { margin: 10px 0; padding: 24px 24px 26px 0; border: 0; border-radius: var(--r-lg); background: var(--wash); grid-template-columns: 76px minmax(0, 1fr) auto; }
.sp-rank li.first .n { color: var(--accent-ink); padding-left: 24px; font-weight: 600; }
.sp-rank li.first p { color: var(--ink-2); }
.sp-rank li.first .tag { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.sp-rank li.first .why { grid-column: 2 / 4; margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in oklab, var(--accent-ink) 22%, transparent); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.sp-rank li.first .why b { color: var(--accent-ink); font-weight: 600; }
.sp-rank li + li.first, .sp-rank li.first + li { border-top: 0; }

/* Steps: how we brought the team with us */
.sp-steps { margin-top: 36px; position: relative; display: grid; gap: 0; }
.sp-steps li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; }
.sp-steps li::before { content: ""; position: absolute; left: 118px; top: 12px; bottom: -4px; width: 1px; background: var(--line-2); }
.sp-steps li:last-child::before { display: none; }
.sp-steps li::after { content: ""; position: absolute; left: 114px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.sp-steps li:last-child::after { background: var(--spark); box-shadow: 0 0 0 4px var(--accent-soft); }
.sp-steps .when { font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.sp-steps .what { padding-left: 22px; }
.sp-steps h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.sp-steps p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- The build, shown ---------- */
.sp-build { padding-block: clamp(88px, 10vw, 148px); overflow: hidden; }
.sp-build-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.sp-build-head .h2 { margin-top: 18px; max-width: 15ch; }
.sp-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sp-stage { position: relative; margin-top: clamp(48px, 6vw, 80px); container-type: inline-size; }
.sp-canvas { position: relative; width: var(--cw, 1200px); margin-inline: auto; transform-origin: 0 0; }
.sp-stage.cropped { overflow: hidden; }
.sp-stage.cropped .sp-pin { box-shadow: 0 0 0 4px color-mix(in oklab, var(--spark) 30%, transparent); transform: scale(1.6); }
.sp-illus { margin-top: 22px; text-align: center; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* numbered pins on the UI */
.sp-pin { position: absolute; z-index: 4; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--spark); color: #07170D; font: 700 11.5px/1 var(--f-ui); box-shadow: 0 0 0 5px color-mix(in oklab, var(--spark) 28%, transparent), 0 4px 10px -2px rgba(7,23,13,.35); transition: transform .25s var(--ease), opacity .25s; }
/* callout cards, Stripe Connect style: title, one line, then a mono spec line */
.sp-call { position: absolute; z-index: 5; width: 246px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,24,40,.07); font-family: var(--f-ui); color: #111827; transition: transform .25s var(--ease); }
.sp-call .t { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; font-size: 14px; font-weight: 650; letter-spacing: -0.012em; }
.sp-call .t i { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--spark); color: #07170D; font: 700 10.5px/1 var(--f-ui); font-style: normal; }
.sp-call p { padding: 6px 16px 14px 46px; font-size: 12.5px; line-height: 1.5; color: #4B5563; }
.sp-call code { display: block; padding: 10px 16px; border-top: 1px solid #EEF0F3; background: #FAFBFC; border-radius: 0 0 12px 12px; font: 500 11px/1.5 "JetBrains Mono", ui-monospace, monospace; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-call code em { font-style: normal; color: #15803D; }
.sp-stage[data-hi] .sp-pin { opacity: .35; }
.sp-stage[data-hi="1"] .sp-pin[data-n="1"], .sp-stage[data-hi="2"] .sp-pin[data-n="2"], .sp-stage[data-hi="3"] .sp-pin[data-n="3"] { opacity: 1; transform: scale(1.18); }
@media (hover: hover) and (pointer: fine) { .sp-call:hover { transform: translateY(-2px); } }
/* the callouts as a list, for narrow screens */
.sp-calls-list { display: none; margin-top: 28px; gap: 10px; }
.sp-calls-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--line); }
.sp-calls-list i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--spark); color: #07170D; font: 700 11.5px/1 var(--f-ui); font-style: normal; }
.sp-calls-list b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.sp-calls-list span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
/* three points underneath */
.sp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.sp-point .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sheet); border: 1px solid var(--line); color: var(--accent-ink); }
html[data-look="c"] .sp-point .ic { border-radius: 8px; }
.sp-point .ic svg { width: 20px; height: 20px; }
.sp-point p { margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.sp-point p b { color: var(--ink); font-weight: 600; }

/* ---------- Results ---------- */
.sp-outcome { padding-block: clamp(80px, 9vw, 136px); }
.sp-read + .sp-outcome { padding-top: 0; }
.sp-outcome-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; }
.sp-outcome-lede { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.sp-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.sp-result { padding: 34px 40px 6px 0; }
.sp-result + .sp-result { padding-left: 40px; border-left: 1px solid var(--line); }
.sp-result b { display: block; font-family: var(--f-display); font-size: clamp(48px, 5.6vw, 84px); font-weight: var(--h2-wght); letter-spacing: -0.05em; line-height: .95; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
html[data-look="c"] .sp-result b { letter-spacing: -0.02em; }
.sp-result b .u { color: var(--accent-ink); }
.sp-result h3 { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.sp-result p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); max-width: 32ch; }
.sp-body.wide { max-width: none; }

/* ---------- The quote ---------- */
.sp-quote { padding-block: clamp(88px, 10vw, 144px); }
.sp-quote figure { max-width: 1040px; }
.sp-quote .qm { display: block; font: italic 400 96px/.6 var(--f-serif); color: var(--spark); height: 44px; }
.sp-quote blockquote p { font-family: var(--f-display); font-size: clamp(30px, 3.5vw, 52px); font-weight: var(--h2-wght); letter-spacing: -0.038em; line-height: 1.1; color: var(--ink); text-wrap: balance; font-variation-settings: "opsz" var(--display-opsz); }
html[data-look="c"] .sp-quote blockquote p { letter-spacing: -0.015em; font-weight: 440; }
.sp-quote blockquote p .tt-2 { color: var(--ink-3); }
.sp-quote figcaption { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.sp-quote .mono-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--on-deep); font: 600 15px/1 var(--f-display); letter-spacing: -0.02em; flex: none; }
.sp-quote figcaption b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.sp-quote figcaption span { display: block; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Related: pillar and next story ---------- */
.sp-related { padding-block: clamp(72px, 8vw, 120px); }
.sp-rel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 30px; }
.sp-pillar { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: clamp(26px, 3vw, 38px); border-radius: var(--r-xl); background: var(--sheet); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.sp-pillar .h3 { margin-top: 18px; max-width: 21ch; }
.sp-pillar p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.sp-pillar .link-arrow { margin-top: auto; padding-top: 28px; }
.sp-pillar svg.ring { position: absolute; right: -70px; bottom: -70px; width: 300px; height: 300px; color: var(--accent-ink); opacity: .9; pointer-events: none; }
.sp-nextcard { position: relative; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 380px; border-radius: var(--r-xl); background: var(--deep); color: var(--on-deep); }
.sp-nextcard .ph { position: relative; min-height: 230px; overflow: hidden; }
.sp-nextcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sp-nextcard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,10,5,0) 40%, rgba(3,10,5,.55)); }
.sp-nextcard .ph .wm { position: absolute; left: 26px; bottom: 20px; z-index: 2; color: #fff; font: 700 26px/1 var(--f-display); letter-spacing: -0.035em; }
html[data-look="c"] .sp-nextcard .ph .wm { font-weight: 560; letter-spacing: -0.012em; }
.sp-nextcard .bd { padding: 22px 26px 26px; display: grid; gap: 10px; }
.sp-nextcard .bd .mono { color: var(--on-deep-3); font-size: 11px; }
.sp-nextcard .bd h3 { font: 600 20px/1.3 var(--f-text); letter-spacing: -0.018em; color: var(--on-deep); max-width: 34ch; }
.sp-nextcard .link-arrow { color: var(--spark); }
@media (hover: hover) and (pointer: fine) {
  .sp-pillar:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .sp-nextcard:hover .ph img { transform: scale(1.035); }
}

/* ---------- Closing band ---------- */
.sp-cta .h2 { max-width: 14ch; }
.sp-cta-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px 64px; align-items: end; }
.sp-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-cta .faces { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--on-deep-2); }
.sp-cta .faces span.f { display: flex; }
.sp-cta .faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--deep); margin-left: -10px; }
.sp-cta .faces img:first-child { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .sp-side .sp-book { display: none; }
  .sp-body { max-width: 720px; }
  .sp-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-figs .sp-tools { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .sp-head, .sp-build-head, .sp-cta-in, .sp-outcome-head { grid-template-columns: 1fr; }
  .sp-call { display: none; }
  .sp-calls-list { display: grid; }
  .sp-points { grid-template-columns: 1fr; gap: 28px; }
  .sp-point { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
  .sp-point p { margin-top: 0; }
  .sp-rel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sp-photo { aspect-ratio: 4 / 3.4; }
  .sp-figs { grid-template-columns: 1fr; gap: 20px; }
  .sp-fig { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .sp-fig span { margin-top: 0; }
  .sp-side { grid-template-columns: 1fr; }
  .sp-results { grid-template-columns: 1fr; }
  .sp-result, .sp-result + .sp-result { padding: 24px 0; border-left: 0; }
  .sp-result + .sp-result { border-top: 1px solid var(--line); }
  .sp-rank li { grid-template-columns: 34px minmax(0, 1fr); }
  .sp-rank .tag { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
  .sp-rank li.first { grid-template-columns: 52px minmax(0, 1fr); padding-right: 18px; }
  .sp-rank li.first .n { padding-left: 18px; }
  .sp-rank li.first .why { grid-column: 1 / -1; padding-left: 18px; }
  .sp-steps li { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; }
  .sp-steps li::before { left: 4px; }
  .sp-steps li::after { left: 0; }
  .sp-steps .what { padding-left: 0; }
  .sp-pull { padding-left: 20px; }
  .sp-prose p { font-size: 17px; }
  .sp-credit { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-progress { display: none; } }
@media print { .sp-progress, .sp-side .sp-book { display: none; } }

/* =====================================================================
   Build mockups. Fixed design width inside .sp-canvas; work.js scales the
   canvas down to fit narrower screens, so the software keeps its proportions.
   ===================================================================== */
.mk-win { position: absolute; }
.mk-wave { display: inline-flex; align-items: center; gap: 1.5px; height: 16px; }
.mk-wave i { display: block; width: 2px; border-radius: 2px; background: #9AA3AE; }
.mk-check { width: 15px; height: 15px; border-radius: 4px; flex: none; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1.5px #C9CED6; background: #fff; }
.mk-check.on { background: var(--mk-accent, #111827); box-shadow: none; }
.mk-check.on::after { content: ""; width: 7px; height: 4px; border: 1.8px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.mk-tabs { display: flex; gap: 18px; margin-top: 14px; border-bottom: 1px solid #EEF0F3; font-size: 12.5px; font-weight: 500; color: #6B7280; }
.mk-tabs span { padding: 0 0 10px; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.mk-tabs span.on { color: #111827; }
.mk-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--mk-accent, #111827); }
.mk-tabs small { font-size: 10.5px; font-weight: 600; color: #6B7280; background: #F1F2F4; border-radius: 99px; padding: 1px 6px; }
.mk-crumb { font-size: 11.5px; color: #6B7280; display: flex; gap: 6px; align-items: center; }
.mk-crumb i { font-style: normal; color: #C2C7CF; }
.mk-card { border: 1px solid #EEF0F3; border-radius: 10px; background: #fff; }
.mk-card-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #F2F3F5; font-size: 12px; font-weight: 650; color: #111827; }
.mk-card-h .ui-sp + * { font-weight: 500; color: #6B7280; }
.mk-search { display: flex; align-items: center; gap: 8px; height: 30px; margin: 0 0 10px; padding: 0 10px; border-radius: 7px; background: #fff; border: 1px solid #E8EAEE; color: #9CA3AF; font-size: 12px; }
.mk-search kbd { margin-left: auto; font: 600 10px/1 var(--f-ui); color: #9CA3AF; border: 1px solid #E5E7EB; border-radius: 4px; padding: 2px 4px; }
.mk-group { padding: 14px 9px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9CA3AF; }
.mk-count { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #6B7280; }
.mk-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.mk-avs { display: flex; }
.mk-avs .ui-av { box-shadow: 0 0 0 2px #fff; margin-left: -6px; width: 22px; height: 22px; font-size: 9px; }
.mk-avs .ui-av:first-child { margin-left: 0; }
.mk-toast { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,24,40,.07); font-family: var(--f-ui); }

/* ---------- Healthcare: Scope, the in-house scoping and design tool ---------- */
.hc { --mk-accent: #0E6B6E; }
.hc-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-bottom: 1px solid #EEF0F3; background: #fff; }
.hc-top .ui-brand { padding: 0; }
.hc-top .ui-brand i { background: #0E6B6E; }
.hc-kit { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: #F3F4F6; font-size: 11px; font-weight: 600; color: #4B5563; }
.hc-kit i { width: 8px; height: 8px; border-radius: 2px; background: #0E6B6E; }
.hc .ui-btn:not(.ghost) { background: #0E6B6E; }
.hc .ui-btn img { width: 13px; height: 13px; filter: brightness(0) invert(1); }
.hc-panes { display: grid; grid-template-columns: 252px minmax(0, 1fr) 250px; height: 700px; }
.hc-doc { padding: 18px 18px; border-right: 1px solid #EEF0F3; background: #FCFCFD; overflow: hidden; }
.hc-doc h4 { margin-top: 8px; font-size: 15px; font-weight: 650; line-height: 1.32; letter-spacing: -0.015em; color: #111827; }
.hc-doc .meta { margin-top: 6px; font-size: 11px; color: #6B7280; }
.hc-doc h5 { margin: 16px 0 5px; font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: #6B7280; }
.hc-doc p { font-size: 12px; line-height: 1.5; color: #374151; }
.hc-doc ul { display: grid; gap: 4px; }
.hc-doc li { position: relative; padding-left: 12px; font-size: 12px; line-height: 1.45; color: #374151; }
.hc-doc li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: #0E6B6E; }
.hc-doc .rule { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #E9F3F3; color: #0B4E50; font-size: 12px; font-weight: 550; }
.hc-add { margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px dashed #D1D5DB; color: #9CA3AF; font-size: 12px; }
.hc-screens { padding: 16px 16px; background: #F4F5F7; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
.hc-cap { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; font-weight: 600; color: #374151; }
.hc-cap code { margin-left: auto; font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; color: #6B7280; }
.hc-frame { position: relative; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EA, 0 6px 14px -8px rgba(16,24,40,.18); overflow: hidden; }
.hc-frame-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid #EEF0F3; font-size: 11.5px; color: #111827; }
.hc-frame-bar b { font-weight: 650; }
.hc-frame-bar .srch { margin-left: auto; width: 120px; height: 22px; border-radius: 6px; border: 1px solid #E5E7EB; color: #9CA3AF; font-size: 10.5px; display: flex; align-items: center; padding: 0 7px; }
.hc-fchips { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #F2F3F5; }
.hc-fchips span { white-space: nowrap; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid #E5E7EB; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 550; color: #374151; }
.hc-fchips span.on { border-color: #1F4E8C; background: #EEF3FA; color: #1F4E8C; }
.hc-fchips .sort { margin-left: auto; border: 0; color: #6B7280; font-weight: 500; }
.hc-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.hc-tbl th { text-align: left; font-weight: 500; color: #6B7280; font-size: 10.5px; padding: 6px 9px; border-bottom: 1px solid #F2F3F5; }
.hc-tbl td { padding: 7px 9px; border-bottom: 1px solid #F5F6F7; color: #1F2937; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-tbl tr:last-child td { border-bottom: 0; }
.hc-tbl td small { display: block; font-size: 10px; color: #9CA3AF; }
.hc-pr { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 5px; font-size: 10px; font-weight: 650; }
.hc-pr.u { background: #FDECEC; color: #B42318; } .hc-pr.s { background: #FEF4E6; color: #A35A00; } .hc-pr.r { background: #EEF3FA; color: #1F4E8C; }
.hc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-sheet { padding: 10px 12px 12px; }
.hc-sheet h6 { margin: 8px 0 5px; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; }
.hc-sheet h6:first-child { margin-top: 0; }
.hc-sheet .opts { display: flex; flex-wrap: wrap; gap: 4px; }
.hc-sheet .opts span { height: 20px; padding: 0 7px; border-radius: 5px; border: 1px solid #E5E7EB; font-size: 10px; display: inline-flex; align-items: center; color: #374151; }
.hc-sheet .opts span.on { border-color: #1F4E8C; background: #1F4E8C; color: #fff; }
.hc-sheet .acts { display: flex; gap: 6px; margin-top: 10px; }
.hc-sheet .acts span { flex: 1; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; box-shadow: inset 0 0 0 1px #E5E7EB; color: #374151; }
.hc-sheet .acts span.p { background: #1F4E8C; color: #fff; box-shadow: none; }
.hc-empty { display: grid; justify-items: center; text-align: center; padding: 18px 12px 16px; }
.hc-empty .ic { width: 34px; height: 34px; border-radius: 50%; background: #EEF3FA; display: grid; place-items: center; color: #1F4E8C; }
.hc-empty b { margin-top: 10px; font-size: 11.5px; font-weight: 650; color: #111827; }
.hc-empty span { margin-top: 3px; font-size: 10.5px; color: #6B7280; }
.hc-empty i { margin-top: 10px; height: 24px; padding: 0 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px #E5E7EB; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 600; color: #1F4E8C; }
.hc-rail { padding: 14px 14px; border-left: 1px solid #EEF0F3; display: grid; gap: 12px; align-content: start; background: #fff; }
.hc-state { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6B7280; }
.hc-state .ui-pill { margin-left: auto; }
.hc-ac { padding: 8px 12px 10px; display: grid; gap: 8px; }
.hc-ac div { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.4; color: #374151; }
.hc-ac div.off { color: #6B7280; }
.hc-ac .mk-check { margin-top: 1px; }
.hc-hist { padding: 6px 12px 10px; display: grid; }
.hc-hist div { position: relative; padding: 7px 0 7px 16px; font-size: 11px; line-height: 1.4; color: #374151; }
.hc-hist div::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #CBD2D9; }
.hc-hist div:first-child::before { background: #0E6B6E; box-shadow: 0 0 0 3px #E0EFEF; }
.hc-hist div::after { content: ""; position: absolute; left: 4.5px; top: 20px; bottom: -8px; width: 1px; background: #E5E7EB; }
.hc-hist div:last-child::after { display: none; }
.hc-hist b { font-weight: 650; color: #111827; }
.hc-hist small { display: block; margin-top: 2px; font-size: 10.5px; color: #6B7280; }
.hc-link { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 11.5px; color: #374151; border-bottom: 1px solid #F2F3F5; }
.hc-link:last-child { border-bottom: 0; }
.hc-link img { width: 16px; height: 16px; }
.hc-link b { font-weight: 650; color: #111827; }
.hc-link .ui-pill { margin-left: auto; }
.hc-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EA; font-size: 10.5px; }
.hc-flow span { height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; background: #F3F4F6; color: #374151; font-weight: 600; white-space: nowrap; }
.hc-flow span.ok { background: #EEF3FA; color: #1F4E8C; }
.hc-flow span.alt { background: #fff; box-shadow: inset 0 0 0 1px #E5E7EB; color: #6B7280; }
.hc-flow i { font-style: normal; color: #9CA3AF; }
.hc-flow i.or { font-size: 10px; color: #9CA3AF; }

/* Closing band: keep the lighter field at the top, so the band meets the footer without a seam */
.sp-cta.fields::before {
  background:
    radial-gradient(40% 46% at 12% 8%, color-mix(in oklab, var(--spark) 20%, transparent), transparent 70%),
    radial-gradient(38% 50% at 92% 0%, color-mix(in oklab, var(--deep-3) 90%, transparent), transparent 70%);
}

/* ---------- Client marks: the client's own lettering, the same in every Hoban look ---------- */
.cm { font-family: "Inter", system-ui, sans-serif; font-style: normal; letter-spacing: 0; }
.cm-hb { font-weight: 800; text-transform: uppercase; letter-spacing: -0.012em; display: inline-flex; align-items: center; gap: .32em; }
.cm-hb i { display: inline-block; width: .34em; height: .34em; background: currentColor; }

/* ---------- Stacked mode (narrow screens): windows flow one under another, each scaled on its own ---------- */
.sp-stage.stacked .sp-canvas { width: auto !important; height: auto !important; margin: 0 !important; display: grid; gap: 28px; justify-items: center; }
.sp-stage.stacked .mk-win { position: relative !important; left: auto !important; top: auto !important; }
.sp-stage.stacked .mk-phone { order: -1; }
.sp-stage.stacked .sp-pin { transform: scale(1.3); }

/* ---------- Construction: Daybook, the site app and the head office board ---------- */
.co { --mk-accent: #16263D; }
.co .ui-brand i { background: #16263D; color: #F2B233; }
.co .ui-nav.on { background: #EDF0F5; color: #16263D; }
.co .ui-btn:not(.ghost) { background: #16263D; }
.co .ui-btn img, .co .ui-btn .lg { width: 13px; height: 13px; }
.co-body { display: flex; height: 662px; }
.co-main { flex: 1; min-width: 0; padding: 18px 18px 0; display: flex; flex-direction: column; }
.co-regions { display: flex; gap: 5px; }
.co-regions span { height: 26px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 550; color: #4B5563; box-shadow: inset 0 0 0 1px #E3E6EA; background: #fff; }
.co-regions span.on { background: #16263D; color: #fff; box-shadow: none; }
.co-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.co-kpis .ui-kpi b { font-size: 18px; }
.co-kpis .ui-kpi b small { font-size: 12px; font-weight: 600; color: #6B7280; margin-left: 3px; }
.co-kpis .ui-kpi em.warn { color: #A35A00; }
.co-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.co-tbl th { text-align: left; font-weight: 500; font-size: 10.5px; color: #6B7280; padding: 7px 7px; border-bottom: 1px solid #EEF0F3; white-space: nowrap; }
.co-tbl td { padding: 8px 7px; border-bottom: 1px solid #F2F3F5; color: #1F2937; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.co-tbl td b { display: block; font-weight: 600; color: #111827; }
.co-tbl td small { display: block; font-size: 10.5px; color: #9CA3AF; margin-top: 1px; }
.co-tbl tr.hot td { background: #FFF8F6; }
.co-tbl .num-r { text-align: right; }
.co-ahead { color: #157A3B; font-weight: 600; } .co-behind { color: #B42318; font-weight: 600; } .co-watch { color: #A35A00; font-weight: 600; } .co-on { color: #6B7280; }
.co-diary { display: inline-flex; align-items: center; gap: 5px; }
.co-diary i { width: 6px; height: 6px; border-radius: 50%; background: #22A55B; }
.co-diary.miss i { background: #D92D20; }
.co-diary.miss { color: #B42318; font-weight: 600; }
.co-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; height: 40px; border-top: 1px solid #EEF0F3; font-size: 11px; color: #6B7280; }
.co-foot img { height: 11px; width: auto; }
.co-foot .ui-sp + span { display: inline-flex; align-items: center; gap: 6px; }
/* the phone */
.co-phone { width: 290px; }
.co-phone .ui-phone-in { min-height: 0; height: 612px; display: flex; flex-direction: column; background: #F4F6F9; }
.co-app-h { padding: 4px 14px 12px; background: #16263D; color: #fff; }
.co-app-h .top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.7); }
.co-app-h .top b { color: #F2B233; font-weight: 700; letter-spacing: .02em; }
.co-app-h h5 { margin-top: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.co-app-h .meta { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.72); }
.co-app-h .filed { margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: 10.5px; font-weight: 600; }
.co-app-h .filed i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.co-list { padding: 10px 10px 0; display: grid; gap: 7px; overflow: hidden; }
.co-item { background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 0 0 1px #E6E9EE; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; font-size: 10.5px; line-height: 1.35; color: #4B5563; }
.co-item .ic { grid-row: span 2; width: 22px; height: 22px; border-radius: 6px; background: #EEF1F5; display: grid; place-items: center; color: #16263D; }
.co-item .ic svg { width: 12px; height: 12px; }
.co-item b { font-size: 11.5px; font-weight: 650; color: #111827; display: flex; justify-content: space-between; gap: 6px; }
.co-item b span { font-weight: 500; color: #6B7280; }
.co-item.dec { box-shadow: 0 0 0 1.5px #F2B233; background: #FFFBF0; }
.co-item.dec .ic { background: #FDF0CC; color: #8A5A00; }
.co-sent { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 600; color: #16263D; }
.co-sent img { height: 9px; width: auto; }
.co-prog { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; margin-top: 2px; }
.co-prog .bar { height: 5px; border-radius: 9px; background: #E5E8ED; overflow: hidden; }
.co-prog .bar i { display: block; height: 100%; border-radius: 9px; background: #16263D; }
.co-file { margin: auto 10px 12px; height: 40px; border-radius: 11px; background: #16263D; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 650; }
.cm-kw { font-weight: 500; text-transform: lowercase; letter-spacing: -0.03em; }
.sp-mark-wm { font-size: clamp(24px, 2.6vw, 36px); line-height: 1; color: #fff; }
.sp-nextcard .ph .wm.cm { font-family: "Inter", system-ui, sans-serif; }
.sp-nextcard .ph .wm.cm-hb { font-weight: 800; letter-spacing: -0.012em; font-size: 24px; }
.sp-nextcard .ph .wm.cm-kw { font-weight: 500; letter-spacing: -0.03em; font-size: 28px; }
/* wordmark-shaped tool logos (Procore) sit at text height rather than in the square icon slot */
.sp-logo img.wide { width: auto; height: 13px; }
.sp-logo:has(img.wide:only-child) { padding: 0 14px; }
.sp-facts .tools img.wide { width: auto; height: 11px; }
.co-foot img, .co-sent img { width: auto; }
/* An inline photo inside the long read */
.sp-figure { margin: 40px 0 8px; }
.sp-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--panel); }
.sp-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.logo-jpg { mix-blend-mode: multiply; }
.co-kpis .ui-kpi b small { display: inline; }
.co-tbl td.co-ahead { color: #157A3B; } .co-tbl td.co-behind { color: #B42318; } .co-tbl td.co-watch { color: #A35A00; } .co-tbl td.co-on { color: #6B7280; }
.co-foot span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.co-foot img { height: 12px; }
.co-foot img.logo-jpg { height: 9px; }
.co-sent img.logo-jpg { height: 8px; }
.co-phone .ui-phone-in { height: 646px; }
.co-list { gap: 6px; }
.co-item { padding: 7px 9px; }
.co-app-h h5 { margin: 8px 0 0; }
.sp-result b .u { font-size: .4em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); margin-left: .14em; }
