/* ============================================================
   ABISOL 2027 — shared design system for all 2027 pages.
   Load after theme.css (palette tokens + switcher).
   Brand colours come from --abi-* tokens only; status colours
   (risk high / medium / low) are fixed on purpose.
   ============================================================ */
:root {
    --ink: var(--abi-ink);
    --text: var(--abi-text);
    --muted: var(--abi-muted);
    --line: var(--abi-line);
    --paper: var(--abi-paper);
    --surface: var(--abi-surface);
    --navy: var(--abi-navy);
    --primary: var(--abi-primary);
    --accent: var(--abi-accent);
    --link: var(--abi-primary-text, var(--abi-primary));          /* primary used as text */
    --panel-strong: var(--abi-primary-strong, var(--abi-primary)); /* primary behind white text */
    --accent-fg: var(--abi-accent-text, var(--abi-accent));       /* accent used as text/icons */
    --tag-fg: var(--abi-tag-text, var(--abi-primary-dark));

    --risk-high: #B4372F;
    --risk-med: #96610F;
    --risk-low: #2F7D4F;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-1: 0 1px 2px rgba(16, 27, 54, .06), 0 1px 1px rgba(16, 27, 54, .04);
    --shadow-2: 0 12px 32px -12px rgba(16, 27, 54, .18), 0 4px 8px -4px rgba(16, 27, 54, .06);
    --wrap: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--abi-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--abi-primary-light); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 15px/1.2 var(--abi-font);
    padding: 15px 22px; border-radius: 10px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--abi-on-primary); box-shadow: 0 6px 18px -8px var(--primary); }
.btn-primary:hover { background: var(--abi-primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--abi-line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.link-arrow { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--link); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo svg { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--paper); }
.nav-links .btn { padding: 11px 18px; margin-left: 8px; color: var(--abi-on-primary); white-space: nowrap; }
.nav-links .btn:hover { background: var(--abi-primary-dark); }
.nav-links .nav-cta { flex-direction: column; gap: 2px; padding: 8px 18px; line-height: 1.15; }
.nav-cta-note { font-size: 11.5px; font-weight: 500; opacity: .88; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; scroll-margin-top: 72px; }
[id] { scroll-margin-top: 72px; }
.section.tint { background: var(--paper); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--link); margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--abi-primary-light); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted); }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; background:
    radial-gradient(900px 480px at 85% 10%, var(--abi-primary-tint), transparent 70%),
    linear-gradient(var(--surface), var(--paper)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--link); }
