/* Infolytics Precision — web edition
   Layout concept: white engineering canvas, 12-col / 1200px grid, Deep Teal structure,
   Gold used only as points of precision (dots, gates, chips). One teal band per page at most. */
:root {
  --teal: #154B4D;          /* Infolytics Deep Teal: structure, headings, primary nodes */
  --gold: #FFE085;          /* Infolytics Gold: accents only, never text on white */
  --white: #FFFFFF;         /* page field */
  --soft: #EEF4F3;          /* Soft Teal Grey: panels, callouts */
  --mid: #71898A;           /* Mid Teal Grey: rules, large secondary labels */
  --ink: #253238;           /* Charcoal: body copy */
  --rule: #D7DEE2;          /* Rule Grey: hairlines */
  --ink-2: #4A5A60;         /* charcoal at reduced weight for small metadata (AA on white) */
  --teal-2: #1E5F62;        /* teal hover */
  --display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Aptos Mono", "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--teal); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: var(--white); padding: var(--s3) var(--s4); z-index: 100; }
.skip:focus { left: var(--s4); top: var(--s4); }

/* ---------- Eyebrow, labels, chips ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(21,75,77,.35); flex: none; }
.chip { display: inline-flex; align-items: center; min-width: 2.1em; justify-content: center; font: 600 0.78rem/1 var(--mono); letter-spacing: 0.04em; color: var(--teal); background: var(--gold); padding: 6px 8px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 2px; background: var(--white); }
.meta { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- Motif: thin Deep Teal line ending in a Gold point ---------- */
.motif { display: flex; align-items: center; width: min(240px, 60%); margin-block: var(--s5); }
.motif::before { content: ""; flex: 1; height: 1px; background: var(--teal); }
.motif::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 0.98rem/1 var(--text); padding: 15px 22px; border-radius: 2px; text-decoration: none; border: 1px solid var(--teal); background: var(--teal); color: var(--white); cursor: pointer; transition: background .15s ease, color .15s ease; }
.btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.btn:hover { background: var(--teal-2); color: var(--white); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost::before { display: none; }
.btn.ghost::after { content: "→"; }
.btn.ghost:hover { background: var(--soft); color: var(--teal); }
.btn.on-teal { background: var(--gold); color: var(--teal); border-color: var(--gold); }
.btn.on-teal::before { background: var(--teal); }
.btn.on-teal:hover { background: #FFF0B8; color: var(--teal); }
.btn.ghost.on-teal { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn.ghost.on-teal:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.textlink { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.textlink::after { content: "→"; transition: transform .15s ease; }
.textlink:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); flex: none; }
.brand .word { font: 700 1.05rem/1 var(--display); letter-spacing: 0.2em; }
.brand .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }
.brand .sub { font: 600 0.68rem/1 var(--text); letter-spacing: 0.16em; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--rule); }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a.top, .nav summary { display: block; padding: 10px 12px; font-size: 0.93rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 2px; cursor: pointer; list-style: none; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav a.top:hover, .nav summary:hover, .nav [aria-current="page"] { color: var(--teal); background: var(--soft); }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--white); border: 1px solid var(--rule); padding: var(--s2); display: grid; gap: 1px; box-shadow: 0 18px 40px -24px rgba(21,75,77,.35); }
.nav .menu a { display: block; padding: 9px 12px; text-decoration: none; color: var(--ink); font-size: 0.92rem; border-radius: 2px; }
.nav .menu a span { display: block; font-size: 0.8rem; color: var(--ink-2); }
.nav .menu a:hover { background: var(--soft); color: var(--teal); }
.nav .cta { margin-left: var(--s2); padding: 12px 16px; font-size: 0.9rem; white-space: nowrap; }
.nav > ul > li:nth-last-child(-n+2) .menu { left: auto; right: 0; }
@media (max-width: 1440px) { .brand .sub { display: none; } .nav a.top, .nav summary { padding: 10px 9px; font-size: 0.9rem; } }
.menu-toggle { display: none; }
@media (max-width: 1220px) {
  .site-header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle > summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 2px; font-weight: 600; color: var(--teal); }
  .menu-toggle > summary::-webkit-details-marker { display: none; }
  .nav { display: none; }
  .menu-toggle[open] + .nav { display: block; width: 100%; padding-bottom: var(--s4); }
  .nav > ul { flex-direction: column; }
  .nav .menu { position: static; box-shadow: none; border: 0; border-left: 1px solid var(--rule); margin-left: 12px; min-width: 0; }
  .nav .cta { margin: var(--s3) 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero.single .grid { grid-template-columns: minmax(0, 1fr); }
.hero h1 { margin-top: var(--s4); max-width: 18ch; }
.hero.single h1 { max-width: 22ch; }
.hero .lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ink); max-width: 60ch; margin-top: var(--s5); }
.hero .btn-row { margin-top: var(--s6); }
.signature { margin-top: var(--s6); font-size: 0.86rem; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.signature b { color: var(--teal); font-weight: 600; }
.crumbs { font-size: 0.84rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--mid); }
.hero-aside { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 40px); display: grid; gap: var(--s5); }
.hero-aside dt { font-size: 0.75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hero-aside dd { margin: 6px 0 0; font-family: var(--display); font-size: 1.1rem; color: var(--teal); line-height: 1.35; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: minmax(0, 1fr); } .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s5); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section + .section { border-top: 1px solid var(--rule); }
.section.soft { background: var(--soft); border-top: 0; }
.section.soft + .section { border-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.sec-head .no { display: flex; align-items: center; gap: 12px; }
.sec-head h2 { margin-top: var(--s3); }
.sec-head .intro { font-size: 1.1rem; color: var(--ink); max-width: 62ch; padding-top: 6px; }
.sec-head .intro p + p { margin-top: var(--s4); }
.sec-head.stack { grid-template-columns: minmax(0, 1fr); }
.sec-head.stack .intro { padding-top: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 68ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--s4); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 6px; }
.prose h3 { margin-top: var(--s6); margin-bottom: var(--s3); }

