/* ==========================================================================
   Aderas — site styles
   Tokens → base → layout → components → page sections → motion
   ========================================================================== */

:root {
  --ink: #070a1f;
  --ink-2: #0f1433;
  --ink-3: #1a2050;
  --paper: #fafaf7;
  --paper-2: #f1f1ec;
  --white: #ffffff;
  --blue: #1d5be0;
  --blue-2: #3f77f0;
  --blue-deep: #0f3db0;
  --yellow: #f3c24f;
  --teal: #2c6b66;

  --text: #0b0e24;
  --muted: rgba(11, 14, 36, 0.64);
  --line: rgba(11, 14, 36, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --muted-light: rgba(255, 255, 255, 0.66);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(3.1rem, 9.2vw, 9rem);
  --fs-h1: clamp(2.6rem, 6.4vw, 6rem);
  --fs-h2: clamp(2rem, 4.4vw, 4rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.15rem, 1.6vw, 1.45rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 12vw, 176px);
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 50;
  --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--white); }

.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; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 500; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1040px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--blue); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--blue-2); }
.eyebrow--muted { color: var(--muted); }
.display { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 0.92; }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; line-height: 0.95; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; line-height: 1; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.prose { max-width: 66ch; color: var(--muted); }
.prose p { margin-bottom: 1.15em; }
.prose strong { color: var(--text); font-weight: 500; }
.on-dark .prose, .on-dark .lead { color: var(--muted-light); }
.on-dark .prose strong { color: var(--white); }
.accent { color: var(--blue); }
.on-dark .accent { color: var(--blue-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Surfaces ---------- */
.on-dark { background: var(--ink); color: var(--white); }
.on-blue { background: var(--blue); color: var(--white); }
.on-paper2 { background: var(--paper-2); }
.section { padding-block: var(--section) calc(var(--section) * 1.08); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6) calc(var(--section) * 0.7); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--white); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; background: rgba(127, 127, 127, 0.1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 0.85em; color: var(--blue); }
.on-dark .link-arrow:hover { color: var(--blue-2); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: var(--z-header);
  display: flex; justify-content: center; padding-inline: 12px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  background: rgba(7, 10, 31, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  color: var(--white);
  border-radius: 999px; padding: 7px 7px 7px 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -20px rgba(7, 10, 31, 0.6);
  transition: transform 0.5s var(--ease);
}
.site-header.is-hidden .nav { transform: translateY(-140%); }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a {
  font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 8px 4px 8px 12px; border-radius: 999px;
  opacity: 0.86; transition: opacity 0.2s;
}
.nav__item:not(.has-menu) > a { padding-right: 12px; }
.nav__item > a:hover, .nav__item > a[aria-current] { opacity: 1; }
.nav__item > a[aria-current] { text-decoration: underline; text-decoration-color: var(--blue-2); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__toggle { width: 22px; height: 28px; display: grid; place-items: center; color: var(--blue-2); font-size: 0.95rem; transition: transform 0.3s var(--ease); }
.nav__item.is-open .nav__toggle, .nav__item:hover .nav__toggle { transform: rotate(45deg); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 240px;
  display: grid; gap: 2px; padding: 10px;
  background: rgba(7, 10, 31, 0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -20px rgba(7, 10, 31, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}
.nav__menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__menu--wide { min-width: 360px; }
.nav__menu a {
  padding: 9px 12px; border-radius: 10px; font-size: 0.88rem; text-decoration: none; color: var(--muted-light);
  transition: background 0.2s, color 0.2s;
}
.nav__menu a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav__cta {
  background: var(--white); color: var(--ink); text-decoration: none;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.nav__cta:hover, .nav__cta[aria-current] { background: var(--yellow); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); place-items: center; }
.nav__burger-lines, .nav__burger-lines::before, .nav__burger-lines::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.nav__burger-lines::before, .nav__burger-lines::after { content: ""; position: absolute; left: 0; }
.nav__burger-lines::before { top: -5px; }
.nav__burger-lines::after { top: 5px; }
.nav__burger[aria-expanded="true"] .nav__burger-lines { background: transparent; }
.nav__burger[aria-expanded="true"] .nav__burger-lines::before { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-lines::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: -1;
  background: var(--ink); color: var(--white);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: block; font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25;
  text-decoration: none; padding-block: 4px;
}
.mobile-menu li a:hover { color: var(--blue-2); }
.mobile-menu__meta { display: grid; gap: 6px; font-family: var(--sans); font-size: 0.9rem; color: var(--muted-light); }
.mobile-menu__meta a { text-decoration: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .nav { gap: 14px; padding-left: 20px; }
}

/* ---------- Decorative rings ---------- */
.rings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rings span {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}
.rings--blue span { border-color: rgba(63, 119, 240, 0.35); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--ink); color: var(--white);
  padding: 140px var(--gutter) 120px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 45% at 50% 50%, rgba(29, 91, 224, 0.22), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(44, 107, 102, 0.18), transparent 60%),
    var(--ink);
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.7) hue-rotate(-10deg); }
.hero__radar { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.hero__content { position: relative; }
/* Soft dark pool behind the copy so text stays legible over the radar */
.hero__content::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 10, 31, 0.72), transparent);
}
.hero__hud {
  position: absolute; inset: auto var(--gutter) 30px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(130, 160, 255, 0.55);
  pointer-events: none;
}
@media (max-width: 640px) { .hero__hud { display: none; } }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.8rem;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2);
  padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(63, 119, 240, 0.35); background: rgba(29, 91, 224, 0.08);
}
.hero__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(243, 194, 79, 0.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(243, 194, 79, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(243, 194, 79, 0); } }
.hero__title { font-size: clamp(3.2rem, 10.5vw, 10rem); letter-spacing: -0.055em; line-height: 0.9; }
.hero__title em { font-style: normal; color: var(--blue-2); }
.hero__sub { margin: 2rem auto 2.4rem; max-width: 46ch; font-size: var(--fs-lead); color: var(--muted-light); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.hero__link { color: var(--white); font-size: 0.95rem; border-color: rgba(255, 255, 255, 0.35); }
.hero__link:hover { color: var(--blue-2); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted-light); letter-spacing: 0.08em;
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--blue-2), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Circle wipe (scroll-driven) ---------- */
.wipe { position: relative; height: 240vh; background: var(--ink); --p: 0; }
.wipe__sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.wipe__ring, .wipe__disc {
  position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--s, 0));
  will-change: transform;
}
.wipe__ring { background: var(--blue); --s: clamp(0.04, calc(var(--p) * 1.6), 1); }
.wipe__disc { background: var(--paper); --s: clamp(0, calc((var(--p) - 0.18) * 1.5), 1); }
.wipe__text {
  position: relative; z-index: 2; text-align: center; color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 5.4rem); letter-spacing: -0.04em; line-height: 1;
  opacity: clamp(0, calc((var(--p) - 0.42) * 4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - 0.42) * 4), 1)) * 30px));
  padding-inline: var(--gutter);
}
.wipe__text small { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--blue); margin-bottom: 1.4rem; }
.wipe__line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 22vh; background: var(--blue); opacity: clamp(0, calc((var(--p) - 0.6) * 4), 1); }

/* ---------- Intro / statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.statement__title { position: sticky; top: 120px; }
.statement__body .lead { max-width: none; color: var(--text); font-size: clamp(1.3rem, 2.1vw, 1.85rem); letter-spacing: -0.015em; line-height: 1.4; }
.statement__call {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline;
}
.statement__call span { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.statement__call a { font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; text-decoration: none; font-weight: 500; }
.statement__call a:hover { color: var(--blue); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: 0.45em; color: var(--blue); vertical-align: super; margin-left: 2px; }
.stat__label { margin-top: 12px; font-size: 0.92rem; color: var(--muted); max-width: 22ch; line-height: 1.4; }
@media (max-width: 820px) {
  .statement { grid-template-columns: 1fr; }
  .statement__title { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- Services scroller ---------- */
