/* ==========================================================================
   Vector Worx — main stylesheet
   No framework, no build step. Dark-only by design (brand is "deep ink");
   color-scheme: dark makes native controls match. Every text/background pair
   below was checked numerically against WCAG 2.2 AA — see the token notes.
   All motion lives inside (prefers-reduced-motion: no-preference) blocks, so
   reduced-motion users get the final state, never a hidden one.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — licences in /assets/fonts/) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ----------
   Contrast (measured, WCAG relative luminance):
   --text   #E8EEF8 : 16.9 on --ink-950, 15.9 on --panel
   --muted  #A3B1C6 :  9.1 on --ink-950,  8.5 on --panel
   --faint  #8492AA :  6.3 on --ink-950,  5.9 on --panel, 5.5 on --raised
   --cyan   #22D3EE : 10.9 / 10.3   --violet #A78BFA : 7.2 / 6.8
   --rose   #FB7185 :  7.3 / 6.9    --green  #34D399 : 10.2 / 9.7
   button text #041018 on cyan 10.6, on violet end 7.4
   --field-border #56698A : 3.3 on --panel (non-text UI, needs 3:1)       */
:root {
  --ink-950: #070B14;
  --ink-900: #0A101D;
  --panel: #0C1322;
  --raised: #111A2E;
  --line: rgba(148, 163, 184, .12);
  --line-strong: rgba(148, 163, 184, .22);
  --text: #E8EEF8;
  --text-soft: #C3CEDF;
  --muted: #A3B1C6;
  --faint: #8492AA;
  --cyan: #22D3EE;
  --teal: #2DD4BF;
  --violet: #A78BFA;
  --violet-deep: #8B5CF6;
  --blue: #60A5FA;
  --rose: #FB7185;
  --green: #34D399;
  --amber: #FBBF24;
  --on-accent: #041018;
  --field-border: #56698A;
  --grad: linear-gradient(100deg, #22D3EE 0%, #5EEAD4 48%, #A78BFA 100%);
  --grad-border: linear-gradient(150deg, rgba(34, 211, 238, .55), rgba(148, 163, 184, .10) 42%, rgba(167, 139, 250, .5));

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(34, 211, 238, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
/* WCAG 2.4.11: keep focused elements clear of the fixed header during sequential (incl. Shift+Tab)
   navigation, not just anchor jumps. --header-live is the measured header height (nav.js),
   which grows when text is enlarged; --header-h is the token fallback. */
html { scroll-padding-top: calc(var(--header-live, var(--header-h)) + 12px); }
main:focus { outline: none; }
section[id], [id="main"] { scroll-margin-top: calc(var(--header-live, var(--header-h)) + 12px); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--cyan); color: var(--on-accent); font-weight: 700; text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }

.mono-k {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-right: .6em;
}
.grad-text { color: var(--cyan); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: linear-gradient(100deg, #22D3EE 0%, #7DD3FC 40%, #A78BFA 88%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.text-link {
  color: var(--cyan); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --_h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--_h); padding: 0 1.45em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .2s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s;
}
.btn--primary {
  background: var(--grad); color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: rgba(148, 163, 184, .38); color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .07); }
.btn--small { --_h: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn--wide { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn__arrow { transition: transform .25s var(--ease-out); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading[aria-disabled="true"] { opacity: .8; cursor: progress; }
.btn__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(4, 16, 24, .3); border-top-color: var(--on-accent);
}
.is-loading .btn__spinner { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .is-loading .btn__spinner { animation: spin .8s linear infinite; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; min-width: 0; }
.logo__mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo__vec { fill: none; stroke: url(#g-brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo__origin { fill: #fff; }
.logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.logo__word { line-height: 1.05; }
.logo__word-b { display: inline-block; margin-left: .38em; color: var(--muted); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; min-height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(7, 11, 20, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; container-type: inline-size; }
@container (max-width: 19.5em) {
  /* icon-only toggle when text is large or the screen is tiny; the label stays in the accessibility tree */
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle { padding: 0 13px; }
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.site-nav__list a:hover, .site-nav__list a.is-current { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-nav__list a.is-current { box-shadow: inset 0 -2px 0 var(--cyan); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font-size: .9375rem; font-weight: 600;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    /* Solid, not translucent: at 0.97 alpha the hero H1 ghosted through the open menu on phones
       (measured: max luminance 18 vs 11 behind the panel; solid gives 11 vs 11). */
    background: var(--ink-950); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav__list { flex-direction: column; gap: 2px; }
  .js .site-nav__list a { min-height: 48px; font-size: 1.0625rem; }
  /* Without JS there is no toggle: keep the CTA, drop the list (footer repeats every link). */
  html:not(.js) .site-nav__list { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* capped so a very tall window doesn't produce an acre of empty field */
  min-height: clamp(640px, 100vh, 1040px); min-height: clamp(640px, 100svh, 1040px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 clamp(88px, 12vh, 140px);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 22%, rgba(7, 11, 20, 0) 72%, var(--ink-950) 100%),
    radial-gradient(70% 85% at 12% 55%, rgba(7, 11, 20, .94) 0%, rgba(7, 11, 20, .72) 45%, rgba(7, 11, 20, 0) 80%);
}
.hero__inner > * { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(min(2.6rem, 12.5vw), 1.1rem + 5.6vw, 5.75rem); line-height: .98; letter-spacing: -.038em;
  margin: 24px 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
.hero__lede { font-size: clamp(1.0625rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--text-soft); max-width: 60ch; }
.hero__tagline {
  margin: 26px 0 34px; padding-left: 16px; border-left: 2px solid var(--cyan);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-size: .875rem; color: var(--muted); }
.hero__chips li { display: flex; align-items: baseline; gap: 10px; }
.hero__chip-k { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero__hud { display: none; }
.hero__caption { margin-top: 30px; max-width: 520px; font-family: var(--font-mono); font-size: .75rem; line-height: 1.6; color: var(--faint); }
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(7, 11, 20, .6);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.motion-toggle:hover { color: var(--text); border-color: var(--cyan); }
.motion-toggle__icon { position: relative; width: 10px; height: 10px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; border-radius: 1px; }
.motion-toggle__icon::before { left: 1px; }
.motion-toggle__icon::after { right: 1px; }
/* Paused state keys off the root class set by motion.js (the label names the action, so
   the button deliberately has no aria-pressed). Icon switches pause bars -> play triangle. */
.motion-paused .motion-toggle { color: var(--text); border-color: var(--cyan); background: rgba(34, 211, 238, .12); }
.motion-paused .motion-toggle__icon::before {
  left: 1px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.motion-paused .motion-toggle__icon::after { display: none; }
html:not(.js) .motion-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

@media (min-width: 1024px) {
  .hero__hud {
    display: block; position: absolute; right: var(--gutter); bottom: 84px; width: min(400px, 32vw);
    padding: 14px 16px; border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, .28); background: rgba(7, 11, 20, .66);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-family: var(--font-mono); font-size: .75rem; line-height: 1.5;
  }
  .hero__hud-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
  .hero__hud-row + .hero__hud-row { margin-top: 6px; }
  .hero__hud-k { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
  .hero__hud-v { color: var(--text); }
}
@media (max-width: 719.98px) {
  .hero { align-items: flex-end; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 11, 20, .35) 0%, rgba(7, 11, 20, .55) 30%, rgba(7, 11, 20, .9) 62%, var(--ink-950) 100%);
  }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding-block: clamp(72px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 800px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--wide { max-width: 1000px; }
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.label__n { display: inline-flex; align-items: center; gap: 12px; color: var(--faint); }
.label__n::after { content: ""; width: 28px; height: 1px; background: var(--grad); }
.title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(min(2rem, 9.5vw), 1.25rem + 2.9vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em;
  margin-bottom: 20px; text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
.title--xl { font-size: clamp(min(2.3rem, 10.5vw), 1.15rem + 4.1vw, 4.5rem); line-height: 1.02; }
.lede { font-size: clamp(1.0625rem, .98rem + .35vw, 1.22rem); line-height: 1.65; color: var(--muted); max-width: 64ch; }
.lede em { color: var(--text); font-style: normal; }
.gloss { margin-bottom: 14px; max-width: 64ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--text-soft); }
.illus-note { margin-top: 14px; font-family: var(--font-mono); font-size: .8125rem; color: var(--faint); }

/* decorative fine grid, faded with a mask */
.section--engineering::before, .section--rag::before, .section--security::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.section--engineering {
  background:
    radial-gradient(55% 45% at 88% 8%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(45% 40% at 0% 55%, rgba(34, 211, 238, .11), transparent 70%),
    var(--ink-950);
}
.section--rag { background: radial-gradient(60% 50% at 50% 0%, rgba(34, 211, 238, .08), transparent 70%), var(--ink-900); }
.section--analytics { background: var(--ink-900); }
.section--security { background: radial-gradient(50% 50% at 100% 100%, rgba(139, 92, 246, .1), transparent 70%), var(--ink-950); }
.section--rfi { background: radial-gradient(60% 60% at 0% 0%, rgba(34, 211, 238, .08), transparent 70%), var(--ink-900); }

/* ---------- 01 AI Engineering ---------- */
.tracks { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 960px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.track, .pillar {
  position: relative; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(17, 26, 46, .95), rgba(10, 16, 29, .95)) padding-box, var(--grad-border) border-box;
}
.track { display: flex; flex-direction: column; gap: 30px; min-width: 0; padding: clamp(18px, 2.6vw, 34px); }
.track__tag { margin-bottom: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.track__tag--violet { color: var(--violet); }
.track__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.track__text { color: var(--muted); margin-bottom: 22px; max-width: 58ch; }

.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.55; }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2322D3EE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13 12.5 3.5M7 3.5h5.5V9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks--sm li { font-size: .9375rem; }

/* product mocks — decorative (aria-hidden) but kept legible anyway */
.mock {
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: #0A1120; overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(34, 211, 238, .35);
  font-size: .8125rem; line-height: 1.45;
}
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.mock__dots { display: flex; gap: 6px; flex: none; }
.mock__dots span { width: 9px; height: 9px; border-radius: 50%; background: #2A3650; }
.mock__url {
  flex: 1; min-width: 0; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono); font-size: .72rem; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 13px; }
.bubble--user { align-self: flex-end; background: rgba(167, 139, 250, .16); border: 1px solid rgba(167, 139, 250, .38); border-bottom-right-radius: 4px; }
.bubble--ai { align-self: flex-start; background: var(--raised); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; color: var(--text); }
.bubble sup { color: var(--cyan); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; margin-left: 2px; }
.cite {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 3px 10px 3px 4px;
  border-radius: 999px; border: 1px solid rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .08);
  font-family: var(--font-mono); font-size: .7rem; color: var(--cyan);
}
.cite__n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); color: var(--on-accent); font-size: .6875rem; font-weight: 700; }
.mock__input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 9px 9px 9px 13px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--faint); }
.mock__send { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); }

.mock__app { display: grid; grid-template-columns: 52px 1fr 1.35fr; min-height: 230px; }
.mock__side { display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; border-right: 1px solid var(--line); }
.mock__side span { height: 8px; border-radius: 4px; background: rgba(148, 163, 184, .16); }
.mock__side span:first-child { background: rgba(34, 211, 238, .55); }
.mock__main { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; }
.mock__main span { height: 30px; border-radius: 8px; background: rgba(148, 163, 184, .06); border: 1px solid var(--line); }
.mock__main span:first-child { height: 14px; width: 60%; border: 0; background: rgba(148, 163, 184, .18); }
.copilot { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(34, 211, 238, .07), transparent 65%); }
.copilot__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .8rem; }
.copilot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
.copilot__ask { padding: 8px 10px; border-radius: 10px; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .34); }
.copilot__trace { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.copilot__trace li { overflow-wrap: anywhere; }
.copilot__k { color: var(--violet); margin-right: 8px; }
.copilot__ok { color: var(--green); }
.copilot__ok::before { content: "✓ "; }
@media (max-width: 559.98px) {
  .mock__app { grid-template-columns: 1fr; min-height: 0; }
  .mock__side, .mock__main { display: none; }
  .copilot { border-left: 0; }
}

.pillar { grid-column: 1 / -1; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(20px, 3.4vw, 48px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(139, 92, 246, .18), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(17, 26, 46, .97), rgba(10, 16, 29, .97)) padding-box,
    linear-gradient(150deg, rgba(167, 139, 250, .65), rgba(148, 163, 184, .1) 45%, rgba(34, 211, 238, .55)) border-box;
}
@media (min-width: 960px) { .pillar { grid-template-columns: 1.15fr 1fr; } }
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 14px; text-wrap: balance; }
.pillar__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pillar__list li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, .38); background: rgba(167, 139, 250, .08);
  font-family: var(--font-mono); font-size: .78rem; color: var(--text);
}
.pillar__models { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }

.flow { display: grid; gap: 12px; }
.flow__item {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10, 16, 29, .85);
  font-family: var(--font-mono); font-size: .95rem; color: var(--text);
}
.flow__item:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 100%; width: 1px; height: 12px; background: linear-gradient(var(--cyan), var(--violet)); }
.flow__k { color: var(--faint); font-size: .72rem; }
.flow__item--lock { border-color: rgba(167, 139, 250, .5); }
.flow__lock { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--violet); stroke-width: 1.3; }
.flow__item--hot {
  border-color: transparent;
  background: linear-gradient(#0E1A2C, #0E1A2C) padding-box, var(--grad) border-box;
  box-shadow: 0 0 44px -12px rgba(34, 211, 238, .55);
}
.flow__cites { margin-left: auto; color: var(--cyan); }

/* ---------- 02 RAG step-through ---------- */
.rag {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 26, 46, .7), rgba(10, 16, 29, .85));
  padding: clamp(14px, 2.8vw, 32px);
}
.rag__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.rag__question { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--text); font-size: .98rem; }
.rag__q-text { font-family: var(--font-display); font-weight: 500; }
.rag__play[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, .1); }
.rag__play-icon { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--cyan); }
.rag__play[aria-pressed="true"] .rag__play-icon { width: 10px; height: 10px; border: 0; border-left: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }

.rag__railwrap { position: relative; margin-bottom: 26px; }
.rag__rail { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rag__tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 2px 6px; border: 0; background: none; color: var(--muted); text-align: center;
  border-radius: 10px;
}
.rag__tab-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--panel);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--muted);
  transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s;
}
.rag__tab-l { font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.rag__tab:hover .rag__tab-n { border-color: rgba(34, 211, 238, .6); color: var(--text); }
.rag__tab.is-done .rag__tab-n { border-color: rgba(34, 211, 238, .55); color: var(--cyan); }
.rag__tab[aria-selected="true"] { color: var(--text); }
.rag__tab[aria-selected="true"] .rag__tab-n {
  border-color: transparent; background: var(--grad); color: var(--on-accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 0 26px rgba(34, 211, 238, .5);
}
.rag__progress { position: absolute; z-index: 0; left: calc(100% / 14); right: calc(100% / 14); top: 20px; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.rag__progress-fill { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease-out); }
@media (max-width: 719.98px) {
  /* labels stay in the accessibility tree — only visually hidden on narrow screens */
  .rag__tab-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rag__tab-n { width: 36px; height: 36px; }
  .rag__progress { top: 18px; }
}

.rag__panel { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (max-width: 899.98px) {
  /* single column: anchor to the top so the shared stage height's slack sits below, not around, the content */
  .rag__panel { align-content: start; align-items: start; }
  .rag__viz { min-height: 0; }
}
.rag__panel + .rag__panel { margin-top: 48px; }
@media (min-width: 900px) { .rag__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.rag__step { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.rag__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.rag__copy > p:not(.rag__step) { color: var(--muted); margin-bottom: 20px; }

/* JS on: stack panels in one grid cell so the stage never changes height */
.js .rag__stage { display: grid; }
.js .rag__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.js .rag__panel + .rag__panel { margin-top: 0; }
.js .rag__panel.is-active { visibility: visible; opacity: 1; }
.js .rag__panel[hidden] { display: grid !important; visibility: hidden; } /* still out of the a11y tree, focus order and find-in-page */
html:not(.js) .rag__toolbar, html:not(.js) .rag__railwrap, html:not(.js) .rag__nav { display: none; }

.rag__viz {
  container-type: inline-size;
  position: relative; display: grid; place-items: center; min-height: 100%;
  padding: clamp(12px, 2vw, 22px); border-radius: 16px; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    #08101E;
}
.rag__viz > svg { width: 100%; max-width: 520px; height: auto; overflow: visible; }
/* below 480 px the illustration labels would render under 11 px: show the shapes, let the step copy carry the words */
@media (max-width: 479.98px) { .rag__viz svg text { display: none; } }
/* one consistent stage shape on wide screens; aspect-ratio still grows with content (large text) */
@media (min-width: 900px) { .rag__viz { min-height: auto; aspect-ratio: 4 / 3; } } /* min-height must stay auto or aspect-ratio stops growing with content */

.rag__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.rag__count { font-family: var(--font-mono); font-size: .8125rem; color: var(--faint); }
.rag__note { margin-top: 16px; font-size: .8125rem; color: var(--faint); }

/* SVG vocabulary used by the pipeline illustrations */
.v-card { fill: #0F1A2E; stroke: rgba(148, 163, 184, .3); stroke-width: 1; }
.v-card--1 { stroke: rgba(167, 139, 250, .65); }
.v-card--2 { stroke: rgba(34, 211, 238, .8); fill: #0D1D30; }
.v-card--3 { stroke: rgba(45, 212, 191, .6); }
.v-icon { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.v-t { fill: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.v-t--hot { fill: var(--cyan); }
.v-s { fill: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.v-s--tag { fill: var(--text); font-size: 12px; }
.v-s--dim { fill: var(--faint); }
.v-tag { fill: rgba(34, 211, 238, .1); stroke: rgba(34, 211, 238, .45); }
.v-tag--violet { fill: rgba(167, 139, 250, .12); stroke: rgba(167, 139, 250, .55); }
.v-node { fill: #0F1A2E; stroke: rgba(148, 163, 184, .3); }
.v-node--hot { stroke: url(#g-brand); stroke-width: 1.6; }
.v-flow { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .85; }
.v-lines { fill: none; stroke: rgba(148, 163, 184, .32); stroke-width: 3; stroke-linecap: round; }
.v-seg--1 { fill: rgba(167, 139, 250, .1); stroke: rgba(167, 139, 250, .5); }
.v-seg--2 { fill: rgba(34, 211, 238, .12); stroke: rgba(34, 211, 238, .6); }
.v-seg--3 { fill: rgba(45, 212, 191, .08); stroke: rgba(45, 212, 191, .45); }
.v-link { fill: none; stroke: rgba(148, 163, 184, .5); stroke-width: 1.2; stroke-dasharray: 3 4; }
.v-grid circle { fill: var(--cyan); }
.v-axis { stroke: rgba(148, 163, 184, .3); }
.v-num { fill: var(--text); font-family: var(--font-mono); font-size: 12px; }
.v-bar { transform-box: fill-box; }
.v-bar--pos { fill: var(--cyan); transform-origin: left center; }
.v-bar--neg { fill: var(--violet); transform-origin: right center; }
.v-gridlines { stroke: rgba(148, 163, 184, .08); stroke-width: 1; }
.v-p1 { fill: #22D3EE; } .v-p2 { fill: #A78BFA; } .v-p3 { fill: #2DD4BF; } .v-p4 { fill: #60A5FA; } .v-p0 { fill: #475569; }
.v-lab1 { fill: #22D3EE; } .v-lab2 { fill: #A78BFA; } .v-lab3 { fill: #2DD4BF; } .v-lab4 { fill: #60A5FA; }
.v-ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.v-new { fill: #fff; }
.v-qline { fill: none; stroke: var(--cyan); stroke-width: .55; stroke-linecap: round; }
.v-qline--blocked { stroke: var(--rose); stroke-dasharray: 1.1 1.1; }
.v-hit { fill: var(--cyan); stroke: #fff; stroke-width: .45; }
.v-blocked { fill: var(--rose); }
.v-query { fill: #fff; }
.v-ring--q { stroke-width: .5; }
.v-zlabel { fill: var(--text); font-family: var(--font-mono); font-size: 3.3px; }

.rag__viz--split { grid-template-columns: 1fr; gap: 14px; align-content: center; }
.rag__viz > svg.rag__zoom { width: 100%; max-width: 340px; height: auto; margin-inline: auto; overflow: hidden; }
.hits { width: 100%; display: grid; gap: 6px; font-family: var(--font-mono); font-size: .78rem; }
.hits__row {
  display: grid; grid-template-columns: 3.2em 5.6em 1fr auto; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(15, 26, 46, .8);
}
.hits__s { color: var(--cyan); }
.hits__id { color: var(--faint); }
.hits__name { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hits__flag { font-size: .7rem; padding: 2px 8px; border-radius: 999px; color: var(--green); border: 1px solid rgba(52, 211, 153, .4); }
.hits__row--blocked { border-color: rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .06); }
.hits__row--blocked .hits__s, .hits__row--blocked .hits__name { text-decoration: line-through; text-decoration-color: rgba(251, 113, 133, .8); }
.hits__row--blocked .hits__flag { color: var(--rose); border-color: rgba(251, 113, 133, .5); }
@container (max-width: 420px) {
  .hits__row { grid-template-columns: 3em 1fr; }
  .hits__id { display: none; }
  .hits__flag { grid-column: 1 / -1; justify-self: start; }
}

.rag__viz--prompt { grid-template-columns: 1fr; gap: 14px; align-content: center; }
@container (min-width: 520px) { .rag__viz--prompt { grid-template-columns: 1fr 150px; align-items: center; } }
.prompt { display: grid; gap: 8px; }
.prompt__blk {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(15, 26, 46, .85);
  font-size: .8125rem; line-height: 1.45; color: var(--text-soft);
}
.prompt__k { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.prompt__blk--ctx { border-color: rgba(34, 211, 238, .4); }
.prompt__blk--ctx .prompt__k { color: var(--cyan); }
.prompt__blk--q { border-color: rgba(167, 139, 250, .45); }
.prompt__blk--q .prompt__k { color: var(--violet); }
.model { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.model__core {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 26px;
  border: 1px solid transparent;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, .25), rgba(10, 16, 29, .95) 70%) padding-box, var(--grad) border-box;
  box-shadow: 0 0 50px -10px rgba(34, 211, 238, .55);
}
.model__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; }
.model__opts { font-family: var(--font-mono); font-size: .6875rem; line-height: 1.6; color: var(--muted); max-width: 150px; }

.rag__viz--answer { align-content: center; }
.answer { width: 100%; max-width: 520px; display: grid; gap: 12px; }
.answer__q { justify-self: end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: rgba(167, 139, 250, .15); border: 1px solid rgba(167, 139, 250, .4); font-size: .9rem; }
.answer__a { padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--raised); border: 1px solid rgba(34, 211, 238, .4); font-size: .9375rem; line-height: 1.55; box-shadow: 0 0 40px -18px rgba(34, 211, 238, .6); }
.answer__cite {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; vertical-align: 2px;
  background: var(--cyan); color: var(--on-accent); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700;
}
.answer__src { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.answer__src li { display: flex; align-items: center; gap: 8px; }
.answer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.answer__ok { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .45); color: var(--green); }

/* ---------- 03 MLOps ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.feature-grid { display: grid; gap: 28px 32px; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid li { padding-top: 18px; border-top: 1px solid var(--line-strong); position: relative; }
.feature-grid li::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--grad); }
.feature-grid h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); font-size: .9375rem; }

.console {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(180deg, #0D1526, #090F1C);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 80px -40px rgba(139, 92, 246, .45);
  font-family: var(--font-mono);
}
.console__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--faint); }
.console__live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; }
.console__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.console__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k v" "s s"; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 480px) { .console__row { grid-template-columns: 9.5em 5em 1fr; grid-template-areas: "k v s"; align-items: center; } }
.console__k { grid-area: k; font-size: .75rem; color: var(--muted); }
.console__v { grid-area: v; font-size: .95rem; font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.spark { grid-area: s; width: 100%; height: 36px; }
.spark__line { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__line--violet { stroke: var(--violet); }
.spark__line--teal { stroke: var(--teal); }
.spark__line--amber { stroke: var(--amber); }
.console__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; font-size: .72rem; }
.console__pass { color: var(--green); }
.console__note { color: var(--faint); }

/* ---------- 04 Analytics ---------- */
.ladder { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 1180px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rung {
  container-type: inline-size;
  display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 26, 46, .8), rgba(10, 16, 29, .9));
}
.rung__k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.rung__k--violet { color: var(--violet); }
.rung__k--teal { color: var(--teal); }
.rung__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.chart { width: 100%; max-width: 460px; height: auto; margin: 12px 0 8px; overflow: visible; }
@container (max-width: 282px) { .c-t { display: none; } } /* labels would drop under 11 px */
.rung__text { color: var(--muted); font-size: .9375rem; }
.c-grid { stroke: rgba(148, 163, 184, .09); }
.c-axis { stroke: rgba(148, 163, 184, .35); }
.c-bar { fill: rgba(34, 211, 238, .32); transform-box: fill-box; transform-origin: bottom center; }
.c-bar--hot { fill: url(#g-brand-v); }
.c-t { fill: var(--faint); font-family: var(--font-mono); font-size: 12.5px; text-anchor: middle; }
.c-t--left { text-anchor: start; fill: var(--muted); }
.c-t--mid { text-anchor: middle; fill: var(--text); }
.c-t--hot { fill: var(--cyan); }
.c-band { fill: url(#g-band); }
.c-line { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.c-line--fc { stroke: var(--violet); stroke-dasharray: 5 5; }
.c-now { stroke: rgba(148, 163, 184, .45); stroke-dasharray: 2 4; }
.c-dot { fill: #fff; }
.c-branch { fill: none; stroke: rgba(148, 163, 184, .35); stroke-width: 1.5; }
.c-branch--hot { stroke: var(--cyan); stroke-width: 2.2; }
.c-root { fill: rgba(34, 211, 238, .14); stroke: var(--cyan); stroke-width: 1.5; }
.c-opt { fill: #0F1A2E; stroke: rgba(148, 163, 184, .32); }
.c-opt--hot { fill: rgba(34, 211, 238, .1); stroke: var(--cyan); }
.c-ev { fill: rgba(148, 163, 184, .32); }
.c-ev--hot { fill: var(--cyan); }

.ana-notes { display: grid; gap: 16px 40px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 760px) { .ana-notes { grid-template-columns: 1fr 1fr; } }
.ana-note { padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.ana-note h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; }
.ana-note p { color: var(--muted); }

/* ---------- 05 Custom SaaS ---------- */
.saas { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .saas { grid-template-columns: 1fr 1fr; } }
.saas__list { display: grid; gap: 14px; }
.saas__list li { display: flex; gap: 18px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(17, 26, 46, .55); }
.saas__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(167, 139, 250, .45); color: var(--violet); font-family: var(--font-mono); font-size: .85rem; }
.saas__list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.saas__list p { color: var(--muted); font-size: .9375rem; }

/* ---------- 06 Process ---------- */
.process { display: grid; gap: 0; counter-reset: none; position: relative; }
.process__step { position: relative; padding: 0 0 34px 64px; }
.process__step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: linear-gradient(var(--cyan), rgba(167, 139, 250, .4)); }
.process__step:last-child::before { display: none; }
.process__n {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid transparent; background: linear-gradient(var(--ink-950), var(--ink-950)) padding-box, var(--grad) border-box;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--cyan);
}
.process__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin: 6px 0 8px; }
.process__step p { color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .process__step { padding: 70px 0 0; }
  .process__step::before { left: 52px; right: -28px; top: 22px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(167, 139, 250, .35)); }
}

/* ---------- 07 Security ---------- */
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: rgba(12, 19, 34, .75); }
.sec__icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 18px; border-radius: 11px; border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07); fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sec h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.sec p { color: var(--muted); font-size: .9375rem; }

/* ---------- 08 RFI ---------- */
.rfi { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1024px) { .rfi { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .rfi__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.next-steps { display: grid; gap: 12px; margin: 30px 0; }
.next-steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-soft); }
.next-steps__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .45); font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); }
.rfi__fine { font-size: .875rem; color: var(--muted); }
.rfi__fine a, .check--consent a { color: var(--cyan); text-underline-offset: 3px; }
.rfi__panel {
  padding: clamp(18px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(180deg, var(--panel), #0A101D) padding-box, var(--grad-border) border-box;
}
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.notice--warn { border: 1px solid rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); color: var(--text); }
.notice--inline { margin-bottom: 12px; font-size: .9375rem; }
html:not(.js) .turnstile { display: none; } /* nothing to show without the script that loads it */

.form { display: grid; gap: 20px; }
.form__req-note { font-size: .875rem; color: var(--muted); }
.req { color: var(--rose); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field--group { margin: 0; padding: 0; border: 0; }
.field__label { font-size: .9375rem; font-weight: 600; color: var(--text); padding: 0; }
.field__input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--field-border); background: #080E1A; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--faint); opacity: 1; }
.field__input:hover { border-color: #6B7FA3; }
.field__input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.field__input[aria-invalid="true"] { border-color: var(--rose); }
.field__textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field__select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: #080E1A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23A3B1C6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
.field__select option { background: #0C1322; color: var(--text); }
.field__meta { display: flex; justify-content: space-between; gap: 16px; }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__count { flex: none; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__count.is-warn { color: var(--amber); }
.field__count.is-over { color: var(--rose); }
.field__error { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; color: var(--rose); font-weight: 500; }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--rose); color: var(--on-accent); font-size: .7rem; font-weight: 800; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check {
  position: relative; display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px;
  padding: 10px 14px 10px 12px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(8, 14, 26, .6);
  cursor: pointer; font-size: .9375rem; line-height: 1.4;
  transition: border-color .2s, background-color .2s;
}
.check:hover { border-color: var(--field-border); }
/* the real input sits exactly over the drawn box: clickable, focusable, never covering links */
.check input { position: absolute; z-index: 1; left: 12px; top: 11px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--field-border); background: #080E1A; transition: background-color .15s, border-color .15s; }
.check input:checked + .check__box { background: var(--cyan); border-color: var(--cyan); }
.check input:checked + .check__box::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check:has(input:checked) { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .07); }
.check--consent { display: flex; border: 0; background: none; padding: 4px 0; color: var(--text-soft); }
.check--consent:has(input:checked) { background: none; }
.check--consent input { left: 0; top: 5px; }
.check--consent input[aria-invalid="true"] + .check__box { border-color: var(--rose); }

.more { border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(8, 14, 26, .45); }
.more__summary {
  position: relative; display: block; min-height: 52px; padding: 14px 16px 14px 44px; cursor: pointer;
  list-style: none; font-weight: 600; line-height: 1.45; color: var(--text); border-radius: 14px;
}
.more__summary::-webkit-details-marker { display: none; }
.more__summary::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 9px; height: 9px;
  border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s;
}
.more[open] > .more__summary::before { transform: rotate(45deg); }
.more__summary:hover { background: rgba(255, 255, 255, .03); }
.more__hint { font-weight: 400; color: var(--muted); }
.more__body { display: grid; gap: 20px; padding: 4px 16px 18px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile { display: grid; gap: 8px; min-height: 65px; }
.turnstile__slot:empty { display: none; }
.turnstile__msg { font-size: .8125rem; color: var(--muted); }
.turnstile__msg.is-error { color: var(--rose); }
.turnstile__msg:empty { display: none; }

.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: .9375rem; }
.form__status.is-error { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .08); color: var(--text); }
.form__status.is-info { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .06); }

.rfi__success { display: grid; justify-items: center; gap: 14px; padding: 40px 10px; text-align: center; }
.rfi__success-mark { width: 64px; height: 64px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rfi__success-title { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; outline: none; }
.rfi__success p { color: var(--muted); max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-950); padding-top: 56px; }
.site-footer__inner { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer__line { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.site-footer__nav ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.site-footer__nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { padding-block: 22px 32px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.site-footer__legal a { color: var(--text); text-underline-offset: 3px; }
.site-footer__tm { margin-top: 6px; font-size: .8125rem; color: var(--faint); }

/* ---------- Simple document pages (privacy, 404) ---------- */
.doc { padding: calc(var(--header-h) + 64px) 0 96px; }
.doc__inner { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.doc__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); margin-bottom: 36px; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-soft); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 12px; }
.doc a { color: var(--cyan); text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.lost__code { font-family: var(--font-mono); color: var(--cyan); letter-spacing: .16em; margin-bottom: 18px; }
.lost__art { width: min(320px, 70vw); height: auto; margin-bottom: 28px; overflow: visible; }
.lost__art .v-axis { stroke: rgba(148, 163, 184, .25); }
.lost__vec { fill: none; stroke: url(#g-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lost__miss { fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-dasharray: 4 5; }
.lost .hero__ctas { margin-top: 30px; }

/* ==========================================================================
   Motion — only for people who have not asked for less of it.
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-40px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); } 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .eyebrow__pulse { animation: halo 2s ease-out infinite; }
  .console__dot { animation: pulse 2s ease-in-out infinite; }

  /* scroll reveal: only once JS has armed the observer, never on the hero */
  .reveal-ready .reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }

  .js .rag__panel { transition: opacity .35s ease, visibility 0s linear .35s; }
  .js .rag__panel.is-active { transition: opacity .35s ease, visibility 0s; }

  .rag__panel.is-active .v-in { animation: fadeUp .6s var(--ease-out) both; }
  .rag__panel.is-active .v-slide { animation: slideIn .7s var(--ease-out) both; }
  .rag__panel.is-active .v-drop { animation: drop .8s var(--ease-out) both; }
  .rag__panel.is-active .v-draw { stroke-dasharray: 20; --len: 20; animation: draw .7s ease-out both; }
  .rag__panel.is-active .v-bar { animation: growX .8s var(--ease-out) both; animation-delay: .5s; }
  .rag__panel.is-active .v-flow { animation: dash 1s linear infinite; }
  .rag__panel.is-active .v-ring { animation: ring 1.8s ease-out infinite; }
  .rag__panel.is-active .v-grid circle { animation: pulse 1.4s ease-in-out infinite; }
  .v-grid circle:nth-child(3n+1) { animation-delay: .2s; }
  .v-grid circle:nth-child(3n+2) { animation-delay: .5s; }
  .v-grid circle:nth-child(4n) { animation-delay: .8s; }
  .v-d1 { animation-delay: .05s !important; }
  .v-d2 { animation-delay: .25s !important; }
  .v-d3 { animation-delay: .45s !important; }
  .v-d4 { animation-delay: .65s !important; }

  .reveal-ready .rung:not(.is-visible) .c-bar { transform: scaleY(0); }
  .rung.is-visible .c-bar { animation: growY .9s var(--ease-out) both; }
  .rung.is-visible .c-bar:nth-of-type(2) { animation-delay: .06s; }
  .rung.is-visible .c-bar:nth-of-type(3) { animation-delay: .12s; }
  .rung.is-visible .c-bar:nth-of-type(4) { animation-delay: .18s; }
  .rung.is-visible .c-bar:nth-of-type(5) { animation-delay: .24s; }
  .rung.is-visible .c-bar:nth-of-type(6) { animation-delay: .30s; }
  .rung.is-visible .c-bar:nth-of-type(7) { animation-delay: .36s; }
  .rung.is-visible .c-bar:nth-of-type(8) { animation-delay: .42s; }
  .reveal-ready .rung .c-draw { stroke-dasharray: 400; }
  .reveal-ready .rung:not(.is-visible) .c-draw { stroke-dashoffset: 400; }
  .rung.is-visible .c-draw { animation: draw 1.4s ease-out .2s both; }
  .reveal-ready .rung:not(.is-visible) .c-fade { opacity: 0; }
  .rung.is-visible .c-fade, .rung.is-visible .c-band { animation: fadeUp .8s ease-out .9s both; }
  .reveal-ready .rung:not(.is-visible) .c-band { opacity: 0; }

  .rfi__success:not([hidden]) .rfi__success-mark path { stroke-dasharray: 40; animation: draw .6s ease-out .15s both; --len: 40; }
}

/* User-controlled pause (WCAG 2.2.2) — freezes every decorative loop in place. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* ---------- Windows High Contrast / forced colours ---------- */
@media (forced-colors: active) {
  .grad-text { background: none; color: CanvasText; }
  .btn--primary { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .check input { position: static; opacity: 1; width: 20px; height: 20px; }
  .check__box { display: none; }
  .hero__field { display: none; }
  .rag__tab[aria-selected="true"] .rag__tab-n { border: 2px solid Highlight; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__field, .hero__scrim, .hero__hud, .motion-toggle, .rag__toolbar, .rag__rail, .rag__nav, .rfi__panel { display: none !important; }
  body { background: #fff; color: #000; }
  .js .rag__panel { visibility: visible; opacity: 1; grid-area: auto; }
}