.hero-lede { font-size: 19px; color: var(--text); max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 36px; }
.cta-stack { display: flex; flex-direction: column; gap: 8px; }
.hero-note { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Sample deliverable: executive brief card */
.brief {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2);
    padding: 26px; font-size: 14px; position: relative;
}
.brief-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brief-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.brief-sub { color: var(--muted); font-size: 12.5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--abi-primary-tint); color: var(--tag-fg); white-space: nowrap; }
.brief h4, .brief .brief-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.risk-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.risk-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-weight: 500; }
.lvl { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; color: #fff; }
.lvl.h { background: var(--risk-high); } .lvl.m { background: var(--risk-med); } .lvl.l { background: var(--risk-low); }
.roadmap { display: grid; gap: 10px; }
.road-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; color: var(--text); font-size: 13px; }
.bar { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.road-row b { font-size: 12px; color: var(--muted); text-align: right; font-weight: 600; }
.brief-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* ============================================================
   Homepage interactive (2026-10-12): A industry spotlight (hero), B "What's on your desk?",
   C before/after. Markup: 2027-build/build_home_interactive.py; behaviour: site.js [data-tabs].
   ============================================================ */
/* shared: pause / play button for rotating panels */
.tabs-pause { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); cursor: pointer; display: grid; place-items: center; }
.tabs-pause span { width: 10px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.tabs-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
[data-tabs] [role="tab"]:focus-visible, .tabs-pause:focus-visible, .spot-link:focus-visible { outline: 3px solid #8FAAF2; outline-offset: -4px; }

/* A: industry spotlight */
.spotlight { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-2); background: #0A1226; color: #fff; min-height: 540px; margin: 0; }
.spot-slides { position: absolute; inset: 0; }
.spot-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.spot-link { position: absolute; inset: 0; z-index: 0; padding: 28px 30px 96px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none; }
.spot-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; z-index: 1; }
.spot-slide picture, .spot-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.spot-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,18,38,.18) 0%, rgba(10,18,38,.72) 42%, rgba(10,18,38,.95) 100%); }
.spot-slide.on img { animation: spot-zoom 9s ease-out both; }
@keyframes spot-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.spot-eye { align-self: flex-start; margin-bottom: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(10,18,38,.55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 6px; }
.spot-hook { display: block; font-size: clamp(23px, 2.3vw, 30px); font-weight: 800; line-height: 1.18; letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.spot-hook em { font-style: normal; color: #8FAAF2; }
.spot-stat { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; padding: 11px 14px; border-left: 3px solid #5CC8A6; background: rgba(255,255,255,.08); border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.spot-stat b { font-size: 26px; font-weight: 800; white-space: nowrap; }
.spot-stat > span { font-size: 13px; color: #D5DCEA; line-height: 1.4; }
.spot-stat small { grid-column: 1 / -1; font-size: 11px; color: #A9B5C9; }
.spot-stakes { display: grid; gap: 5px; margin-bottom: 16px; }
.spot-stakes span { font-size: 14px; color: #E6EBF4; padding-left: 20px; position: relative; }
.spot-stakes span::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: #5CC8A6; }
.spot-cta { font-weight: 700; font-size: 14.5px; }
.spot-cta::after { content: " →"; transition: margin .2s; }
.spot-slide:hover .spot-cta::after { margin-left: 4px; }
.spot-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: linear-gradient(0deg, rgba(10,18,38,.96), rgba(10,18,38,.65)); }
.spot-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.spot-tabs::-webkit-scrollbar { display: none; }
.spot-tabs [role="tab"] { flex: 0 0 auto; font: 700 12.5px var(--abi-font); color: #C9D3E6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 6px 12px; cursor: pointer; position: relative; overflow: hidden; }
.spot-tabs [aria-selected="true"] { color: #0A1226; background: #fff; }
.spot-tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--primary); animation: tab-progress var(--rotate, 6.5s) linear forwards; }
[data-tabs].is-paused [aria-selected="true"]::after, [data-tabs]:not(.is-rotating) [aria-selected="true"]::after { animation: none; width: 0; }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }
html.no-js .spot-bar { display: none; }

/* B: what's on your desk */
.desk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; }
.desk-q { background: var(--paper); padding: 26px; border-right: 1px solid var(--line); }
.desk-ask { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.desk-q [role="tablist"] { display: grid; gap: 8px; }
.desk-q [role="tab"] { font: 600 14.5px/1.35 var(--abi-font); color: var(--ink); text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 40px 12px 14px; cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.desk-q [role="tab"]::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.desk-q [role="tab"]:hover { border-color: var(--abi-line-strong, var(--muted)); }
.desk-q [aria-selected="true"] { border-color: var(--primary); background: var(--abi-primary-tint); color: var(--tag-fg); }
.desk-q [aria-selected="true"]::after { color: var(--primary); }
.desk-panels { padding: 26px 28px; }
.desk-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.desk-tl { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 14px; position: relative; }
.desk-tl::before { content: ""; position: absolute; left: 44px; top: 10px; bottom: 10px; width: 0; border-left: 2px dashed var(--abi-line-strong, var(--line)); }   /* dashed: these are estimates */
.desk-tl li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--text); line-height: 1.45; }
.desk-tl b { justify-self: start; font-size: 12px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 20px; padding: 3px 10px; white-space: nowrap; position: relative; z-index: 1; }
.desk-tl li:last-child b { background: var(--accent); }
.desk-label span { font-weight: 600; letter-spacing: .02em; text-transform: none; }
.desk-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; padding-left: 104px; }
.desk-out { background: var(--abi-accent-tint); border-radius: 12px; padding: 13px 16px; font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0 0 18px; }
.desk-out strong { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--abi-accent-text, var(--accent)); margin-bottom: 2px; }
.desk-cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0; }
.desk-cta .btn { padding: 13px 20px; }
.desk-cta .btn::after { content: "↓"; }
.desk-cta .more { font-weight: 700; font-size: 14.5px; color: var(--link); text-decoration: none; }
.desk-cta .more::after { content: " →"; }
html:not(.no-js) .desk-panel:not(.on), html:not(.no-js) .ba-panel:not(.on) { display: none; }
html.no-js .desk-panel + .desk-panel { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.desk-panel.on, .ba-panel.on { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* C: before / after */
.ba { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; margin-bottom: 40px; }
.ba-top { background: var(--navy); color: #fff; padding: 20px 24px 0; }
.ba-title { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.ba-bar { display: flex; align-items: center; gap: 10px; }
.ba-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ba-tabs::-webkit-scrollbar { display: none; }
.ba-tabs [role="tab"] { flex: 0 0 auto; font: 700 13.5px var(--abi-font); color: #B7C3DB; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 9px 12px 11px; cursor: pointer; position: relative; }
.ba-tabs [aria-selected="true"] { color: #fff; border-bottom-color: #5CC8A6; }
.ba-bar .tabs-pause { margin-bottom: 6px; }
.ba-body { display: grid; grid-template-columns: 1fr 1fr; }
.ba-col { padding: 24px 26px; }
.ba-col.now { background: var(--paper); }
.ba-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.ba-col.now .ba-h { color: var(--risk-high); }
.ba-col.then .ba-h { color: var(--abi-accent-text, var(--accent)); }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba-col li { font-size: 15.5px; line-height: 1.4; padding-left: 28px; position: relative; color: var(--text); }
.ba-col.now li::before { content: "✕"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--risk-high); }
.ba-col.then li { color: var(--ink); font-weight: 600; }
.ba-col.then li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--accent); }
.ba-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 26px; border-top: 1px solid var(--line); font-size: 14px; margin: 0; }
.ba-foot span { color: var(--muted); }
.ba-foot a { font-weight: 700; color: var(--link); text-decoration: none; }
.ba-foot a::after { content: " →"; }
.ap-stages-intro { max-width: 760px; color: var(--text); margin: 0 0 22px; }
.ap-stages-intro strong { color: var(--ink); }

@media (max-width: 1024px) { .spotlight { min-height: 520px; } }
@media (max-width: 860px) {
    .desk { grid-template-columns: 1fr; }
    .desk-q { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
    .desk-ask { font-size: 18px; margin-bottom: 12px; }
    .desk-q [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; }
    .desk-q [role="tab"] { font-size: 13.5px; padding: 8px 12px; border-radius: 20px; }
    .desk-q [role="tab"]::after { display: none; }
    .desk-panels { padding: 22px; }
}
@media (max-width: 640px) {
    .spotlight { min-height: 580px; }
    .spot-link { padding: 22px 20px 86px; }
    .ba-body { grid-template-columns: 1fr; }
    .ba-col { padding: 20px; }
    .ba-foot { padding: 14px 20px; }
    .desk-tl li { grid-template-columns: 80px 1fr; font-size: 14.5px; }
    .desk-tl::before { left: 38px; }
    .desk-note { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .spot-slide, .spot-slide.on { transition: none; }
    .spot-slide.on img, .desk-panel.on, .ba-panel.on { animation: none; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
    display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { border-color: var(--abi-line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 18px; }
.icon {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--abi-primary-tint); color: var(--link);
}
.icon svg { width: 22px; height: 22px; }
.icon.acc { background: var(--abi-accent-tint); color: var(--abi-accent-ink); }

/* Problems */
.problem .q { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
.problem h3 { font-size: 21px; }

/* Operating model */
.model { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.model li { list-style: none; padding: 0 18px 0 0; position: relative; }
.model li::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 18px; position: relative; z-index: 1;
}
.model li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--abi-line-strong); }
.model li:last-child::after { display: none; }
.model h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.model p { font-size: 14.5px; color: var(--muted); }

/* Approach stages with deliverables (homepage "What ABISOL does", 2026-10-11) */
.ap-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.ap-stage { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.ap-stage-top { display: flex; align-items: center; gap: 14px; }
.ap-stage-n { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.ap-stage:nth-child(even) .ap-stage-n { background: var(--accent); }
.ap-stage h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.ap-stage > p { font-size: 14.5px; color: var(--muted); margin: 0; }
.ap-stage .ap-stage-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ap-stage-get { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.ap-stage-get li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text); line-height: 1.45; }
.ap-stage-get li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ap-stage .link-arrow { margin-top: auto; }
@media (max-width: 1024px) { .ap-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ap-stages { grid-template-columns: 1fr; gap: 14px; } .ap-stage { padding: 22px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pillars .card { grid-column: span 2; }
.pillars .card:nth-child(4) { grid-column: 2 / span 2; }
.pillar-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.pillar-items li { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 4px 9px; border-radius: 20px; }
.outcome { font-size: 15px; color: var(--ink); padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--abi-accent-tint); border-radius: 0 8px 8px 0; margin-top: auto; }
.outcome strong { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--abi-accent-ink); margin-bottom: 2px; }

/* Why / position diagram */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { list-style: none; display: grid; gap: 22px; }
.why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.why-list li::before { content: "✓"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--abi-accent-light); font-weight: 700; font-size: 14px; }
.why-list h3 { font-size: 17px; margin-bottom: 4px; }
.why-list p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.stack { display: grid; gap: 10px; }
.stack-row { border-radius: 12px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.stack-row small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 4px; }
.stack-row strong { color: #fff; font-size: 16px; font-weight: 600; }
.stack-row.abi { background: var(--panel-strong); border-color: var(--primary); box-shadow: 0 18px 40px -18px var(--primary); }
.stack-row.abi small { color: #FFFFFF; opacity: .95; }
.stack-row.abi p { color: rgba(255,255,255,.9); font-size: 14px; margin-top: 6px; }
.stack-arrow { text-align: center; color: rgba(255,255,255,.62); font-size: 13px; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { font-size: 13px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 3px 10px; }

/* Industries */
.industry { min-height: 100%; }
.industry .kicker { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.industry ul { list-style: none; margin: 14px 0 0; display: grid; gap: 6px; }
.industry li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; }
.industry li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.also { margin-top: 28px; font-size: 15px; color: var(--muted); text-align: center; }

/* Proof */
.case { padding: 0; overflow: hidden; }
.case-top { padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.case-top .tag { margin-bottom: 12px; }
.case-top h3 { font-size: 19px; margin: 0; }
.case dl { padding: 20px 28px 26px; display: grid; gap: 14px; }
.case dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case dd { font-size: 15px; color: var(--text); margin-top: 2px; }
.case dd.result { color: var(--ink); font-weight: 600; }
.deliverables { margin-top: 56px; }
.deliverables h3 { font-size: 20px; margin-bottom: 6px; }
.deliverables > p { color: var(--muted); margin-bottom: 22px; font-size: 15.5px; }
.deliv { padding: 20px; }
.deliv h3, .deliv h4 { font-size: 15px; margin-bottom: 4px; }
.deliv p { font-size: 13.5px; }
.mini { height: 74px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; padding: 10px; display: grid; gap: 6px; align-content: start; }
.mini i { display: block; height: 7px; border-radius: 4px; background: var(--abi-line-strong); }
.mini.heat { grid-template-columns: repeat(5, 1fr); }
.mini.heat i { height: 14px; }

/* Assessments */
.assess .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); font-weight: 600; margin: 4px 0 14px; }
.assess dl { display: grid; gap: 10px; margin: 6px 0 22px; }
.assess dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.assess dd { font-size: 14.5px; color: var(--text); }
.assess .btn { margin-top: auto; }
.journey { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; font-size: 14px; font-weight: 600; color: var(--ink); }
.journey li { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; }
.journey li.sep { border: 0; background: none; padding: 0; color: var(--muted); }

/* Founder */
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.founder-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-2); background: var(--paper); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 6px; }
.founder .role { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 22px; }
.creds li { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--abi-primary-tint); padding: 5px 11px; border-radius: 6px; letter-spacing: .03em; }
.founder p { margin-bottom: 14px; }
.founder-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 22px 0 28px; }
.founder-points li { font-size: 15px; color: var(--ink); font-weight: 500; padding-left: 18px; position: relative; }
.founder-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--accent); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.contact-intro > p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.paths { display: grid; gap: 8px; margin-bottom: 28px; }
.path {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
    text-align: left; font: 500 15px/1.35 var(--abi-font); color: #fff; cursor: pointer;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 13px 16px;
    transition: background .2s, border-color .2s;
}
.path small { display: block; color: rgba(255,255,255,.55); font-size: 13px; }
.path::after { content: "→"; color: rgba(255,255,255,.5); }
.path:hover, .path[aria-pressed="true"] { background: rgba(255,255,255,.1); border-color: var(--abi-primary-light); }
.reassure { font-size: 14px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.reassure a { color: #fff; }
.form-card { background: var(--surface); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); color: var(--text); }
.form-card h3, .form-card .form-title { font-size: 22px; margin-bottom: 4px; }
.section.dark .form-card h3, .section.dark .form-card .form-title { color: var(--ink); }  /* white card inside a dark section */
.form-card > p { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    font: 400 15px/1.4 var(--abi-font); color: var(--ink); width: 100%;
    padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--abi-primary-tint); }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-err { display: none; grid-column: 1 / -1; padding: 12px 14px; background: #FDECEA; border-left: 3px solid #C62828; color: #8E1C1C; font-size: 14px; font-weight: 600; border-radius: 0 8px 8px 0; }
.form-card .btn { width: 100%; margin-top: 6px; grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; }
.form-success { display: none; text-align: center; padding: 28px 8px; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--abi-accent-tint); color: var(--abi-accent-ink); font-size: 26px; font-weight: 700; }
.form-success h3 { margin-bottom: 8px; }
.next-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; text-align: left; counter-reset: ns; }
.next-steps li { font-size: 13.5px; color: var(--muted); }
.next-steps li strong { display: block; color: var(--ink); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--abi-navy-deep); color: rgba(255,255,255,.65); padding: 72px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h2, .footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin: 16px 0; max-width: 320px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.6); }