.svc { position: relative; }
.svc__guide { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.svc__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 96px); position: relative; }
.svc__head .h2 { max-width: 15ch; }
.svc__head p { max-width: 44ch; color: var(--muted); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); position: relative; }
.svc__nav { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.svc__nav p { font-size: 0.9rem; font-weight: 500; margin-bottom: 1.2rem; }
.svc__nav ol { list-style: none; counter-reset: s; display: grid; gap: 2px; }
.svc__nav li { counter-increment: s; }
.svc__nav a {
  display: flex; gap: 12px; align-items: baseline; text-decoration: none;
  font-size: clamp(1.25rem, 2.1vw, 1.95rem); letter-spacing: -0.03em; line-height: 1.15; font-weight: 500;
  color: rgba(11, 14, 36, 0.32); transition: color 0.35s var(--ease);
}
.svc__nav a::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0; color: var(--blue); opacity: 0.6; transform: translateY(-0.9em); }
.svc__nav a:hover { color: rgba(11, 14, 36, 0.6); }
.svc__nav a.is-active { color: var(--text); }
.svc__nav a.is-active::before { opacity: 1; }
.svc__stage { position: sticky; top: 0; height: 100dvh; display: grid; place-items: center; }
.svc__shapes { position: relative; width: min(100%, 300px); aspect-ratio: 1; background: var(--paper); }
.svc__shapes svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(0.82) rotate(-12deg);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.svc__shapes svg.is-active { opacity: 1; transform: none; }
.svc__panels { display: grid; }
.svc__panel { min-height: 92dvh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.svc__panel h3 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 1rem; }
.svc__panel p { font-size: var(--fs-lead); color: var(--blue); line-height: 1.4; letter-spacing: -0.01em; max-width: 26ch; margin-bottom: 1.8rem; }
.svc__panel .svc__mobile-shape { display: none; }
@media (max-width: 900px) {
  .svc__guide, .svc__nav, .svc__stage { display: none; }
  .svc__grid { grid-template-columns: 1fr; }
  .svc__panel { min-height: 0; padding-block: 36px; border-top: 1px solid var(--line); }
  .svc__panel .svc__mobile-shape { display: block; width: 120px; height: 120px; margin-bottom: 20px; }
}

/* ---------- Dark feature ---------- */
.feature-dark { overflow: hidden; }
.feature-dark__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: end; position: relative; }
.feature-dark__title { font-size: clamp(3rem, 8vw, 7.6rem); letter-spacing: -0.05em; line-height: 0.92; }
.feature-dark__aside .lead { color: var(--muted-light); max-width: 36ch; margin-bottom: 2rem; }
.feature-dark__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-dark__media { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; position: relative; }
.feature-dark__media figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.feature-dark__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1.2s var(--ease); }
.feature-dark__media figure:hover img { transform: scale(1.04); }
.feature-dark__media figure:last-child img { aspect-ratio: auto; }
.case-links { display: grid; align-content: end; gap: 0; background: var(--ink-2); border-radius: var(--radius-lg); padding: 28px; box-shadow: inset 0 0 0 1px var(--line-light); }
.case-links .eyebrow { margin-bottom: 1rem; }
.case-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-top: 1px solid var(--line-light); text-decoration: none;
  font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 500; transition: color 0.2s, padding 0.35s var(--ease);
}
.case-links a:hover { color: var(--yellow); padding-left: 8px; }
.case-links a span { font-family: var(--sans); font-size: 0.72rem; color: var(--muted-light); }
.badge-aws { display: inline-flex; margin-bottom: 1.6rem; }
.badge-aws img { height: 54px; width: auto; }
@media (max-width: 900px) {
  .feature-dark__grid, .feature-dark__media { grid-template-columns: 1fr; }
}

/* ---------- Stories (sectors) ---------- */
.stories { position: relative; height: 320vh; background: var(--ink); color: var(--white); }
.stories__sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; isolation: isolate; }
.stories__bg { position: absolute; inset: 0; z-index: -2; }
.stories__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 0.9s var(--ease), transform 2.4s var(--ease);
}
.stories__bg img.is-active { opacity: 0.55; transform: scale(1); }
.stories__sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 10, 31, 0.85), rgba(7, 10, 31, 0.35) 70%), linear-gradient(0deg, rgba(7, 10, 31, 0.7), transparent 40%); }
.stories__inner { height: 100%; display: flex; flex-direction: column; padding-top: 110px; }
.stories__label { font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: auto; }
.stories__label span { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--blue-2); margin-bottom: 14px; }
.stories__list { list-style: none; }
.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  border-top: 1px solid var(--line-light); padding-block: clamp(14px, 2.4vh, 26px);
}
.story__name {
  font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; text-align: left;
  color: rgba(255, 255, 255, 0.28); transition: color 0.5s var(--ease);
}
.story__detail {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.story__detail p { font-size: 1.02rem; line-height: 1.45; color: var(--muted-light); max-width: 46ch; margin: 0; }
.story.is-active .story__name { color: var(--white); }
.story.is-active .story__detail { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__detail { grid-template-columns: 1fr; gap: 14px; max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s; }
  .story.is-active .story__detail { max-height: 260px; padding-top: 10px; }
  .story__detail .btn { justify-self: start; }
}

/* ---------- Partners marquee ---------- */
.partners__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.partners__head .prose { max-width: 56ch; }
.marquee { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius-lg); margin-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; width: clamp(180px, 19vw, 260px); height: 150px; display: grid; place-items: center; padding: 30px; border-right: 1px solid var(--line-light); }
.marquee__item img { max-height: 50px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.78; transition: opacity 0.3s, transform 0.4s var(--ease); }
.marquee__item:hover img { opacity: 1; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners__note { margin-top: 28px; font-size: 0.95rem; color: var(--muted); }
.partners__note a { color: var(--text); font-weight: 500; }
@media (max-width: 820px) { .partners__head { grid-template-columns: 1fr; } }

/* ---------- Clients (blue) ---------- */
.clients { overflow: hidden; }
.clients__guides span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.18); }
.clients__intro { text-align: center; position: relative; max-width: 900px; margin-inline: auto; }
.clients__intro .h1 { color: #d9e4ff; margin-bottom: 2rem; }
.clients__intro .lead { margin-inline: auto; color: rgba(255, 255, 255, 0.86); max-width: 42ch; margin-bottom: 1.6rem; }
.clients__intro .prose { margin-inline: auto; color: rgba(255, 255, 255, 0.74); font-size: 0.98rem; max-width: 60ch; }
.clients__photo { position: absolute; border-radius: var(--radius); overflow: hidden; width: clamp(140px, 16vw, 250px); box-shadow: 0 30px 60px -30px rgba(7, 20, 80, 0.7); }
.clients__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.clients__photo--a { left: var(--gutter); top: 14%; }
.clients__photo--b { right: var(--gutter); top: 42%; }
.clients__photo--c { left: calc(var(--gutter) + 4vw); top: 64%; }
@media (max-width: 1100px) { .clients__photo { display: none; } }
.logo-wall { margin-top: clamp(64px, 8vw, 110px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.logo-wall li { list-style: none; width: clamp(96px, 11vw, 136px); aspect-ratio: 1; background: var(--white); border-radius: 22px; display: grid; place-items: center; padding: 18px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.logo-wall li:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 18px 40px -20px rgba(7, 20, 80, 0.8); }
.logo-wall img { max-height: 76px; width: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); position: relative; overflow: hidden; padding-top: var(--section); }
.footer__cta { padding-bottom: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line-light); }
.footer__headline { font-size: var(--fs-h1); letter-spacing: -0.045em; line-height: 0.95; max-width: 13ch; }
.footer__sub { margin-top: 1.4rem; color: var(--muted-light); font-size: var(--fs-lead); }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 2.4rem; }
.footer__bigmail { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line-light); transition: color 0.2s, border-color 0.2s; }
.footer__bigmail:hover { color: var(--yellow); border-color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-block: clamp(56px, 7vw, 90px); }
.footer__brand img { height: 30px; width: auto; margin-bottom: 1.4rem; }
.footer__brand p { color: var(--muted-light); font-size: 0.93rem; max-width: 40ch; }
.footer__certs { display: flex; gap: 10px; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.footer__certs img { height: 40px; width: auto; margin: 0; }
/* CMMI art is white on transparent, so only the ISO art sits on a white plate */
.footer__certs .footer__cert-plate { height: 52px; background: var(--white); border-radius: 10px; padding: 6px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 0.93rem; }
.footer__col h3 { font-family: var(--sans); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.02em; color: var(--blue-2); margin-bottom: 8px; }
.footer__col a, .footer__col span, .footer__col address { color: var(--muted-light); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__col-gap { margin-top: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line-light); font-size: 0.82rem; color: var(--muted-light); }
.footer__social { display: flex; gap: 22px; list-style: none; }
.footer__social a { text-decoration: none; font-family: var(--sans); font-size: 0.74rem; }
.footer__social a:hover { color: var(--yellow); }
.footer__wordmark {
  font-size: clamp(6rem, 27vw, 26rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.72;
  text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  margin-bottom: -0.06em; user-select: none;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate;
  padding: clamp(150px, 20vw, 230px) 0 clamp(64px, 8vw, 110px);
}
.page-hero .rings { z-index: -1; }
.page-hero .rings span { left: 82%; top: 30%; }
.page-hero__crumbs { font-family: var(--sans); font-size: 0.76rem; color: var(--muted-light); margin-bottom: 2rem; display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero__crumbs a { text-decoration: none; }
.page-hero__crumbs a:hover { color: var(--white); }
.page-hero__title { font-size: clamp(4rem, 15vw, 14rem); letter-spacing: -0.06em; line-height: 0.85; }
.page-hero__title .dot { color: var(--blue-2); }
.page-hero__title--sm { font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.05em; max-width: 16ch; }
.page-hero__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-hero__lead { color: var(--muted-light); font-size: var(--fs-lead); line-height: 1.45; max-width: 38ch; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 20%, rgba(7, 10, 31, 0.4)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.chips a {
  font-size: 0.86rem; text-decoration: none; padding: 9px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-light); color: var(--muted-light); transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.chips a:hover { background: var(--white); color: var(--ink); box-shadow: none; }
@media (max-width: 820px) { .page-hero__row { grid-template-columns: 1fr; } }

/* Split block */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--top { align-items: start; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; }
.split__media--wide img { aspect-ratio: 16 / 11; }
.split__tag { position: absolute; left: 16px; bottom: 16px; background: rgba(7, 10, 31, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white); padding: 8px 14px; border-radius: 999px; font-family: var(--sans); font-size: 0.72rem; }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .prose { max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.back-top { display: inline-flex; margin-top: 2.4rem; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); text-decoration: none; gap: 8px; }
.back-top:hover { color: var(--blue); }

/* Numbered row list (capability index etc.) */
.rows { list-style: none; border-top: 1px solid var(--line); counter-reset: r; }
.rows > li { counter-increment: r; border-bottom: 1px solid var(--line); }
.rows a.row, .rows .row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr) 40px; gap: 24px; align-items: center;
  padding: 30px 0; text-decoration: none; transition: padding 0.4s var(--ease), background 0.3s;
}
.rows .row::before { content: counter(r, decimal-leading-zero); font-family: var(--sans); font-size: 0.76rem; color: var(--blue); }
.rows .row h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; }
.rows .row p { color: var(--muted); margin: 0; max-width: 52ch; }
.rows .row__arrow { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.rows a.row:hover { padding-left: 14px; }
.rows--compact .row { grid-template-columns: 70px minmax(0, 1fr); padding: 18px 0; }
.rows--compact .row h3 { font-size: 1.3rem; }
.rows a.row:hover .row__arrow { background: var(--blue); color: var(--white); box-shadow: none; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .rows a.row, .rows .row { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .rows .row p { grid-column: 2 / 3; }
  .rows .row__arrow { grid-row: 1; grid-column: 3; }
}

/* Sector cards (zig-zag tiles) */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px); }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; margin-top: 80px; }
.tile:nth-child(3) { grid-column: 3 / span 8; min-height: 440px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 10, 31, 0.92), rgba(7, 10, 31, 0.1) 70%); }
.tile:hover img { transform: scale(1.05); }
.tile h3 { font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -0.045em; margin-bottom: 0.6rem; }
.tile p { color: var(--muted-light); max-width: 40ch; margin-bottom: 1.4rem; }
.tile .link-arrow { align-self: flex-start; }
@media (max-width: 900px) { .tile:nth-child(n) { grid-column: 1 / -1; margin-top: 0; min-height: 420px; } }