/* Problem statement: the single large statement per page */
.statement { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; color: var(--teal); font-weight: 600; max-width: 34ch; text-wrap: balance; }
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.symptoms li { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.symptoms li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--teal); transform: translateY(-2px) rotate(45deg); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--teal); }
.steps > li { padding: var(--s5) var(--s5) var(--s5) 0; position: relative; min-width: 0; }
.steps > li + li { border-left: 1px solid var(--rule); padding-left: var(--s5); }
.steps .chip { margin-bottom: var(--s4); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--ink); font-size: 0.97rem; }
.steps .out { margin-top: var(--s3); font-size: 0.86rem; color: var(--ink-2); }
.steps .out b { color: var(--teal); font-weight: 600; }
@media (max-width: 720px) { .steps > li + li { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }
.steps.rows { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.steps.rows > li { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--rule); border-left: 0; }
.steps.rows > li .chip { margin: 0; align-self: start; }
.steps.rows .what { display: grid; gap: var(--s2); }
@media (max-width: 760px) { .steps.rows > li { grid-template-columns: 48px minmax(0, 1fr); } .steps.rows .what { grid-column: 2; } }

/* Cards: used by role, not everywhere */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { border: 1px solid var(--rule); background: var(--white); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; border-radius: 2px; }
.card h3 { font-size: 1.12rem; }
.card p { font-size: 0.97rem; }
.card .foot { margin-top: auto; padding-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease; }
a.card:hover { border-color: var(--teal); background: #FBFDFD; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.section.soft .card { border-color: #D3E1DF; }
.card .apps { font-size: 0.84rem; color: var(--ink-2); }
.card.primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.card.primary h3, .card.primary .textlink { color: var(--white); }

/* Trio: Solve / Engineer / Execute */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--teal); }
.trio > div { padding: var(--s6) var(--s5) var(--s5) 0; display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.trio > div + div { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.trio .word { font: 700 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--display); color: var(--teal); display: flex; align-items: center; gap: 12px; letter-spacing: -0.02em; }
.trio .word::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } .trio > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* Callouts — closed list: KEY POSITION, ASSUMPTION, RISK, EXCLUSION, DECISION, COMMERCIAL */
.callout { padding: var(--s5); background: var(--soft); border-radius: 2px; display: grid; gap: var(--s2); max-width: 820px; }
.callout .label { font: 600 0.72rem/1 var(--text); letter-spacing: 0.16em; color: var(--teal); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.callout .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.callout.risk .label::before { background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }
.callout.exclusion { background: var(--white); border: 1px solid var(--teal); }
.callout.commercial { background: var(--white); border-top: 3px solid var(--teal); border-radius: 0; }
.callout p { color: var(--ink); }
.callout + .callout { margin-top: var(--s4); }

/* Value / outcome panel */
.value { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.value .big { font-family: var(--display); font-weight: 600; color: var(--teal); font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem); line-height: 1.3; text-wrap: balance; }
.value .note { margin-top: var(--s4); font-size: 0.9rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .value { grid-template-columns: minmax(0, 1fr); } }

/* Diagrams (Precision Maps) */
.figure { margin: 0; }
.figure .scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); border-radius: 2px; -webkit-overflow-scrolling: touch; }
.figure svg { display: block; min-width: 720px; width: 100%; height: auto; }
.figure figcaption { margin-top: var(--s3); font-size: 0.85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.figure figcaption b { color: var(--teal); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; color: var(--ink-2); margin-top: var(--s2); }
.legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--teal); }
.legend i.f { background: var(--teal); }
.legend i.p { background: var(--soft); }
.legend i.d { border-style: dashed; border-color: var(--mid); }
.legend i.g { background: var(--gold); width: 10px; transform: rotate(45deg); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th { background: var(--teal); color: var(--white); font-weight: 600; text-align: left; padding: 12px 16px; font-size: 0.86rem; letter-spacing: .02em; }
td { padding: 14px 16px; border-top: 1px solid var(--rule); vertical-align: top; }
td.id { font-family: var(--mono); font-size: 0.82rem; color: var(--teal); white-space: nowrap; }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s4); }
.proof .card, .carousel .card { gap: var(--s4); }
.proof dl, .carousel dl { margin: 0; display: grid; gap: var(--s3); }
.proof dt, .carousel dt { font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.proof dd, .carousel dd { margin: 4px 0 0; font-size: 0.95rem; }
.proof .flow { font: 600 0.8rem/1.4 var(--mono); color: var(--teal); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s6) var(--s5); }
.quote { margin: 0; display: grid; gap: var(--s3); align-content: start; padding-top: var(--s4); border-top: 1px solid var(--teal); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.45; color: var(--teal); }
.quote figcaption { font-size: 0.88rem; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); font-weight: 600; display: block; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--teal); border-bottom: 1px solid var(--rule); }
.facts > div { padding: var(--s5) var(--s4) var(--s5) 0; min-width: 0; }
.facts > div + div { border-left: 1px solid var(--rule); padding-left: var(--s4); }
.facts .n { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.05 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
.facts .l { margin-top: 8px; font-size: 0.9rem; color: var(--ink); }
@media (max-width: 700px) { .facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* App index rows */
.applist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--rule); }
.applist > * { display: grid; gap: 4px; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; min-width: 0; }
.applist .name { font-weight: 600; color: var(--teal); display: flex; justify-content: space-between; gap: var(--s3); }
.applist a .name::after { content: "→"; color: var(--teal); }
.applist .role { font-size: 0.92rem; color: var(--ink); }
.applist a:hover .name { text-decoration: underline; text-underline-offset: 4px; }

/* Article / archive */
.article { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); }
.article aside { align-self: start; position: sticky; top: 96px; display: grid; gap: var(--s4); }
.article aside dl { margin: 0; display: grid; gap: var(--s3); border-top: 1px solid var(--teal); padding-top: var(--s4); }
.article aside dt { font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.article aside dd { margin: 3px 0 0; font-size: 0.95rem; }
.article .prose h2 { font-size: 1.5rem; margin-top: var(--s7); margin-bottom: var(--s4); }
.article .prose h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .article aside { position: static; } }
.postlist { display: grid; border-top: 1px solid var(--teal); }
.postlist a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; align-items: baseline; }
.postlist time { font: 500 0.85rem/1.4 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.postlist h3 { font-size: 1.1rem; }
.postlist p { font-size: 0.94rem; margin-top: 6px; color: var(--ink); }
.postlist a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .postlist a { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offices { display: grid; gap: var(--s5); }
.office { border-top: 1px solid var(--teal); padding-top: var(--s4); display: grid; gap: 6px; }
.office address { font-style: normal; }
.form-frame { border: 1px solid var(--rule); background: var(--white); min-height: 640px; }
.form-frame iframe { width: 100%; height: 900px; border: 0; display: block; }
.form-frame .fallback { padding: var(--s5); display: grid; gap: var(--s3); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: a; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.agenda li { counter-increment: a; padding: var(--s3) 0 var(--s3) 40px; border-bottom: 1px solid var(--rule); position: relative; }
.agenda li::before { content: counter(a); position: absolute; left: 0; top: var(--s3); font: 600 .8rem/1.6 var(--mono); color: var(--teal); background: var(--gold); width: 24px; text-align: center; border-radius: 2px; }
.microcopy { font-size: 0.86rem; color: var(--ink-2); margin-top: var(--s3); }

/* Team, clients */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s4); }
.person { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); border: 1px solid var(--rule); border-radius: 2px; min-width: 0; }
.person .mono { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--soft); color: var(--teal); display: grid; place-items: center; font: 700 0.95rem/1 var(--display); letter-spacing: .04em; position: relative; }
.person .mono::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--white); }
.person b { display: block; color: var(--teal); font-weight: 600; }
.person span { font-size: 0.86rem; color: var(--ink-2); }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s6) var(--s5); }
.clients h3 { font-size: 1rem; padding-bottom: var(--s2); border-bottom: 1px solid var(--teal); margin-bottom: var(--s3); display: flex; justify-content: space-between; }
.clients h3 span { font: 500 .8rem/1.6 var(--mono); color: var(--ink-2); }
.clients ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.94rem; }