.sticky-cta { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   INNER PAGES (About and later pages)
   ============================================================ */
.nav-links a[aria-current="page"] { color: var(--link); font-weight: 600; }

.page-hero { padding: 80px 0 88px; background:
    radial-gradient(800px 420px at 90% 0%, var(--abi-primary-tint), transparent 70%),
    linear-gradient(var(--surface), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.page-hero .role { font-size: 18px; font-weight: 600; color: var(--link); margin-bottom: 22px; }
.page-hero .lede { font-size: 19px; color: var(--text); margin-bottom: 26px; max-width: 620px; }
.role-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.role-chips li { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; }
.portrait { position: relative; }
.portrait .founder-photo { aspect-ratio: 4/5; }
.portrait-card {
    position: absolute; left: -28px; bottom: 28px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-2); font-size: 13px; color: var(--muted); max-width: 240px;
}
.portrait-card strong { display: block; color: var(--ink); font-size: 14.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

.breadth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.breadth .card h3 { font-size: 17px; margin-bottom: 4px; }
.breadth .card > p { font-size: 14px; margin-bottom: 14px; }
.breadth ul { list-style: none; display: grid; gap: 7px; }
.breadth li { font-size: 14.5px; color: var(--ink); padding-left: 16px; position: relative; }
.breadth li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.note { margin-top: 22px; font-size: 15px; color: var(--muted); }

.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred { padding: 22px; }
.cred .badge { align-self: flex-start; display: inline-block; font-size: 15px; font-weight: 800; color: var(--navy); background: var(--abi-primary-tint); padding: 5px 11px; border-radius: 7px; margin-bottom: 10px; letter-spacing: .02em; }
.cred h3 { font-size: 15px; margin-bottom: 4px; }
.cred p { font-size: 14px; }
.cred-group h3 { font-size: 18px; margin-bottom: 6px; }
.cred-group > p { font-size: 14.5px; margin-bottom: 18px; }
.cred-list { list-style: none; display: grid; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.cred-list li { font-size: 13.5px; color: var(--text); line-height: 1.4; }
.cred-list b { display: inline-block; font-size: 13px; font-weight: 800; color: var(--navy); background: var(--abi-primary-tint); padding: 3px 8px; border-radius: 6px; margin-right: 8px; letter-spacing: .02em; }
.frameworks { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.frameworks strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.frameworks span { font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--abi-line-strong); padding: 4px 10px; border-radius: 20px; background: var(--surface); }

.outcome-card .metric { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--abi-accent-ink); background: var(--abi-accent-tint); align-self: flex-start; padding: 4px 9px; border-radius: 6px; margin-bottom: 14px; }
.outcome-card h3 { font-size: 19px; }
.outcome-card p:not(.ctx) { margin-bottom: 20px; }
.outcome-card p.ctx { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.gap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; align-items: stretch; margin-top: 8px; }
.gap > div { border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.gap small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.gap h3 { font-size: 18px; margin-bottom: 8px; }
.gap p { font-size: 14.5px; color: rgba(255,255,255,.7); }
.gap .mid { background: var(--panel-strong); border-color: var(--primary); box-shadow: 0 18px 40px -18px var(--primary); }
.gap .mid small { color: #FFFFFF; opacity: .95; }
.gap .mid p { color: rgba(255,255,255,.92); }
.gap-scale { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.5); }

.team-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 44px; }
.team-intro blockquote { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -.01em; border-left: 4px solid var(--accent); padding-left: 22px; }
.team-intro p { font-size: 17px; color: var(--text); }
.team-intro p + p { margin-top: 12px; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.principles li { border-top: 2px solid var(--ink); padding-top: 16px; }
.principles h3 { font-size: 17px; margin-bottom: 6px; }
.principles p { font-size: 15px; color: var(--muted); }

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.final-cta p { max-width: 640px; margin: 0 auto 30px; font-size: 18px; color: rgba(255,255,255,.75); }
.final-cta .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.final-cta .contact-line { margin-top: 26px; font-size: 14.5px; color: rgba(255,255,255,.6); }
.final-cta .contact-line a { color: #fff; }

@media (max-width: 1080px) {
    .page-hero .wrap, .team-intro { grid-template-columns: 1fr; gap: 40px; }
    .portrait { max-width: 380px; }
    .breadth, .cred-grid { grid-template-columns: repeat(2, 1fr); }
    .gap { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .page-hero { padding: 48px 0 64px; }
    .portrait-card { left: 12px; bottom: 12px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { border-bottom: 1px solid var(--line); }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-last-child(-n+2) { border-bottom: 0; }
    .breadth, .cred-grid { grid-template-columns: 1fr; }
    .final-cta .ctas .btn { width: 100%; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 34px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 30px; transition: border-color .2s, background .2s; }
.jump a:hover { border-color: var(--primary); background: var(--abi-primary-tint); }
.jump b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; }
.page-hero.solo .wrap { grid-template-columns: 1fr; max-width: 900px; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format h3 { font-size: 18px; margin-bottom: 6px; }
.format .when { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }

.pillar-sec { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.pillar-sec.tint { background: var(--paper); }
.pillar-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 36px; max-width: 900px; }
.pillar-num { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.pillar-head h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.pillar-head .for { font-size: 17px; color: var(--muted); }
.pillar-head .outcome { margin-top: 16px; display: inline-block; }
.pillar-body { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; }
.svc h3 { font-size: 17.5px; margin-bottom: 12px; }
.svc p { font-size: 14.5px; color: var(--text); margin-bottom: 8px; }
.svc p span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.svc p.out span { color: var(--abi-accent-ink); }
.svc details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.svc summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--link); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; font-weight: 700; }
.svc details[open] summary::after { content: "−"; }
.svc details > div { padding-top: 10px; font-size: 14px; color: var(--text); }
.svc details strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.svc details ul { list-style: none; display: grid; gap: 4px; }
.svc details li { padding-left: 14px; position: relative; }
.svc details li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 2px; background: var(--accent); }
.svc.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.svc.featured h3::after { content: "Fractional executive"; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tag-fg); background: var(--abi-primary-tint); padding: 3px 7px; border-radius: 5px; vertical-align: 3px; white-space: nowrap; }

.related { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 14.5px; }
.related h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.related h3:not(:first-child) { margin-top: 20px; }
.related ul { list-style: none; display: grid; gap: 6px; }
.related a { color: var(--ink); font-weight: 500; text-decoration: none; }
.related a:hover { color: var(--link); text-decoration: underline; }
.related p { color: var(--text); }
.related .btn { width: 100%; margin-top: 22px; font-size: 14px; padding: 12px 14px; }
.related a.btn, .related a.btn:hover { color: var(--abi-on-primary); text-decoration: none; }

.isnot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.isnot .card h3 { font-size: 18px; margin-bottom: 12px; }
.isnot ul { list-style: none; display: grid; gap: 9px; }
.isnot li { padding-left: 26px; position: relative; font-size: 15.5px; color: var(--text); }
.isnot li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.isnot .is li::before { content: "✓"; color: var(--accent-fg); }
.isnot .not li::before { content: "✕"; color: var(--muted); }

@media (max-width: 1080px) {
    .pillar-body { grid-template-columns: 1fr; }
    .related { position: static; }
    .formats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pillar-sec { padding: 64px 0; }
    .pillar-head { grid-template-columns: 1fr; gap: 14px; }
    .svc-grid, .isnot { grid-template-columns: 1fr; }
}

/* ============================================================
   FRACTIONAL EXECUTIVE PAGES (CIO/CTO, CISO)
   ============================================================ */
.cadence h4 { margin-top: 0; }
.cad-list { list-style: none; display: grid; gap: 8px; }
.cad-list li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink); font-weight: 500; }
.cad-list b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }

.signs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.signs li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16.5px; color: var(--ink); font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.signs li::before { content: "?"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--abi-primary-tint); color: var(--link); font-weight: 800; font-size: 13px; }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus .card h3 { font-size: 22px; margin-bottom: 4px; }
.versus .focus { font-size: 14px; font-weight: 600; color: var(--link); margin-bottom: 14px; }
.versus ul { list-style: none; display: grid; gap: 8px; margin: 6px 0 16px; }
.versus li { font-size: 15px; color: var(--text); padding-left: 18px; position: relative; }
.versus li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--accent); }
.versus .best { margin-top: auto; font-size: 14px; color: var(--ink); background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; }
.versus .best strong { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.blend { margin-top: 20px; text-align: center; font-size: 16px; color: var(--muted); }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: t; }
.timeline li { position: relative; padding-top: 18px; border-top: 3px solid var(--abi-line-strong); }
.timeline li:first-child { border-top-color: var(--primary); }
.timeline .when { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.timeline h3 { font-size: 18px; margin: 6px 0 8px; }
.timeline ul { list-style: none; display: grid; gap: 6px; }
.timeline ul li { border: 0; padding: 0 0 0 14px; font-size: 14.5px; color: var(--text); }
.timeline ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.compare thead th.abi { color: var(--abi-on-primary); background: var(--primary); }
.compare td.abi { background: var(--abi-primary-tint); color: var(--ink); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 0 20px; font-size: 16px; color: var(--text); max-width: 760px; }

.mini-founder { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.mini-founder img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.mini-founder h3 { font-size: 20px; margin-bottom: 2px; }
.mini-founder .role { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.mini-founder p { font-size: 15px; margin-bottom: 10px; }

@media (max-width: 1080px) {
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 720px) {
    .signs, .versus, .timeline { grid-template-columns: 1fr; }
    .signs li { font-size: 15.5px; }
    .mini-founder { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .compare-wrap { border: 0; background: none; overflow: visible; }
    .compare { min-width: 0; }
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
    .compare tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
    .compare tbody th { font-size: 16px; padding: 14px 16px 6px; border: 0; width: auto; }
    .compare td { padding: 8px 16px; border: 0; font-size: 14.5px; }
    .compare td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .compare td.abi { margin: 0 8px; border-radius: 8px; padding: 10px 12px; }
    .compare td.abi::before { color: var(--tag-fg); }
    .compare td:last-child { padding-bottom: 16px; }
}

/* ---------- CISO page ---------- */
.heat { display: grid; grid-template-columns: 22px repeat(3, 1fr); grid-template-rows: repeat(3, 34px) 18px; gap: 4px; margin-bottom: 18px; font-size: 10.5px; color: var(--muted); }
.heat span { border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.heat .ax { background: none; color: var(--muted); font-weight: 600; font-size: 10px; }
.heat .ax.y { writing-mode: vertical-rl; transform: rotate(180deg); grid-row: 1 / 4; }
.heat .h3 { background: var(--risk-high); } .heat .h2 { background: var(--risk-med); } .heat .h1 { background: var(--risk-low); }
.heat .h3.o, .heat .h2.o, .heat .h1.o { opacity: .28; }

.chain { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: c; }
.chain li { position: relative; padding: 22px 20px 22px 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); margin-right: 14px; border-radius: 12px; }
.chain li:last-child { margin-right: 0; background: var(--panel-strong); border-color: var(--primary); }
.chain li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translate(50%, -50%); color: var(--abi-primary-light); font-weight: 700; z-index: 1; }
.chain .step { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--abi-primary-light); }
.chain li:last-child .step { color: #fff; }
.chain h3 { font-size: 15px; color: #fff; margin: 8px 0 6px; font-weight: 600; line-height: 1.35; }
.chain p { font-size: 13.5px; color: rgba(255,255,255,.68); }
.chain li:last-child p { color: rgba(255,255,255,.9); }
.chain-note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }

.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-list .card { padding: 20px 22px; }
.svc-list h3 { font-size: 16.5px; margin-bottom: 6px; }
.svc-list p { font-size: 14.5px; }
.svc-list .card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; grid-row: span 2; background: var(--abi-primary-tint); }
.svc-list .card.featured h3 { font-size: 21px; }
.svc-list .card.featured ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.svc-list .card.featured li { font-size: 14.5px; color: var(--ink); padding-left: 16px; position: relative; }
.svc-list .card.featured li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--primary); }