/* Index layout (sticky side index + content) */
.index-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.side-index { position: sticky; top: 110px; }
.side-index p { font-family: var(--sans); font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.side-index ol { list-style: none; counter-reset: i; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.side-index li { counter-increment: i; }
.side-index a {
  display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; font-size: 0.93rem; color: var(--muted); transition: color 0.25s, border-color 0.25s;
}
.side-index a::before { content: counter(i, decimal-leading-zero); font-family: var(--sans); font-size: 0.68rem; padding-top: 0.25em; opacity: 0.7; }
.side-index a:hover { color: var(--text); }
.side-index a.is-active { color: var(--text); border-left-color: var(--blue); font-weight: 500; }
.index-content > section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.index-content > section:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 960px) {
  .index-layout { grid-template-columns: 1fr; }
  .side-index { position: static; display: none; }
}

.cap-head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.8rem; }
.cap-head__num { font-family: var(--sans); font-size: 0.78rem; color: var(--blue); }
.cap-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 2rem; max-width: 18ch; }
.cap-figure { margin: 2.4rem 0; border-radius: var(--radius-lg); overflow: hidden; }
.cap-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.cap-sub { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; margin: 2.6rem 0 0.9rem; }

/* Bullet lists */
.ticks { list-style: none; display: grid; gap: 0; margin: 1.4rem 0 2rem; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 14px; height: 7px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg) translateY(-50%); }
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.on-dark .ticks, .on-dark .ticks li { border-color: var(--line-light); }
.on-dark .ticks li::before { border-color: var(--blue-2); }
@media (max-width: 680px) { .ticks--cols { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.4rem 0 2rem; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; }
.on-dark .tags li { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-light); }

/* Callout panel */
.panel { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: inset 0 0 0 1px var(--line); }
.panel--ink { background: var(--ink); color: var(--white); box-shadow: none; }
.panel--blue { background: var(--blue); color: var(--white); box-shadow: none; }
.panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 0.8rem; }
.doc-links { display: grid; gap: 0; margin-top: 1rem; }
.doc-links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid currentColor; border-color: var(--line); text-decoration: none; font-weight: 500; transition: color 0.2s, padding 0.35s var(--ease); }
.panel--ink .doc-links a, .panel--blue .doc-links a { border-color: var(--line-light); }
.doc-links a:hover { color: var(--blue); padding-left: 6px; }
.panel--ink .doc-links a:hover { color: var(--yellow); }
.doc-links a span { font-family: var(--sans); font-size: 0.7rem; opacity: 0.6; white-space: nowrap; }

/* Quote */
.quote { margin: 0; position: relative; }
.quote blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.22; font-weight: 400; text-wrap: pretty; }
.quote blockquote::before { content: "“"; display: block; font-size: 4em; line-height: 0.6; color: var(--blue); height: 0.42em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 1.8rem; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: var(--white); padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.on-dark .quote blockquote::before { color: var(--blue-2); }
.on-dark .quote figcaption { color: var(--muted-light); }

/* Sector detail */
.sector { padding-block: var(--section); border-top: 1px solid var(--line); }
.sector:first-of-type { border-top: 0; }
.sector__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sector__name { font-size: clamp(4rem, 12vw, 11rem); letter-spacing: -0.06em; line-height: 0.85; }
.sector__name .dot { color: var(--blue); }
.sector__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(48px, 6vw, 80px); }
.sector__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.sector__media .quote { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); max-width: 560px; background: rgba(7, 10, 31, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--white); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); }
.sector__media .quote blockquote { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.45; }
.sector__media .quote blockquote::before { color: var(--blue-2); }
.sector__media .quote figcaption { color: var(--muted-light); margin-top: 1.2rem; }
.sector__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); }
@media (max-width: 900px) {
  .sector__top, .sector__cols { grid-template-columns: 1fr; }
  .sector__media img { aspect-ratio: 4 / 3; }
  .sector__media .quote { position: static; max-width: none; border-radius: 0; }
}

.programs { list-style: none; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.program { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); padding-block: 36px; border-bottom: 1px solid var(--line); }
.program h4 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.program h4 small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--blue); letter-spacing: 0; margin-bottom: 10px; font-weight: 400; }
.program .prose { font-size: 0.98rem; }
@media (max-width: 820px) { .program { grid-template-columns: 1fr; gap: 14px; } }

/* Contracts */
.contract-index { list-style: none; border-top: 1px solid var(--line); }
.contract-index a {
  display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 32px; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.35s var(--ease);
}
.contract-index img { width: 56px; height: 56px; object-fit: contain; }
.contract-index .ci__agency { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.contract-index .ci__vehicle { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); }
.contract-index .ci__arrow { color: var(--blue); transition: transform 0.35s var(--ease); }
.contract-index a:hover { padding-left: 10px; }
.contract-index a:hover .ci__arrow { transform: translateX(4px); }
.contract-index .ci__mono { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--sans); font-size: 0.62rem; text-align: center; line-height: 1.1; }
@media (max-width: 760px) {
  .contract-index a { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .contract-index .ci__vehicle { grid-column: 2; }
  .contract-index .ci__arrow { grid-row: 1; grid-column: 3; }
}

.contract { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); display: grid; grid-template-columns: clamp(120px, 14vw, 200px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.contract__badge { position: sticky; top: 110px; }
.contract__badge img { width: 100%; height: auto; }
.contract__agency { font-family: var(--sans); font-size: 0.76rem; color: var(--blue); margin-bottom: 1rem; }
@media (max-width: 700px) { .contract { grid-template-columns: minmax(0, 1fr); } .contract__badge { position: static; width: 110px; } }
.contract__title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 1.8rem; max-width: 22ch; }
.spec { display: grid; grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr); margin: 0 0 2rem; border-top: 1px solid var(--line); }
.spec dt, .spec dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); padding-right: 20px; padding-top: 17px; }
.spec dd { font-size: 1rem; line-height: 1.45; }
.spec dd.big { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 500; }
.on-dark .spec, .on-dark .spec dt, .on-dark .spec dd { border-color: var(--line-light); }
.on-dark .spec dt { color: var(--muted-light); }
@media (max-width: 600px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.6rem 0 2rem; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { display: block; font-family: var(--sans); font-size: 0.7rem; color: var(--muted); margin-bottom: 6px; }
.kpi strong { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.on-dark .kpi { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-light); }
.on-dark .kpi span { color: var(--muted-light); }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; } }

