/* ---------- Theme tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f4f8fa;
  --line: #e1e9ee;
  --line-strong: #cfdde4;
  --ink: #13243d;
  --heading: #0f1f38;
  --muted: #51657a;
  --accent: #0a7e71;
  --btn: #0a7e71;
  --btn-hover: #086a5f;
  --icon-bg: linear-gradient(135deg, #e3f7f2, #e2f3fb);
  --soft: #dff5ef;
  --soft-ink: #086a5f;
  --soft-muted: #edf2f5;
  --header-bg: #f7f9fb;
  --hero-bg: #0c1a30;
  --band-bg: #0f1f38;
  --band-border: transparent;
  --eval-bg: #ffffff;
  --logo-light: block;
  --logo-dark: none;
  --track: #e7eef2;
  --ring: #e8f6f3;
  --shadow: 0 1px 2px rgb(15 31 56 / .04), 0 8px 24px rgb(15 31 56 / .06);
  --shadow-lg: 0 2px 4px rgb(15 31 56 / .06), 0 24px 48px rgb(15 31 56 / .12);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --logo-light: none;
  --logo-dark: block;
  --bg: #08111f;
  --surface: #0f1c31;
  --tint: #0b1628;
  --line: #1b2c45;
  --line-strong: #2b4363;
  --ink: #d8e3ed;
  --heading: #f2f7fb;
  --muted: #96aabd;
  --accent: #4fd8bd;
  --btn: #0a7e71;
  --btn-hover: #086a5f;
  --icon-bg: rgb(95 227 198 / .1);
  --soft: rgb(95 227 198 / .13);
  --soft-ink: #86ecd5;
  --soft-muted: rgb(255 255 255 / .06);
  --header-bg: #0b1424;
  --hero-bg: #050c18;
  --band-bg: #0c1a2e;
  --band-border: #1b2c45;
  --eval-bg: #13243d;
  --track: #24395a;
  --ring: rgb(95 227 198 / .12);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .45);
}
:root {
  --mint: #5fe3c6;
  --sky: #36b6e6;
  --grad: linear-gradient(100deg, #2fd3b4, #36b6e6);
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; background: var(--bg); color: var(--ink); transition: background-color .25s, color .25s; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
[id] { scroll-margin-top: 136px; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 20; padding: .6rem; background: var(--surface); }
.skip:focus { top: 1rem; }
/* Fluid page width: side margins scale with the screen (about 4.5% each side),
   content caps at 1520px on very large monitors. */