.callout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.callout blockquote { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -.01em; border-left: 4px solid var(--accent); padding-left: 22px; }

@media (max-width: 1080px) {
    .chain { grid-template-columns: 1fr; gap: 14px; }
    .chain li { margin-right: 0; }
    .chain li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -14px; transform: translate(50%, 50%); }
    .svc-list { grid-template-columns: repeat(2, 1fr); }
    .callout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
    .svc-list { grid-template-columns: 1fr; }
    .svc-list .card.featured { grid-row: auto; }
}

/* ---------- Digital & AI page ---------- */
.matrix svg { width: 100%; height: auto; display: block; }
.matrix .axis { stroke: var(--abi-line-strong); stroke-width: 1.5; }
.matrix .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.matrix .q-label { fill: var(--muted); font: 600 10px var(--abi-font); letter-spacing: .06em; text-transform: uppercase; }
.matrix .ax-label { fill: var(--muted); font: 600 11px var(--abi-font); }
.matrix .b-label { fill: var(--ink); font: 600 11px var(--abi-font); }
.matrix .zone { fill: var(--abi-accent-tint); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.signs.plain li::before { content: ""; width: 10px; height: 10px; margin: 8px 8px 0; border-radius: 3px; background: var(--accent); }

.phase { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase-tag { position: sticky; top: 96px; }
.phase-tag .n { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.phase-tag h3 { font-size: 30px; margin: 6px 0 8px; letter-spacing: -.02em; }
.phase-tag p { font-size: 15px; color: var(--muted); }
.phase-body > p { font-size: 17px; margin-bottom: 18px; max-width: 720px; }
.chips-light { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips-light li { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 7px 13px; border-radius: 20px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 18px; font-weight: 700; color: var(--ink); }
.formula span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.formula b { color: var(--muted); font-size: 18px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.check-list li { padding-left: 26px; position: relative; font-size: 15.5px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent-fg); }
.honest { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--risk-med); background: color-mix(in srgb, var(--risk-med) 9%, transparent); border-radius: 0 8px 8px 0; font-size: 15px; color: var(--ink); max-width: 720px; }

@media (max-width: 900px) {
    .phase { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
    .phase-tag { position: static; }
}
@media (max-width: 720px) {
    .check-list { grid-template-columns: 1fr; }
}

/* ---------- Industry pages ---------- */
.statband { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.statband .card { padding: 26px; }
.statband b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.statband p { font-size: 15.5px; color: var(--text); }
.statband cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: var(--muted); }
.statband cite a { color: var(--muted); }
.reg-note { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); font-size: 15.5px; color: var(--text); max-width: 900px; }
.reg-note strong { color: var(--ink); }

.gaps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gaps li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 20px; }
.gaps h3 { font-size: 16px; margin-bottom: 8px; }
.gaps p { font-size: 14px; color: rgba(255,255,255,.7); }

.stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: st; }
.stages li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.stages li::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.stages h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--link); }
.stages p { font-size: 14.5px; color: var(--text); }