.periods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; list-style: none; margin: 0.8rem 0 1.6rem; }
.periods li { font-family: var(--sans); font-size: 0.76rem; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.periods li b { color: var(--blue); font-weight: 500; margin-right: 6px; }
.periods-label { font-size: 0.9rem; font-weight: 500; margin-top: 1rem; }

.pools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.4rem; }
.pool { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.pool b { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--blue); font-weight: 500; margin-bottom: 8px; }
.pool h4 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.pool p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .pools { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 1.4rem; }
.person { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; }
.person span { font-family: var(--sans); font-size: 0.7rem; color: var(--blue); }
.person h4 { font-size: 1.15rem; letter-spacing: -0.015em; }
.person a { font-size: 0.92rem; color: var(--muted); text-decoration: none; word-break: break-word; }
.person a:hover { color: var(--blue); }
.on-dark .person { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-light); }
.on-dark .person a { color: var(--muted-light); }

/* Technical areas grid */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.area { background: var(--paper); padding: 28px; display: grid; align-content: start; gap: 10px; transition: background 0.3s; }
.area:hover { background: var(--white); }
.area span { font-family: var(--sans); font-size: 0.72rem; color: var(--blue); }
.area h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.area p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

/* Steps */
.steps { list-style: none; counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); font-size: 2rem; letter-spacing: -0.04em; color: var(--blue); font-weight: 500; line-height: 1; }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.98rem; max-width: 70ch; }

.fineprint { color: var(--muted); font-size: 0.95rem; max-width: 74ch; }
.fineprint ol { padding-left: 1.2em; margin: 0.6em 0 1em; }
.fineprint li { margin-bottom: 0.4em; }
.fineprint h3 { color: var(--text); font-size: 1.15rem; letter-spacing: -0.015em; margin: 1.8rem 0 0.5rem; }

/* Careers / contact */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; counter-reset: b; }
.benefits li { counter-increment: b; background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 18px; align-content: space-between; min-height: 180px; font-size: 1.05rem; line-height: 1.4; letter-spacing: -0.01em; }
.benefits li::before { content: counter(b, decimal-leading-zero); font-family: var(--sans); font-size: 0.72rem; color: var(--blue); }
.benefits li:nth-child(3n+2) { background: var(--ink); color: var(--white); box-shadow: none; }
.benefits li:nth-child(3n+2)::before { color: var(--yellow); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
.contact-card { background: var(--ink); padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; align-content: start; min-height: 230px; }
.contact-card span { font-family: var(--sans); font-size: 0.74rem; color: var(--blue-2); }
.contact-card a, .contact-card p, .contact-card address { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.2; text-decoration: none; margin: 0; }
.contact-card a:hover { color: var(--yellow); }
.contact-card small { font-size: 0.95rem; color: var(--muted-light); letter-spacing: 0; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }


/* SEWP subnav */
.subnav { position: sticky; top: 76px; z-index: 5; margin-top: -1px; background: rgba(250, 250, 247, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; font-size: 0.86rem; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: background 0.2s, color 0.2s; }
.subnav a:hover { color: var(--text); background: var(--paper-2); }
.subnav a.is-active { background: var(--ink); color: var(--white); }

.not-found { min-height: 100dvh; display: grid; place-items: center; text-align: center; }
.not-found .display { font-size: clamp(7rem, 30vw, 22rem); color: var(--blue-2); }

/* ==========================================================================
   Motion
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + 0.1s); }
.split-words.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .wipe { height: auto; }
  .wipe__sticky { position: relative; height: auto; padding-block: var(--section); background: var(--paper); }
  .wipe__ring, .wipe__disc, .wipe__line { display: none; }
  .wipe__text { opacity: 1; transform: none; }
  .stories { height: auto; }
  .stories__sticky { position: relative; height: auto; padding-bottom: 60px; }
  .story__detail { opacity: 1; transform: none; max-height: none; pointer-events: auto; }
  .story__name { color: var(--white); }
}

@media print {
  .site-header, .wipe, .marquee, .footer__wordmark, .subnav { display: none !important; }
  .on-dark, .page-hero, .site-footer { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Dark-surface variants for shared components */
.on-dark .panel { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); }
.on-dark .doc-links a { border-color: var(--line-light); }
.on-dark .doc-links a:hover { color: var(--yellow); }
.on-dark .steps, .on-dark .steps li { border-color: var(--line-light); }
.on-dark .steps p { color: var(--muted-light); }
.on-dark .steps a, .on-dark .prose a, .on-dark .lead a { color: var(--white); }
.on-dark .panel--light, .panel--light { background: var(--white); color: var(--text); box-shadow: none; }
.cert-panel { display: grid; place-items: center; padding: clamp(32px, 5vw, 64px); }
.cert-panel img { width: 100%; max-width: 340px; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: left; line-height: 1.35; } }

/* ==========================================================================
   Product page (HCX4BD)
   ========================================================================== */
.prod-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.prod-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.prod-hero__title { margin-bottom: 1.6rem; max-width: 13ch; }
.prod-hero__actions { justify-content: flex-start; margin-top: 2.2rem; }
@media (max-width: 960px) { .prod-hero__grid { grid-template-columns: 1fr; } }

/* App mockups */
.mock {
  position: relative; border-radius: var(--radius-lg); padding: 18px; font-size: 0.92rem;
  background: linear-gradient(180deg, rgba(26, 32, 80, 0.85), rgba(15, 20, 51, 0.92));
  box-shadow: inset 0 0 0 1px var(--line-light), 0 40px 80px -40px rgba(29, 91, 224, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--white);
}
.mock__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 14px; font-family: var(--sans); font-size: 0.7rem; color: var(--muted-light); }
.mock__bar span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: 1px; box-shadow: 12px 0 0 rgba(255,255,255,.25), 24px 0 0 rgba(255,255,255,.25); margin-right: 34px; }
.mock__tag { white-space: nowrap; padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-light); }
.pill { display: inline-block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(63, 119, 240, 0.16); color: var(--blue-2); white-space: nowrap; }
.pill--yellow { background: rgba(243, 194, 79, 0.16); color: var(--yellow); }

.feed-lead { background: rgba(255, 255, 255, 0.04); border-radius: var(--radius); padding: 18px; box-shadow: inset 0 0 0 1px rgba(63, 119, 240, 0.4); }
.feed-lead__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.score { font-family: var(--sans); font-size: 0.72rem; color: var(--muted-light); }
.score b { font-family: var(--sans); font-size: 1.9rem; letter-spacing: -0.04em; color: var(--white); font-weight: 500; margin-right: 4px; }
.feed-lead__name { font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 0.5rem; }
.feed-lead__why { color: var(--muted-light); font-size: 0.9rem; line-height: 1.45; }
.feed-lead__why span { font-family: var(--sans); font-size: 0.68rem; color: var(--blue-2); margin-right: 6px; }
.feed-lead__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.act { font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); color: var(--muted-light); }
.act--on { background: var(--blue); color: var(--white); box-shadow: none; }
.feed-rows { list-style: none; margin-top: 8px; }
.feed-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 6px; border-top: 1px solid var(--line-light); color: var(--muted-light); }
.feed-rows li:first-child { border-top: 0; }
.feed-rows b { font-family: var(--sans); font-weight: 500; color: var(--white); }

.prod-flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-light); counter-reset: f; }
.prod-flow li { counter-increment: f; padding: 22px 16px 0 0; color: var(--muted-light); font-size: 0.95rem; position: relative; }
.prod-flow li + li { padding-left: 16px; border-left: 1px solid var(--line-light); }
.prod-flow li::before { content: counter(f, decimal-leading-zero); position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-2); font-size: 0; }
.prod-flow li + li::before { left: -5px; }
.prod-flow span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--white); margin-bottom: 6px; }
@media (max-width: 760px) {
  .prod-flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-light); }
  .prod-flow li, .prod-flow li + li { padding: 0 0 18px 22px; border-left: 0; }
  .prod-flow li::before, .prod-flow li + li::before { top: 6px; left: -5px; }
}