.wrap { width: min(1520px, calc(100% - clamp(3rem, 9vw, 9rem))); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--heading); }
h1, h2 { letter-spacing: -.028em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .5rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--muted); }
.grad { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 .9rem; color: var(--accent); font: 700 .8rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: 1.1rem; max-width: 60ch; }
.section { padding-block: clamp(3rem, 5.5vw, 4.75rem); }
.section-head { max-width: 880px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: .6rem; background: var(--btn); color: white; text-decoration: none; font: 700 .93rem/1.2 var(--display); transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(10 126 113 / .25); }
.button-small { padding: .55rem .95rem; }
.button-lg { padding: .95rem 1.4rem; font-size: 1rem; }
.button.ghost { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .22); color: white; }
.button.ghost:hover { background: rgb(255 255 255 / .12); box-shadow: none; }
.button.light { background: white; color: #0f1f38; }
.button.light:hover { background: #e9fbf7; box-shadow: 0 8px 20px rgb(0 0 0 / .2); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; color: var(--accent); font: 700 .93rem var(--display); text-decoration: none; }
.text-link .ico { transition: transform .2s; }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.header-inner { align-items: stretch; }
.logo { height: auto; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }
.brand .logo { width: 158px; }
.brand { display: flex; align-items: center; }
.main-nav, .nav-list, .nav-list > li { display: flex; align-items: stretch; }
.nav-list { gap: clamp(.25rem, 1.6vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.nav-list > li { align-items: center; }
.nav-trigger, .nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .55rem; border: 0; border-radius: .45rem; background: none; color: var(--ink); font: 600 .94rem/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-trigger .ico { width: .95rem; height: .95rem; transition: transform .2s; }
.nav-trigger:hover, .nav-link:hover, .has-mega.open .nav-trigger { color: var(--accent); background: var(--tint); }
.nav-link[aria-current="page"], .nav-trigger[data-active] { color: var(--accent); }
.has-mega.open .nav-trigger .ico { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--surface); border-block: 1px solid var(--line); box-shadow: 0 24px 48px rgb(15 31 56 / .14); }
.has-mega.open .mega { display: block; animation: drop .18s ease-out; }
.has-mega.open.instant .mega { animation: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 2rem; padding-block: 2rem 1.25rem; }
.mega-inner .span-2 { grid-column: span 2; }
.mega-label { margin: 0 0 .75rem; font: 700 .75rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mega-links { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.mega-links.cols-2 { grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
.mega-links a { display: flex; align-items: flex-start; gap: .8rem; padding: .65rem .7rem; border-radius: .6rem; text-decoration: none; transition: background-color .15s; }
.mega-links a:hover { background: var(--tint); }
.mega-links strong { display: block; font: 700 .95rem/1.3 var(--display); color: var(--heading); }
.mega-links small { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.mega-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: .55rem; background: var(--icon-bg); color: var(--accent); }
.mega-feature { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: .9rem; background: #0f1f38; color: #c3d4e0; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.mega-feature::before { content: ""; position: absolute; z-index: -1; right: -40%; bottom: -60%; width: 320px; height: 320px; background: radial-gradient(circle, rgb(47 211 180 / .3), transparent 65%); }
.mega-feature .eyebrow { margin: 0; color: var(--mint); }
.mega-feature strong { font: 800 1.2rem/1.25 var(--display); color: white; }
.mega-feature .text-link { color: var(--mint); padding-top: .5rem; }
.mini-list { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .92rem; }
.mini-list li::before { content: "→ "; color: var(--mint); }
.mega-foot { padding-block: .9rem 1.2rem; border-top: 1px solid var(--line); }
.mega-foot a { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font: 700 .9rem var(--display); text-decoration: none; }
.menu-toggle { display: none; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-toggle .shut, .menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .shut { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100dvh - 72px); overflow-y: auto; }
.mobile-nav .wrap { display: grid; padding-block: .75rem 1.5rem; }
.mobile-nav details, .mobile-nav > .wrap > a:not(.button) { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > .wrap > a:not(.button) { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font: 700 1.05rem var(--display); color: var(--heading); text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav ul { margin: 0 0 .75rem; padding: 0; list-style: none; }
.mobile-nav ul a { display: block; padding: .55rem .75rem; border-radius: .5rem; color: var(--ink); text-decoration: none; }
.mobile-nav ul a:hover { background: var(--tint); }
.mobile-nav .button { margin-top: 1.25rem; width: 100%; }
.menu-open body { overflow: hidden; }

/* ---------- Utility bar ---------- */
.utility { background: #0a1628; color: #a9bccc; font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.utility-inner > span { display: inline-flex; align-items: center; gap: .45rem; }
.utility .ico { color: var(--mint); }
.utility-links { gap: 1.4rem !important; }
.utility a { color: #d6e3ec; text-decoration: none; }
.utility a:hover { color: white; text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--line-strong); color: var(--accent); }
.theme-toggle .ico { width: 1.1rem; height: 1.1rem; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Hero (dark in both themes) ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: white; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .025) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -200px; top: -260px; background: radial-gradient(circle, rgb(47 211 180 / .12), rgb(54 182 230 / .06) 40%, transparent 68%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(2rem, 4vw, 3rem); }
.hero-eyebrow { margin: 0 0 1.1rem; color: var(--mint); font: 600 .82rem/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { color: white; }
.hero-text { min-width: 0; }
/* Headline: "Ship software and AI" always on one line, "you can trust." below.
   First line renders at ~9.4x the font size, so 10.3cqi keeps it within the column. */
@supports (container-type: inline-size) {
  .hero-text { container-type: inline-size; }
  .hero-title { font-size: min(3.75rem, 10.3cqi); }
  .hero-title .line { white-space: nowrap; }
}
.hero-copy { font-size: 1.125rem; color: #aebfcd; max-width: 46ch; margin-bottom: 2rem; }
.pill { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; padding: .4rem .85rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; background: rgb(255 255 255 / .05); color: #cfe0ea; font-size: .84rem; font-weight: 500; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(95 227 198 / .18); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.assurances { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgb(255 255 255 / .08); list-style: none; color: #9fb2c2; font-size: .875rem; }
.assurances li { display: flex; align-items: center; gap: .45rem; }
.assurances .ico { color: var(--mint); }
.assurances a { color: inherit; text-decoration: none; transition: color .2s; }
.assurances a:hover, .assurances a:focus-visible { color: white; }

.hero-visual { position: relative; padding-bottom: 5.75rem; }
.report { margin: 0; color: #e5f1f6; background: rgb(17 31 53 / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .1); border-radius: 1rem; box-shadow: 0 24px 48px rgb(0 0 0 / .25); overflow: hidden; }
.report-eval { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: .75rem; background: rgb(255 255 255 / .05); }
.report-eval-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem; font-size: .9rem; color: #c9d8e3; }
.report-eval-head span { display: inline-flex; align-items: center; gap: .5rem; }
.report-eval-head .ico { color: var(--mint); }
.report-eval-head strong { font: 700 1.25rem/1 var(--display); color: white; }
.report-eval-head small { font-size: .85rem; color: #8ea3b5; }
.report-eval .bar { background: rgb(255 255 255 / .1); }
.report figcaption { padding: .8rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); display: flex; align-items: center; gap: .8rem; font: .85rem ui-monospace, SFMono-Regular, monospace; color: #a9c5d4; }
.window-dots { display: flex; gap: .3rem; }
.window-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: #ff6b6b; }
.window-dots i:nth-child(2) { background: #ffc857; }
.window-dots i:nth-child(3) { background: #5fe3c6; }
.sample, .eval-head em { margin-left: auto; padding: .1rem .5rem; border: 1px solid rgb(255 255 255 / .15); border-radius: 999px; font: .72rem ui-monospace, monospace; font-style: normal; color: #a9c5d4; }
.report-body { padding: 1.2rem 1.3rem 1.3rem; }
.report-title { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; }
.report-title small { display: block; font-size: .85rem; color: #a9c5d4; }
.report-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; background: rgb(95 227 198 / .14); color: var(--mint); }
.report ul { margin: 0; padding: 0; list-style: none; }
.report li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid rgb(255 255 255 / .07); padding: .7rem 0; font-size: .92rem; color: #d5e2ea; }
.report b { padding: .1rem .5rem; border-radius: .35rem; background: rgb(95 227 198 / .12); color: var(--mint); font: 600 .75rem ui-monospace, monospace; }
.eval-card { position: absolute; left: -2rem; bottom: 0; width: min(270px, 70%); padding: 1rem 1.1rem; background: var(--eval-bg); color: var(--ink); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow-lg); }
.eval-head { display: flex; align-items: center; gap: .5rem; font: 700 .85rem var(--display); color: var(--heading); }
.eval-head .ico { color: var(--accent); }
.eval-head em { color: var(--muted); border-color: var(--line); }
.eval-score { display: flex; align-items: baseline; gap: .5rem; margin: .5rem 0 .6rem; }
.eval-score strong { font: 800 1.9rem/1 var(--display); color: var(--heading); }
.eval-score small { font-size: 1rem; color: var(--muted); }
.eval-score span { font-size: .85rem; color: var(--muted); }
.bar { height: .45rem; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

/* ---------- Credentials ---------- */
.creds { border-bottom: 1px solid var(--line); background: var(--bg); }
.creds ul { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; padding: 0; list-style: none; }
.creds li { padding: 1.25rem 1.25rem; border-left: 1px solid var(--line); }
.creds li:last-child { border-right: 1px solid var(--line); }
.creds strong { display: block; font: 800 1.15rem/1.3 var(--display); color: var(--heading); letter-spacing: -.01em; }
.creds span { font-size: .88rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; padding: clamp(1.4rem, 2.5vw, 1.9rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s, background-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card p:last-child { margin-bottom: 0; }
.card.compact h3 { font-size: 1.05rem; }
.icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: .8rem; background: var(--icon-bg); color: var(--accent); font-size: 1.25rem; }
.icon.sm { width: 2.6rem; height: 2.6rem; margin: 0; font-size: 1.1rem; flex-shrink: 0; }
.ticks { margin: .9rem 0 0; padding: .9rem 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--ink); }
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; }
.ticks li::before { border-radius: 50%; background: var(--soft); }
.ticks li::after { background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.chips li { padding: .25rem .7rem; border-radius: 999px; font: 600 .78rem/1.5 var(--display); }

/* ---------- Dark band (AI section) ---------- */
.dark { position: relative; overflow: hidden; background: var(--band-bg); color: white; isolation: isolate; border-block: 1px solid var(--band-border); }
.dark::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgb(54 182 230 / .16), transparent 65%); }
.dark h2, .dark h3 { color: white; }
.dark p { color: #b5c7d6; }
.dark .eyebrow { color: var(--mint); }
.dark .card { background: rgb(255 255 255 / .035); border-color: rgb(255 255 255 / .09); box-shadow: none; }
.dark .card:hover { background: rgb(255 255 255 / .06); border-color: rgb(95 227 198 / .35); }
.dark .icon { background: rgb(95 227 198 / .12); color: var(--mint); }
.dark .chips li { background: rgb(95 227 198 / .1); color: #a6f0df; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding-top: 1.5rem; }
.timeline li::before { content: ""; position: absolute; top: 1.35rem; left: 3.6rem; right: -1.25rem; height: 2px; background: linear-gradient(90deg, var(--soft), var(--line)); }
.timeline li:last-child::before { display: none; }
.num { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin: -1.5rem 0 1.1rem; border-radius: 50%; background: #0f1f38; color: var(--mint); font: 800 .9rem var(--display); box-shadow: 0 0 0 6px var(--ring); }
.timeline p { font-size: .95rem; margin-bottom: 0; }

/* ---------- Engagements ---------- */
.tinted { background: var(--tint); border-block: 1px solid var(--line); }
.tag { align-self: flex-start; margin-bottom: .75rem; padding: .2rem .65rem; border-radius: 999px; background: var(--soft); color: var(--soft-ink); font: 700 .74rem/1.5 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tag.muted { background: var(--soft-muted); color: var(--muted); }
.plan h3 { font-size: 1.3rem; }
.plan > p:not(.tag) { margin-bottom: 0; }

/* ---------- Why ---------- */
.split-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.why h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.why p { font-size: .93rem; margin: 0; }

/* ---------- Tools ---------- */
.tools { border-block: 1px solid var(--line); background: var(--tint); }
.tools-inner { display: flex; align-items: center; gap: 1.5rem 2.5rem; padding-block: 1.6rem; flex-wrap: wrap; }
.tools-inner p { margin: 0; font: 700 .8rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tools li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); font: 700 .88rem var(--display); color: var(--heading); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .lead a { color: var(--accent); font-weight: 600; }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font: 700 1rem var(--display); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3.75rem); border-radius: 1.4rem; background: linear-gradient(120deg, #e8f6f2, #e9f3f8); border: 1px solid #d3e9e3; color: var(--ink); isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -60% auto; width: 520px; height: 520px; background: radial-gradient(circle, rgb(47 211 180 / .16), rgb(54 182 230 / .07) 45%, transparent 70%); }
.cta h2 { color: var(--heading); }
.cta p { color: var(--muted); max-width: 54ch; }
.cta-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.cta-meta li { display: flex; align-items: center; gap: .5rem; }
.cta-meta a { text-decoration: none; font-weight: 600; color: var(--heading); }
.cta-meta a:hover { text-decoration: underline; }
:root[data-theme="dark"] .cta { background: var(--band-bg); border-color: var(--band-border); color: white; }
:root[data-theme="dark"] .cta::before { background: radial-gradient(circle, rgb(47 211 180 / .28), rgb(54 182 230 / .12) 45%, transparent 70%); }
:root[data-theme="dark"] .cta h2, :root[data-theme="dark"] .cta-meta a { color: white; }
:root[data-theme="dark"] .cta p, :root[data-theme="dark"] .cta-meta { color: #c3d4e0; }
.cta .button { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--tint); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand .logo { width: 150px; margin-bottom: .9rem; }
.footer-brand p { max-width: 34ch; }
.foot-h { margin-bottom: .9rem; font: 700 .8rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--heading); }
footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; color: var(--muted); }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-base .legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: white; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, black, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, black, transparent 75%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -180px; top: -260px; background: radial-gradient(circle, rgb(47 211 180 / .2), rgb(54 182 230 / .08) 45%, transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero-grid.single { grid-template-columns: minmax(0, 820px); }
.page-hero h1 { color: white; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.page-hero .hero-copy { margin-bottom: 1.6rem; }
.page-hero .hero-copy:last-child { margin-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .85rem; color: #93a9bb; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #4f6680; }
.crumbs a { color: #c9d9e5; text-decoration: none; }
.crumbs a:hover { color: white; text-decoration: underline; }
.glance { padding: 1.75rem; border: 1px solid rgb(255 255 255 / .12); border-radius: 1rem; background: rgb(255 255 255 / .05); backdrop-filter: blur(6px); }
.glance .eyebrow { color: var(--mint); }
.glance ul { display: grid; gap: .8rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.glance li { display: flex; gap: .65rem; align-items: flex-start; color: #e2edf4; font-weight: 500; }
.glance li .ico { color: var(--mint); margin-top: .2rem; }
.article-hero .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.article-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.article-hero .insight-meta { color: #a9bccc; }

/* ---------- Section bar ---------- */
.subnav { position: sticky; top: 72px; z-index: 9; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: .95rem .8rem; border-bottom: 2px solid transparent; color: var(--muted); font: 600 .9rem var(--display); text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--heading); }
.subnav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Section layouts ---------- */
.split-title { max-width: none; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 1rem 3rem; }
.split-title > .text-link { justify-self: end; padding: 0; }
.split-title h2 { margin-bottom: 0; }
.split-title .lead { max-width: 46ch; margin: 0; }
.split-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-band .section-head { margin-bottom: 0; }
.split-band .lead { margin-bottom: 1.75rem; }
.service-card, .industry-card, .insight { text-decoration: none; color: inherit; }
.service-card.big h3 { font-size: 1.4rem; }
.outcome { padding: .25rem 0; }
.outcome h3 { margin-bottom: .4rem; }
.outcome p { margin: 0; font-size: .95rem; }

.ai-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ai-list a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid rgb(255 255 255 / .1); border-radius: .9rem; background: rgb(255 255 255 / .04); color: white; font: 700 1.05rem var(--display); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.ai-list a:hover { background: rgb(255 255 255 / .08); border-color: rgb(95 227 198 / .4); transform: translateX(4px); }
.ai-list .icon { width: 2.6rem; height: 2.6rem; margin: 0; background: rgb(95 227 198 / .12); color: var(--mint); font-size: 1.1rem; }
.ai-list a > .ico:last-child { margin-left: auto; color: var(--mint); }

.platforms { border-block: 1px solid var(--line); background: var(--tint); }
.platforms-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.5rem; padding-block: 1.75rem; }
.platforms-inner .eyebrow { margin: 0; }
.platforms ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none; }
.platforms li { display: flex; align-items: center; gap: .5rem; font: 700 .95rem var(--display); color: var(--heading); }
.platforms .ico { color: var(--accent); font-size: 1.15rem; }

.insight { padding: 0; overflow: hidden; }
.insight-art { display: grid; place-items: center; height: 150px; background: radial-gradient(circle at 75% 20%, rgb(47 211 180 / .35), transparent 55%), radial-gradient(circle at 15% 90%, rgb(54 182 230 / .3), transparent 50%), #0f1f38; color: var(--mint); font-size: 2.6rem; }
.insight-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.insight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: .9rem; font-size: .85rem; color: var(--muted); }
.insight-meta .tag { margin: 0; }
.insight h3 { font-size: 1.15rem; }

.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin: 0; padding: 0; list-style: none; }
.criteria li { display: flex; gap: 1.1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.crit-n { font: 800 .9rem var(--display); color: var(--accent); padding-top: .15rem; }
.criteria h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.criteria p { margin: 0; font-size: .95rem; }

.band-tint { background: var(--tint); border-block: 1px solid var(--line); }
.deliver-card { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.deliver-card .ticks { margin: 0; padding: 0; border: 0; gap: .9rem; }
.deliver-card .ticks li { color: var(--ink); font-size: 1rem; }
.dark .ticks li::before { background: rgb(95 227 198 / .14); }
.dark .ticks li::after { background: var(--mint); }

.sector { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.sector .section-head { margin: 0; }
.sector h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sector .section-head .icon { margin-bottom: 1.25rem; }
.sector .text-link { padding-top: .5rem; }
.sector-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sector-cols .ticks { margin: 0; padding: 0; border: 0; }

.why-grid.four { grid-template-columns: repeat(3, 1fr); }

/* ---------- Prose (articles) ---------- */
.narrow { width: min(760px, calc(100% - 3rem)); }
.prose { font-size: 1.06rem; }
.prose h2 { margin: 2.25rem 0 .75rem; font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: -.02em; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.takeaway { margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--accent); border-radius: 0 .9rem .9rem 0; background: var(--tint); }
.takeaway p:last-child { margin: 0; font-weight: 600; color: var(--heading); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form:hover { transform: none; }
.form-title { font-size: 1.5rem; margin-bottom: 0; }
.form-note { margin: -.6rem 0 .25rem; font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label, .contact-form legend { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--heading); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: .6rem; background: var(--bg); color: var(--ink); font: 400 1rem Inter, system-ui, sans-serif; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(10 126 113 / .2); }
.contact-form fieldset { margin: 0; padding: 0; border: 0; }
.contact-form legend { margin-bottom: .6rem; }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.contact-form .check { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: .6rem; font-weight: 500; cursor: pointer; }
.contact-form .check:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.contact-form .check input { accent-color: var(--btn); width: 1rem; height: 1rem; }
.form-error { margin: 0; color: #d64545; font-weight: 600; }
.contact-form .button { justify-self: center; min-width: 12rem; margin-top: .5rem; }
.contact-side { display: grid; gap: 1.25rem; }
.contact-side .card:hover { transform: none; }
.contact-side p { display: flex; align-items: center; gap: .5rem; margin: .75rem 0 0; }
.big-link { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.15rem var(--display); color: var(--accent); text-decoration: none; word-break: break-all; }
.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
.next-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--soft); color: var(--soft-ink); font: 800 .9rem var(--display); }
.next-steps strong { color: var(--heading); font-family: var(--display); }
.next-steps span { color: var(--muted); font-size: .93rem; }

/* ---------- Hero animation ---------- */
.hero-home::before { display: none; }
.hero .grad { background-image: linear-gradient(100deg, #2fd3b4 0%, #36b6e6 40%, #7fe8d4 50%, #36b6e6 60%, #2fd3b4 100%); background-size: 250% 100%; animation: shimmer 9s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.report b { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 5.4rem; transition: background-color .3s, color .3s; }
.report .spin { display: none; width: .7rem; height: .7rem; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.report li { transition: color .3s; }
.report li[data-state="queued"] { color: #7d91a3; }
.report li[data-state="queued"] b { background: rgb(255 255 255 / .05); color: #7d91a3; }
.report li[data-state="running"] { color: white; }
.report li[data-state="running"] b { background: rgb(54 182 230 / .15); color: #8fdaf7; }
.report li[data-state="running"] .spin { display: inline-block; }
.report li[data-state="pass"] b { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.report-icon { position: relative; }
.report-icon .spin { width: 1.1rem; height: 1.1rem; border-width: 2px; color: #8fdaf7; }
.report[data-state="running"] .report-icon { background: rgb(54 182 230 / .14); }
.report[data-state="running"] .report-icon .spin { display: inline-block; }
.report[data-state="running"] .report-icon .ico { display: none; }
.report[data-state="done"] .report-icon .ico { animation: pop .4s ease-out; }
.report-eval .bar i { transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.report-eval-head strong span { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .hero .grad { animation: none; }
  .report .spin { animation: none; }
}

/* ---------- Video ---------- */
.video-frame { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: .9rem; background: #0a1220; border: 1px solid var(--line); box-shadow: var(--shadow); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Hero reel: 40% larger than its column, spilling into the margins (the hero clips
   overflow), with a soft radial fade so it melts into the background. */
.hero-video { width: 140%; margin-left: -12%; aspect-ratio: 16 / 10; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.hero-video video { -webkit-mask-image: radial-gradient(closest-side, #000 70%, rgb(0 0 0 / .6) 88%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, rgb(0 0 0 / .6) 88%, transparent 100%); }
.hero-video .video-toggle { right: 18%; bottom: 6%; }
.hero-text { position: relative; z-index: 1; }
@media (max-width: 960px) { .hero-video { width: 124%; margin: -4% 0 -2% -12%; } }
.video-toggle { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; background: rgb(8 17 31 / .7); color: white; cursor: pointer; opacity: 0; transition: opacity .2s, background-color .2s; }
.video-toggle .ico { width: .95rem; height: .95rem; }
.video-toggle .playsm { display: none; fill: currentColor; }
.video-frame.paused .video-toggle .pause { display: none; }
.video-frame.paused .video-toggle .playsm { display: block; }
.video-frame:hover .video-toggle, .video-toggle:focus-visible, .video-frame.paused .video-toggle { opacity: 1; }
.video-toggle:hover { background: rgb(8 17 31 / .9); }
@media (hover: none) { .video-toggle { opacity: 1; } }
.video-cards .video-card { padding: 0; overflow: hidden; }
.video-card .video-frame { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.video-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.video-card-body .eyebrow { margin-bottom: .5rem; font-size: .72rem; }
.video-card-body h3 { font-size: 1.1rem; }
.video-card-body p:not(.eyebrow) { margin-bottom: 0; font-size: .95rem; }
.overview-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.point-list { display: grid; gap: .75rem; }
.point-list .why { padding: 1.1rem 1.2rem; }
.sector-video { margin-top: 1.75rem; }
@media (max-width: 960px) { .overview-media { grid-template-columns: 1fr; } }

/* ---------- Security case studies ---------- */
.case dl { margin: .25rem 0 0; display: grid; gap: .8rem; }
.case dt { font: 700 .74rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case dd { margin: .2rem 0 0; color: var(--ink); font-size: .95rem; }
.case .sources { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.case .sources a { color: var(--muted); }
.case .sources a:hover { color: var(--accent); }
.examples-head { margin: 3rem 0 1.25rem; }
.examples-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .25rem; }
.examples-head p { margin: 0; }
.outcome-line { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .93rem; }
.outcome-line strong { color: var(--heading); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.insight-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- Lighter layouts (no boxes) ---------- */
.plain-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; }
.plain-cols.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
#principles .plain-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { #principles .plain-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { #principles .plain-cols { grid-template-columns: 1fr; } }
.plain-item { display: block; padding-top: 1.25rem; border-top: 2px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s; }
a.plain-item:hover { border-top-color: var(--accent); }
a.plain-item:hover h3 { color: var(--accent); }
.plain-item .icon.sm { margin-bottom: .9rem; }
.plain-item h3 { font-size: 1.08rem; margin-bottom: .35rem; transition: color .2s; }
.plain-item p { margin: 0; font-size: .95rem; }
.plain-item .insight-meta { margin-bottom: .5rem; }
.plain-stack { display: grid; gap: 1.5rem; }
.plain-stack .plain-item { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding-top: 1.25rem; }
.plain-stack .plain-item .icon.sm { grid-row: span 2; margin: 0; }
.platform-line { margin: 2.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: .95rem; }
.platform-line .eyebrow { display: inline; margin-right: 1rem; }
.split-band.top { align-items: start; }
.steps-list { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 1rem; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; }
.steps-list li::before { content: "0" counter(st); grid-row: span 2; font: 800 .9rem/1.6 var(--display); color: var(--mint); }
.steps-list strong { color: white; font-family: var(--display); }
.steps-list span { color: #b5c7d6; font-size: .95rem; }
.deliver-card .eyebrow { margin-bottom: 1rem; }
.related-line { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; padding-block: 0 clamp(2.5rem, 5vw, 3.5rem); }
.related-line .eyebrow { margin: 0; }
.related-line a { color: var(--heading); font: 700 .95rem var(--display); text-decoration: none; }
.related-line a:hover { color: var(--accent); }
.page-hero a.on-dark { color: var(--mint); }
@media (max-width: 640px) { .platform-line .eyebrow { display: block; margin-bottom: .35rem; } }

/* ---------- Headline word reveal ---------- */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em 0 .16em; margin: -.04em 0 -.16em; }
.words .w > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i) * 60ms); }
.words.in .w > span { transform: none; }
.words.reset .w > span { transition: none; }
.words .grad { background: none; animation: none; }
.words .grad .w > span { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .words .grad .w > span { background-image: linear-gradient(100deg, #2fd3b4 0%, #36b6e6 40%, #7fe8d4 50%, #36b6e6 60%, #2fd3b4 100%); background-size: 250% 100%; animation: shimmer 9s ease-in-out infinite; }

/* ---------- Service page hero video ---------- */
.page-hero-grid.with-video { grid-template-columns: 1.1fr 1fr; padding-block: clamp(2rem, 4vw, 3rem); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid rgb(255 255 255 / .08); list-style: none; color: #b9cad8; font-size: .9rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .ico { color: var(--mint); }
@media (max-width: 960px) { .page-hero-grid.with-video { grid-template-columns: 1fr; } }

/* ---------- Home hero rotator ---------- */
.hero-rotator { position: relative; min-width: 0; }
.hero-rotator .hero-video { position: relative; }
.hero-rotator .hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.hero-rotator .hero-video video.active { opacity: 1; }
.rotator-tabs { position: relative; z-index: 1; display: flex; gap: .5rem; margin-top: -2.5rem; }
.rotator-tabs button { position: relative; flex: 1; min-width: 0; padding: .75rem 0 0; border: 0; background: none; color: #8ea3b5; font: 600 .82rem/1.2 var(--display); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color .2s; }
.rotator-tabs button::before, .rotator-tabs button::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px; }
.rotator-tabs button::before { right: 0; background: rgb(255 255 255 / .12); }
.rotator-tabs button::after { width: calc(var(--p, 0) * 100%); background: var(--mint); }
.rotator-tabs button:hover, .rotator-tabs button[aria-current="true"] { color: white; }
.rotator-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--mint); font: 700 .9rem var(--display); text-decoration: none; }
.rotator-link:hover { text-decoration: underline; }
@media (max-width: 960px) { .rotator-tabs { margin-top: -1rem; } }
.rotator-tabs .t-short { display: none; }
@media (max-width: 640px) { .rotator-tabs .t-full { display: none; } .rotator-tabs .t-short { display: inline; } .rotator-tabs { gap: .35rem; } .rotator-tabs button { font-size: .68rem; letter-spacing: -.01em; } }

/* ---------- Commercial models ---------- */
.models { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.models-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .5rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.models-head h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.models-head p { margin: 0; }
@media (max-width: 820px) { .models-head { grid-template-columns: 1fr; } }

/* ---------- Icon animations ----------
   Each symbol gets a motion that fits it. Card icons play once when they scroll
   into view and loop while their card is hovered; insight tiles idle gently. */
.ico-cycle, .ico-clock { --ia: ico-spin; }
.ico-shield, .ico-cpu, .ico-target, .ico-play { --ia: ico-pop; }
.ico-chat, .ico-bot { --ia: ico-bob; }
.ico-spark { --ia: ico-twinkle; }
.ico-search, .ico-flow { --ia: ico-seek; }
.ico-code, .ico-branch, .ico-gauge { --ia: ico-nudge; }
.ico-globe { --ia: ico-turn; }
.ico-layers, .ico-device, .ico-stb, .ico-file, .ico-users { --ia: ico-lift; }
.ico-bolt { --ia: ico-flash; }
.icon .ico, .mega-ico .ico, .insight-art .ico { transform-origin: 50% 50%; }
.card:hover .icon .ico, .plain-item:hover .icon .ico, .why:hover .icon .ico, .ai-list a:hover .icon .ico, .mega-links a:hover .mega-ico .ico,
.js .reveal.in.card:hover .icon .ico, .js .reveal.in .card:hover .icon .ico, .js .reveal.in.plain-item:hover .icon .ico, .js .reveal.in .ai-list a:hover .icon .ico { animation: var(--ia, ico-pop) 1.4s ease-in-out 0s infinite; }
.insight:hover .insight-art .ico { animation: var(--ia, ico-pop) 1.6s ease-in-out infinite; }
@keyframes ico-spin { 0% { transform: rotate(0); } 55%, 100% { transform: rotate(360deg); } }
@keyframes ico-pop { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.18); } 65% { transform: scale(.95); } }
@keyframes ico-bob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4px) rotate(-7deg); } 60% { transform: translateY(0) rotate(5deg); } }
@keyframes ico-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.22) rotate(14deg); } 50% { transform: scale(.9) rotate(-6deg); } 75% { transform: scale(1.08) rotate(4deg); } }
@keyframes ico-seek { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-2px, -3px); } 75% { transform: translate(-3px, 2px); } }
@keyframes ico-nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@keyframes ico-turn { 0% { transform: rotateY(0); } 60%, 100% { transform: rotateY(360deg); } }
@keyframes ico-lift { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 70% { transform: translateY(1px); } }
@keyframes ico-flash { 0%, 100% { opacity: 1; transform: scale(1); } 30% { opacity: .35; transform: scale(1.12); } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .icon .ico, .mega-ico .ico, .insight-art .ico, .js .reveal.in .icon .ico { animation: none !important; }
}

/* ---------- Logo glint ---------- */
.logo-wrap { position: relative; display: block; --glint: .75; }
:root[data-theme="dark"] .logo-wrap { --glint: .5; }
.logo-glint { position: absolute; inset: 0; background: url(assets/keenforge-logo-glint.webp) 0 0 / 100% 100% no-repeat; opacity: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 40%, #000 50%, transparent 60%); mask-image: linear-gradient(105deg, transparent 40%, #000 50%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.logo-intro .logo { animation: logoFade .6s ease both; }
.logo-intro .logo-glint { animation: logoGlint 1.3s cubic-bezier(.4, 0, .2, 1) .5s both; }
.brand:hover .logo-glint, .brand:focus-visible .logo-glint { animation: logoGlintHover 1.1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes logoFade { from { opacity: 0; } }
@keyframes logoGlint { 0% { opacity: var(--glint); -webkit-mask-position: 100% 0; mask-position: 100% 0; } 100% { opacity: var(--glint); -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes logoGlintHover { 0% { opacity: var(--glint); -webkit-mask-position: 100% 0; mask-position: 100% 0; } 100% { opacity: var(--glint); -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .logo-intro .logo, .logo-glint { animation: none !important; } }

/* ---------- Scroll experience ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Scroll-lit statement */
.statement { position: relative; height: 160vh; }
.statement-pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.statement-eyebrow { margin-bottom: 1.25rem; }
.statement-text { margin-block: 0; max-width: 1180px; font: 700 clamp(2rem, 4.6vw, 4.4rem)/1.12 var(--display); letter-spacing: -.03em; color: var(--heading); }
/* Words brighten and rise in step with the scroll (no transition lag) */
.sw { display: inline-block; }
.js .sw { opacity: var(--o, .14); transform: translateY(var(--y, .25em)); }
.sw.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Stacking service cards */
.stack-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stack-intro { position: sticky; top: 140px; }
.stack-intro .lead { margin-bottom: 1.25rem; }
.stack { display: grid; gap: 1.75rem; padding-bottom: 2rem; }
.stack-card { position: sticky; top: calc(110px + var(--i) * 18px); display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(440px, 64vh); border: 1px solid var(--line); border-radius: 1.3rem; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); color: inherit; text-decoration: none; transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .06)); will-change: transform; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: #08111f; opacity: calc(var(--cover, 0) * .45); pointer-events: none; }
.stack-copy { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.4rem); }
.stack-n { margin: 0 0 1rem; font: 700 .8rem var(--display); letter-spacing: .14em; color: var(--muted); }
.stack-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.02em; }
.stack-copy .ticks { margin-bottom: 0; }
.stack-media { position: relative; background: #0a1628; }
.stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stack-card:hover .stack-media img { transform: scale(1.04); }

/* Expanding dark bands: start as an inset rounded panel, grow to full width */
.dark[data-expand] { clip-path: inset(0 calc(var(--inset, 0) * 5%) round calc(var(--inset, 0) * 36px)); }

@media (max-width: 960px) {
  .stack-layout { grid-template-columns: 1fr; }
  .stack-intro { position: static; }
  .stack-card { grid-template-columns: 1fr; top: calc(90px + var(--i) * 12px); }
  .stack-media { order: -1; height: 190px; }
  .statement { height: 140vh; }
}
/* Phones: no pinning (it left a lot of empty screen around the short text). The section
   takes its natural height and the words light up as the text moves up the screen. */
@media (max-width: 760px) {
  .statement { height: auto; padding-block: 4.5rem 3.5rem; }
  .statement-pin { position: static; height: auto; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sw { opacity: 1; transform: none; }
  .statement { height: auto; padding-block: 5rem; }
  .statement-pin { position: static; height: auto; }
  .stack-card { position: relative; top: 0; transform: none; }
}

/* ---------- Scroll stories (shared) ----------
   Without JS the section is static and shows its final state. The engine adds
   .is-live, pins it, and drives --p (0..1), data-step and .on/.cur. */
.story { position: relative; --p: 1; }
.story-pin { padding-block: clamp(3rem, 6vw, 5rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story-copy h2 { margin-bottom: 1.25rem; }
.story-steps { margin: 0; padding: 0; list-style: none; }
.story-steps li { display: grid; grid-template-columns: 2.4rem 1fr; padding: .8rem 0; border-top: 1px solid var(--line); transition: opacity .4s ease; }
.story-steps .sn { font: 800 .85rem/1.6 var(--display); color: var(--accent); }
.story-steps strong { display: block; font: 700 1.05rem var(--display); color: var(--heading); }
.story-steps p { margin: .2rem 0 0; font-size: .93rem; overflow: hidden; transition: max-height .45s ease, opacity .45s ease; }
.story-bar { display: none; height: 3px; margin-top: 1.25rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--grad); }
.story.is-live { height: 220vh; }
.story.is-live .story-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-block: 96px 24px; }
.story.is-live .story-pin > .wrap { width: min(1520px, calc(100% - clamp(3rem, 9vw, 9rem))); }
.story.is-live .story-bar { display: block; }
.story.is-live .story-steps li { opacity: .38; }
.story.is-live .story-steps li.on { opacity: .62; }
.story.is-live .story-steps li.cur { opacity: 1; }
.story.is-live .story-steps li.cur strong { color: var(--accent); }
.story.is-live .story-steps li p { max-height: 0; opacity: 0; }
.story.is-live .story-steps li.cur p { max-height: 6em; opacity: 1; }
.subnav ~ .story.is-live .story-pin, .subnav ~ * .story.is-live .story-pin { padding-top: 140px; }

/* Stage: a dark "screen" where each page's story plays out */
.story-stage { position: relative; aspect-ratio: 5 / 4; width: 100%; max-height: 70vh; margin-inline: auto; border: 1px solid rgb(255 255 255 / .08); border-radius: 1.3rem; overflow: hidden; background: radial-gradient(circle at 75% 20%, rgb(47 211 180 / .14), transparent 55%), #0b1729; color: #dbe6ee; font-size: clamp(.72rem, 1vw, .9rem); box-shadow: var(--shadow-lg); transition: box-shadow .5s ease; }
.story-stage .st-label { margin: 0 0 .6em; color: #8ea3b5; font: 700 .78em var(--display); letter-spacing: .12em; text-transform: uppercase; }
/* Continuous: each stage element fades/slides in proportionally to scroll (--k 0..1) */
.story.is-live .story-stage [data-s] { opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 18px)); }
.story.is-live .story-stage { transform: translateY(calc((.5 - var(--p)) * 28px)); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Manual: a lens explores the app, finds the bug, a defect is logged */
.sm-chips { position: absolute; left: 7%; top: 6%; display: flex; flex-wrap: wrap; gap: .4em; }
.sm-chips span { padding: .3em .8em; border-radius: 999px; background: rgb(95 227 198 / .14); color: #a6f0df; font: 700 .8em var(--display); }
.sm-app { position: absolute; left: 7%; top: 17%; width: 64%; height: 56%; border-radius: .9em; background: #13243d; border: 1px solid rgb(255 255 255 / .08); padding: 0 6%; }
.sm-bar { display: flex; align-items: center; gap: .35em; height: 16%; border-bottom: 1px solid rgb(255 255 255 / .07); margin: 0 -6% 6%; padding: 0 5%; }
.sm-bar i { width: .6em; height: .6em; border-radius: 50%; background: #ff6b6b; } .sm-bar i:nth-child(2) { background: #ffc857; } .sm-bar i:nth-child(3) { background: #5fe3c6; }
.sm-bar b { margin-left: .6em; font: 500 .82em ui-monospace, monospace; color: #8ea3b5; }
.sm-row { height: 13%; margin-bottom: 4%; border-radius: .5em; background: rgb(255 255 255 / .05); }
.sm-btn { position: absolute; right: -6%; bottom: 9%; width: 46%; padding: .55em 0; border-radius: .5em; background: var(--mint); color: #06201c; text-align: center; font: 700 .9em var(--display); }
.sm-box { position: absolute; right: -8%; bottom: 5%; width: 52%; height: 22%; border: 2px dashed #ff6b6b; border-radius: .7em; }
.sm-flag { position: absolute; right: -10%; bottom: 25%; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #ff6b6b; color: #fff; font: 800 1em var(--display); }
.sm-lens { position: absolute; left: calc(12% + var(--p) * 50%); top: calc(26% + var(--p) * 38%); display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .6); color: #fff; font-size: 1.3em; backdrop-filter: blur(2px); }
.sm-card { position: absolute; right: 5%; bottom: 6%; width: 50%; padding: 1em 1.1em; border: 1px solid rgb(255 107 107 / .55); border-radius: .9em; background: #102038; box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
.sm-card p { display: flex; gap: .4em; margin: 0 0 .6em; }
.sm-card b { padding: .2em .6em; border-radius: 999px; background: rgb(255 107 107 / .16); color: #ff9b9b; font: 700 .72em ui-monospace, monospace; }
.sm-card strong { display: block; color: #fff; font: 700 1em var(--display); }
.sm-card span { display: block; margin-top: .3em; color: #8ea3b5; font-size: .85em; }
.sm-card em { display: block; margin-top: .6em; color: var(--mint); font: 700 .85em var(--display); font-style: normal; }

/* Automation: red suite health -> prioritised -> pipeline + counter -> green */
.sa-health { position: absolute; left: 6%; top: 7%; width: 46%; padding: 1em 1.1em; border-radius: .9em; background: #13243d; border: 1px solid rgb(255 255 255 / .08); }
.sa-health div { display: flex; justify-content: space-between; padding: .4em 0; border-top: 1px solid rgb(255 255 255 / .06); }
.sa-health b { font: 700 1em ui-monospace, monospace; }
.sa-health .bad { color: #ff8f8f; } .sa-health .good { display: none; color: var(--mint); }
.story-automation[data-step="3"] .sa-health .bad { display: none; } .story-automation[data-step="3"] .sa-health .good { display: inline; }
.sa-list { position: absolute; right: 6%; top: 7%; width: 40%; margin: 0; padding: 0; list-style: none; display: grid; gap: .45em; }
.sa-list li { padding: .55em .8em; border-radius: .6em; background: rgb(255 255 255 / .05); font-weight: 600; }
.sa-list em { margin-right: .6em; padding: .1em .45em; border-radius: .35em; background: rgb(54 182 230 / .18); color: #8fdaf7; font: 700 .78em ui-monospace, monospace; font-style: normal; }
.sa-pipe { position: absolute; left: 6%; right: 6%; top: 52%; }
.sa-track { height: .5em; border-radius: 1em; background: rgb(255 255 255 / .08); overflow: hidden; }
.sa-track i { display: block; height: 100%; width: calc(clamp(0, (var(--p) - .5) * 4, 1) * 100%); background: var(--grad); }
.sa-pipe ul { display: flex; justify-content: space-between; margin: .6em 0 0; padding: 0; list-style: none; color: #8ea3b5; font: 700 .85em var(--display); }
.sa-pipe p { margin: 1em 0 0; color: #b5c7d6; }
.sa-pipe p b { display: block; color: #fff; font: 800 2.6em/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sa-done { position: absolute; left: 6%; right: 6%; bottom: 7%; padding: .8em 1em; border-radius: .7em; background: rgb(95 227 198 / .12); color: #a6f0df; font: 700 .9em var(--display); text-align: center; }

/* Development: wireframe -> real UI -> tests -> live */
.sd-screen { position: absolute; left: 6%; top: 7%; width: 56%; height: 64%; border-radius: .9em; background: #13243d; border: 1px solid rgb(255 255 255 / .08); }
.sd-bar { display: flex; gap: .35em; padding: .8em; } .sd-bar i { width: .6em; height: .6em; border-radius: 50%; background: rgb(255 255 255 / .2); }
.sd-wire, .sd-fill { position: absolute; border-radius: .5em; }
.sd-wire { border: 1.5px dashed rgb(255 255 255 / .25); }
.sd-fill { background: linear-gradient(135deg, rgb(54 182 230 / .45), rgb(47 211 180 / .35)); }
.b0 { left: 6%; top: 16%; width: 88%; height: 18%; } .b1 { left: 6%; top: 40%; width: 27%; height: 26%; } .b2 { left: 36.5%; top: 40%; width: 27%; height: 26%; }
.b3 { left: 67%; top: 40%; width: 27%; height: 26%; } .b4 { left: 6%; top: 72%; width: 57%; height: 18%; } .b5 { left: 67%; top: 72%; width: 27%; height: 18%; }
.sd-fill.b1, .sd-fill.b3 { background: linear-gradient(135deg, rgb(245 165 36 / .45), rgb(245 165 36 / .25)); }
.sd-tests { position: absolute; right: 5%; top: 9%; width: 30%; margin: 0; padding: 0; list-style: none; display: grid; gap: .5em; }
.sd-tests li { padding: .5em .7em; border-radius: .5em; background: rgb(95 227 198 / .1); color: #a6f0df; font-size: .82em; font-weight: 600; }
.sd-tests .sd-count { background: none; color: #b5c7d6; } .sd-count b { display: block; color: #fff; font: 800 2em/1 var(--display); }
.sd-build { position: absolute; left: 6%; right: 38%; bottom: 13%; color: #8ea3b5; font: 700 .8em var(--display); }
.sd-build div { height: .45em; margin-top: .4em; border-radius: 1em; background: rgb(255 255 255 / .08); overflow: hidden; }
.sd-build i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--grad); }
.sd-live { position: absolute; right: 5%; bottom: 9%; display: flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px; background: rgb(95 227 198 / .14); color: #a6f0df; font: 700 .9em var(--display); }
.sd-live i { width: .6em; height: .6em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 .3em rgb(95 227 198 / .25); }

/* AI: golden set -> grounded answer -> attack blocked -> score dial */
.stage-ai { background: radial-gradient(circle at 80% 20%, rgb(155 140 255 / .2), transparent 55%), #0f1530; }
.sai-golden { position: absolute; left: 6%; top: 6%; display: flex; flex-wrap: wrap; gap: .4em; }
.sai-golden span { padding: .3em .8em; border-radius: 999px; background: rgb(155 140 255 / .18); color: #d3ccff; font: 700 .8em var(--display); }
.sai-chat { position: absolute; left: 6%; top: 17%; width: 58%; display: grid; gap: .55em; }
.sai-chat p { margin: 0; padding: .6em .85em; border-radius: .9em; max-width: 92%; line-height: 1.35; }
.sai-chat .u { justify-self: end; background: rgb(54 182 230 / .22); color: #e6f4fb; }
.sai-chat .u.red { background: rgb(255 107 107 / .22); color: #ffd6d6; }
.sai-chat .a { background: rgb(255 255 255 / .07); }
.sai-chat em { display: block; margin-top: .35em; color: var(--mint); font: 700 .8em var(--display); font-style: normal; }
.sai-dial { position: absolute; right: 6%; top: 24%; width: 28%; aspect-ratio: 1; }
.sai-dial .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--mint) calc(clamp(0, (var(--p) - .72) * 3.6, 1) * 94%), rgb(255 255 255 / .08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 78%, #000 80%); mask: radial-gradient(farthest-side, transparent 78%, #000 80%); }
.sai-dial .dial-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sai-dial b { color: #fff; font: 800 2.2em/1 var(--display); } .sai-dial small { font-size: .5em; color: #8ea3b5; }
.sai-dial span { display: block; margin-top: .4em; color: var(--mint); font: 700 .72em var(--display); }

/* Security: the attack path advances, a finding is raised, the shield blocks it */
.stage-sec { transition: box-shadow .5s ease, background .5s ease; }
.story-security[data-step="2"] .stage-sec { box-shadow: 0 0 0 1px rgb(255 107 107 / .5), 0 24px 70px rgb(255 107 107 / .25); background: radial-gradient(circle at 70% 40%, rgb(255 107 107 / .2), transparent 60%), #0b1729; }
.story-security[data-step="3"] .stage-sec { box-shadow: 0 0 0 1px rgb(95 227 198 / .45), 0 24px 70px rgb(47 211 180 / .2); }
.ss-scope { position: absolute; left: 6%; top: 6%; padding: .35em .9em; border: 1px dashed rgb(255 255 255 / .3); border-radius: 999px; color: #b5c7d6; font: 700 .8em var(--display); }
.ss-path { position: absolute; left: 6%; right: 6%; top: 24%; height: 24%; }
.ss-line { position: absolute; left: 6%; right: 6%; top: 38%; height: .35em; border-radius: 1em; background: rgb(255 255 255 / .08); overflow: hidden; }
.ss-line i { display: block; height: 100%; width: calc(min(var(--p) * 1.45, 1) * 100%); background: #ff6b6b; transition: background .4s; }
.story-security[data-step="3"] .ss-line i { width: 68%; background: var(--mint); }
.ss-node { position: absolute; top: 0; display: grid; justify-items: center; gap: .4em; width: 22%; text-align: center; font: 700 .8em var(--display); color: #b5c7d6; }
.ss-node .ico { width: 2.4em; height: 2.4em; padding: .55em; border-radius: 50%; background: #13243d; border: 1px solid rgb(255 255 255 / .12); color: #dbe6ee; }
.ss-node.n0 { left: -4%; } .ss-node.n1 { left: 22%; } .ss-node.n2 { left: 48%; } .ss-node.n3 { right: -4%; }
.ss-node.n0 .ico { color: #ff8f8f; border-color: rgb(255 107 107 / .5); }
.story-security[data-step="2"] .ss-node.n3 .ico { color: #ff8f8f; border-color: #ff6b6b; box-shadow: 0 0 0 .4em rgb(255 107 107 / .2); }
.ss-shield { position: absolute; left: 67%; top: -12%; color: var(--mint); }
.ss-shield .ico { width: 3.2em; height: 3.2em; padding: .6em; border-radius: 50%; background: rgb(95 227 198 / .16); border: 1.5px solid var(--mint); }
.ss-finding { position: absolute; left: 6%; bottom: 8%; width: 54%; padding: 1em 1.1em; border: 1px solid rgb(255 107 107 / .55); border-radius: .9em; background: #102038; }
.ss-finding b { display: inline-block; margin-bottom: .5em; padding: .2em .6em; border-radius: 999px; background: rgb(255 107 107 / .16); color: #ff9b9b; font: 700 .72em ui-monospace, monospace; }
.ss-finding strong { display: block; color: #fff; font: 700 1em var(--display); } .ss-finding span { display: block; margin-top: .3em; color: #8ea3b5; font-size: .85em; }
.ss-fixed { position: absolute; right: 6%; bottom: 10%; padding: .7em 1em; border-radius: 999px; background: rgb(95 227 198 / .14); color: #a6f0df; font: 700 .9em var(--display); }

/* Services hub: readiness ring fills as milestones are reached */
.sh-ring { position: absolute; left: 50%; top: 42%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--p) * 100%), rgb(255 255 255 / .08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 80%, #000 82%); mask: radial-gradient(farthest-side, transparent 80%, #000 82%); }
.sh-center { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; }
.sh-center b { color: #fff; font: 800 3.4em/1 var(--display); font-variant-numeric: tabular-nums; } .sh-center small { color: #8ea3b5; font: 700 1.4em var(--display); }
.sh-center span { display: block; color: #8ea3b5; font: 700 .8em var(--display); letter-spacing: .1em; text-transform: uppercase; }
.sh-ms { position: absolute; left: 6%; right: 6%; bottom: 7%; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; margin: 0; padding: 0; list-style: none; }
.sh-ms li { padding: .55em .4em; border-radius: .6em; background: rgb(95 227 198 / .12); color: #a6f0df; font: 700 .78em var(--display); text-align: center; }

/* Industries: horizontal panels (desktop, JS) */
.hscroll.is-h { position: relative; }
.hscroll.is-h .h-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hscroll.is-h .h-track { display: flex; height: 100%; will-change: transform; }
.hscroll.is-h .h-panel { flex: 0 0 100vw; height: 100%; display: flex; align-items: center; padding-top: 110px; border-right: 1px solid var(--line); }
.hscroll.is-h .h-panel .section { padding-block: 1rem; }
.hscroll.is-h .sector-video { display: none; }
.h-progress { display: none; }
.hscroll.is-h .h-progress { display: block; position: absolute; left: 50%; bottom: 28px; width: min(320px, 40vw); height: 3px; transform: translateX(-50%); border-radius: 3px; background: var(--line); overflow: hidden; }
.h-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--grad); }

/* About: principles cycle one at a time */
.about-cycle { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ac-stage { display: grid; gap: 1.5rem; }
.ac-item .ac-n { display: block; margin-bottom: .5rem; font: 800 .9rem var(--display); color: var(--accent); letter-spacing: .1em; }
.ac-item .icon { margin-bottom: .75rem; }
.ac-item h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.ac-item p { margin: 0; }
.story-about.is-live { height: 380vh; }
.story-about.is-live .ac-stage { position: relative; display: block; height: 340px; }
.story-about.is-live .ac-item { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.story-about.is-live .ac-item.on { opacity: 0; transform: translateY(-40px); }
.story-about.is-live .ac-item.cur { opacity: 1; transform: none; }
.story-about.is-live .ac-item h3 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1rem; }
.story-about.is-live .ac-item p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34ch; }

@media (max-width: 960px) {
  .story-grid, .about-cycle { grid-template-columns: 1fr; gap: 1.25rem; }
  .story.is-live .story-pin { padding-block: 84px 16px; }
  .subnav ~ .story.is-live .story-pin { padding-top: 126px; }
  .story.is-live .story-copy h2 { font-size: 1.6rem; margin-bottom: .5rem; }
  .story.is-live .story-steps li:not(.cur) { display: none; }
  .story.is-live .story-steps li { border-top: 0; padding: .25rem 0; }
  .story-stage { max-height: 44vh; font-size: .7rem; }
  .story-about.is-live .ac-stage { height: 300px; }
}
@media (max-width: 640px) {
  .ss-finding { width: auto; right: 6%; bottom: 22%; }
  .ss-fixed { left: 6%; right: auto; bottom: 6%; }
  .sa-health { width: 52%; }
  .sa-list { width: 38%; font-size: .9em; }
  .sa-list li:nth-child(3) { display: none; }
  .sa-pipe { top: 58%; }
  .sa-pipe p b { font-size: 2em; }
  .sa-done { font-size: .8em; }
}

/* ---------- Scroll story feedback ---------- */
.story-meta, .scroll-cue, .h-meta { display: none; }
.story.is-live .story-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.story-count { font: 700 .85rem var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.story-count b { color: var(--accent); font-size: 1.05rem; }
.story-dots { display: flex; gap: 6px; }
.story-dots i { position: relative; width: 8px; height: 8px; border-radius: 8px; background: var(--line-strong); overflow: hidden; transition: width .35s ease, background-color .3s; }
.story-dots i.on { background: var(--accent); }
.story-dots i.cur { width: 32px; background: var(--line-strong); }
.story-dots i.cur b { position: absolute; inset: 0 auto 0 0; width: calc(var(--sp, 0) * 100%); background: var(--accent); }
.story-skip { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 .82rem var(--display); cursor: pointer; transition: color .2s, border-color .2s; }
.story-skip:hover, .story-skip:focus-visible { color: var(--accent); border-color: var(--accent); }
.story-skip .ico { width: .95em; height: .95em; transform: rotate(90deg); }
.story.is-live .story-steps li.cur strong { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes stepIn { from { opacity: .3; transform: translateX(-8px); } }
.story.is-live .scroll-cue, .hscroll.is-h .scroll-cue { display: flex; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: .35rem; color: var(--muted); font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: clamp(0, 1 - var(--p) * 30, 1); pointer-events: none; transition: opacity .3s; }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: cueWheel 1.6s ease-in-out infinite; }
@keyframes cueWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(10px); } }
.hscroll.is-h .scroll-cue { bottom: 46px; }
.hscroll.is-h .h-meta { display: flex; align-items: center; gap: 1rem; position: absolute; right: clamp(1.5rem, 4.5vw, 4.5rem); bottom: 20px; }
@media (max-width: 960px) { .story.is-live .scroll-cue { bottom: 10px; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split-head, .faq-grid { grid-template-columns: 1fr; }
  .split-head .section-head { position: static; }
  .hero-visual { max-width: 560px; }
  .eval-card { left: auto; right: -.5rem; }
  .cards-4, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { row-gap: 2.5rem; }
  .timeline li:nth-child(2)::before { display: none; }
  .creds ul { grid-template-columns: repeat(2, 1fr); }
  .creds li:nth-child(2) { border-right: 1px solid var(--line); }
  .creds li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { align-items: center; }
  .page-hero-grid, .split-band, .sector, .contact-grid { grid-template-columns: 1fr; }
  .why-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .brand .logo { width: 132px; }
  .header-cta { display: none; }
  .utility-inner > span:first-child { display: none; }
  .utility-inner { justify-content: center; }
  .cards-2, .cards-4, .timeline, .why-grid { grid-template-columns: 1fr; }
  .timeline li::before { display: none; }
  .creds li { padding: 1.1rem .9rem; }
  .creds strong { font-size: 1rem; }
  .hero-visual { padding-bottom: 0; }
  .eval-card { position: relative; right: auto; left: auto; width: 100%; margin-top: 1rem; }
  .button-lg { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .narrow { width: calc(100% - 2rem); }
  .criteria, .sector-cols, .field-row, .checks-grid, .why-grid.four { grid-template-columns: 1fr; }
  .platforms ul { gap: .75rem 1.25rem; }
  .split-title .lead { max-width: none; }
  .split-title { grid-template-columns: 1fr; }
  .split-title > .text-link { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, .js .reveal { transition: none !important; }
  .card:hover, .button:hover { transform: none; }
}

/* ---------- Calmer colour (v1.0.1) ----------
   Teal is reserved for actions (buttons, links), highlights (gradient words),
   progress and hover. Decorative elements become neutral. */
.eyebrow, .hero-eyebrow, .dark .eyebrow, .cta .eyebrow, .glance .eyebrow, .mega-feature .eyebrow, .story-copy .eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.eyebrow::before, .hero-eyebrow::before { content: ""; width: 1.4rem; height: 2px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.hero-eyebrow, .dark .eyebrow, :root[data-theme="dark"] .cta .eyebrow, .glance .eyebrow, .mega-feature .eyebrow { color: #9fb2c2; }
.hero-eyebrow::before, .dark .eyebrow::before, :root[data-theme="dark"] .cta .eyebrow::before, .glance .eyebrow::before, .mega-feature .eyebrow::before { background: var(--mint); }
.insight-meta .eyebrow::before, .platform-line .eyebrow::before, .tools-inner p::before { display: none; }

.icon, .mega-ico { background: var(--soft-muted); color: var(--heading); transition: background-color .25s, color .25s; }
.dark .icon, .ai-list .icon { background: rgb(255 255 255 / .07); color: #dbe6ee; }
.card:hover .icon, .plain-item:hover .icon, a.plain-item:hover .icon, .why:hover .icon, .mega-links a:hover .mega-ico { background: var(--icon-bg); color: var(--accent); }
.dark .card:hover .icon, .ai-list a:hover .icon { background: rgb(95 227 198 / .14); color: var(--mint); }

.ticks li::before { background: var(--soft-muted); }
.ticks li::after { background: var(--muted); }
.dark .ticks li::before { background: rgb(255 255 255 / .08); }
.dark .ticks li::after { background: #b5c7d6; }

.tag { background: var(--soft-muted); color: var(--muted); }
.dark .chips li { background: rgb(255 255 255 / .07); color: #c9d8e3; }
.platforms .ico, .assurances .ico, .hero-points .ico, .cta-meta .ico, .glance li .ico, .utility .ico { color: inherit; opacity: .7; }
.story-steps .sn { color: var(--muted); }
.story.is-live .story-steps li.cur .sn { color: var(--accent); }
.crit-n, .stack-n { color: var(--muted); }

/* ---------- Mobile booking bar (phones only) ---------- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; align-items: center; justify-content: center; min-height: 48px; border-radius: .8rem; background: var(--btn); color: #fff; font: 700 1rem var(--display); text-decoration: none; box-shadow: 0 10px 30px rgb(8 17 31 / .35); transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .mobile-cta.show { transform: none; }
  .mobile-cta:active { background: var(--btn-hover); }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

.story-stage-col { min-width: 0; }
.stage-note { margin: .6rem 0 0; text-align: center; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   All-white light theme (v1.2.0). White pages with soft teal, blue and lilac
   gradients. Light mode only: dark mode keeps the navy design above. Videos and
   story mock-ups use a frosted look, pre-rendered so browsers apply no filters.
   ========================================================================== */

/* ---------- Gradient system ---------- */
html:not([data-theme="dark"]) {
  --w-grad-text: linear-gradient(100deg, #0a7e71 0%, #1670b0 35%, #5b4fd0 68%, #c2418f 100%); /* soft spectrum */
  --w-grad-btn: linear-gradient(100deg, #0a7e71, #0d6e9c);
  --w-grad-btn-hover: linear-gradient(100deg, #086a5f, #0a5d85);
  --w-mesh:
    radial-gradient(55% 75% at 88% 8%, rgb(47 211 180 / .20), transparent 62%),
    radial-gradient(45% 65% at 6% 95%, rgb(54 182 230 / .16), transparent 60%),
    radial-gradient(38% 55% at 58% 62%, rgb(124 108 240 / .10), transparent 65%),
    linear-gradient(180deg, #ffffff, #f5f9fc);
}

/* Gradient headline accents: one teal → blue → violet → pink flow across the phrase.
   The box is sized to the text so the full spectrum shows; word-split headlines get
   --gx/--gw per word from site.js, so each word shows its slice of one gradient. */
html:not([data-theme="dark"]) .grad,
html:not([data-theme="dark"]) .hero .grad {
  width: fit-content; background-image: var(--w-grad-text); background-size: 100% 100%; animation: none;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html:not([data-theme="dark"]) .words .grad { background: none; }
html:not([data-theme="dark"]) .words .grad .w > span,
html:not([data-theme="dark"]) .hero .words .grad .w > span {
  background-image: var(--w-grad-text); background-repeat: no-repeat; animation: none;
  background-size: var(--gw, 100%) 100%; background-position: calc(var(--gx, 0px) * -1) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
html:not([data-theme="dark"]) .button,
html:not([data-theme="dark"]) .button.light { background: var(--w-grad-btn); color: #fff; border-color: transparent; }
html:not([data-theme="dark"]) .button:hover,
html:not([data-theme="dark"]) .button.light:hover { background: var(--w-grad-btn-hover); box-shadow: 0 10px 24px rgb(13 110 156 / .25); }
html:not([data-theme="dark"]) .button.ghost { background: #fff; border-color: var(--line-strong); color: var(--heading); }
html:not([data-theme="dark"]) .button.ghost:hover { background: #f3f8fa; border-color: #9fc9bf; }
html:not([data-theme="dark"]) .mobile-cta { background: var(--w-grad-btn); }

/* ---------- Heroes ---------- */
html:not([data-theme="dark"]) .hero,
html:not([data-theme="dark"]) .page-hero { background: var(--w-mesh); color: var(--ink); border-bottom: 1px solid var(--line); }
html:not([data-theme="dark"]) .hero::before,
html:not([data-theme="dark"]) .page-hero::before { display: block; background-image: linear-gradient(rgb(15 31 56 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(15 31 56 / .045) 1px, transparent 1px); }
html:not([data-theme="dark"]) .hero::after,
html:not([data-theme="dark"]) .page-hero::after { background: radial-gradient(circle, rgb(47 211 180 / .14), rgb(54 182 230 / .07) 45%, transparent 70%); }
html:not([data-theme="dark"]) .hero h1,
html:not([data-theme="dark"]) .page-hero h1 { color: var(--heading); }
html:not([data-theme="dark"]) .hero-copy { color: var(--muted); }
html:not([data-theme="dark"]) .hero-eyebrow,
html:not([data-theme="dark"]) .glance .eyebrow { color: var(--muted); }
html:not([data-theme="dark"]) .hero-eyebrow::before,
html:not([data-theme="dark"]) .glance .eyebrow::before { background: var(--accent); }
html:not([data-theme="dark"]) .assurances { border-top-color: var(--line); color: var(--muted); }
html:not([data-theme="dark"]) .assurances a:hover,
html:not([data-theme="dark"]) .assurances a:focus-visible { color: var(--accent); }
html:not([data-theme="dark"]) .hero-points { border-top-color: var(--line); color: var(--muted); }
html:not([data-theme="dark"]) .hero-points .ico { color: var(--accent); }
html:not([data-theme="dark"]) .pill { border-color: var(--line); background: #fff; color: var(--ink); }
html:not([data-theme="dark"]) .crumbs a:hover { color: var(--accent); }
html:not([data-theme="dark"]) .page-hero a.on-dark { color: var(--accent); }
html:not([data-theme="dark"]) .glance { background: rgb(255 255 255 / .75); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }

/* Rotator tabs */
html:not([data-theme="dark"]) .rotator-tabs button { color: var(--muted); }
html:not([data-theme="dark"]) .rotator-tabs button::before { background: var(--line-strong); }
html:not([data-theme="dark"]) .rotator-tabs button:hover,
html:not([data-theme="dark"]) .rotator-tabs button[aria-current="true"] { color: var(--heading); }

/* Videos: light mode plays the frosted <name>-light.* renders (filter baked in by render.mjs --light) */
html:not([data-theme="dark"]) .video-toggle { background: rgb(255 255 255 / .85); border-color: var(--line-strong); color: var(--heading); }

/* ---------- The AI band: light gradient instead of navy ---------- */
html:not([data-theme="dark"]) .dark {
  background:
    radial-gradient(50% 80% at 95% 10%, rgb(124 108 240 / .12), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgb(47 211 180 / .16), transparent 60%),
    linear-gradient(135deg, #f1fbf8, #eef5fc 55%, #f4f2ff);
  color: var(--ink); border-block: 1px solid var(--line);
}
html:not([data-theme="dark"]) .dark::before { background: radial-gradient(circle, rgb(54 182 230 / .10), transparent 65%); }
html:not([data-theme="dark"]) .dark h2,
html:not([data-theme="dark"]) .dark h3 { color: var(--heading); }
html:not([data-theme="dark"]) .dark p { color: var(--muted); }
html:not([data-theme="dark"]) .dark .eyebrow { color: var(--muted); }
html:not([data-theme="dark"]) .dark .eyebrow::before { background: var(--accent); }
html:not([data-theme="dark"]) .dark .card { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
html:not([data-theme="dark"]) .dark .card:hover { background: #fff; border-color: #9fc9bf; }
html:not([data-theme="dark"]) .dark .icon,
html:not([data-theme="dark"]) .ai-list .icon { background: var(--icon-bg); color: var(--soft-ink); }
html:not([data-theme="dark"]) .dark .ticks li::before { background: var(--soft); }
html:not([data-theme="dark"]) .dark .ticks li::after { background: var(--soft-ink); }
html:not([data-theme="dark"]) .dark .chips li { background: var(--soft-muted); color: var(--ink); }
html:not([data-theme="dark"]) .ai-list a { background: rgb(255 255 255 / .85); border-color: var(--line); color: var(--heading); box-shadow: var(--shadow); }
html:not([data-theme="dark"]) .ai-list a:hover { background: #fff; border-color: #9fc9bf; }
html:not([data-theme="dark"]) .steps-list strong { color: var(--heading); }
html:not([data-theme="dark"]) .steps-list span { color: var(--muted); }

/* ---------- Small dark accents ---------- */
html:not([data-theme="dark"]) .mega-feature { background: linear-gradient(135deg, #e6f7f2, #e8f1fb 60%, #efedff); color: var(--muted); }
html:not([data-theme="dark"]) .mega-feature strong { color: var(--heading); }
html:not([data-theme="dark"]) .mega-feature .eyebrow { color: var(--muted); }
html:not([data-theme="dark"]) .mega-feature .eyebrow::before { background: var(--accent); }
html:not([data-theme="dark"]) .num { background: var(--w-grad-btn); color: #fff; }
html:not([data-theme="dark"]) .insight-art {
  background: radial-gradient(circle at 78% 18%, rgb(47 211 180 / .35), transparent 55%), radial-gradient(circle at 12% 92%, rgb(54 182 230 / .3), transparent 50%), radial-gradient(circle at 50% 50%, rgb(124 108 240 / .12), transparent 60%), #f4f8fb;
  color: var(--accent);
}
html:not([data-theme="dark"]) .stack-card::after { background: #fff; }

/* Scroll-story stages: frosted light colours, baked by tools/light-theme/bake-stages.py */
html:not([data-theme="dark"]) .story-stage { --mint: #005c3a; --grad: linear-gradient(100deg, #007a57, #007cb3); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 24px 48px rgb(0 0 0 / .12); }
html:not([data-theme="dark"]) .sd-fill { border: 1.5px dashed rgb(0 0 0 / .25); }
html:not([data-theme="dark"]) .story-stage p { color: #89a0b8; }
html:not([data-theme="dark"]) .story-stage { border: 1px solid rgb(0 0 0 / .08); background: radial-gradient(circle at 75% 20%, rgb(0 122 87 / .14), transparent 55%), #ddebff; color: #101d26; box-shadow: var(--shadow-lg); }
html:not([data-theme="dark"]) .story-stage .st-label { color: #4b6378; }
html:not([data-theme="dark"]) .sm-chips span { background: rgb(0 92 58 / .14); color: #00331f; }
html:not([data-theme="dark"]) .sm-app { background: #cbdffc; border: 1px solid rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .sm-bar { border-bottom: 1px solid rgb(0 0 0 / .07); }
html:not([data-theme="dark"]) .sm-bar i { background: #fa5050; }
html:not([data-theme="dark"]) .sm-bar i:nth-child(2) { background: #6e2f00; }
html:not([data-theme="dark"]) .sm-bar i:nth-child(3) { background: #005c3a; }
html:not([data-theme="dark"]) .sm-bar b { color: #4b6378; }
html:not([data-theme="dark"]) .sm-row { background: rgb(0 0 0 / .05); }
html:not([data-theme="dark"]) .sm-btn { background: var(--mint); color: #ceece7; }
html:not([data-theme="dark"]) .sm-box { border: 2px dashed #fa5050; }
html:not([data-theme="dark"]) .sm-flag { background: #fa5050; color: #000000; }
html:not([data-theme="dark"]) .sm-lens { background: rgb(0 0 0 / .1); border: 2px solid rgb(0 0 0 / .6); color: #000000; }
html:not([data-theme="dark"]) .sm-card { border: 1px solid rgb(250 80 80 / .55); background: #d0e3fe; box-shadow: 0 18px 40px rgb(255 255 255 / .45); }
html:not([data-theme="dark"]) .sm-card b { background: rgb(250 80 80 / .16); color: #a93636; }
html:not([data-theme="dark"]) .sm-card strong { color: #000000; }
html:not([data-theme="dark"]) .sm-card span { color: #4b6378; }
html:not([data-theme="dark"]) .sm-card em { color: var(--mint); }
html:not([data-theme="dark"]) .sa-health { background: #cbdffc; border: 1px solid rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .sa-health div { border-top: 1px solid rgb(0 0 0 / .06); }
html:not([data-theme="dark"]) .sa-health .bad { color: #be3d3d; }
html:not([data-theme="dark"]) .sa-health .good { color: var(--mint); }
html:not([data-theme="dark"]) .sa-list li { background: rgb(0 0 0 / .05); }
html:not([data-theme="dark"]) .sa-list em { background: rgb(0 124 179 / .18); color: #004364; }
html:not([data-theme="dark"]) .sa-track { background: rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .sa-track i { background: var(--grad); }
html:not([data-theme="dark"]) .sa-pipe ul { color: #4b6378; }
html:not([data-theme="dark"]) .sa-pipe p { color: #293e4f; }
html:not([data-theme="dark"]) .sa-pipe p b { color: #000000; }
html:not([data-theme="dark"]) .sa-done { background: rgb(0 92 58 / .12); color: #00331f; }
html:not([data-theme="dark"]) .sd-screen { background: #cbdffc; border: 1px solid rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .sd-bar i { background: rgb(0 0 0 / .2); }
html:not([data-theme="dark"]) .sd-wire { border: 1.5px dashed rgb(0 0 0 / .25); }
html:not([data-theme="dark"]) .sd-fill { background: linear-gradient(135deg, #65b2db, #6ebcc3); }
html:not([data-theme="dark"]) .sd-fill.b1, html:not([data-theme="dark"]) .sd-fill.b3 { background: linear-gradient(135deg, #ba9b69, #c3b9aa); }
html:not([data-theme="dark"]) .sd-tests li { background: rgb(0 92 58 / .1); color: #00331f; }
html:not([data-theme="dark"]) .sd-tests .sd-count { background: none; color: #293e4f; }
html:not([data-theme="dark"]) .sd-count b { color: #000000; }
html:not([data-theme="dark"]) .sd-build { color: #4b6378; }
html:not([data-theme="dark"]) .sd-build div { background: rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .sd-build i { background: var(--grad); }
html:not([data-theme="dark"]) .sd-live { background: rgb(0 92 58 / .14); color: #00331f; }
html:not([data-theme="dark"]) .sd-live i { background: var(--mint); box-shadow: 0 0 0 .3em rgb(0 92 58 / .25); }
html:not([data-theme="dark"]) .stage-ai { background: radial-gradient(circle at 80% 20%, rgb(108 90 223 / .2), transparent 55%), #e2e9ff; }
html:not([data-theme="dark"]) .sai-golden span { background: rgb(108 90 223 / .18); color: #302863; }
html:not([data-theme="dark"]) .sai-chat .u { background: rgb(0 124 179 / .22); color: #001018; }
html:not([data-theme="dark"]) .sai-chat .u.red { background: rgb(250 80 80 / .22); color: #451616; }
html:not([data-theme="dark"]) .sai-chat .a { background: rgb(0 0 0 / .07); }
html:not([data-theme="dark"]) .sai-chat em { color: var(--mint); }
html:not([data-theme="dark"]) .sai-dial .ring { background: conic-gradient(var(--mint) calc(clamp(0, (var(--p) - .72) * 3.6, 1) * 94%), rgb(0 0 0 / .08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 78%, #ffffff 80%); mask: radial-gradient(farthest-side, transparent 78%, #ffffff 80%); }
html:not([data-theme="dark"]) .sai-dial b { color: #000000; }
html:not([data-theme="dark"]) .sai-dial small { color: #4b6378; }
html:not([data-theme="dark"]) .sai-dial span { color: var(--mint); }
html:not([data-theme="dark"]) .story-security[data-step="2"] .stage-sec { box-shadow: 0 0 0 1px rgb(250 80 80 / .5), 0 24px 70px rgb(250 80 80 / .25); background: radial-gradient(circle at 70% 40%, rgb(250 80 80 / .2), transparent 60%), #ddebff; }
html:not([data-theme="dark"]) .story-security[data-step="3"] .stage-sec { box-shadow: 0 0 0 1px rgb(0 92 58 / .45), 0 24px 70px rgb(0 122 87 / .2); }
html:not([data-theme="dark"]) .ss-scope { border: 1px dashed rgb(0 0 0 / .3); color: #293e4f; }
html:not([data-theme="dark"]) .ss-line { background: rgb(0 0 0 / .08); }
html:not([data-theme="dark"]) .ss-line i { background: #fa5050; }
html:not([data-theme="dark"]) .story-security[data-step="3"] .ss-line i { background: var(--mint); }
html:not([data-theme="dark"]) .ss-node { color: #293e4f; }
html:not([data-theme="dark"]) .ss-node .ico { background: #cbdffc; border: 1px solid rgb(0 0 0 / .12); color: #101d26; }
html:not([data-theme="dark"]) .ss-node.n0 .ico { color: #be3d3d; border-color: rgb(250 80 80 / .5); }
html:not([data-theme="dark"]) .story-security[data-step="2"] .ss-node.n3 .ico { color: #be3d3d; border-color: #fa5050; box-shadow: 0 0 0 .4em rgb(250 80 80 / .2); }
html:not([data-theme="dark"]) .ss-shield { color: var(--mint); }
html:not([data-theme="dark"]) .ss-shield .ico { background: rgb(0 92 58 / .16); border: 1.5px solid var(--mint); }
html:not([data-theme="dark"]) .ss-finding { border: 1px solid rgb(250 80 80 / .55); background: #d0e3fe; }
html:not([data-theme="dark"]) .ss-finding b { background: rgb(250 80 80 / .16); color: #a93636; }
html:not([data-theme="dark"]) .ss-finding strong { color: #000000; }
html:not([data-theme="dark"]) .ss-finding span { color: #4b6378; }
html:not([data-theme="dark"]) .ss-fixed { background: rgb(0 92 58 / .14); color: #00331f; }
html:not([data-theme="dark"]) .sh-ring { background: conic-gradient(var(--mint) calc(var(--p) * 100%), rgb(0 0 0 / .08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 80%, #ffffff 82%); mask: radial-gradient(farthest-side, transparent 80%, #ffffff 82%); }
html:not([data-theme="dark"]) .sh-center b { color: #000000; }
html:not([data-theme="dark"]) .sh-center small { color: #4b6378; }
html:not([data-theme="dark"]) .sh-center span { color: #4b6378; }
html:not([data-theme="dark"]) .sh-ms li { background: rgb(0 92 58 / .12); color: #00331f; }

/* Closing call to action: stronger gradient */
html:not([data-theme="dark"]) .cta {
  background:
    radial-gradient(60% 120% at 100% 100%, rgb(124 108 240 / .14), transparent 60%),
    linear-gradient(120deg, #e3f6f0, #e6f1fa 60%, #efedff);
  border-color: #d3e6ee;
}

html:not([data-theme="dark"]) .video-frame { background: #f5f9fc; }
html:not([data-theme="dark"]) .hero-video { background: transparent; }
html:not([data-theme="dark"]) .rotator-link { color: var(--accent); }
html:not([data-theme="dark"]) .ai-list a > .ico:last-child, html:not([data-theme="dark"]) .ai-list a .ico-arrow { color: var(--accent); }

/* Light-mode readability fixes on top of the baked stage colours (kept outside the baked block) */
html:not([data-theme="dark"]) .sai-chat .a { color: #4b5d70; }
html:not([data-theme="dark"]) .sa-health .bad,
html:not([data-theme="dark"]) .sm-card b,
html:not([data-theme="dark"]) .ss-finding b { color: #9c2c2c; }
html:not([data-theme="dark"]) .mega-feature .text-link { color: var(--soft-ink); }

/* "Our promise" statement: one diagonal spectrum across the whole statement, so the
   highlighted words step through teal → blue → violet → pink line by line.
   site.js sets each word's offset (--gx/--gy) and the statement size (--gw/--gh). */
html:not([data-theme="dark"]) .sw.hl {
  background-image: linear-gradient(160deg, #0a7e71 0%, #1670b0 35%, #5b4fd0 68%, #c2418f 100%);
  background-repeat: no-repeat;
  background-size: var(--gw, 100%) var(--gh, 100%);
  background-position: calc(var(--gx, 0px) * -1) calc(var(--gy, 0px) * -1);
}

/* Phones: smaller section labels so they fit on one line; if one still wraps, the dash
   stays beside the first line. Hero ticks sit in an even two-column grid. */
@media (max-width: 640px) {
  .eyebrow, .hero-eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .eyebrow, .hero-eyebrow, .dark .eyebrow, .cta .eyebrow, .glance .eyebrow, .mega-feature .eyebrow, .story-copy .eyebrow { align-items: flex-start; }
  .eyebrow::before, .hero-eyebrow::before { margin-top: calc(.7em - 1px); }
  .hero-copy { font-size: 1.05rem; }
  .assurances { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; font-size: .84rem; }
  .assurances li { align-items: flex-start; }
  .assurances li .ico { margin-top: calc((1.6em - 1.15em) / 2); }
}

/* Top nav: "Services" / "Industries" are links to their overview pages; the
   chevron button opens the menu (down = closed, up = open). An underline marks
   the current section. */
.nav-pair { display: inline-flex; align-items: center; border-radius: .45rem; transition: background-color .2s; }
.nav-pair .nav-top { padding-right: .15rem; }
.nav-pair .nav-trigger { padding: .5rem .45rem .5rem .2rem; }
.nav-pair .nav-link:hover, .nav-pair .nav-trigger:hover, .has-mega.open .nav-pair .nav-trigger { background: none; }
.nav-pair:hover, .has-mega.open .nav-pair { background: var(--tint); }
.nav-pair:hover > *, .has-mega.open .nav-pair > * { color: var(--accent); }
.nav-top[data-active] { color: var(--accent); }
.nav-top[data-active], .nav-link[aria-current="page"] { position: relative; }
.nav-top[data-active]::after, .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: -.2rem; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-pair .nav-top::after { right: .15rem; }

/* Industries overview: filterable card grid (scales to any number of industries) */
.ind-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ind-filter[hidden] { display: none; }
.ind-filter button { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .88rem/1.2 var(--display); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.ind-filter button span { margin-left: .3rem; color: var(--muted); font-weight: 500; }
.ind-filter button:hover { border-color: var(--accent); color: var(--accent); }
.ind-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ind-filter button[aria-pressed="true"] span { color: inherit; opacity: .8; }
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.ind-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ind-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 32px rgb(15 31 56 / .1); }
.ind-card[hidden] { display: none; }
.ind-card .icon { margin-bottom: .75rem; }
.ind-group { font: 700 .68rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ind-card h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.ind-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.ind-card .text-link { padding-top: .9rem; }
.ind-card:hover .text-link .ico { transform: translateX(3px); }
#sectors .platform-line { margin-top: 2.5rem; }
.ind-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ind-links a { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem .7rem .7rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); color: var(--heading); font: 600 .95rem/1.3 var(--display); text-decoration: none; transition: border-color .2s, color .2s; }
.ind-links a:hover { border-color: var(--accent); color: var(--accent); }
#more .split-title .text-link { justify-self: end; padding: 0; }
.hero-eyebrow a { color: inherit; text-decoration: none; }
.hero-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ind-grid { grid-template-columns: 1fr 1fr; } #more .split-title .text-link { justify-self: start; } }
@media (max-width: 560px) {
  .ind-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .ind-filter::-webkit-scrollbar { display: none; }
  .ind-filter button { flex-shrink: 0; }
  .ind-grid { grid-template-columns: 1fr; gap: .75rem; }
  .ind-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; padding: 1rem 1.1rem; }
  .ind-card .icon { grid-row: span 3; width: 2.6rem; height: 2.6rem; margin: 0; }
  .ind-card .text-link { display: none; }
  .ind-card h2 { font-size: 1.05rem; }
}
/* Home page: 8 industries as a compact two-column list on phones */
@media (max-width: 640px) {
  #industries .plain-cols { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  #industries .plain-item p { display: none; }
  #industries .plain-item h3 { margin-top: .7rem; font-size: 1rem; }
}
:root[data-theme="dark"] .ind-filter button[aria-pressed="true"] { color: #071422; }