.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-1); }
.offer h3 { font-size: 24px; margin-bottom: 8px; }
.offer ul { list-style: none; display: grid; gap: 8px; }
.offer li { padding-left: 26px; position: relative; font-size: 15.5px; color: var(--ink); }
.offer li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--accent-fg); }

@media (max-width: 1080px) {
    .gaps, .stages { grid-template-columns: repeat(2, 1fr); }
    .offer { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .statband, .gaps, .stages { grid-template-columns: 1fr; }
    .statband b { font-size: 38px; }
    .offer { padding: 22px 18px; }
}

.check-list.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .check-list.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .check-list.three { grid-template-columns: 1fr; } }

.stages.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .stages.three { grid-template-columns: 1fr; } }

/* ---------- Legal / long-form prose ---------- */
.legal { max-width: 780px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 16.5px; color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 8px 22px; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero .wrap, .why, .founder, .contact { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 560px; }
    .founder-photo { max-width: 320px; }
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .model { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .model li:nth-child(3)::after { display: none; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillars .card, .pillars .card:nth-child(4) { grid-column: auto; }
    .pillars .card:last-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 2px; box-shadow: var(--shadow-2);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 12px; }
    .nav-links .btn { margin: 8px 0 0; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .section { padding: 72px 0; }
    .hero { padding: 56px 0 64px; }
    .hero-ctas .btn { width: 100%; }
    .cta-stack { width: 100%; }
    .g3, .g4, .g2, .pillars { grid-template-columns: 1fr; }
    .pillars .card:last-child { grid-column: auto; }
    .model { grid-template-columns: 1fr; row-gap: 0; }
    .model li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 26px; }
    .model li::before { grid-row: span 2; margin: 0; }
    .model li::after { display: block !important; top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
    .model li:last-child::after { display: none !important; }
    .model h3 { align-self: end; margin-bottom: 4px; }
    .road-row { grid-template-columns: 104px 1fr 40px; }
    .brief { padding: 20px; }
    .founder-points, .form-grid, .next-steps { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .sticky-cta {
        display: block; position: fixed; left: 16px; right: 80px; bottom: 16px; z-index: 90;
        background: var(--primary); color: var(--abi-on-primary); text-align: center; font-weight: 600; font-size: 15px;
        padding: 14px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow-2);
        transition: opacity .2s, transform .2s;
    }
    .sticky-cta:has(.sticky-cta-note) { padding: 9px 10px; font-size: 14px; line-height: 1.25; }
    .sticky-cta-note { display: block; font-size: 11px; font-weight: 500; opacity: .88; }
    .sticky-cta.hide { opacity: 0; transform: translateY(80px); pointer-events: none; }
    .theme-switcher { bottom: 16px !important; right: 16px !important; }
}

/* Photo band: full-width mood photo between a page's hero and its first section (2027-build/photos.py).
   The tint uses palette tokens, so the photo follows the active palette. */
.photo-band { position: relative; margin: 0; height: clamp(170px, 24vw, 340px); overflow: hidden; background: var(--abi-navy); }
.photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); }
.photo-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--abi-navy) 55%, transparent) 0%, color-mix(in srgb, var(--abi-navy) 15%, transparent) 55%, color-mix(in srgb, var(--abi-primary) 20%, transparent) 100%); }
@media print { .photo-band { display: none; } }