/* Runway timeline */
.runway { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; padding-top: 34px; }
.runway::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2) 70%, var(--line)); }
.runway li { position: relative; padding-right: 20px; display: grid; gap: 6px; }
.runway li::before { content: ""; position: absolute; top: -40px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--blue); }
.runway b { font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.runway span { font-weight: 500; letter-spacing: -0.01em; }
.runway small { font-family: var(--sans); font-size: 0.72rem; color: var(--muted); }
.runway__zero b { color: var(--muted); opacity: 0.55; }
.runway__zero::before { background: var(--line) !important; box-shadow: none !important; }
.runway__axis { margin-top: 28px; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 760px) {
  .runway { grid-template-columns: 1fr; padding: 0 0 0 28px; gap: 26px; }
  .runway::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--line)); }
  .runway li::before { top: 0.9em; left: -28px; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento__card { grid-column: span 5; background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.bento__card--wide { grid-column: span 7; }
.bento__card--ink { background: var(--ink); color: var(--white); box-shadow: none; }
.bento__card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; margin-bottom: 0.8rem; }
.bento__card > p:not(.bento__num) { color: var(--muted); max-width: 46ch; }
.bento__card--ink > p:not(.bento__num) { color: var(--muted-light); }
.bento__num { font-family: var(--sans); font-size: 0.74rem; color: var(--blue); margin-bottom: 2.4rem; }
.bento__card--ink .bento__num { color: var(--yellow); }
.bento .ticks { margin-bottom: 0; margin-top: auto; padding-top: 1.4rem; border-top: 0; }
.bento .ticks li:first-child { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .bento__card, .bento__card--wide { grid-column: 1 / -1; } }

.mini-feed { list-style: none; margin-top: auto; padding-top: 1.6rem; display: grid; gap: 8px; }
.mini-feed li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); font-size: 0.92rem; }
.mini-feed small { font-family: var(--sans); font-size: 0.68rem; color: var(--muted); }
.mini-feed .pill { justify-self: start; background: rgba(29, 91, 224, 0.1); color: var(--blue); text-align: center; }
.mini-feed .pill--yellow { background: rgba(243, 194, 79, 0.28); color: #7a5600; }
@media (max-width: 520px) { .mini-feed li { grid-template-columns: 1fr; gap: 4px; } }

.gauge { margin-top: auto; padding-top: 1.6rem; position: relative; width: min(260px, 100%); }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge path { fill: none; stroke-width: 8; stroke-linecap: round; }
.gauge__track { stroke: rgba(255, 255, 255, 0.1); }
.gauge__fill { stroke: var(--yellow); stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.bento__card.is-in .gauge__fill { stroke-dashoffset: 12.6; }
.gauge span { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--sans); font-size: 0.8rem; color: var(--muted-light); }
.gauge b { font-family: var(--sans); font-size: 3rem; letter-spacing: -0.05em; color: var(--white); font-weight: 500; }

.sections-list { list-style: none; margin-top: auto; padding-top: 1.6rem; display: grid; gap: 0; border-top: 0; }
.sections-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.st { font-style: normal; font-family: var(--sans); font-size: 0.68rem; padding: 4px 9px; border-radius: 6px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.st--done { background: rgba(44, 107, 102, 0.14); color: var(--teal); }
.st--review { background: rgba(243, 194, 79, 0.28); color: #7a5600; }
.st--draft { background: rgba(29, 91, 224, 0.1); color: var(--blue); }

/* Dark section mockups */
.prod-split { margin-top: clamp(56px, 7vw, 100px); align-items: center; }
.prod-split .h3 { margin-bottom: 1rem; }
.prod-split .prose { margin-bottom: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis div { padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); display: grid; gap: 4px; }
.kpis b { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpis span { font-family: var(--sans); font-size: 0.64rem; color: var(--muted-light); }
.kpis--foot { margin-top: 14px; }
.funnel { list-style: none; display: grid; gap: 6px; margin: 16px 0; }
.funnel li { position: relative; display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: 0.84rem; isolation: isolate; }
.funnel li::before { content: ""; position: absolute; inset: 0; z-index: -1; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); opacity: 0.85; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.mock.is-in .funnel li::before { transform: none; }
.funnel li:nth-child(2)::before { transition-delay: .08s; } .funnel li:nth-child(3)::before { transition-delay: .16s; }
.funnel li:nth-child(4)::before { transition-delay: .24s; } .funnel li:nth-child(5)::before { transition-delay: .32s; }
.funnel b { font-family: var(--sans); font-weight: 500; }
.reps { list-style: none; }
.reps li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-light); }
.reps i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); font-family: var(--sans); font-size: 0.68rem; }
.reps span { display: grid; font-size: 0.88rem; }
.reps small { color: var(--muted-light); font-size: 0.74rem; }
.reps em { font-style: normal; font-family: var(--sans); font-size: 0.66rem; color: var(--blue-2); }
.reps em.ok { color: #6fd0b4; }
.reps em.warn { color: var(--yellow); }

.gantt { display: grid; gap: 8px; }
.gantt__years { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); font-family: var(--sans); font-size: 0.64rem; color: var(--muted-light); padding-bottom: 6px; border-bottom: 1px solid var(--line-light); }
.gantt__row {
  margin-left: calc(var(--s) / 6 * 100%); width: calc((var(--e) - var(--s)) / 6 * 100%);
  display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0;
  padding: 9px 12px; border-radius: 8px; font-size: 0.8rem; background: linear-gradient(90deg, var(--blue), var(--blue-2));
}
.gantt__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt__row b { font-family: var(--sans); font-weight: 500; font-size: 0.68rem; white-space: nowrap; }
.gantt__row--warn { background: rgba(243, 194, 79, 0.16); box-shadow: inset 0 0 0 1px rgba(243, 194, 79, 0.5); color: var(--yellow); }
.gantt__row--weighted { background: repeating-linear-gradient(135deg, rgba(63, 119, 240, 0.25) 0 6px, rgba(63, 119, 240, 0.12) 6px 12px); box-shadow: inset 0 0 0 1px rgba(63, 119, 240, 0.6); }
@media (max-width: 520px) { .gantt__row b { display: none; } }