/* CTA band — the one teal band */
.band { background: var(--teal); color: var(--white); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.band .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.band h2 { color: var(--white); max-width: 20ch; }
.band p { color: rgba(255,255,255,.88); max-width: 56ch; margin-top: var(--s4); font-size: 1.08rem; }
.band .microcopy { color: rgba(255,255,255,.75); }
.band .line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .band .grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s8) var(--s6); font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: var(--s6); }
.site-footer h4 { font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); font-family: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .claim { font-family: var(--display); color: var(--teal); font-size: 1.15rem; font-weight: 600; margin-top: var(--s4); max-width: 26ch; }
.site-footer .legal { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; color: var(--ink-2); font-size: 0.84rem; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Redirect page */
.redirect { padding-block: var(--s9); }
/* Utility */
.mt-s { margin-top: var(--s4); } .mt-m { margin-top: var(--s6); } .mt-l { margin-top: var(--s7); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero visual (Precision Map) */
.hero-visual { border: 1px solid var(--rule); background: var(--white); padding: var(--s4); border-radius: 2px; }
.hero-visual svg { display: block; width: 100%; max-width: 380px; margin-inline: auto; }
@media (max-width: 900px) { .hero-visual svg { max-width: 340px; } }
.nav details.dd { position: relative; }
.nav details.dd > summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.btn.on-teal:hover { color: var(--teal); }
.statement.mt-m { max-width: none; }

.signature .pt { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }

/* Logo (official teal-backed tile — never recoloured, stretched or cropped) */
.brand img { height: 58px; width: auto; display: block; border-radius: 2px; }
.brand .sub { line-height: 1.35; }
.footer-logo img { height: 96px; }
.site-header .wrap { min-height: 76px; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); }
.tab { font: 600 0.95rem/1 var(--text); color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 18px 12px; cursor: pointer; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.tab[aria-selected="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); margin-right: 8px; vertical-align: 2px; }
.tab:hover { color: var(--teal); }

/* ---------- Native forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--white); border: 1px solid #D3E1DF; padding: clamp(20px, 3vw, 36px); border-radius: 2px; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.f.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.f label, .f legend { font-size: 0.92rem; font-weight: 600; color: var(--ink); padding: 0; }
.f legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: 0.84rem; margin-left: 4px; }
.hint { font-size: 0.84rem; color: var(--ink-2); }
.input { font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--white); border: 1px solid #B9C6CB; border-radius: 2px; padding: 11px 12px; width: 100%; min-height: 46px; }
textarea.input { resize: vertical; min-height: 120px; }
.input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.input[aria-invalid="true"], .checks[aria-invalid="true"] .check-grid { border-color: #9B2C2C; }
.err { font-size: 0.85rem; color: #9B2C2C; min-height: 0; }
.err:empty { display: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 6px 16px; padding: 12px; border: 1px solid var(--rule); border-radius: 2px; max-height: 240px; overflow: auto; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; font-weight: 400 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.consent .check span { color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }
.form-msg { font-size: 0.92rem; color: #9B2C2C; }
.form-msg:empty { display: none; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.4); } }
.nf-done { display: grid; gap: var(--s3); padding: var(--s4) 0; }
.nf-done:focus { outline: none; }
.nf-done h3 { font-size: 1.4rem; }
.nf-done .ref { font-family: var(--mono); color: var(--teal); font-weight: 600; }
.done-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); position: relative; }
.done-mark::after { content: ""; position: absolute; left: 14px; top: 9px; width: 9px; height: 17px; border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Footer newsletter */
.site-footer .newsletter { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); align-items: start; }
.site-footer .newsletter p { color: var(--ink-2); font-size: 0.9rem; max-width: 36ch; }
.nf.compact .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.nf.compact .form-actions { margin-top: var(--s3); }
.nf.compact .nf-done h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .site-footer .newsletter { grid-template-columns: minmax(0, 1fr); } .nf.compact .fields { grid-template-columns: minmax(0, 1fr); } }

/* Linked blocks: the label is the real link; its ::after makes the whole block clickable. */
.linkbox { position: relative; }
.linkbox a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.linkbox a.stretch:focus-visible { outline: none; }
.linkbox:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.card.linkbox { transition: border-color .15s ease, background .15s ease; }
.card.linkbox:hover { border-color: var(--teal); background: #FBFDFD; }
.card.linkbox:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card .foot a.textlink.stretch::after { content: ""; position: absolute; inset: 0; transform: none; }
.card .foot a.textlink.stretch > * { pointer-events: none; }
.card .foot a.textlink.stretch { gap: 6px; }
.card .foot a.textlink.stretch::before { content: none; }
.nav .menu .mi { display: block; padding: 9px 12px; border-radius: 2px; }
.nav .menu .mi a { color: var(--ink); text-decoration: none; font-size: 0.92rem; display: block; }
.nav .menu .mi span { display: block; font-size: 0.8rem; color: var(--ink-2); }
.nav .menu .mi:hover { background: var(--soft); }
.nav .menu .mi:hover a { color: var(--teal); }
.applist .linkbox { display: grid; gap: 4px; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.applist a.name { font-weight: 600; color: var(--teal); text-decoration: none; display: flex; justify-content: space-between; gap: var(--s3); }
.applist a.name::before { content: "→"; order: 2; }
.applist .linkbox:hover a.name { text-decoration: underline; text-underline-offset: 4px; }
.postlist .linkbox { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.postlist .linkbox h3 a { color: var(--teal); text-decoration: none; }
.postlist .linkbox:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .postlist .linkbox { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Management team */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s6) var(--s5); }
.leader { margin: 0; display: grid; gap: var(--s4); align-content: start; }
.portrait { width: 100%; aspect-ratio: 6 / 7; max-width: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 2px; background: var(--soft); }
.portrait.placeholder { display: grid; place-items: center; border: 1px solid var(--rule); position: relative; }
.portrait.placeholder span { font: 700 3rem/1 var(--display); color: var(--teal); letter-spacing: .04em; }
.portrait.placeholder::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--teal); }
.leader figcaption { border-top: 1px solid var(--teal); padding-top: var(--s3); display: grid; gap: 4px; }
.leader b { font: 600 1.15rem/1.3 var(--display); color: var(--teal); }
.leader .role { font-size: 0.94rem; color: var(--ink); }

/* A click on anything inside a link is a click on the link. */
a * { pointer-events: none; }

/* Privacy policy: clause numbering kept from the supplied text */
.policy h2 { font-size: 1.35rem; margin: var(--s7) 0 var(--s4); }
.policy h2 .num, .policy .item .num { color: var(--teal); font-weight: 700; margin-right: .5em; }
.policy h2 .num { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.policy .item { margin-top: var(--s3); }
.policy .item.sub { margin-top: 6px; padding-left: 2.2em; }
.policy .lead-note { background: var(--soft); border-left: 3px solid var(--teal); padding: var(--s4) var(--s5); font-size: .95rem; }

/* Product trial and learn-more actions (category, platform and product pages) */
.applist .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s3); position: relative; z-index: 2; }
.applist .acts a { font-weight: 700; font-size: .92rem; text-decoration: none; }
.applist .acts a.trial { background: var(--teal); color: var(--white); padding: 8px 14px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; }
.applist .acts a.trial::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.applist .acts a.trial:hover { background: var(--teal-2); }
.applist .acts a.more { color: var(--teal); }
.applist .acts a.more::after { content: " →"; }
.applist .acts a.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.trialbar { background: var(--soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trialbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding: var(--s5) 0; }
.trialbar-in p { margin: 0; font-size: 1.05rem; color: var(--ink); max-width: 52ch; }
.trialbar-in p b { color: var(--teal); }

/* Blog cover image (AppSail blog) */
.prose figure.cover{margin:0 0 var(--s-m,24px)}
.prose figure.cover img{display:block;width:100%;height:auto;border-radius:4px}
.prose img{max-width:100%;height:auto}
.prose iframe{width:100%;aspect-ratio:16/9;height:auto;border:0}
.prose figure{margin:var(--s-m,24px) 0}
.prose figure img{display:block;width:100%;height:auto;border-radius:4px;border:1px solid var(--rule,#D7DEE2);background:#fff}

/* Measurable outcomes */
.hero .promise { font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.35; color: var(--ink); margin-top: var(--s4); max-width: 44ch; }
.hero .promise b { color: var(--teal); }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); column-gap: var(--s5); row-gap: 0; border-top: 1px solid var(--teal); }
.outcomes > li { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.outcomes .chip { margin-bottom: var(--s3); }
.outcomes h3 { font-size: 1.05rem; margin-bottom: var(--s2); }
.outcomes p { font-size: .94rem; margin: 0; }
.outcomes .measure { margin-top: var(--s3); color: var(--teal); font-size: .88rem; }
.outcomes .measure span { display: block; font-family: var(--mono, inherit); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mid, #71898A); margin-bottom: 2px; }
.steps.loop { margin-bottom: var(--s5); }
.otags { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.otags ul { list-style: none; margin: var(--s3) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }
.otags li { border: 1px solid var(--teal); border-radius: 4px; padding: .5rem .75rem; background: #fff; max-width: 100%; }
.otags li b { display: block; color: var(--teal); }
.otags li span { display: block; font-size: .85rem; color: var(--ink); }
.band .otags li, .section.soft .otags li { background: #fff; }
@media (min-width: 1000px) { .steps.loop { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps.loop > li { padding-right: var(--s4); } .steps.loop > li + li { padding-left: var(--s4); } }
dl.measured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s4); margin: 0; border-top: 1px solid var(--teal); padding-top: var(--s4); }
dl.measured dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mid, #71898A); }
dl.measured dd { margin: var(--s2) 0 0; font-weight: 600; color: var(--teal); }

/* Questions people ask */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: var(--s6, 48px); border-top: 1px solid var(--teal); }
.faq .qa { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.faq h3 { font-size: 1.08rem; margin-bottom: var(--s2); }
.faq p { margin: 0; }

/* Cover images: blog list thumbnails and case study cards */
.postlist .linkbox.post { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: start; }
.postlist .post time { display: block; margin-bottom: 6px; }
.thumb, .card-img { display: block; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 4px; background: var(--soft); border: 1px solid var(--rule); }
.thumb { aspect-ratio: 16 / 9; }
.thumb img, .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.none, .card-img.none { background: var(--teal); position: relative; border-color: var(--teal); }
.thumb.none span, .card-img.none span { position: absolute; left: 14%; right: 14%; top: 50%; height: 1px; background: rgba(255,255,255,.55); }
.thumb.none span::after, .card-img.none span::after { content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold, #FFE085); }
.card.case .card-img { margin: calc(-1 * var(--s5, 24px)) calc(-1 * var(--s5, 24px)) var(--s4, 16px); border-radius: 4px 4px 0 0; border: 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .postlist .linkbox.post { grid-template-columns: 112px minmax(0, 1fr); } .postlist .linkbox.post .tag { grid-column: 2; justify-self: start; } }
.postlist .linkbox a { display: inline; padding: 0; border: 0; }

/* Theme switch (light / dark). Dark rules are generated from src/theme/dark.css at build. */
.theme-btn { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--teal); cursor: pointer; }
.theme-btn:hover { background: var(--soft); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
@media (max-width: 1220px) {
  .site-header .brand { order: 0; }
  .menu-toggle { order: 1; }
  .theme-btn { order: 2; }
  .site-header .nav { order: 3; }
}

/* Client logo wall (/customers-partners). Logos sit on white tiles in both themes so their own colours stay correct. */
.clients.logo-wall { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.logo-group h3 { margin-bottom: var(--s4); }
ul.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: var(--s4) var(--s3); font-size: 0.8rem; }
ul.logos li { display: grid; gap: 6px; align-content: start; min-width: 0; }
ul.logos .logo { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
ul.logos .logo img { position: absolute; inset: 12px 14px; width: calc(100% - 28px); height: calc(100% - 24px); object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .2s ease, opacity .2s ease; }
ul.logos .logo.none { padding: 10px; }
ul.logos li:hover .logo img { filter: none; opacity: 1; }
ul.logos .logo.none { background: var(--soft); border-color: var(--soft); text-align: center; }
ul.logos .logo.none b { font: 600 .9rem/1.3 var(--display); color: var(--teal); }
ul.logos .nm { color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
@media (hover: none) { ul.logos .logo img { filter: none; opacity: 1; } }
.card .plogo { display: grid; place-items: center start; height: 64px; background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 10px 14px; margin-bottom: var(--s2); }
.card .plogo img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 600px) {
  ul.logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s2); font-size: 0.72rem; }
  ul.logos .logo img { inset: 8px 9px; width: calc(100% - 18px); height: calc(100% - 16px); }
}
.site-footer h2.fh { font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); font-family: var(--text); font-weight: 600; line-height: 1.4; }
.outcomes .measure span { color: var(--ink-2); }
.postlist h2.pt { font-size: 1.1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.postlist .linkbox h2.pt a { color: var(--teal); text-decoration: none; }
.postlist .linkbox:hover h2.pt a { text-decoration: underline; text-underline-offset: 4px; }

/* Zoho certification badges: white tiles in both themes so the badge colours stay correct */
ul.certs { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: var(--s4) var(--s3); font-size: 0.78rem; }
ul.certs li { display: grid; gap: 6px; align-content: start; min-width: 0; }
ul.certs .badge { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--rule); border-radius: 2px; }
ul.certs .badge img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
ul.certs .nm { color: var(--ink-2); line-height: 1.35; }
.certs-label { margin-top: var(--s6); }
.certified { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s6); align-items: start; border-top: 1px solid var(--teal); padding-top: var(--s5); }
.certified ul.certs { margin-top: 0; }
@media (max-width: 800px) { .certified { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
@media (max-width: 600px) { ul.certs { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 0.72rem; } }
/* Certification badges: grey until hovered, like the client logos; full colour on touch screens */
ul.certs .badge img { filter: grayscale(1); opacity: .82; transition: filter .2s ease, opacity .2s ease; }
ul.certs li:hover .badge img { filter: none; opacity: 1; }
@media (hover: none) { ul.certs .badge img { filter: none; opacity: 1; } }

/* Diagrams with a phone version: the wide drawing on larger screens, the stacked one on phones */
.dg-narrow { display: none; }
@media (max-width: 700px) {
  .dg-wide { display: none; }
  .dg-narrow { display: block; }
  .dg-narrow svg { min-width: 0; max-width: 360px; margin-inline: auto; }
}

/* Credentials figures: icon beside each number; numbers count up when the section comes into view (site.js) */
.facts .fh { display: flex; align-items: center; gap: 12px; }
.facts .fi { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--teal); position: relative; }
.facts .fi::after { content: ""; position: absolute; right: 1px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.facts .fi svg { width: 26px; height: 26px; }
.facts .fi.img { background: #fff; border: 1px solid var(--rule); }
.facts .fi.img img { width: 32px; height: auto; }

/* Badges and client logos: grey until the section has been on screen for a second (site.js adds .lit), then colour */
ul.certs .badge img, ul.logos .logo img { transition: filter .9s ease, opacity .9s ease; }
ul.certs.lit .badge img, ul.logos.lit .logo img { filter: none; opacity: 1; }
@media (hover: none) { ul.certs:not(.lit) .badge img, ul.logos:not(.lit) .logo img { filter: grayscale(1); opacity: .82; } }

/* Homepage proof strip under the hero: Deep Teal band, four equal proof points, gold icons */
.proofbar { background: #154B4D; color: #fff; position: relative; }
.proofbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.proofbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proofbar li { display: flex; align-items: center; gap: 14px; padding: var(--s6) var(--s4); min-width: 0; }
.proofbar li:first-child { padding-left: 0; }
.proofbar li + li { border-left: 1px solid rgba(255,255,255,.16); }
.proofbar .pv { flex: none; display: inline-grid; place-items: center; min-width: 48px; height: 48px; border-radius: 50%; background: rgba(255,224,133,.12); color: #FFE085; }
.proofbar .pv svg { width: 28px; height: 28px; }
.proofbar .pv .pz { width: 92px; height: auto; display: block; }
.proofbar li:first-child .pv, .proofbar li:last-child .pv { background: none; min-width: 0; }
.proofbar .pt { display: grid; gap: 2px; min-width: 0; }
.proofbar .pt b { font: 700 1.5rem/1.1 var(--display); color: #fff; }
.proofbar .pt span { font-size: .86rem; color: rgba(255,255,255,.78); line-height: 1.35; }
@media (max-width: 1100px) {
  .proofbar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proofbar li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proofbar li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 520px) {
  .proofbar li { flex-direction: column; align-items: flex-start; gap: 10px; padding: var(--s5) var(--s3); }
  .proofbar .pt b { font-size: 1.25rem; }
}
.minibadges { display: inline-flex; }
.minibadges img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; background: #fff; border: 2px solid #154B4D; margin-left: -13px; filter: grayscale(1); opacity: .85; transition: filter .9s ease, opacity .9s ease; }
.minibadges img:first-child { margin-left: 0; }
.minibadges.lit img { filter: none; opacity: 1; }
.proofbar li:last-child .pv { min-width: 0; }
@media (max-width: 1100px) {
  .proofbar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proofbar li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proofbar li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .proofbar li { flex-direction: column; align-items: flex-start; gap: 8px; padding: var(--s4) var(--s3); }
  .proofbar .pt b { font-size: 1.2rem; }
  .proofbar p { text-align: left; }
}

/* Client video testimonials (thumbnail first; the YouTube player loads only when played) */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--s6); }
.videos.one { grid-template-columns: minmax(0, 760px); }
.video { margin: 0; display: grid; gap: var(--s4); align-content: start; }
.video .yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; background: #000; }
.video .yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video .yt:hover img { transform: scale(1.03); }
.video .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.video .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid #154B4D; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video .yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.video figcaption { display: grid; gap: 4px; }
.video blockquote { margin: 0 0 var(--s2); font-family: var(--display); font-size: 1.12rem; line-height: 1.45; color: var(--teal); }
.video figcaption b { color: var(--teal); font-weight: 600; }
.video figcaption span { color: var(--ink-2); font-size: .9rem; }

/* One featured video: player beside the quote on wide screens */
.videos.feature { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.videos.feature .video { display: contents; }
.videos.feature figcaption { align-self: center; }
.videos.feature blockquote { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
@media (max-width: 860px) { .videos.feature { grid-template-columns: minmax(0, 1fr); } }

/* Proof strip animation (site.js adds .anim, then .in when the strip is on screen) */
.proofbar.anim::before { transform: scaleX(0); transform-origin: left center; }
.proofbar.anim.in::before { transform: scaleX(1); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.proofbar.anim li { opacity: 0; transform: translateY(14px); }
.proofbar.anim.in li { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(250ms + var(--i, 0) * 140ms); }
.proofbar.anim .pv svg { transform: scale(.6); }
.proofbar.anim.in .pv svg { transform: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(450ms + var(--i, 0) * 140ms); }

/* ---------- Feedback round 1 (5 Nov 2026) ---------- */
/* Buttons: the main action is larger and carries an arrow; section links are real (outline) buttons */
.btn { font-size: 1rem; padding: 16px 22px; }
.btn:not(.ghost):not(.sm)::after { content: "→"; transition: transform .15s ease; }
.btn:not(.ghost):hover::after { transform: translateX(3px); }
.btn:not(.ghost):not(.on-teal) { box-shadow: 0 8px 22px -12px rgba(21,75,77,.65); }
.btn:not(.ghost):not(.on-teal):hover { transform: translateY(-1px); }
.site-header .btn.cta { padding: 13px 20px; font-size: .95rem; box-shadow: none; }
.site-header .btn.cta::after { content: none; }
.btn.sm { padding: 11px 16px; font-size: .92rem; gap: 8px; }
.btn.ghost.sm { border-width: 1.5px; }
/* "Read the case study" and similar card links look like buttons */
.card .foot .textlink { border: 1.5px solid var(--teal); padding: 9px 14px; border-radius: 2px; font-size: .92rem; }
.card .foot .textlink:hover, .card.linkbox:hover .foot .textlink { background: var(--teal); color: var(--white); }
.card.primary .foot .textlink { border-color: rgba(255,255,255,.6); }

/* Section headers without numbers */
.sec-head .no:empty { display: none; }

/* Case-study carousel: three cards per view on desktop, swipe on phones */
.carousel { position: relative; }
.carousel .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s5)) / 3); gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: var(--s3); scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track > .card { scroll-snap-align: start; }
.carousel .track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.cnav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); margin-top: var(--s4); }
.cnav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--teal); background: var(--white); color: var(--teal); font-size: 1.15rem; cursor: pointer; }
.cnav button:hover:not(:disabled) { background: var(--teal); color: var(--white); }
.cnav button:disabled { opacity: .35; cursor: default; }
.cnav .dots { display: inline-flex; gap: 8px; margin-right: auto; }
.cnav .dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--rule); transition: background .2s ease; }
.cnav .dots i.on { background: var(--teal); }
@media (max-width: 1000px) { .carousel .track { grid-auto-columns: calc((100% - var(--s5)) / 2); } }
@media (max-width: 640px) { .carousel .track { grid-auto-columns: 86%; gap: var(--s4); } }

/* Case study: result beside the video or quote, full original story folded away */
.value.with-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.value.with-side .side .quote { margin: 0; }
@media (max-width: 860px) { .value.with-side { grid-template-columns: minmax(0, 1fr); } }
details.fullstory { border-top: 1px solid var(--teal); }
details.fullstory > summary { list-style: none; cursor: pointer; display: grid; gap: var(--s2); padding: var(--s5) 0; }
details.fullstory > summary::-webkit-details-marker { display: none; }
details.fullstory > summary .h { font: 700 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.2 var(--display); color: var(--teal); max-width: 34ch; }
details.fullstory > summary .btn { justify-self: start; margin-top: var(--s2); }
details.fullstory[open] > summary .btn { display: none; }
details.fullstory .article { padding-top: var(--s4); }

/* Lifecycle: the Deep Teal fill moves from stage to stage while the diagram is on screen */
figure[data-stages] { --lc-off: #FFFFFF; --lc-off-text: #154B4D; --lc-on: #154B4D; --lc-on-text: #FFFFFF; --lc-step: 1.2s; }
figure.playing .lc-st rect { fill: var(--lc-off); animation: lc-fill calc(var(--n, 8) * var(--lc-step)) ease-in-out infinite; animation-delay: calc(var(--k) * var(--lc-step)); }
figure.playing .lc-st text { fill: var(--lc-off-text); animation: lc-text calc(var(--n, 8) * var(--lc-step)) ease-in-out infinite; animation-delay: calc(var(--k) * var(--lc-step)); }
@keyframes lc-fill { 0%, 14%, 100% { fill: var(--lc-off); } 2.5%, 11.5% { fill: var(--lc-on); } }
@keyframes lc-text { 0%, 14%, 100% { fill: var(--lc-off-text); } 2.5%, 11.5% { fill: var(--lc-on-text); } }
@media (prefers-reduced-motion: reduce) { figure.playing .lc-st rect, figure.playing .lc-st text { animation: none; } }

/* Badges: slight zoom on hover */
ul.certs .badge img { transition: filter .9s ease, opacity .9s ease, transform .25s ease; }
ul.certs li:hover .badge img { transform: scale(1.1); }

.hero .btn-row { flex-wrap: nowrap; }
@media (max-width: 1180px) { .hero .btn-row { flex-wrap: wrap; } }

/* Partner fact: the Zoho logo itself, no icon circle (light and dark variants) */
.facts .fz { flex: none; display: inline-flex; align-items: center; }
.facts .fz img { width: 72px; height: auto; display: block; }
.facts .fz .dk { display: none; }

/* Key Business Contributor badges: grey until the section has been on screen a second, then colour; zoom on hover */
ul.awards { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
ul.awards a { display: block; border: 0; }
ul.awards img { display: block; width: 52px; height: auto; filter: grayscale(1); opacity: .82; transition: filter .9s ease, opacity .9s ease, transform .25s ease; }
ul.awards.lit img { filter: none; opacity: 1; }
ul.awards li:hover img { filter: none; opacity: 1; transform: scale(1.1); }
ul.awards.full { margin-top: var(--s4); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s4); }
ul.awards.full li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4) var(--s4) var(--s4) 0; border-top: 1px solid var(--rule); }
ul.awards.full img { width: 96px; }
ul.awards.full h3 { font-size: 1.05rem; }
ul.awards.full p { margin: 6px 0 0; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { ul.awards img { transition: none; } ul.awards li:hover img { transform: none; } }

/* Proof strip: the 2025 badge sits without the gold circle */
.proofbar .pv.aw { background: none; border-radius: 0; }
.proofbar .pv .pa { width: 42px; height: auto; display: block; }
/* About us: larger Key Business Contributor badges */
ul.awards.big { gap: 12px; margin-top: 18px; flex-wrap: nowrap; }
ul.awards.big li { flex: 1 1 0; min-width: 0; max-width: 104px; }
ul.awards.big img { width: 100%; }

/* About us: Awards section */
.award-group { padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.award-group + .award-group { margin-top: 0; }
.award-group h3 { font-size: 1.2rem; }
.award-group > p { margin: 8px 0 0; max-width: 60ch; }
ul.awards.xl { gap: 20px; margin-top: var(--s4); flex-wrap: wrap; }
ul.awards.xl li { flex: none; }
ul.awards.xl img { width: 132px; }
@media (max-width: 600px) { ul.awards.xl { gap: 12px; } ul.awards.xl img { width: calc((100vw - 32px - 24px) / 3); max-width: 132px; } }
.award-group .banners { display: grid; gap: var(--s3); margin-top: var(--s4); max-width: 900px; }
.award-group .banners figure { margin: 0; }
.award-group .banners img { display: block; width: 100%; height: auto; border-radius: 10px; }
.award-group .tb { display: grid; grid-template-columns: 168px minmax(0, 900px); gap: var(--s4); align-items: center; margin-top: var(--s4); }
.award-group .tb .banners { margin-top: 0; }
.award-group .tb .winner { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 700px) { .award-group .tb { grid-template-columns: 1fr; } .award-group .tb .winner { width: 168px; } }

/* Homepage: Solve. Engineer. Execute. above the lifecycle diagram */
.trio.mb-l { margin-bottom: var(--s5); }
/* Outcomes on phones: two compact columns */
@media (max-width: 600px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
  .outcomes > li { padding: var(--s4) 0; }
  .outcomes h3 { font-size: .98rem; }
  .outcomes p { font-size: .86rem; }
  .outcomes .measure { font-size: .8rem; }
}

/* AI in Zoho: AI Enabled Partner badge on a white tile (keeps its colours in dark mode) */
.certified.aib { align-items: center; }
.aib-badge { justify-self: start; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; }
.aib-badge img { display: block; width: 260px; max-width: 100%; height: auto; }

/* Long menus (Capabilities) open in two columns so every item fits above the fold; a scroll fallback covers very short windows. */
@media (min-width: 1221px) {
  .nav .menu.two { grid-template-columns: repeat(2, minmax(250px, 1fr)); min-width: 560px; column-gap: var(--s2); }
  .nav .menu { max-height: calc(100vh - 130px); overflow-y: auto; }
}


/* ---------- Dark theme (generated from src/theme/dark.css) ---------- */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {--white: #0C1618;   
  --soft:  #12232A;   
  --ink:   #D8E2E4;   
  --ink-2: #A7B7BB;   
  --mid:   #86A0A2;   
  --rule:  #24373C;   
  --teal:  #8CCFC9;   
  --teal-2:#B2E2DD;   
  --deep:  #154B4D;   
  --deep-2:#1C5C5F;   
  color-scheme: dark;}
:root:not([data-theme="light"]) body { background: var(--white); }
:root:not([data-theme="light"]) .site-header { background: rgba(12,22,24,.94); }
:root:not([data-theme="light"]) .nav .menu { box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
:root:not([data-theme="light"]) .btn { background: var(--deep); border-color: #2C7376; color: #fff; }
:root:not([data-theme="light"]) .btn:hover { background: var(--deep-2); color: #fff; }
:root:not([data-theme="light"]) .btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
:root:not([data-theme="light"]) .btn.ghost:hover { background: var(--soft); color: var(--teal-2); }
:root:not([data-theme="light"]) .btn.on-teal { background: var(--gold); border-color: var(--gold); color: #154B4D; }
:root:not([data-theme="light"]) .btn.on-teal:hover { background: #FFF0B8; border-color: #FFF0B8; color: #154B4D; }
:root:not([data-theme="light"]) .btn.on-teal::before { background: #154B4D; }
:root:not([data-theme="light"]) .btn.ghost.on-teal { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
:root:not([data-theme="light"]) .btn.ghost.on-teal:hover { background: rgba(255,255,255,.08); color: #fff; }
:root:not([data-theme="light"]) .chip, :root:not([data-theme="light"]) .agenda li::before { color: #154B4D; }
:root:not([data-theme="light"]) .band, :root:not([data-theme="light"]) .card.primary, :root:not([data-theme="light"]) .thumb.none, :root:not([data-theme="light"]) .card-img.none, :root:not([data-theme="light"]) .applist .acts a.trial, :root:not([data-theme="light"]) .skip, :root:not([data-theme="light"]) .done-mark { background: var(--deep); border-color: var(--deep); color: #fff; }
:root:not([data-theme="light"]) .band h2, :root:not([data-theme="light"]) .card.primary h3, :root:not([data-theme="light"]) .card.primary .textlink, :root:not([data-theme="light"]) .applist .acts a.trial { color: #fff; }
:root:not([data-theme="light"]) th { background: var(--deep); color: #fff; }
:root:not([data-theme="light"]) .legend i.f { background: var(--teal); }
:root:not([data-theme="light"]) a.card:hover, :root:not([data-theme="light"]) .card.linkbox:hover { background: #10262B; }
:root:not([data-theme="light"]) .section.soft .card, :root:not([data-theme="light"]) .panel { border-color: var(--rule); }
:root:not([data-theme="light"]) .input { border-color: #3A5157; }
:root:not([data-theme="light"]) .err, :root:not([data-theme="light"]) .form-msg { color: #F2A3A3; }
:root:not([data-theme="light"]) .input[aria-invalid="true"], :root:not([data-theme="light"]) .checks[aria-invalid="true"] .check-grid { border-color: #F2A3A3; }
:root:not([data-theme="light"]) .otags li, :root:not([data-theme="light"]) .band .otags li, :root:not([data-theme="light"]) .section.soft .otags li { background: var(--soft); }
:root:not([data-theme="light"]) .eyebrow::before { box-shadow: none; }
:root:not([data-theme="light"]) .prose figure img, :root:not([data-theme="light"]) .thumb img, :root:not([data-theme="light"]) .card-img img, :root:not([data-theme="light"]) .portrait { filter: brightness(.92); }
:root:not([data-theme="light"]) .prose figure img { background: #fff; }
:root:not([data-theme="light"]) .form-frame { background: #fff; border-color: var(--rule); }
:root:not([data-theme="light"]) svg rect[fill="#FFFFFF"] { fill: var(--white); }
:root:not([data-theme="light"]) svg rect[fill="#EEF4F3"] { fill: var(--soft); }
:root:not([data-theme="light"]) svg [stroke="#154B4D"] { stroke: var(--teal); }
:root:not([data-theme="light"]) svg text[fill="#154B4D"], :root:not([data-theme="light"]) svg path[fill="#154B4D"], :root:not([data-theme="light"]) svg polygon[fill="#154B4D"], :root:not([data-theme="light"]) svg circle[fill="#154B4D"] { fill: var(--teal); }
:root:not([data-theme="light"]) svg text[fill="#253238"] { fill: var(--ink); }
:root:not([data-theme="light"]) svg rect[fill="#154B4D"] { fill: var(--deep); }
:root:not([data-theme="light"]) svg [stroke="#D7DEE2"] { stroke: var(--rule); }
:root:not([data-theme="light"]) .hero-visual, :root:not([data-theme="light"]) .figure .scroll { background: var(--white); }
:root:not([data-theme="light"]) .theme-btn .moon { display: none; }
:root:not([data-theme="light"]) .theme-btn .sun { display: block; }
:root:not([data-theme="light"]) ul.logos .logo { border-color: var(--rule); }
:root:not([data-theme="light"]) ul.logos .logo.none { background: var(--soft); }
:root:not([data-theme="light"]) .btn:not(.ghost):not(.on-teal) { box-shadow: 0 8px 22px -12px rgba(0,0,0,.8); }
:root:not([data-theme="light"]) .card .foot .textlink { border-color: var(--teal); }
:root:not([data-theme="light"]) .card .foot .textlink:hover, :root:not([data-theme="light"]) .card.linkbox:hover .foot .textlink { background: var(--deep); color: #fff; border-color: var(--deep); }
:root:not([data-theme="light"]) .cnav button { background: transparent; border-color: var(--teal); color: var(--teal); }
:root:not([data-theme="light"]) .cnav button:hover:not(:disabled) { background: var(--deep); color: #fff; }
:root:not([data-theme="light"]) .cnav .dots i.on { background: var(--teal); }
:root:not([data-theme="light"]) figure[data-stages] { --lc-off: #0C1618; --lc-off-text: #8CCFC9; --lc-on: #154B4D; --lc-on-text: #FFFFFF; }
:root:not([data-theme="light"]) .facts .fz .lt { display: none; }
:root:not([data-theme="light"]) .facts .fz .dk { display: block; }
}
:root[data-theme="dark"] {--white: #0C1618;   
  --soft:  #12232A;   
  --ink:   #D8E2E4;   
  --ink-2: #A7B7BB;   
  --mid:   #86A0A2;   
  --rule:  #24373C;   
  --teal:  #8CCFC9;   
  --teal-2:#B2E2DD;   
  --deep:  #154B4D;   
  --deep-2:#1C5C5F;   
  color-scheme: dark;}
:root[data-theme="dark"] body { background: var(--white); }
:root[data-theme="dark"] .site-header { background: rgba(12,22,24,.94); }
:root[data-theme="dark"] .nav .menu { box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
:root[data-theme="dark"] .btn { background: var(--deep); border-color: #2C7376; color: #fff; }
:root[data-theme="dark"] .btn:hover { background: var(--deep-2); color: #fff; }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
:root[data-theme="dark"] .btn.ghost:hover { background: var(--soft); color: var(--teal-2); }
:root[data-theme="dark"] .btn.on-teal { background: var(--gold); border-color: var(--gold); color: #154B4D; }
:root[data-theme="dark"] .btn.on-teal:hover { background: #FFF0B8; border-color: #FFF0B8; color: #154B4D; }
:root[data-theme="dark"] .btn.on-teal::before { background: #154B4D; }
:root[data-theme="dark"] .btn.ghost.on-teal { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
:root[data-theme="dark"] .btn.ghost.on-teal:hover { background: rgba(255,255,255,.08); color: #fff; }
:root[data-theme="dark"] .chip, :root[data-theme="dark"] .agenda li::before { color: #154B4D; }
:root[data-theme="dark"] .band, :root[data-theme="dark"] .card.primary, :root[data-theme="dark"] .thumb.none, :root[data-theme="dark"] .card-img.none, :root[data-theme="dark"] .applist .acts a.trial, :root[data-theme="dark"] .skip, :root[data-theme="dark"] .done-mark { background: var(--deep); border-color: var(--deep); color: #fff; }
:root[data-theme="dark"] .band h2, :root[data-theme="dark"] .card.primary h3, :root[data-theme="dark"] .card.primary .textlink, :root[data-theme="dark"] .applist .acts a.trial { color: #fff; }
:root[data-theme="dark"] th { background: var(--deep); color: #fff; }
:root[data-theme="dark"] .legend i.f { background: var(--teal); }
:root[data-theme="dark"] a.card:hover, :root[data-theme="dark"] .card.linkbox:hover { background: #10262B; }
:root[data-theme="dark"] .section.soft .card, :root[data-theme="dark"] .panel { border-color: var(--rule); }
:root[data-theme="dark"] .input { border-color: #3A5157; }
:root[data-theme="dark"] .err, :root[data-theme="dark"] .form-msg { color: #F2A3A3; }
:root[data-theme="dark"] .input[aria-invalid="true"], :root[data-theme="dark"] .checks[aria-invalid="true"] .check-grid { border-color: #F2A3A3; }
:root[data-theme="dark"] .otags li, :root[data-theme="dark"] .band .otags li, :root[data-theme="dark"] .section.soft .otags li { background: var(--soft); }
:root[data-theme="dark"] .eyebrow::before { box-shadow: none; }
:root[data-theme="dark"] .prose figure img, :root[data-theme="dark"] .thumb img, :root[data-theme="dark"] .card-img img, :root[data-theme="dark"] .portrait { filter: brightness(.92); }
:root[data-theme="dark"] .prose figure img { background: #fff; }
:root[data-theme="dark"] .form-frame { background: #fff; border-color: var(--rule); }
:root[data-theme="dark"] svg rect[fill="#FFFFFF"] { fill: var(--white); }
:root[data-theme="dark"] svg rect[fill="#EEF4F3"] { fill: var(--soft); }
:root[data-theme="dark"] svg [stroke="#154B4D"] { stroke: var(--teal); }
:root[data-theme="dark"] svg text[fill="#154B4D"], :root[data-theme="dark"] svg path[fill="#154B4D"], :root[data-theme="dark"] svg polygon[fill="#154B4D"], :root[data-theme="dark"] svg circle[fill="#154B4D"] { fill: var(--teal); }
:root[data-theme="dark"] svg text[fill="#253238"] { fill: var(--ink); }
:root[data-theme="dark"] svg rect[fill="#154B4D"] { fill: var(--deep); }
:root[data-theme="dark"] svg [stroke="#D7DEE2"] { stroke: var(--rule); }
:root[data-theme="dark"] .hero-visual, :root[data-theme="dark"] .figure .scroll { background: var(--white); }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] ul.logos .logo { border-color: var(--rule); }
:root[data-theme="dark"] ul.logos .logo.none { background: var(--soft); }
:root[data-theme="dark"] .btn:not(.ghost):not(.on-teal) { box-shadow: 0 8px 22px -12px rgba(0,0,0,.8); }
:root[data-theme="dark"] .card .foot .textlink { border-color: var(--teal); }
:root[data-theme="dark"] .card .foot .textlink:hover, :root[data-theme="dark"] .card.linkbox:hover .foot .textlink { background: var(--deep); color: #fff; border-color: var(--deep); }
:root[data-theme="dark"] .cnav button { background: transparent; border-color: var(--teal); color: var(--teal); }
:root[data-theme="dark"] .cnav button:hover:not(:disabled) { background: var(--deep); color: #fff; }
:root[data-theme="dark"] .cnav .dots i.on { background: var(--teal); }
:root[data-theme="dark"] figure[data-stages] { --lc-off: #0C1618; --lc-off-text: #8CCFC9; --lc-on: #154B4D; --lc-on-text: #FFFFFF; }
:root[data-theme="dark"] .facts .fz .lt { display: none; }
:root[data-theme="dark"] .facts .fz .dk { display: block; }

/* Management team biographies */
.bios { display: grid; gap: var(--s6); }
.bio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); align-items: start; padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
.bio:last-child { border-bottom: 0; padding-bottom: 0; }
.bio .portrait { width: 100%; height: auto; border-radius: 4px; }
.bio h3 { margin: 0; }
.bio .role { margin: 4px 0 0; font-weight: 600; color: var(--teal); }
.bio .focus { margin: 2px 0 var(--s3); color: var(--ink-2); font-size: .9rem; }
.bio p { max-width: 68ch; }
@media (max-width: 700px) { .bio { grid-template-columns: minmax(0, 1fr); } .bio .portrait { max-width: 220px; } }
.bio p + p { margin-top: .8em; }

/* Client logo above each testimonial: a white tile like the logo wall, then the teal rule, then the quote. */
.quote.has-logo { border-top: 0; padding-top: 0; }
.quote.has-logo blockquote { border-top: 1px solid var(--teal); padding-top: var(--s4); }
.quote .qlogo { display: flex; align-items: center; justify-content: center; width: 136px; height: 64px; box-sizing: border-box; padding: 8px 12px; background: #fff; border: 1px solid var(--rule); border-radius: 2px; }
.quote .qlogo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.quote .qlogo.none { background: var(--soft); border-color: var(--soft); text-align: center; }
.quote .qlogo.none b { font: 600 .8rem/1.25 var(--display); color: var(--teal); }

/* Outline (ghost) buttons fill Infolytics Gold on hover and keyboard focus, with Deep Teal text, in light and dark mode
   (gold buttons carry Deep Teal text, Dark Theme rule WD-02). Ghost buttons on teal bands (.on-teal) keep their own hover. */
.btn.ghost { transition: background .15s ease, color .15s ease, border-color .15s ease; }
html:root .btn.ghost:not(.on-teal):hover, html:root .btn.ghost:not(.on-teal):focus-visible { background: #FFE085; border-color: #FFE085; color: #154B4D; }
/* Outline buttons on teal bands ("See our approach"): on hover and keyboard focus only the text and arrow turn Gold;
   the background and border keep their existing hover. The doubled .btn outranks the dark-theme hover rules. */
html:root .btn.btn.ghost.on-teal:hover, html:root .btn.btn.ghost.on-teal:focus-visible { color: #FFE085; }

/* Collapsible "more" panel (AI page scenarios) */
details.more { border-top: 1px solid var(--rule); padding-top: var(--s4); }
details.more > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-weight: 600; color: var(--teal); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--teal); border-radius: 2px; font-weight: 600; line-height: 1; }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary .meta { font-weight: 400; }

/* Video library (gen_videos.py) */
.vidwrap { max-width: 960px; }
.vidwrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 2px; display: block; }
.card-img.vid { aspect-ratio: 16 / 9; position: relative; background: #000; }
.card-img.vid .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,.35); pointer-events: none; z-index: 2; }
.card-img.vid .play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 15px solid #154B4D; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
ol.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 var(--s5); }
ol.chapters li { border-top: 1px solid var(--rule); }
ol.chapters a { display: flex; gap: var(--s3); padding: 12px 0; color: var(--ink); text-decoration: none; align-items: baseline; }
ol.chapters a:hover span:last-child, ol.chapters a:focus-visible span:last-child { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
ol.chapters .ts { font: 600 0.82rem/1.4 var(--text); color: var(--teal); min-width: 4.2em; font-variant-numeric: tabular-nums; }

/* AI in practice strip (gen_ai_strip.py) */
.aistrip .grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s6, 48px); align-items: center; }
@media (max-width: 860px) { .aistrip .grid2 { grid-template-columns: 1fr; gap: var(--s4, 24px); } }
.aistrip h2 { margin-top: 6px; }
.aistrip .pageline { font-size: 1.12rem; line-height: 1.55; color: var(--ink); margin: 14px 0 10px; }
.aistrip .shared { color: var(--ink-2, #253238); margin: 0 0 14px; }
.aistrip .ailoop { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.ailoop .ln { fill: none; stroke: var(--mid, #71898A); stroke-width: 1.6; }
.ailoop .ah { fill: var(--mid, #71898A); }
.ailoop .bx { stroke: var(--teal, #154B4D); stroke-width: 1.4; fill: var(--white, #fff); }
.ailoop .bx.pp { fill: #154B4D; stroke: #154B4D; }
.ailoop text { text-anchor: middle; fill: var(--teal, #154B4D); font-family: inherit; }
.ailoop .t1 { font-size: 15px; font-weight: 700; }
.ailoop .t2 { font-size: 12px; }
.ailoop text.on { fill: #FFE085; }
.aipointer { margin: var(--s4, 24px) 0 0; padding: 12px 16px; border-left: 3px solid var(--gold, #FFE085); background: var(--white, #fff); font-size: .95rem; }

/* Integration and migration logos (gen_logos.py) */
.logogroups { display: grid; gap: var(--s5, 32px); }
.logogroups h3 { font-size: 1rem; margin: 0 0 12px; }
.logogrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logogrid li { margin: 0; }
.logogrid .tile { background: #fff; border: 1px solid var(--rule, #D7DEE2); border-radius: 2px; height: 76px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; }
.logogrid img { max-height: 40px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logogrid .nm { display: block; font-size: .8rem; color: var(--mid, #71898A); margin-top: 6px; line-height: 1.3; }
.logonote { margin-top: var(--s4, 24px); font-size: .9rem; color: var(--mid, #71898A); }
/* Standalone calls to action (gen_seo_extras.py): the same outlined button as the card links */
a.textlink.cta { border: 1.5px solid var(--teal); padding: 9px 14px; border-radius: 2px; font-size: .92rem; color: var(--teal); background: transparent; transition: background .15s ease, color .15s ease, border-color .15s ease; }
a.textlink.cta:hover, a.textlink.cta:focus-visible { background: var(--deep, #154B4D); border-color: var(--deep, #154B4D); color: #fff; }
.band a.textlink.cta, .on-teal a.textlink.cta { border-color: rgba(255,255,255,.6); color: #fff; }
.band a.textlink.cta:hover { color: #FFE085; background: transparent; }
p > a.textlink.cta { margin-top: 4px; }