/* Second photo on key pages: a faint backdrop behind a dark section (2027-build/photos.py SECOND).
   The section keeps its navy background; the photo sits under the text at low opacity, so contrast stays AA. */
.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.section-photo { position: absolute; inset: 0; z-index: -1; }
.section-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(.3); }
.section-photo::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--navy) 60%, transparent) 0%, transparent 75%); }
@media print { .section-photo { display: none; } }

/* ============================================================
   Photos, layout B: a short strip directly under the menu (2027-build/photos.py PAGES).
   Capped on short laptop screens so the headline and buttons stay on the first screen.
   ============================================================ */
.photo-band.top-band { height: clamp(88px, 15vw, 220px); }
@media (min-width: 721px) and (max-height: 820px) { .photo-band.top-band { height: min(15vw, 150px); } }
.top-band + .page-hero, .top-band + .hero { padding-top: 56px; }
@media (max-width: 720px) { .top-band + .page-hero, .top-band + .hero { padding-top: 36px; } }

/* Inline photo beside a section heading (photos.py INLINE): heading text left, photo right */
.section-head.with-photo, .section-header.with-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 420px); gap: 48px; align-items: center; }
.with-photo .head-text { max-width: 720px; }
.inline-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--abi-navy);
    box-shadow: 0 22px 50px -26px color-mix(in srgb, var(--abi-navy) 50%, transparent); }