/* Feature tabs */
.ftabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ftabs__list { display: grid; gap: 2px; border-left: 1px solid var(--line); position: sticky; top: 110px; }
.ftabs__list button { text-align: left; padding: 11px 0 11px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 1rem; transition: color 0.25s, border-color 0.25s; }
.ftabs__list button:hover { color: var(--text); }
.ftabs__list button[aria-selected="true"] { color: var(--text); border-left-color: var(--blue); font-weight: 500; }
.ftabs__panel dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ftabs__panel dl > div { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); animation: tabIn 0.6s var(--ease) both; }
.ftabs__panel dl > div:nth-child(2) { animation-delay: .05s; } .ftabs__panel dl > div:nth-child(3) { animation-delay: .1s; }
.ftabs__panel dl > div:nth-child(4) { animation-delay: .15s; } .ftabs__panel dl > div:nth-child(5) { animation-delay: .2s; } .ftabs__panel dl > div:nth-child(6) { animation-delay: .25s; }
.ftabs__panel dt { font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 0.5rem; }
.ftabs__panel dd { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .ftabs { grid-template-columns: 1fr; }
  .ftabs__list { position: static; display: flex; overflow-x: auto; border-left: 0; gap: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ftabs__list::-webkit-scrollbar { display: none; }
  .ftabs__list button { white-space: nowrap; padding: 9px 16px; margin: 0; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; }
  .ftabs__list button[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
}
@media (max-width: 620px) { .ftabs__panel dl { grid-template-columns: 1fr; } }

/* CTA */
.prod-cta { overflow: hidden; isolation: isolate; }
.prod-cta .rings { z-index: -1; }
.prod-cta .rings span { left: 85%; top: 20%; border-color: rgba(255, 255, 255, 0.18); }
.prod-cta__eyebrow { color: var(--yellow); }
.prod-cta .h1 { max-width: 18ch; }
.prod-cta__box { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-lg); background: rgba(7, 10, 31, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.prod-cta__box .h3 { margin-bottom: 0.6rem; }
.prod-cta__box p { color: rgba(255, 255, 255, 0.8); }
.prod-cta__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.prod-cta__facts li { font-family: var(--sans); font-size: 0.72rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.prod-cta__actions { display: grid; gap: 18px; justify-items: start; }
.prod-cta .link-arrow:hover { color: var(--yellow); }
@media (max-width: 760px) { .prod-cta__box { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gauge__fill { stroke-dashoffset: 12.6; } .funnel li::before { transform: none; } }

/* Nav: product link */
.nav__menu a small { display: block; font-size: 0.78rem; color: var(--muted-light); font-weight: 400; margin-top: 2px; }

/* ==========================================================================
   HCX AI page
   ========================================================================== */
.hcx-hero__title { font-size: clamp(3rem, 8.4vw, 8.6rem); max-width: 12ch; margin: 0 auto 2.4rem; }
#ways-in, #consulting { scroll-margin-top: 90px; }

/* The tangle pulls straight: the stage stays pinned while the page scrolls past it */
.fx { position: relative; height: 240vh; }
.fx__stage { --a: 1; --b: 0; position: sticky; top: 96px; height: min(680px, calc(100dvh - 120px)); min-height: 480px; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(90% 90% at 50% 45%, var(--ink-2), var(--ink)); color: var(--white); box-shadow: 0 40px 80px -48px rgba(29, 91, 224, 0.6); }
.fx__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx__labels { position: absolute; inset: 0; pointer-events: none; }
.fx__chip { position: absolute; padding: 5px 10px; border-radius: 8px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-light); font-size: 0.82rem; line-height: 1.2; white-space: nowrap; color: rgba(255, 255, 255, 0.82); transform: translate(-50%, -50%); will-change: opacity, transform; }
.fx__step { --rise: 10px; position: absolute; display: grid; gap: 3px; width: max-content; max-width: 140px; text-align: center; transform: translate(-50%, calc(26px + var(--rise))); opacity: 0; }
.fx__step b { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.fx__step small { font-size: 0.8rem; line-height: 1.3; color: var(--muted-light); }
.fx__step--human b { color: var(--yellow); }
.fx__step.is-side { max-width: 240px; text-align: left; transform: translate(26px, calc(-50% + var(--rise))); }
.fx__bar { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fx__toggle { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.fx__toggle button { padding: 6px 14px; border-radius: 999px; font-size: 0.86rem; color: var(--muted-light); transition: background 0.3s, color 0.3s; }
.fx__toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.fx__tag { padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-light); font-family: var(--sans); font-size: 0.7rem; color: var(--muted-light); }
.fx__cap { position: absolute; left: 24px; right: 24px; bottom: 20px; display: grid; margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.25; pointer-events: none; }
.fx__cap span { grid-area: 1 / 1; }
.fx__cap-a { opacity: var(--a); color: var(--muted-light); }
.fx__cap-b { opacity: var(--b); }
@media (prefers-reduced-motion: reduce) { .fx { height: auto; } .fx__stage { position: relative; top: 0; height: 620px; } }

/* LLM switchboard */
.hcx-llm { overflow: hidden; isolation: isolate; }
.hcx-llm .rings { z-index: -1; }
.hcx-llm .rings span { left: 56%; top: 66%; }
.hcx-llm .h1 { max-width: 12ch; }
.sw { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(36px, 0.4fr) 220px minmax(44px, 0.6fr) minmax(0, 1.1fr); align-items: center; }
.sw__flow { padding: 24px; border-radius: var(--radius-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); }
.sw__cap { font-family: var(--sans); font-size: 0.72rem; color: var(--yellow); margin-bottom: 14px; }
.sw__flow ul { list-style: none; display: grid; gap: 0; }
.sw__flow li { padding: 12px 0; border-top: 1px solid var(--line-light); font-size: 1rem; letter-spacing: -0.01em; }
.sw__link { display: block; width: 100%; height: 400px; overflow: visible; }
.sw__link path { fill: none; vector-effect: non-scaling-stroke; }
.sw__base { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.sw__live { stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 7 9; opacity: 0; animation: swDash 0.8s linear infinite, swRoute 12s linear infinite; animation-delay: 0s, calc((var(--i, 0) - 4) * 3s); }
.sw__live--always { stroke: var(--blue-2); opacity: 1; animation: swDash 0.8s linear infinite; }
@keyframes swDash { to { stroke-dashoffset: -32; } }
@keyframes swRoute { 0%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.sw__core { display: grid; justify-items: center; gap: 20px; text-align: center; }
.sw__disc { position: relative; width: 172px; height: 172px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--blue-2), var(--blue-deep)); box-shadow: 0 0 0 10px rgba(63, 119, 240, 0.14), 0 0 90px 10px rgba(29, 91, 224, 0.55); }
.sw__disc::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.34); animation: swSpin 26s linear infinite; }
.sw__disc span { font-size: 3rem; font-weight: 500; letter-spacing: -0.05em; }
.sw__core p { font-family: var(--sans); font-size: 0.74rem; line-height: 1.6; color: var(--muted-light); margin-top: 16px; }
@keyframes swSpin { to { transform: rotate(360deg); } }
.sw__models { list-style: none; display: grid; grid-template-rows: repeat(4, 1fr); height: 400px; }
.sw__models li { display: grid; align-content: center; gap: 3px; margin-block: 6px; padding: 10px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-light); animation: swModel 12s linear infinite; animation-delay: calc((var(--i) - 4) * 3s); }
.sw__models b { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.02em; }
.sw__models small { font-size: 0.82rem; color: var(--muted-light); }
@keyframes swModel { 0%, 23% { background: rgba(243, 194, 79, 0.1); box-shadow: inset 0 0 0 1px var(--yellow); } 25%, 100% { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-light); } }
.sw__notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-light); color: var(--muted-light); }
.sw__notes b { display: block; color: var(--white); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
@media (max-width: 1080px) {
  .sw { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .sw__link { display: none; }
  .sw__core { padding-block: 56px 36px; position: relative; }
  .sw__core::before, .sw__core::after { content: ""; position: absolute; left: 50%; width: 2px; background: repeating-linear-gradient(180deg, var(--blue-2) 0 6px, transparent 6px 12px); }
  .sw__core::before { top: 0; height: 26px; }
  .sw__core::after { bottom: 4px; height: 26px; }
  .sw__models { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 8px; }
  .sw__models li { margin: 0; min-height: 96px; }
}
@media (max-width: 720px) { .sw__notes { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .sw__models { grid-template-columns: 1fr; } .sw__models li { min-height: 0; } }

/* Four rules */
.hcx-rules { margin-top: clamp(64px, 8vw, 112px); }
.hcx-rules__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 100px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.hcx-rules__head p { color: var(--muted); }
.hcx-rules__table { width: 100%; border-collapse: collapse; }
.hcx-rules__table th, .hcx-rules__table td { text-align: left; vertical-align: top; padding: 20px 24px 20px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.hcx-rules__table thead th { border-top: 0; padding-block: 0 12px; font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hcx-rules__table tbody th { width: 32%; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.hcx-rules__table td { width: 34%; color: var(--muted); }
@media (max-width: 760px) {
  .hcx-rules__head { grid-template-columns: 1fr; }
  .hcx-rules__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hcx-rules__table, .hcx-rules__table tbody, .hcx-rules__table tr, .hcx-rules__table th, .hcx-rules__table td { display: block; width: 100%; }
  .hcx-rules__table tr { padding-block: 20px; border-top: 1px solid var(--line); }
  .hcx-rules__table tbody th, .hcx-rules__table td { border: 0; padding: 0 0 12px; }
  .hcx-rules__table td { padding-bottom: 8px; }
  .hcx-rules__table td::before { content: attr(data-label); display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
}

/* Three ways in */
.hcx-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.hcx-way { display: flex; flex-direction: column; gap: 10px; min-height: 100%; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--radius-lg); background: var(--yellow); color: var(--ink); text-decoration: none; box-shadow: 0 30px 70px -44px rgba(7, 10, 31, 0.6); }
.hcx-way.is-in { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); transition-delay: 0s; }
.hcx-way:hover { transform: translateY(-5px); box-shadow: 0 38px 80px -36px rgba(7, 10, 31, 0.7); }
.hcx-way--blue { background: var(--blue); color: var(--white); }
.hcx-way--ink { background: var(--ink); color: var(--white); }
.hcx-way--teal { background: var(--teal); color: var(--white); }
.hcx-way--chat { background: linear-gradient(150deg, var(--ink-3), var(--blue-deep)); color: var(--white); }
.hcx-way--ink { grid-column: 1 / -1; }
.hcx-way--ink strong { font-size: clamp(2rem, 3.2vw, 3rem); }
@media (min-width: 641px) {
  /* Share rows across cards so names line up when a line wraps */
  .hcx-ways { row-gap: 10px; }
  .hcx-way:not(.hcx-way--ink) { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 10px; min-height: 0; margin-bottom: clamp(4px, 0.6vw, 14px); }
  .hcx-way--ink { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px clamp(24px, 4vw, 64px); }
  .hcx-way--ink > * { grid-column: 1; }
  .hcx-way--ink .hcx-way__sub, .hcx-way--ink .hcx-way__for, .hcx-way--ink .hcx-way__go { grid-column: 2; }
  .hcx-way--ink .hcx-way__sub { grid-row: 1; }
  .hcx-way--ink .hcx-way__for { grid-row: 2; margin: 0; padding: 0; }
  .hcx-way--ink .hcx-way__go { grid-row: 3; align-self: end; }
  .hcx-way--ink .hcx-way__need { margin-top: 0.6rem; }
}
.hcx-way__tag { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hcx-way__need { margin-top: 1.6rem; font-size: 1.05rem; font-weight: 500; }
.hcx-way strong { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.hcx-way__sub { line-height: 1.4; }
.hcx-way__for { margin-top: auto; padding-top: 1.4rem; font-size: 0.9rem; opacity: 0.78; }
.hcx-way__go { padding-top: 12px; border-top: 1px solid currentColor; font-weight: 500; }
@media (max-width: 1180px) { .hcx-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hcx-ways { grid-template-columns: 1fr; } .hcx-way__need { margin-top: 0.8rem; } }

/* Consulting */
.hcx-svc__cta { margin-top: 1.2rem; }
.hcx-output { max-width: 34ch; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.hcx-output b { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }


/* Lifecycle and proof */
.hcx-svc .svc__panel p { max-width: 30ch; margin-bottom: 0; }
.hcx-stats { margin-top: 0; }
.hcx-tags { margin: clamp(40px, 5vw, 64px) 0 0; }


@media (prefers-reduced-motion: reduce) {
  .sw__disc::before, .sw__live--always { animation: none; }
  .sw__live, .sw__models li { animation: none; }
  .sw__live[style*="--i:0"] { opacity: 1; }
  .sw__models li[style*="--i:0"] { background: rgba(243, 194, 79, 0.1); box-shadow: inset 0 0 0 1px var(--yellow); }
}

/* ==========================================================================
   HCX4FLOW page
   ========================================================================== */
.in-chat, .in-queue { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-light); }
.in-chat--solo { padding: 18px; gap: 10px; }
.in-chat__cap { font-family: var(--sans); font-size: 0.68rem; color: var(--yellow); margin-bottom: 4px; }
.in-msg { justify-self: start; max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 12px 3px; background: var(--ink-3); font-size: 0.86rem; line-height: 1.35; }
.in-msg--you { justify-self: end; border-radius: 12px 12px 3px 12px; background: var(--blue); }
.in-case { display: grid; justify-items: start; gap: 5px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); }
.in-case b { font-weight: 500; font-size: 0.92rem; }
.in-case small { font-size: 0.76rem; color: var(--muted-light); }
.in-case--new { background: rgba(243, 194, 79, 0.08); box-shadow: inset 0 0 0 1px var(--yellow); animation: inCase 4s var(--ease) infinite; }
@keyframes inCase { 0%, 100% { box-shadow: inset 0 0 0 1px var(--yellow); } 50% { box-shadow: inset 0 0 0 1px var(--yellow), 0 0 26px rgba(243, 194, 79, 0.28); } }
.in-source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-family: var(--sans); font-size: 0.7rem; color: var(--muted-light); }
.in-path { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 1.6rem; }
.in-path li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--muted); font-size: 0.9rem; line-height: 1.2; }
.in-path .is-done { background: rgba(44, 107, 102, 0.14); color: var(--teal); }
.in-path .is-on { background: var(--blue); color: var(--white); }
.in-clock { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 1.6rem; }
.in-clock b { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--yellow); }
.in-clock span { font-family: var(--sans); font-size: 0.74rem; color: var(--muted-light); line-height: 1.9; }
.in-clock em { font-style: normal; }
.in-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.in-grid article { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); }
.in-grid h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.in-grid p { color: var(--muted-light); line-height: 1.45; }
.in-lead { margin-top: 1.4rem; }
.in-proof { max-width: none; }
.in-table-wrap { border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: 8px clamp(18px, 3vw, 36px); }
.in-table { width: 100%; border-collapse: collapse; text-align: left; }
.in-table thead th { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--muted); padding: 16px 16px 14px 0; }
.in-table tbody th, .in-table td { padding: 20px 16px 20px 0; border-top: 1px solid var(--line); }
.in-table tbody th { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; }
.in-table td { color: var(--muted); }
.in-table td:last-child { color: var(--blue); }
@media (max-width: 900px) { .in-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .in-grid { grid-template-columns: 1fr; }
  .in-path { grid-template-columns: 1fr; }
  .in-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .in-table tr { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
  .in-table tbody tr:first-child { border-top: 0; }
  .in-table tbody th, .in-table td { display: block; padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .in-case--new { animation: none; } }

/* HCX4FLOW hero: seven-channel front door */
.ix-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 4vw, 64px); }
.ix-grid .prod-hero__title { font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: 0.98; }
.ix { padding: 16px; background: linear-gradient(180deg, rgba(26, 32, 80, 0.7), rgba(10, 14, 40, 0.92)); }
.ix__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.84fr) minmax(0, 1.08fr); gap: clamp(36px, 4.4vw, 64px); align-items: center; padding: 14px 10px; border-radius: var(--radius); background-image: radial-gradient(rgba(125, 160, 255, 0.16) 1px, transparent 1px); background-size: 20px 20px; }
.ix__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ix__wire { fill: none; stroke: rgba(125, 160, 255, 0.18); stroke-width: 1.25; transition: stroke 0.4s, stroke-width 0.4s; }
.ix__wire.is-active { stroke: rgba(125, 160, 255, 0.85); stroke-width: 1.75; }
.ix__wire--out.is-active { stroke: rgba(243, 194, 79, 0.9); }
.ix__chs, .ix__hub, .ix__queue { position: relative; z-index: 1; }
.ix__chs { list-style: none; display: grid; gap: 7px; }
.ix__ch { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px 7px 7px; border-radius: 12px; background: rgba(15, 20, 51, 0.92); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--muted-light); transition: background 0.35s, box-shadow 0.35s, color 0.35s, transform 0.5s var(--ease); }
.ix__ico { position: relative; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(63, 119, 240, 0.14); color: var(--blue-2); transition: background 0.35s, color 0.35s; }
.ix__ico svg, .ix__card svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ix__ico svg .a-dots circle, .ix__ico svg .a-bit, .ix__ico svg .a-ant, .ix__ico svg .a-eye, .ix__card svg .a-dots circle, .ix__card svg .a-bit, .ix__card svg .a-ant, .ix__card svg .a-eye { fill: currentColor; stroke: none; }
.ix__txt { display: grid; min-width: 0; }
.ix__txt b { font-size: 0.86rem; font-weight: 500; letter-spacing: -0.01em; color: var(--white); line-height: 1.2; }
.ix__txt small { font-size: 0.72rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix__ch.is-active { background: rgba(29, 91, 224, 0.26); box-shadow: inset 0 0 0 1px var(--blue-2), 0 0 26px -4px rgba(63, 119, 240, 0.8); color: var(--white); transform: translateX(5px); }
.ix__ch.is-active .ix__ico { background: var(--blue); color: var(--white); }
.ix__ch.is-active .a-cursor { animation: ixClick 0.8s var(--ease) 2; transform-box: fill-box; transform-origin: top left; }
.ix__ch.is-active .a-dots circle { animation: ixDot 0.7s ease-in-out infinite; }
.ix__ch.is-active .a-dots circle:nth-child(2) { animation-delay: 0.12s; }
.ix__ch.is-active .a-dots circle:nth-child(3) { animation-delay: 0.24s; }
.ix__ch.is-active .a-flap { animation: ixFlap 0.8s var(--ease) 2; transform-box: view-box; transform-origin: 12px 7px; }
.ix__ch.is-active .a-ring { animation: ixRing 0.4s linear 4; transform-box: fill-box; transform-origin: center; }
.ix__ch.is-active .a-sms { animation: ixBlink 0.5s steps(2) 3; }
.ix__ch.is-active .a-bit { animation: ixBit 0.5s linear infinite alternate; }
.ix__ch.is-active .a-eye { animation: ixEye 1.4s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
.ix__ch.is-active .a-ant { animation: ixBlink 0.4s steps(2) infinite; }
@keyframes ixClick { 0%, 100% { transform: none; } 45% { transform: translate(-2px, -2px) scale(0.82); } }
@keyframes ixDot { 0%, 100% { transform: none; opacity: 0.5; } 50% { transform: translateY(-2px); opacity: 1; } }
@keyframes ixFlap { 0%, 100% { transform: none; } 50% { transform: scaleY(-0.6); } }
@keyframes ixRing { 0%, 100% { transform: none; } 25% { transform: rotate(-11deg); } 75% { transform: rotate(11deg); } }
@keyframes ixBlink { 0% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes ixBit { from { transform: translateX(-2.500px); } to { transform: translateX(2.500px); } }
@keyframes ixEye { 0%, 86%, 100% { transform: none; } 90% { transform: scaleY(0.15); } }
.ix__hub { display: grid; justify-items: center; gap: 22px; text-align: center; }
.ix__core { position: relative; width: clamp(112px, 11vw, 148px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--blue-2), var(--blue-deep)); box-shadow: 0 0 0 8px rgba(63, 119, 240, 0.14), 0 0 70px 8px rgba(29, 91, 224, 0.6); }
.ix__core::before, .ix__core::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ix__core::before { inset: -20px; border: 1px dashed rgba(255, 255, 255, 0.36); animation: swSpin 22s linear infinite; }
.ix__core::after { inset: -34px; border: 1px solid transparent; border-top-color: var(--yellow); border-right-color: rgba(243, 194, 79, 0.3); animation: swSpin 4s linear infinite reverse; }
.ix__ripple { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue-2); opacity: 0; }
.ix__core b { display: grid; font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ix__core i { font-style: normal; font-family: var(--sans); font-size: 0.68rem; font-weight: 400; letter-spacing: 0; margin-top: 5px; color: rgba(255, 255, 255, 0.8); }
.ix__status { min-height: 1.4em; font-family: var(--sans); font-size: 0.7rem; color: var(--yellow); white-space: nowrap; margin-top: 12px; }
.ix__queue { display: grid; gap: 10px; }
.ix__cap { font-family: var(--sans); font-size: 0.68rem; color: var(--yellow); }
.ix__list { --card: 62px; display: grid; gap: 8px; height: calc(var(--card) * 4 + 24px); overflow: hidden; align-content: start; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.ix__card { min-height: var(--card); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: center; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-light); }
.ix__card svg { grid-row: span 2; color: var(--blue-2); }
.ix__card b { font-size: 0.86rem; font-weight: 500; line-height: 1.2; }
.ix__card small { font-size: 0.72rem; line-height: 1.25; color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix__card.is-new { background: rgba(243, 194, 79, 0.1); box-shadow: inset 0 0 0 1px var(--yellow), 0 0 22px -6px rgba(243, 194, 79, 0.6); transition: background 1.6s, box-shadow 1.6s; }
.ix__card.is-new svg { color: var(--yellow); }
.ix__foot { font-size: 0.78rem; color: var(--muted-light); }
@media (max-width: 1240px) { .ix-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .ix { padding: 12px; }
  .ix__stage { grid-template-columns: 1fr; gap: 58px; padding: 8px 2px; }
  .ix__chs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .ix__ch { width: calc(25% - 5px); grid-template-columns: 1fr; justify-items: center; gap: 5px; padding: 8px 2px; text-align: center; }
  .ix__ch.is-active { transform: translateY(3px); }
  .ix__txt small { display: none; }
  .ix__txt b { font-size: 0.68rem; }
  .ix__core { width: 104px; }
  .ix__list { height: calc(var(--card) * 2 + 24px); }
}
@media (prefers-reduced-motion: reduce) { .ix__core::before, .ix__core::after { animation: none; } .ix__ch.is-active * { animation: none !important; } }

/* ==========================================================================
   HCX4MED page
   ========================================================================== */
.med-board { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-light); }
.med-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.med-stats p { display: grid; gap: 2px; margin: 0; padding: 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); }
.med-stats b { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.med-stats span { font-size: 0.76rem; color: var(--muted-light); }
.med-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.med-cols > div { display: grid; align-content: start; gap: 6px; min-width: 0; }
.med-cap { margin: 0 0 2px; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-light); }
.med-item { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); font-size: 0.86rem; line-height: 1.25; }
.med-item--new { background: rgba(243, 194, 79, 0.08); box-shadow: inset 0 0 0 1px var(--yellow); }
.med-list { list-style: none; display: grid; gap: 6px; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.94rem; line-height: 1.35; }
.med-note { margin-top: 1rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted-light); }
.med-terms { margin-top: clamp(28px, 3vw, 40px); font-size: 0.9rem; color: var(--muted); }
.bento--3 > .bento__card { grid-column: span 4; }
.bento--stack { grid-template-columns: 1fr; }
.bento--stack > .bento__card { grid-column: auto; }
@media (max-width: 960px) { .bento--3 > .bento__card { grid-column: span 6; } }
@media (max-width: 640px) { .bento--3 > .bento__card { grid-column: 1 / -1; } .med-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   HCX4CHAT page: one dark theme throughout
   ========================================================================== */
.ct { background: var(--ink); }
.ct-sec { background: var(--ink); color: var(--white); position: relative; }
.ct-sec--alt { background: var(--ink-2); }
.ct-sec .lead { color: var(--muted-light); }
.ct-head { display: grid; gap: clamp(20px, 2.4vw, 32px); max-width: 880px; margin-bottom: clamp(48px, 6vw, 80px); }
.ct-head .lead { max-width: 58ch; }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.ct-hero__title { font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: 0.96; letter-spacing: -0.05em; margin-bottom: 1.6rem; max-width: 9ch; }

/* Hero console */
.ct-con { min-width: 0; }
.ct-con__cap { margin: 0 0 8px; font-family: var(--sans); font-size: 0.68rem; color: var(--yellow); }
.ct-con__q { min-height: 3.3em; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue); font-size: 1rem; line-height: 1.4; }
.ct-raw { border-radius: 4px; background: rgba(243, 194, 79, 0.28); box-shadow: 0 0 0 2px rgba(243, 194, 79, 0.28); }
.ct-mask { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--yellow); color: var(--ink); font-family: var(--sans); font-size: 0.82em; line-height: 1.5; }
.ct-stages { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.ct-stages li { display: grid; align-content: start; gap: 6px; min-height: 92px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--muted-light); transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease); }
.ct-stages b { font-size: 0.72rem; font-family: var(--sans); font-weight: 400; }
.ct-stages span { font-size: 0.88rem; line-height: 1.25; }
.ct-stages li.is-on { background: rgba(63, 119, 240, 0.16); box-shadow: inset 0 0 0 1px var(--blue-2); color: var(--white); }
.ct-con__a { min-height: 3.3em; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ink-3); font-size: 1rem; line-height: 1.4; opacity: 0.3; transition: opacity 0.5s var(--ease); }
.ct-con__a.is-on { opacity: 1; }

/* The layer */
.ct-stack { position: relative; display: grid; gap: clamp(28px, 4vw, 48px); }
.ct-stack__beam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; overflow: hidden; background: var(--line-light); }
.ct-stack__beam::after { content: ""; position: absolute; left: 0; top: -30%; width: 100%; height: 30%; background: linear-gradient(transparent, var(--yellow)); animation: ctBeam 3.2s var(--ease) infinite; }
@keyframes ctBeam { to { transform: translateY(440%); } }
.ct-plane { position: relative; display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--radius-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); }
.ct-plane__name { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; }
.ct-plane ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ct-plane li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); line-height: 1.25; }
.ct-plane--core { padding-block: clamp(32px, 4vw, 52px); background: linear-gradient(120deg, var(--blue-deep), var(--blue)); box-shadow: 0 40px 90px -46px var(--blue-2); }
.ct-plane--core li { background: rgba(7, 10, 31, 0.32); }
.ct-plane--core b { font-weight: 500; }
.ct-plane--core small { font-size: 0.82rem; color: rgba(255, 255, 255, 0.76); }

/* Live masking */
.ct-dlp { padding: clamp(16px, 2.4vw, 28px); border-radius: var(--radius-lg); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-light); }
.ct-dlp__rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ct-dlp__rules button, .ct-swap__models button { font-size: 0.9rem; border-radius: 999px; padding: 8px 14px; color: var(--muted-light); box-shadow: inset 0 0 0 1px var(--line-light); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.ct-dlp__rules button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: none; }
.ct-dlp__rules button:active, .ct-swap__models button:active { transform: translateY(1px); }
.ct-dlp__panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-dlp__pane { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.ct-dlp__pane label, .ct-dlp__label { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 0.72rem; color: var(--muted-light); }
.ct-dlp__label span { color: var(--yellow); white-space: nowrap; }
.ct-dlp__pane textarea, .ct-dlp__out { width: 100%; min-height: 190px; margin: 0; padding: 16px; border: 0; border-radius: var(--radius-sm); font: inherit; font-size: 1.05rem; line-height: 1.6; color: var(--white); overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-dlp__pane textarea { resize: vertical; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-light); }
.ct-dlp__out { background: rgba(63, 119, 240, 0.12); box-shadow: inset 0 0 0 1px var(--blue-2); }
.ct-dlp__out.is-empty { color: var(--muted-light); }
.ct-dlp__note { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted-light); }