.inline-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.inline-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 16%, transparent);
    background: linear-gradient(200deg, transparent 55%, color-mix(in srgb, var(--abi-navy) 28%, transparent)); }
@media (max-width: 900px) {
    .section-head.with-photo, .section-header.with-photo { grid-template-columns: 1fr; gap: 24px; }
    .inline-photo { aspect-ratio: 16 / 9; max-height: 280px; }
}

/* ============================================================
   Motion. Every effect here is switched off for visitors who ask for reduced motion
   (global rule near the top of this file), and pages read fine without it.
   ============================================================ */
@keyframes abi-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes abi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes abi-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Top strip: fades in and slowly settles (Ken Burns) */
.top-band img { transform-origin: 50% 60%; animation: abi-kenburns 9s cubic-bezier(.2, .6, .2, 1) both, abi-fade .9s ease-out both; }

/* Opening section: headline, text and buttons rise in one after another on load */
.hero .wrap > div > *, .page-hero .wrap > div > *, .careers .hero-content > * { animation: abi-rise .7s var(--ease) both; }
.hero .wrap > div > :nth-child(2), .page-hero .wrap > div > :nth-child(2), .careers .hero-content > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > div > :nth-child(3), .page-hero .wrap > div > :nth-child(3), .careers .hero-content > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > div > :nth-child(4), .page-hero .wrap > div > :nth-child(4), .careers .hero-content > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > div > :nth-child(n+5), .page-hero .wrap > div > :nth-child(n+5), .careers .hero-content > :nth-child(n+5) { animation-delay: .32s; }

/* Inline photos: wipe in from the right and settle as they scroll into view; slight zoom on hover */
.reveal .inline-photo { clip-path: inset(0 0 0 100% round 16px); transition: clip-path 1.1s var(--ease) .15s; }
.reveal.in .inline-photo { clip-path: inset(0 round 16px); }
.reveal .inline-photo img { transform: scale(1.14); }
.reveal.in .inline-photo img { transform: scale(1); }
.reveal.in .inline-photo:hover img { transform: scale(1.04); }
.no-js .reveal .inline-photo { clip-path: none; }
.no-js .reveal .inline-photo img { transform: none; }