/* Customized */
.ct-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.ct-fit__head { position: sticky; top: 120px; }
.ct-fit__list { list-style: none; display: grid; gap: clamp(48px, 7vw, 96px); padding-block: clamp(8px, 2vw, 24px); }
.ct-fit__list h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.04em; margin-bottom: 0.7rem; }
.ct-fit__list p { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.4; color: var(--muted-light); }

/* Any model */
.ct-swap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.ct-swap .h1 { margin-bottom: 1.4rem; }
.ct-swap__models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ct-swap__models button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: none; }
.ct-swap__panel { padding: clamp(20px, 2.8vw, 32px); border-radius: var(--radius-lg); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-light); }
.ct-swap__now { display: grid; gap: 4px; margin-bottom: 20px; }
.ct-swap__now small { font-family: var(--sans); font-size: 0.72rem; color: var(--yellow); }
.ct-swap__now b { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.ct-swap__now span { color: var(--muted-light); }
.ct-swap__panel.is-swapped .ct-swap__now { animation: ctSwap 0.6s var(--ease); }
@keyframes ctSwap { from { opacity: 0; transform: translateY(10px); } }
.ct-swap__kept { list-style: none; display: grid; gap: 6px; }
.ct-swap__kept li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); }
.ct-swap__kept span { font-family: var(--sans); font-size: 0.74rem; color: var(--yellow); align-self: center; }

@media (max-width: 1080px) {
  .ct-hero__grid, .ct-fit, .ct-swap { grid-template-columns: 1fr; }
  .ct-fit__head { position: static; }
}
@media (max-width: 760px) {
  .ct-plane { grid-template-columns: 1fr; gap: 14px; }
  .ct-plane ul { grid-auto-flow: row; }
  .ct-dlp__panes { grid-template-columns: 1fr; }
  .ct-dlp__pane textarea, .ct-dlp__out { min-height: 150px; }
  .ct-stack__beam { display: none; }
}
@media (max-width: 560px) { .ct-stages { grid-template-columns: 1fr; } .ct-stages li { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-stack__beam::after { animation: none; display: none; } .ct-swap__panel.is-swapped .ct-swap__now { animation: none; } }