/* Mid-page strips and backdrops drift gently as the page scrolls (browsers with scroll-driven animations) */
@supports (animation-timeline: view()) {
    @keyframes abi-drift { from { transform: translateY(-7%) scale(1.14); } to { transform: translateY(7%) scale(1.14); } }
    .photo-band:not(.top-band) img, .section-photo img { animation: abi-drift linear both; animation-timeline: view(); animation-range: cover; }
}

/* Smooth cross-fade between pages (supporting browsers); the header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media print {
    .reveal .inline-photo { clip-path: none !important; }
    .inline-photo img, .top-band img { transform: none !important; animation: none !important; }
}

/* Photo at the top of an assessment card (photos.py ASSESSMENT_PHOTOS) */
.card-photo { margin: -28px -28px 20px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--abi-navy); }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .card-photo img, .card.has-card-photo:hover .card-photo img { transform: scale(1.04); }

/* Homepage: a taller top strip, so the subject of its photo (the glowing "AI") reads */
.photo-band.top-band:has(+ .hero) { height: clamp(88px, 22vw, 320px); }
@media (min-width: 721px) and (max-height: 820px) { .photo-band.top-band:has(+ .hero) { height: min(22vw, 200px); } }

/* ---------- Guides (build_guides.py) ---------- */
.guide { max-width: 860px; }
.guide h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.guide h3 { font-size: 19px; margin: 26px 0 8px; }
.guide > p, .guide li { font-size: 17px; color: var(--text); }
.guide > p + p { margin-top: 12px; }
.guide-hero .lede { max-width: 760px; }
.guide-hero h1 { max-width: 20ch; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.byline { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.answer-grid { margin-top: 24px; }
.answer-grid h3 { font-size: 20px; margin: 10px 0 6px; }
.answer-grid p, .manual-grid p { font-size: 15px; color: var(--text); }
.manual-grid { margin: 14px 0 6px; }
.manual-grid h4 { font-size: 16px; margin-bottom: 6px; }
.tick-list { list-style: none; display: grid; gap: 12px; margin: 14px 0; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(-45deg); }
.steps-list { counter-reset: st; list-style: none; display: grid; gap: 14px; margin: 18px 0; }
.steps-list li { counter-increment: st; position: relative; padding: 16px 18px 16px 62px; background: var(--abi-surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-strong); color: #fff; font-weight: 800; }
.steps-list b { color: var(--ink); }
.src { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.src-ribo { background: var(--abi-primary-tint); color: var(--tag-fg); }
.src-cisro { background: var(--abi-accent-tint); color: var(--abi-accent-ink); }
.src-pipeda { background: #FDECEC; color: #8A1C1C; }
.src-abi { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.ck-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 76px; z-index: 5; }
.ck-count { font-weight: 600; color: var(--ink); }
.ck-count b { color: var(--link); font-size: 20px; }
.ck-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-actions .btn { padding: 9px 14px; font-size: 14px; }
.checklist { display: grid; gap: 18px; }
.ck-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 10px; background: var(--abi-surface); }
.ck-group legend { font-weight: 800; color: var(--ink); padding: 0 6px; font-size: 17px; }
.ck-group ul { list-style: none; }
.ck-group li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-group li:last-child { border-bottom: 0; }
.ck-group label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; color: var(--text); }
.ck-group input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.ck-group input:checked + .t { color: var(--muted); }
.ck-group .srcs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 40%; }
.ck-next { margin-top: 28px; }
.ck-next h3 { margin-top: 0; }
.sources { margin: 8px 0 0 22px; display: grid; gap: 8px; }
.manual-grid h3 { font-size: 17px; margin: 0 0 6px; }
ul.domain-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
ul.domain-list li { font-size: 14.5px; color: var(--text); padding-left: 14px; position: relative; }
ul.domain-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.clock-table { max-width: none; margin: 18px 0; }
.clock-table td { font-size: 15px; }
.src-b13, .src-osfi { background: var(--abi-primary-tint); color: var(--tag-fg); }
.src-fsra { background: var(--abi-accent-tint); color: var(--abi-accent-ink); }
.src-ins { background: var(--abi-primary-tint); color: var(--tag-fg); }
.src-gcs, .src-cccs { background: var(--abi-accent-tint); color: var(--abi-accent-ink); }
.src-rcmp { background: #FDECEC; color: #8A1C1C; }
.src-l25 { background: var(--abi-primary-tint); color: var(--tag-fg); }
.src-opc { background: var(--abi-accent-tint); color: var(--abi-accent-ink); }
.clock-table td.ref { width: 15%; color: var(--muted); font-size: 14px; }
.ctrls { display: grid; gap: 16px; margin-top: 22px; }
.ctrl { background: var(--abi-surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ctrl h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 0 0 12px; }
.ctrl h3 .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-strong); color: #fff; font-size: 14px; font-weight: 800; }
.ctrl dl { display: grid; gap: 10px; }
.ctrl dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ctrl dd { font-size: 15.5px; color: var(--text); margin-top: 2px; }
.srcs-inline { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: 1px; margin-left: 4px; }
@media print { .ctrl { break-inside: avoid; } }
.sources li { font-size: 15.5px; }
@media (max-width: 720px) {
    .ck-group li { flex-direction: column; gap: 6px; }
    .ck-group .srcs { max-width: none; justify-content: flex-start; padding-left: 32px; }
    .ck-bar { top: 64px; }
    .steps-list li { padding-left: 56px; }
}
@media print {
    .site-header, .site-footer, .sticky-cta, .theme-switcher, .crumbs, .hero-ctas, .ck-actions, .ck-next, .photo-band { display: none !important; }
    .ck-bar { position: static; }
    .section { padding: 18px 0 !important; }
    .ck-group { break-inside: avoid; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
