/* YoursSherpa site styles. */

:root {
  /* Light theme. Semantic colors: det = deterministic code (steel blue), ai = AI step (marigold),
     human = human review (juniper), data = data in motion (violet, from the YoursSherpa brand gradient). */
  --bg: #f5f7fa;
  --bg-rgb: 245, 247, 250;
  --bg-2: #edf1f6;
  --panel: #ffffff;
  --panel-rgb: 255, 255, 255;
  --panel-2: #f4f7fa;
  --panel-3: #e9eef4;
  --stage: #f1f4f8;
  --stage-rgb: 241, 244, 248;
  --line: #d6dde6;
  --line-2: #e3e8ee;
  --ink: #0f1b2d;
  --ink-rgb: 15, 27, 45;
  --ink-hover: #26395a;
  --ink-2: #44546a;
  --ink-3: #5f6e82;
  --det: #2c62b0;
  --det-rgb: 44, 98, 176;
  --ai: #9a5900;
  --ai-fill: #eda52e;
  --ai-fill-rgb: 237, 165, 46;
  --ai-line: #d08a14;
  --human: #11775f;
  --human-rgb: 17, 119, 95;
  --data: #6a3bd9;
  --data-rgb: 106, 59, 217;
  --ext: #7b8a9b;
  --edge: #8a98aa;
  --edge-on: #2b4466;
  --det-wash: rgba(44, 98, 176, 0.08);
  --ai-wash: rgba(237, 165, 46, 0.14);
  --human-wash: rgba(17, 119, 95, 0.08);
  --c-det: #2f6bc4;
  --c-ai: #c7820d;
  --c-human: #16977a;
  --focus: #2c62b0;
  --grid: rgba(15, 27, 45, 0.055);
  --shadow: rgba(15, 27, 45, 0.16);
  --code-bg: #f6f8fb;

  /* YoursSherpa brand (the original mark: ice to violet, with a gold sun) */
  --brand-ice: #7dd3fc;
  --brand-violet: #a78bfa;
  --brand-sun: #f5b04a;
  --brand-grad: linear-gradient(120deg, #0284c7 0%, #7c3aed 58%, #d97706 100%);

  /* 3D materials */
  --plate: #fbfcfe;
  --m-plate: #fbfcfe;
  --m-det: #4f80c6;
  --m-ai: #e39a24;
  --m-human: #3aa98e;
  --m-ink: #33445a;
  --m-mid: #c7d2df;
  --m-src: #ffffff;
  --paper-3: #ffffff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wide: 100%;
  --semi: 100%;
  --s-12: 0.75rem;
  --s-13: 0.8125rem;
  --s-15: 0.9375rem;
  --s-17: 1.0625rem;
  --s-20: 1.25rem;
  --s-34: 2.125rem;
  --gutter: clamp(16px, 3.6vw, 72px);
  --max: 1760px;
  --r: 10px;
  --r-sm: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: var(--s-17); line-height: 1.55; font-stretch: 100%; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--ai-fill-rgb), 0.35); color: var(--ink); }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 0.86em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.3rem); line-height: 1.14; letter-spacing: -0.028em; }
h3 { font-size: var(--s-20); line-height: 1.28; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--s-13); }
.kicker { font-size: var(--s-13); color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; }
.kicker b { color: var(--ink-2); font-weight: 600; }

/* ---------- Top bar: brand, menu, profile link, Contact us pill ----------
   Laid out along the bar on wide screens; below 1100px the same markup collapses into a glass
   panel behind a burger, driven only by the checkbox and CSS. */
.topbar { position: sticky; top: 0; z-index: 40; font-family: var(--font-display); background: rgba(var(--bg-rgb), 0.82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line-2); transition: background-color .3s ease, border-color .3s ease; }
.bar-in { position: relative; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); min-height: 72px; display: flex; align-items: center; gap: 28px; }
.is-home .topbar { position: fixed; left: 0; right: 0; background: rgba(var(--bg-rgb), 0); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home.is-scrolled .topbar, .is-home .topbar:has(.navtoggle:checked) { background: rgba(var(--bg-rgb), 0.82); border-bottom-color: var(--line-2); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.015em; }
#word { font-variation-settings: 'wght' 720; font-weight: 720; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navtoggle { position: absolute; top: 0; right: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.scrim, .burger { display: none; }
.navpanel { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.menu a, .menu-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.menu a span, .menu-btn span, .login span { font-variation-settings: 'wght' 506; }
.menu a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); background: rgba(var(--ink-rgb), 0.05); }
.caret, .navarrow { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.caret { width: 9px; height: 6px; stroke-width: 1.4; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.navarrow { width: 10px; height: 9px; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; }
.login { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.login:hover { color: var(--ink); }
.nav-pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), 0.24); font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; background: rgba(255, 255, 255, 0.55); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.nav-pill span { font-variation-settings: 'wght' 581; }
.nav-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sys-menu { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); background: rgba(var(--panel-rgb), 0.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px var(--shadow); font-family: var(--font); }
.sys-menu .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 14px; max-width: none; }
.sys-menu a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; text-decoration: none; border-radius: 12px; align-content: start; color: var(--ink); }
.sys-menu a:hover, .sys-menu a[aria-current="page"] { background: var(--panel-2); }
.sys-menu .sn { grid-row: span 2; font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }
.sys-menu .st { font-weight: 600; font-size: var(--s-15); }
.sys-menu .sd { font-size: var(--s-13); color: var(--ink-3); line-height: 1.4; }
@media (max-width: 1099px) {
  .bar-in { min-height: 64px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; position: relative; width: 48px; height: 34px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(var(--ink-rgb), 0.2); background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
  .burger::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max(44px, 100%); height: max(44px, 100%); }
  .burger svg { width: 20px; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
  .burger svg path { transform-box: fill-box; transform-origin: center; transition: transform .24s ease, opacity .18s ease; }
  .navtoggle:focus-visible ~ .burger { outline: 2px solid var(--focus); outline-offset: 3px; }
  .navtoggle:checked ~ .burger .b1 { transform: translateY(6px) rotate(45deg); }
  .navtoggle:checked ~ .burger .b2 { opacity: 0; }
  .navtoggle:checked ~ .burger .b3 { transform: translateY(-6px) rotate(-45deg); }
  .scrim { display: none; position: fixed; inset: 0; z-index: -1; }
  .navtoggle:checked ~ .scrim { display: block; }
  .navpanel { position: absolute; top: calc(100% + 10px); right: var(--gutter); width: min(340px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 90px); overflow: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 22px; border: 1px solid rgba(var(--ink-rgb), 0.1); background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8)), linear-gradient(90deg, rgba(255, 214, 150, 0.12), rgba(150, 196, 244, 0.12)); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 24px 60px -24px rgba(var(--ink-rgb), 0.35); opacity: 0; transform: translateY(-8px) scale(0.985); transform-origin: 100% 0; pointer-events: none; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .navtoggle:checked ~ .navpanel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .menu { flex-direction: column; align-items: stretch; margin: 0; }
  .menu a, .menu-btn, .login { min-height: 44px; padding: 10px 14px; border-radius: 13px; font-size: 16px; color: var(--ink); justify-content: flex-start; }
  .menu a:hover, .login:hover { background: rgba(var(--ink-rgb), 0.05); }
  .menu-btn .caret, .login .navarrow { margin-left: auto; }
  .menu-btn .caret { width: 11px; height: 7px; }
  .login .navarrow { width: 12px; height: 11px; }
  .sys-menu { position: static; box-shadow: none; border: 0; border-radius: 0; background: none; }
  .sys-menu .wrap { grid-template-columns: 1fr; padding: 0 0 6px; }
  .sys-menu a { padding: 9px 14px; }
  .sys-menu .sd { display: none; }
  .nav-pill { margin-top: 8px; height: 48px; font-size: 16px; }
}

/* ---------- Buttons, chips, glyphs ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: var(--s-15); padding: 12px 18px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; background: var(--panel); color: var(--ink); }
.btn:hover { border-color: var(--ink-3); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.g { width: 11px; height: 11px; display: inline-block; flex: none; }
.g-det { background: var(--det); border-radius: 2px; }
.g-ai { background: var(--ai-fill); border-radius: 4px; }
.g-human { border: 2px solid var(--human); border-radius: 50%; }
.g-ext { border: 1.5px dashed var(--ext); border-radius: 2px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; line-height: 1.3; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.chip .lg-img { height: 12px; width: auto; display: block; }
.tag-ex { font-size: 0.7rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* ---------- Heroes ---------- */
.page-hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(28px, 4vw, 44px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; right: -18vw; top: -30vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.16), rgba(125, 211, 252, 0.08) 45%, transparent 72%);
}
.page-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px clamp(24px, 5vw, 96px); align-items: start; }
.hero-main { display: grid; gap: 18px; }
.hero-side { display: grid; gap: 22px; }
.sheet-no { font-size: var(--s-15); color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; }
.sheet-no a { color: var(--ink-2); }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
.facts { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(120px, 0.7fr) 1.3fr; gap: 12px; }
.facts dt { font-size: var(--s-13); color: var(--ink-3); }
.facts dd { margin: 0; font-size: var(--s-15); font-weight: 520; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }



.cite { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; margin: 0 1px; font-size: 0.66rem; font-weight: 700; border-radius: 4px; background: rgba(var(--data-rgb), 0.1); color: var(--data); vertical-align: 1px; }

/* ---------- Marquee ---------- */
.stack-strip { border-block: 1px solid var(--line-2); background: var(--bg-2); padding-block: 22px; overflow: hidden; }
.stack-strip .wrap { display: grid; gap: 14px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.logo-tile { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.04); font-size: var(--s-13); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.logo-tile .lg-img { height: 18px; width: auto; }
.logo-tile small { font-weight: 400; color: var(--ink-3); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee-track [aria-hidden="true"] { display: none; } .marquee { mask-image: none; -webkit-mask-image: none; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line-2); position: relative; }
.sec.alt { background: var(--bg-2); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 5vw, 72px); align-items: start; }
.sec-grid > header { position: sticky; top: 96px; display: grid; gap: 14px; }
.sec-grid > header p { color: var(--ink-2); max-width: 40ch; }
.sec-body { display: grid; gap: 28px; min-width: 0; }
.sec-body > p { max-width: 64ch; color: var(--ink-2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head > div { display: grid; gap: 12px; max-width: 64ch; }
.sec-head p { color: var(--ink-2); }
@media (max-width: 860px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } .sec-grid > header { position: static; } }

/* ---------- Architecture diagram (flow) ---------- */
.fx { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; box-shadow: 0 30px 60px -48px var(--shadow); }
.fx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.fx-envs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line-2); }
.fx-envs button { font-size: var(--s-13); font-weight: 600; padding: 6px 11px; border-radius: 6px; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fx-envs button:hover { color: var(--ink); }
.fx-envs button[aria-selected="true"] { background: var(--panel-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.fx-envs .lg-img { height: 14px; }
.fx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--s-12); color: var(--ink-3); }
.fx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx-legend .g { width: 9px; height: 9px; }
.fx-legend .ln { width: 18px; height: 0; border-top: 1.5px dashed var(--ai-line); }
.fx-view { position: relative; overflow: hidden; background-color: var(--stage); background-image: radial-gradient(rgba(var(--ink-rgb), 0.1) 1px, transparent 1px); background-size: 22px 22px; }
.fx-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fx-svg { position: absolute; inset: 0; overflow: visible; }
.fx-zone { position: absolute; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--panel-rgb), 0.55); }
.fx-zone > span { position: absolute; left: 12px; top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; white-space: nowrap; display: flex; gap: 8px; align-items: baseline; }
.fx-zone > span small { font-weight: 400; color: var(--ink-3); opacity: 0.8; }
.fx-zone.z-ext { border-style: dashed; background: none; }
.fx-zone.z-lane { background: rgba(var(--det-rgb), 0.035); border-color: rgba(var(--det-rgb), 0.22); }
.fx-zone.z-platform { border-color: rgba(var(--data-rgb), 0.3); background: rgba(var(--data-rgb), 0.025); }
.fx-zone.z-platform > span { color: var(--data); }
.fx-zone.z-secure { border: 1.5px dashed rgba(var(--ai-fill-rgb), 0.85); background: rgba(var(--ai-fill-rgb), 0.06); }
.fx-zone.z-secure > span { color: var(--ai); }
.fx-zone.z-human { border-color: rgba(var(--human-rgb), 0.35); background: rgba(var(--human-rgb), 0.035); }
.fx-node {
  position: absolute; left: 0; top: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  padding: 9px 10px 9px 10px; display: grid; gap: 7px; box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.05), 0 10px 22px -16px var(--shadow);
  transition: opacity .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.fx-nh { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; }
.fx-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--det-wash); color: var(--det); }
.fx-ic svg { width: 17px; height: 17px; }
.fx-nt b { display: block; font-size: 12.8px; line-height: 1.25; font-weight: 650; color: var(--ink); }
.fx-nt small { display: block; font-size: 11px; line-height: 1.3; color: var(--ink-3); margin-top: 1px; }
.fx-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.fx-tools .chip { font-size: 10.5px; padding: 1px 6px; }
.fx-node.k-ai { border-color: rgba(var(--ai-fill-rgb), 0.85); background: linear-gradient(180deg, #fff7e8, #fffdf8); }
.fx-node.k-ai .fx-ic { background: var(--ai-wash); color: var(--ai); }
.fx-node.k-human { border-color: rgba(var(--human-rgb), 0.5); }
.fx-node.k-human .fx-ic { background: var(--human-wash); color: var(--human); }
.fx-node.k-ext { border-style: dashed; border-color: var(--ext); background: rgba(var(--panel-rgb), 0.7); }
.fx-node.k-ext .fx-ic { background: rgba(var(--ink-rgb), 0.05); color: var(--ext); }
.fx-node.k-store .fx-ic { border-radius: 50%; }
.fx.is-stepping .fx-node { opacity: 0.32; }
.fx.is-stepping .fx-node.is-on { opacity: 1; border-color: var(--data); box-shadow: 0 0 0 3px rgba(var(--data-rgb), 0.14), 0 16px 34px -18px var(--shadow); }
.fx.is-stepping .fx-node.k-ai.is-on { border-color: var(--ai-line); box-shadow: 0 0 0 3px rgba(var(--ai-fill-rgb), 0.25), 0 0 30px -6px rgba(var(--ai-fill-rgb), 0.45); }
.fx.is-stepping .fx-node.k-human.is-on { border-color: var(--human); box-shadow: 0 0 0 3px rgba(var(--human-rgb), 0.14); }
.fx-edge { fill: none; stroke: var(--edge); stroke-width: 1.6; transition: stroke .35s ease, opacity .35s ease; }
.fx-edge.e-ctrl { stroke-dasharray: 5 5; }
.fx-edge.e-loop { stroke-dasharray: 6 5; stroke: var(--edge); }
.fx-edge.e-assist { stroke: var(--ai-line); stroke-dasharray: 6 5; }
.fx-flow { fill: none; stroke: var(--data); stroke-width: 1.6; stroke-dasharray: 2 12; stroke-linecap: round; opacity: 0.55; animation: fxflow 1.2s linear infinite; }
.fx-flow.e-assist { stroke: var(--ai-line); }
@keyframes fxflow { to { stroke-dashoffset: -14; } }
.fx.is-stepping .fx-edge, .fx.is-stepping .fx-flow { opacity: 0.18; }
.fx.is-stepping .fx-edge.is-on { opacity: 1; stroke: var(--edge-on); }
.fx.is-stepping .fx-edge.e-assist.is-on { stroke: var(--ai-line); }
.fx.is-stepping .fx-flow.is-on { opacity: 0.95; }
.fx-pk { fill: var(--data); filter: drop-shadow(0 0 4px rgba(var(--data-rgb), 0.5)); }
.fx-pk.p-ai { fill: var(--ai-fill); filter: drop-shadow(0 0 4px rgba(var(--ai-fill-rgb), 0.7)); }
.fx-gate { fill: var(--panel); stroke: var(--human); stroke-width: 2.2; }
.fx-lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; white-space: nowrap; transition: opacity .35s ease; }
.fx.is-stepping .fx-lbl { opacity: 0.3; }
.fx.is-stepping .fx-lbl.is-on { opacity: 1; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .fx-flow { animation: none; } }

.fx-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; padding: 14px; border-top: 1px solid var(--line-2); align-items: start; }
.fx-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-play { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-13); font-weight: 600; padding: 8px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.fx-play svg { width: 12px; height: 12px; }
.fx-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.fx-steps button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-3); font-size: var(--s-12); font-weight: 650; cursor: pointer; font-variant-numeric: tabular-nums; position: relative; overflow: hidden; }
.fx-steps button[aria-current="step"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fx-cap { display: grid; gap: 4px; min-height: 3.2em; }
.fx-cap b { font-size: var(--s-15); }
.fx-cap p { color: var(--ink-2); font-size: var(--s-15); max-width: 80ch; }
.fx-cap .n { color: var(--ink-3); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.fx-prog { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.fx-prog i { display: block; height: 100%; width: 100%; background: var(--data); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) { .fx-bar { grid-template-columns: minmax(0, 1fr); } }

/* mini thumbnails */
.fx-mini { border: 0; background: none; border-radius: 0; }
.fx-mini .fx-view { background: none; position: absolute; inset: 0; }
.fx-mini .fx-node { padding: 0; border-radius: 6px; }
.fx-mini .fx-zone > span { display: none; }

/* pattern tabs */
.pattern-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pattern-tabs button { font-size: var(--s-15); font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.pattern-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pattern-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pattern-note > div { padding: 14px 16px; display: grid; gap: 4px; align-content: start; font-size: var(--s-15); color: var(--ink-2); }
.pattern-note > div + div { border-left: 1px solid var(--line); }
.pattern-note b { color: var(--ink); font-size: var(--s-13); }
@media (max-width: 760px) { .pattern-note { grid-template-columns: 1fr; } .pattern-note > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Mocks (product demos) ---------- */
.mock { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(var(--ink-rgb), 0.35); }
.mock-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); flex-wrap: wrap; }
.mock-top .dots { display: inline-flex; gap: 6px; }
.mock-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-top b { font-size: var(--s-13); font-weight: 650; }
.mock-top .sub { font-size: var(--s-12); color: var(--ink-3); }
.mock-top .sp { flex: 1; }
.mock-replay { font-size: var(--s-12); font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--ink-2); }
.mock-body { padding: 16px; }
.mono { font-family: var(--mono); font-size: 12px; }
pre.code { margin: 0; padding: 14px 16px; background: var(--code-bg); border: 1px solid var(--line-2); border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.65; color: var(--ink); }
pre.code .k { color: #2c62b0; } pre.code .s { color: #2d7a3a; } pre.code .c { color: #66768a; } pre.code .n { color: #9a5900; }

/* chat */
.chat-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; }
.chat { padding: 18px; display: grid; gap: 14px; align-content: start; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: var(--s-15); line-height: 1.5; max-width: 92%; }
.msg.user { background: var(--panel-3); justify-self: end; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--s-13); color: var(--ink-2); }
.agent-steps li { display: grid; grid-template-columns: 11px 1fr auto; gap: 10px; align-items: start; }
.agent-steps li .g { margin-top: 4px; }
.agent-steps em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sources { border-left: 1px solid var(--line-2); padding: 18px; display: grid; gap: 10px; align-content: start; background: var(--panel-2); }
.sources h4 { font-size: var(--s-13); color: var(--ink-3); font-weight: 600; }
.src { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; font-size: var(--s-13); background: var(--panel); }
.src b { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.src span { color: var(--ink-3); }
.src mark { background: rgba(var(--data-rgb), 0.12); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.run-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.run-stats div { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.run-stats i { display: block; font-style: normal; font-size: 0.7rem; color: var(--ink-3); }
.run-stats b { font-size: var(--s-15); font-weight: 650; }
@media (max-width: 820px) { .chat-grid { grid-template-columns: minmax(0, 1fr); } .sources { border-left: 0; border-top: 1px solid var(--line-2); } }

/* table-ish mocks */
.mtable { width: 100%; border-collapse: collapse; font-size: var(--s-13); min-width: 660px; }
.mtable td, .mtable th { white-space: nowrap; }
.mtable th { text-align: left; font-size: 0.72rem; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable code { color: var(--ink); }
.mtable .smp { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.conf { display: grid; grid-template-columns: 70px auto; gap: 8px; align-items: center; }
.conf .bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.conf .bar i { display: block; height: 100%; border-radius: 3px; background: var(--c-det); transform-origin: 0 50%; }
.conf .bar i.low { background: var(--c-ai); }
.conf span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
.pill.ok { color: var(--human); border-color: rgba(var(--human-rgb), 0.4); background: var(--human-wash); }
.pill.warn { color: var(--ai); border-color: rgba(var(--ai-fill-rgb), 0.7); background: var(--ai-wash); }
.pill.run { color: var(--data); border-color: rgba(var(--data-rgb), 0.4); }
.pill.edit { color: var(--det); border-color: rgba(var(--det-rgb), 0.4); background: var(--det-wash); }
.scroll-x { overflow-x: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); padding: 14px; display: grid; gap: 10px; align-content: start; }
.panel h4 { font-size: var(--s-13); color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.stat i { font-style: normal; font-size: 0.72rem; color: var(--ink-3); }
.stat b { font-size: 1.2rem; font-weight: 650; }
.stat small { font-size: 0.72rem; color: var(--ink-3); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--s-13); }
.checklist li { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; color: var(--ink-2); }
.checklist .ck { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--human); position: relative; }
.checklist .ck::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 4px; height: 7px; border: solid var(--human); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.checklist .ck.x { border-color: var(--ai); }
.checklist .ck.x::after { border: 0; left: 5px; top: 2px; width: 1.6px; height: 7px; background: var(--ai); transform: none; }
.checklist em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* trace */
.trace { display: grid; gap: 0; min-width: 680px; }
.trace-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--s-13); }
.trace-row .nm { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-row .nm small { color: var(--ink-3); }
.trace-row .tk { position: relative; height: 14px; }
.trace-row .tk i { position: absolute; top: 2px; height: 10px; border-radius: 3px; background: var(--c-det); transform-origin: 0 50%; }
.trace-row .tk i.ai { background: var(--c-ai); }
.trace-row .tk i.human { background: repeating-linear-gradient(135deg, var(--c-human) 0 5px, rgba(22, 151, 122, 0.45) 5px 9px); }
.trace-row .d { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.trace-row.trace-axis { border-bottom: 0; font-size: 0.7rem; color: var(--ink-3); padding-top: 8px; }
.trace-axis .ax { position: relative; height: 16px; }
.trace-axis .ax span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.trace-axis .ax span:first-child { transform: none; }
.trace-axis .ax span:last-child { transform: translateX(-100%); }

/* sequence (MCP) */
.seq { position: relative; min-width: 720px; }
.seq-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.seq-lanes > div { text-align: center; font-size: var(--s-13); font-weight: 650; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; margin: 0 8px; background: var(--panel); }
.seq-lanes > div small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.7rem; }
.seq-body { position: relative; margin-top: 8px; }
.seq-body::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent calc(12.5% - 0.5px), var(--line-2) calc(12.5% - 0.5px), var(--line-2) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px), transparent calc(37.5% - 0.5px), var(--line-2) calc(37.5% - 0.5px), var(--line-2) calc(37.5% + 0.5px), transparent calc(37.5% + 0.5px), transparent calc(62.5% - 0.5px), var(--line-2) calc(62.5% - 0.5px), var(--line-2) calc(62.5% + 0.5px), transparent calc(62.5% + 0.5px), transparent calc(87.5% - 0.5px), var(--line-2) calc(87.5% - 0.5px), var(--line-2) calc(87.5% + 0.5px), transparent calc(87.5% + 0.5px)); }
.seq-msg { position: relative; height: 40px; }
.seq-msg .ar { position: absolute; top: 22px; height: 2px; background: var(--det); transform-origin: 0 50%; }
.seq-msg .ar.rev { transform-origin: 100% 50%; background: var(--human); }
.seq-msg .ar::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--det); border-right: 0; }
.seq-msg .ar.rev::after { right: auto; left: -1px; border-left: 0; border-right: 7px solid var(--human); }
.seq-msg .lb { position: absolute; top: 2px; font-size: 11.5px; font-family: var(--mono); color: var(--ink); white-space: nowrap; transform: translateX(-50%); background: var(--panel); padding: 0 6px; }
.seq-msg .note { position: absolute; top: 9px; transform: translateX(-50%); font-size: 11px; color: var(--human); border: 1px solid rgba(var(--human-rgb), 0.4); border-radius: 4px; padding: 2px 8px; background: var(--panel); white-space: nowrap; }

/* star schema */
.links-host { position: relative; }
svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
svg.links path { fill: none; stroke: var(--edge); stroke-width: 1.4; }
.mock-flush { padding: 0; }
.star { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto; gap: 22px 48px; align-items: start; }
.star .tb { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 12px; position: relative; z-index: 1; }
.star .tb h5 { margin: 0; font-size: 12px; font-family: var(--mono); padding: 7px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink); }
.star .tb h5 small { color: var(--ink-3); font-family: var(--font); }
.star .tb ul { list-style: none; margin: 0; padding: 6px 10px 8px; display: grid; gap: 2px; font-family: var(--mono); color: var(--ink-2); font-size: 11.5px; }
.star .tb li.k { color: var(--data); }
.star .tb.fact { grid-column: 2; grid-row: 1 / span 2; align-self: center; border-color: rgba(var(--det-rgb), 0.55); box-shadow: 0 0 0 4px var(--det-wash); }
@media (max-width: 760px) { .star { grid-template-columns: 1fr 1fr; gap: 14px; } .star .tb.fact { grid-column: 1 / -1; grid-row: auto; order: -1; } .star svg.links { display: none; } }

/* DAG */
.dag { position: relative; display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); grid-template-rows: auto auto; gap: 18px 30px; align-items: center; min-width: 860px; padding: 6px 2px; }
.dag .t { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel); font-size: 12px; display: grid; gap: 6px; position: relative; z-index: 1; }
.dag .t b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; }

/* charts in mocks */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line-2); stroke-width: 1; }
.chart .bar-c { fill: var(--c-det); }
.chart .bar-hi { fill: var(--c-ai); }
.chart .ln { fill: none; stroke: var(--c-det); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--c-det); opacity: 0.1; }
.chart .dot { fill: var(--c-det); stroke: var(--panel); stroke-width: 2; }
.chart .val { fill: var(--ink); font-weight: 600; }
.ask { display: grid; gap: 10px; }
.ask .q { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); font-size: var(--s-15); }
.ask .q svg { width: 16px; height: 16px; color: var(--ai-line); flex: none; }

/* ---------- 3D exploded sheet ---------- */
.sheet { border: 1px solid var(--line); background: var(--panel); position: relative; border-radius: 14px; overflow: hidden; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.sheet-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 18px; font-size: var(--s-13); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.tblock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); font-size: var(--s-12); }
.tblock div { padding: 7px 12px; border-bottom: 1px solid var(--line-2); display: grid; gap: 1px; }
.tblock div:not(:nth-child(3n)) { border-right: 1px solid var(--line-2); }
.tblock div:nth-last-child(-n+3) { border-bottom: 0; }
.tblock b { font-weight: 600; font-size: var(--s-13); color: var(--ink); }
.tblock i { font-style: normal; color: var(--ink-3); }
.xv-stage { position: relative; height: clamp(520px, 78vh, 820px); overflow: hidden; background-color: var(--stage); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.xv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.xv-canvas.is-dragging { cursor: grabbing; }
.xv-canvas.is-hover { cursor: pointer; }
.xv-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.xv-leaders line, .xv-leaders polyline { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.xv-leaders circle { fill: var(--ink-2); }
.xv-labels { position: absolute; inset: 0; pointer-events: none; }
.xv-labels > * { position: absolute; left: 0; top: 0; will-change: transform; }
.xv-balloon { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.xv-bn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink-3); background: var(--panel); display: inline-grid; place-items: center; font-size: var(--s-12); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.xv-bl { font-size: var(--s-13); font-weight: 560; background: rgba(var(--stage-rgb), 0.88); padding: 1px 4px; border-radius: 2px; }
.xv-balloon:hover .xv-bn, .xv-balloon.is-active .xv-bn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xv-balloon.is-active .xv-bl { text-decoration: underline; text-underline-offset: 3px; }
.xv-narrow .xv-bl { display: none; }
.xv-mlabel { font-size: var(--s-12); font-weight: 560; white-space: nowrap; padding: 3px 7px 3px 6px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s ease; }
.xv-note { font-size: var(--s-12); color: var(--ink-2); max-width: 170px; line-height: 1.3; background: rgba(var(--stage-rgb), 0.88); padding: 2px 4px; }
.xv-encl { font-size: var(--s-12); line-height: 1.3; text-align: center; max-width: 200px; background: rgba(var(--stage-rgb), 0.88); padding: 2px 6px; color: var(--ink-2); }
.xv-encl b { display: block; font-size: var(--s-13); font-weight: 650; color: var(--ai); }
.xv-controls { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.xv-btn { font-size: var(--s-13); font-weight: 560; padding: 7px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.xv-btn:hover { border-color: var(--ink-3); }
.xv-hint { position: absolute; top: 16px; left: 16px; font-size: var(--s-12); color: var(--ink-3); margin: 0; max-width: 46%; }
.xv-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); font-size: var(--s-15); }
.xv-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; max-height: clamp(520px, 78vh, 820px); }
.panel-head { padding: 14px 18px 10px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h2 { font-size: var(--s-15); font-stretch: 100%; letter-spacing: 0; font-weight: 650; }
.panel-head span { font-size: var(--s-12); color: var(--ink-3); }
.parts { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.part { border-bottom: 1px solid var(--line-2); }
.part-head { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; text-align: left; background: none; border: 0; padding: 11px 18px; cursor: pointer; }
.part-head:hover { background: var(--panel); }
.part-name { font-weight: 600; font-size: var(--s-15); line-height: 1.3; }
.part-kinds { display: inline-flex; gap: 4px; }
.part.is-active .part-head { background: var(--panel); }
.part.is-active .part-head .xv-bn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.part-body { display: none; padding: 2px 18px 18px 56px; font-size: var(--s-15); color: var(--ink-2); line-height: 1.5; background: var(--panel); }
.part.is-active .part-body { display: grid; gap: 12px; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; color: var(--ink); font-size: var(--s-13); }
.mods li { display: flex; align-items: center; gap: 8px; }
.mods em { font-style: normal; color: var(--ink-3); }
.tools { font-size: var(--s-13); }
.tools b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.part-link { font-weight: 600; font-size: var(--s-15); color: var(--ink); }
@media (max-width: 980px) {
  .sheet-grid, .sheet-foot { grid-template-columns: minmax(0, 1fr); }
  .xv-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .tblock { border-left: 0; border-top: 1px solid var(--line-2); }
  .xv-stage { height: clamp(440px, 68vh, 620px); }
}
@media (max-width: 560px) { .xv-hint { display: none; } .part-body { padding-left: 18px; } }

/* ---------- Content blocks ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.pair > div { padding: 22px 24px; display: grid; gap: 12px; align-content: start; }
.pair > div + div { border-left: 1px solid var(--line); }
.pair h3 { display: flex; align-items: center; gap: 10px; }
.pair .sub { color: var(--ink-2); font-size: var(--s-15); }
.pair ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--s-15); color: var(--ink-2); }
.pair .k { font-size: var(--s-13); font-weight: 600; color: var(--ink-3); }
@media (max-width: 700px) { .pair { grid-template-columns: minmax(0, 1fr); } .pair > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.t { border-collapse: collapse; width: 100%; font-size: var(--s-15); min-width: 620px; }
.t th, .t td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.t thead th { font-size: var(--s-13); font-weight: 600; color: var(--ink-3); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.t tbody tr:last-child > * { border-bottom: 0; }
.t tbody th { font-weight: 600; white-space: nowrap; }
.t td { color: var(--ink-2); }
.t td.note { color: var(--ink-3); }
.tag { display: inline-block; font-size: var(--s-12); font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(var(--human-rgb), 0.4); color: var(--human); white-space: nowrap; background: var(--human-wash); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.checks li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--ink-3); border-radius: 3px; margin-top: 6px; }
.deliver { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--data); border-radius: 8px; color: var(--ink-2); }
.deliver b { display: block; margin-bottom: 4px; color: var(--ink); }
.built { list-style: none; margin: 0; padding: 0; display: grid; }
.built li { padding: 16px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 4px; }
.built li:first-child { border-top: 1px solid var(--line); }
.built .where { font-size: var(--s-13); color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; position: relative; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); position: relative; }
.steps > li:first-child { border-top: 1px solid var(--line); }
.steps > li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; font-weight: 650; font-size: var(--s-15); font-variant-numeric: tabular-nums; background: var(--bg); position: relative; z-index: 1; transition: background .3s, color .3s, border-color .3s; }
.steps > li.is-lit::before { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps h3 { font-size: var(--s-17); }
.steps p { color: var(--ink-2); max-width: 62ch; }
.steps[data-rail]::before, .steps[data-rail]::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 38px; width: 2px; background: var(--line-2); }
.steps[data-rail]::after { background: var(--data); transform-origin: 50% 0; transform: scaleY(var(--rail, 0)); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: grid; gap: 8px; align-content: start; }
.cards h3 { font-size: var(--s-17); }
.cards p { font-size: var(--s-15); color: var(--ink-2); }
.matrix { display: grid; border-top: 1px solid var(--line); }
.matrix .row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 1.7fr) minmax(0, 1.7fr); border-bottom: 1px solid var(--line-2); }
.matrix .row > div { padding: 16px 14px 18px 0; font-size: var(--s-15); display: grid; gap: 6px; align-content: start; color: var(--ink-2); }
.matrix .row > div:first-child { gap: 8px; color: var(--ink); }
.matrix .row > div:first-child .tag { justify-self: start; }
.matrix .row > div + div { padding-left: 14px; border-left: 1px solid var(--line-2); }
.matrix .row.head > div { font-size: var(--s-13); color: var(--ink-3); font-weight: 600; padding-block: 10px; }
.matrix .row h3 { font-size: var(--s-17); display: flex; gap: 8px; align-items: center; }
.matrix .row h3 .lg-img { height: 16px; }
.matrix .lab { display: none; font-size: var(--s-12); color: var(--ink-3); font-weight: 600; }
@media (max-width: 760px) {
  .matrix .row { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
  .matrix .row.head { display: none; }
  .matrix .row > div + div { border-left: 0; padding-left: 0; padding-block: 4px; }
  .matrix .lab { display: block; }
}
.code-pair { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; }
.code-pair figure { margin: 0; display: grid; gap: 6px; }
.code-pair figcaption { font-size: var(--s-13); color: var(--ink-3); }
@media (max-width: 700px) { .code-pair { grid-template-columns: minmax(0, 1fr); } }
.skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill-list li { display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.6fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: var(--s-15); color: var(--ink-2); }
.skill-list code { color: var(--ink); }
.skill-list .ex { color: var(--ink-3); font-size: var(--s-13); }
@media (max-width: 600px) { .skill-list li { grid-template-columns: 1fr; gap: 2px; } }
.decide { display: grid; border-top: 1px solid var(--line); }
.decide > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.decide .q { font-weight: 600; font-size: var(--s-17); }
.decide .a { display: flex; gap: 10px; align-items: flex-start; font-size: var(--s-15); color: var(--ink-2); }
.decide .a .g { margin-top: 5px; }
.decide .a b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .decide > div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Home specifics ---------- */
/* ---------- Problems we solve: a list of business problems and one open detail pane ---------- */
.sol-key { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--s-13); color: var(--ink-3); }
.sol-key span { display: inline-flex; align-items: center; gap: 7px; }
.sol-key b { color: var(--ink); font-weight: 600; }
.sol { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sol-list { display: grid; gap: 4px; position: sticky; top: 92px; }
.sol-list button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-align: left; padding: 12px 14px 12px 16px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; position: relative; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.sol-list button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transition: transform .25s ease; }
.sol-list button:hover { color: var(--ink); background: rgba(var(--panel-rgb), 0.6); }
.sol-list button[aria-selected="true"] { color: var(--ink); background: var(--panel); border-color: var(--line); box-shadow: 0 10px 24px -18px var(--shadow); }
.sol-list button[aria-selected="true"]::before { transform: none; }
.sol-dept { grid-column: 1; font-size: var(--s-12); color: var(--ink-3); font-weight: 550; }
.sol-t { grid-column: 1; font-family: var(--font-display); font-size: var(--s-15); font-weight: 600; letter-spacing: 0; word-spacing: 0.04em; line-height: 1.3; }
.sol-seq { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; gap: 3px; opacity: 0.55; transition: opacity .2s ease; }
.sol-seq .g { width: 7px; height: 7px; }
.sol-seq .g-human { border-width: 1.5px; }
.sol-list button[aria-selected="true"] .sol-seq, .sol-list button:hover .sol-seq { opacity: 1; }
.sol-pane { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 14px; box-shadow: 0 30px 60px -44px var(--shadow); }
.sol-pane[hidden] { display: none; }
.sol-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: var(--s-13); color: var(--ink-3); }
.sol-mix { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 550; }
.sol-mix .g { width: 9px; height: 9px; }
.sol-pane h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; }
.sol-prob { margin: 0; max-width: 72ch; color: var(--ink-2); }

/* the route: one node per step, a track between them and a dot carrying the work along it */
.sol-route { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; --nh: 48px; }
.sol-route::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: calc(var(--nh) / 2); height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--line), var(--edge), var(--line)); border-radius: 2px; transform-origin: 0 50%; }
.sol-route li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; position: relative; z-index: 1; }
.sol-node { width: var(--nh); height: var(--nh); border-radius: 14px; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--kc); color: var(--kc); box-shadow: 0 0 0 5px var(--panel), 0 0 0 5px var(--kw); }
.sol-node svg { width: 22px; height: 22px; }
.sol-route .k-det { --kc: var(--det); --kw: var(--det-wash); --kg: rgba(var(--det-rgb), 0.22); }
.sol-route .k-ai { --kc: var(--ai-line); --kw: var(--ai-wash); --kg: rgba(var(--ai-fill-rgb), 0.38); }
.sol-route .k-ai .sol-node { border-radius: 16px 16px 16px 4px; }
.sol-route .k-human { --kc: var(--human); --kw: var(--human-wash); --kg: rgba(var(--human-rgb), 0.24); }
.sol-route .k-human .sol-node { border-radius: 50%; }
.sol-kind { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--s-12); font-weight: 600; color: var(--ink-3); }
.sol-kind .g { width: 8px; height: 8px; }
.sol-kind .g-human { border-width: 1.5px; }
.sol-route b { font-family: var(--font-display); font-size: var(--s-15); font-weight: 600; letter-spacing: 0; word-spacing: 0.04em; line-height: 1.3; }
.sol-d { font-size: var(--s-13); color: var(--ink-2); line-height: 1.45; max-width: 26ch; }
.sol-dot { position: absolute; left: 12.5%; width: 75%; top: calc(var(--nh) / 2); height: 0; z-index: 2; pointer-events: none; opacity: 0; }
.sol-dot i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--data); box-shadow: 0 0 0 4px rgba(var(--data-rgb), 0.18); }

.sol-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 32px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.sol-foot h4 { font-size: var(--s-13); font-weight: 600; color: var(--ink-3); margin-bottom: 10px; font-family: var(--font); letter-spacing: 0; }
.sol-ch { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--s-15); }
.sol-ch li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.sol-ch li::before { content: ""; width: 12px; height: 7px; margin: 6px 0 0 3px; border-left: 2px solid var(--human); border-bottom: 2px solid var(--human); transform: rotate(-45deg); }
.sol-sys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sol-sys a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); text-decoration: none; color: var(--ink); font-size: var(--s-15); font-weight: 550; transition: border-color .2s ease, background-color .2s ease; }
.sol-sys a:hover { border-color: var(--ink-3); background: var(--panel); }
.sol-sys .n { font-size: var(--s-12); color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.sol-sys .navarrow { color: var(--ink-3); }

/* entrance for the open pane, and the dot that walks the route while the section is on screen */
@media (prefers-reduced-motion: no-preference) {
  .sol-pane.is-in .sol-route::before { animation: sol-draw .7s cubic-bezier(.3, .7, .2, 1) both; }
  .sol-pane.is-in .sol-route li { animation: sol-rise .45s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(0.12s + var(--i) * 0.09s); }
  .sol-pane.is-in > h3, .sol-pane.is-in > .sol-prob { animation: sol-fade .4s ease both; }
  .sol.is-live .sol-pane.is-in .sol-dot { animation: sol-walk 6s cubic-bezier(.45, 0, .55, 1) 0.9s infinite; }
  .sol.is-live .sol-pane.is-in .sol-node { animation: sol-hit 6s ease-out infinite; animation-delay: calc(0.9s + var(--i) * 1.5s); }
}
@keyframes sol-draw { from { transform: scaleX(0); } }
@keyframes sol-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes sol-fade { from { opacity: 0; } }
@keyframes sol-walk {
  0% { opacity: 0; transform: translateX(0); }
  4% { opacity: 1; }
  75% { opacity: 1; transform: translateX(100%); }
  82%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes sol-hit {
  0% { box-shadow: 0 0 0 5px var(--panel), 0 0 0 11px var(--kg); }
  16%, 100% { box-shadow: 0 0 0 5px var(--panel), 0 0 0 5px var(--kw); }
}

@media (max-width: 1099px) {
  .sol { grid-template-columns: minmax(0, 1fr); }
  .sol-list { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .sol-list::-webkit-scrollbar { display: none; }
  .sol-list button { flex: none; display: inline-flex; gap: 8px; padding: 9px 14px; border-radius: 999px; border-color: var(--line); background: var(--panel); }
  .sol-list button::before, .sol-list .sol-dept { display: none; }
  .sol-list .sol-t { font-size: var(--s-13); white-space: nowrap; }
  .sol-list button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
  .sol-list button[aria-selected="true"] .sol-seq { opacity: 0.9; }
}
@media (max-width: 760px) {
  .sol-route { grid-template-columns: minmax(0, 1fr); gap: 16px; --nh: 42px; }
  .sol-route::before { display: none; }
  .sol-route li:not(:last-of-type)::after { content: ""; position: absolute; left: calc(var(--nh) / 2 - 1px); top: calc(var(--nh) + 6px); bottom: -10px; width: 2px; border-radius: 2px; background: var(--line); transform-origin: 50% 0; }
  .sol-route li { grid-template-columns: var(--nh) 1fr; justify-items: start; text-align: left; gap: 2px 14px; }
  .sol-node { grid-row: span 3; }
  .sol-node svg { width: 20px; height: 20px; }
  .sol-kind { margin-top: 0; }
  .sol-d { max-width: none; }
  .sol-dot { display: none; }
  .sol-foot { grid-template-columns: minmax(0, 1fr); }
  @media (prefers-reduced-motion: no-preference) {
    .sol-pane.is-in .sol-route li::after { animation: sol-draw-y .45s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(0.3s + var(--i) * 0.12s); }
    .sol.is-live .sol-pane.is-in .sol-node { animation-duration: 4s; animation-delay: calc(0.6s + var(--i) * 0.6s); }
  }
}
@keyframes sol-draw-y { from { transform: scaleY(0); } }

.sys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sys-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-decoration: none; overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
.sys-card:hover { border-color: #b3bfcc; transform: translateY(-2px); box-shadow: 0 24px 48px -32px var(--shadow); }
.sys-card .thumb { position: relative; height: 150px; border-bottom: 1px solid var(--line-2); background: var(--stage); overflow: hidden; }
.sys-card .thumb .fx { position: absolute; inset: 10px; }
.sys-card .info { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.sys-card .info .n { font-size: var(--s-12); color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.sys-card .info h3 { font-size: var(--s-17); }
.sys-card .info p { font-size: var(--s-13); color: var(--ink-2); }
.sys-card .info .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sys-card.feat { border-color: rgba(var(--ai-fill-rgb), 0.9); box-shadow: 0 0 0 1px rgba(var(--ai-fill-rgb), 0.25), 0 30px 60px -40px rgba(var(--ai-fill-rgb), 0.55); }
.sys-card.feat .n { color: var(--ai); }
@media (max-width: 1100px) { .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sys-grid { grid-template-columns: minmax(0, 1fr); } }

.feature { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: minmax(150px, 0.8fr) 2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: var(--s-15); }
.feature-list b { font-weight: 600; font-size: var(--s-17); }
.feature-list span { color: var(--ink-2); }
@media (max-width: 600px) { .feature-list li { grid-template-columns: 1fr; gap: 4px; } }

.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.industries > div { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
.industries h3 { font-size: var(--s-17); }
.industries ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; color: var(--ink-2); font-size: var(--s-13); }
.industries .xp { font-size: var(--s-12); color: var(--human); }
@media (max-width: 1000px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: var(--s-17); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border: solid var(--ink-3); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .a { padding: 0 40px 20px 0; color: var(--ink-2); display: grid; gap: 10px; max-width: 72ch; }

.person { display: grid; gap: 20px; }
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: minmax(140px, 0.7fr) 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: var(--s-15); color: var(--ink-2); }
.cv .when { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cv b { font-weight: 600; display: block; color: var(--ink); }
@media (max-width: 600px) { .cv li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contact + footer ---------- */
.contact { background: radial-gradient(80% 120% at 85% 0%, rgba(167, 139, 250, 0.16), rgba(125, 211, 252, 0.07) 45%, transparent 70%), var(--bg-2); }
.contact-box { display: grid; gap: 18px; }
.contact-lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 56ch; }
.btn .ext { width: 14px; height: 14px; flex: none; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 650; font-stretch: var(--semi); letter-spacing: -0.015em; user-select: all; -webkit-user-select: all; word-break: break-all; }
.copy-state { font-size: var(--s-13); color: var(--ink-2); min-height: 1.2em; }
.prep { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--s-15); }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.pager a { padding: 26px 0; text-decoration: none; display: grid; gap: 4px; }
.pager a + a { text-align: right; border-left: 1px solid var(--line-2); padding-left: 16px; }
.pager span { font-size: var(--s-13); color: var(--ink-3); }
.pager b { font-family: var(--font-display); font-weight: 600; font-size: var(--s-20); letter-spacing: -0.015em; }
.pager a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: var(--s-15); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: var(--s-13); font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-sys { columns: 2; column-gap: 24px; }
.foot-sys li { break-inside: avoid; margin-bottom: 6px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid .sn { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 8px; }
.fine { margin-top: 36px; color: var(--ink-3); font-size: var(--s-13); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } .foot-sys { columns: 1; } }

.env-note { margin-top: 12px; color: var(--ink-3); font-size: var(--s-13); display: flex; gap: 8px; align-items: baseline; }
.env-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--human); flex: none; transform: translateY(-1px); }
.fx-mini .fx-edge { stroke-width: 5; stroke: var(--edge); }
.fx-mini .fx-flow { stroke-width: 5; stroke-dasharray: 6 34; animation-duration: 1.6s; }
.fx-mini .fx-zone { border-width: 3px; border-radius: 22px; }
.fx-mini .fx-node { border-width: 3px; border-radius: 14px; box-shadow: none; }
.fx-mini .fx-node.k-ai { background: rgba(var(--ai-fill-rgb), 0.4); }
.fx-mini .fx-node.k-human { background: rgba(var(--human-rgb), 0.16); }
.fx-mini .fx-node.k-det { background: rgba(var(--det-rgb), 0.14); border-color: rgba(var(--det-rgb), 0.5); }
.fx-mini .fx-node.k-ext { background: none; border-color: var(--ext); }
.fx-mini .fx-gate { display: none; }
.pattern[hidden] { display: none !important; }
.pattern { display: grid; gap: 14px; }
.sys-card .chips .chip { font-size: 0.68rem; }

/* ---------- Tool icons on chips ---------- */
.chip .ti, .logo-tile .ti { display: inline-grid; place-items: center; flex: none; color: var(--tc, var(--ink-3)); }
.chip .ti svg { width: 12px; height: 12px; }
.logo-tile .ti { width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--tc, #5f6e82) 8%, transparent); }
.logo-tile .ti svg { width: 14px; height: 14px; }
.fx-tools .chip { gap: 4px; padding: 2px 6px 2px 4px; }
.chip .lg-img ~ .ti, .logo-tile .lg-img ~ .ti { display: none; }
/* icons take the site's four colours, lightly: data stores in steel blue, AI in marigold,
   governance and quality in juniper, movement in violet, everything else in slate */
.ti { --tc: var(--ink-3); }
.ti-bucket, .ti-db, .ti-warehouse, .ti-table, .ti-share { --tc: var(--det); }
.ti-model, .ti-agent, .ti-sparkle, .ti-vector, .ti-search { --tc: var(--ai); }
.ti-shield, .ti-key, .ti-catalog, .ti-check { --tc: var(--human); }
.ti-flow, .ti-ingest, .ti-stream, .ti-api, .ti-tool, .ti-hub { --tc: var(--data); }

/* ---------- Home thumbnails ---------- */
.sys-card .thumb { height: 196px; background-color: var(--stage); background-image: radial-gradient(rgba(var(--ink-rgb), 0.08) 1px, transparent 1px); background-size: 14px 14px; }
.sys-card .thumb .fx { inset: 10px 10px 34px; }
.fx-mini .fx-node { display: grid; place-items: center; background: var(--panel); }
.fx-mic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--det); }
.fx-mic svg { width: 44px; height: 44px; stroke-width: 2.1; }
.fx-mini .fx-node.k-ai .fx-mic { color: var(--ai); }
.fx-mini .fx-node.k-human .fx-mic { color: var(--human); }
.fx-mini .fx-node.k-ext .fx-mic { color: var(--ext); }
.fx-mini.is-stepping .fx-node { opacity: 0.35; }
.fx-mini.is-stepping .fx-node.is-on { opacity: 1; border-color: var(--data); box-shadow: 0 0 0 10px rgba(var(--data-rgb), 0.16); }
.fx-mini.is-stepping .fx-node.k-ai.is-on { border-color: var(--ai-line); box-shadow: 0 0 0 10px rgba(var(--ai-fill-rgb), 0.3); }
.fx-mini.is-stepping .fx-node.k-human.is-on { border-color: var(--human); box-shadow: 0 0 0 10px rgba(var(--human-rgb), 0.18); }
.fx-mini.is-stepping .fx-edge.is-on { stroke: var(--edge-on); }
.fx-mcap { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.fx-mcap span { overflow: hidden; text-overflow: ellipsis; }
.fx-mcap .pl { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--ink); position: relative; }
.fx-mcap .pl::after { content: ""; position: absolute; left: 6px; top: 4.5px; border: 3.5px solid transparent; border-left: 5px solid #fff; border-right: 0; }
.fx-mini.is-stepping .fx-mcap { color: var(--ink); }
.fx-mini.is-stepping .fx-mcap .pl { background: var(--data); }
.fx-mini.is-stepping .fx-mcap .pl::after { left: 4.5px; top: 4.5px; width: 7px; height: 7px; border: 0; background: linear-gradient(90deg, #fff 0 2.5px, transparent 2.5px 4.5px, #fff 4.5px); }
.fx-mcap b { color: var(--data); font-variant-numeric: tabular-nums; }
.sys-card .mix { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--s-12); color: var(--ink-2); font-weight: 550; }
.sys-card .mix span { display: inline-flex; align-items: center; gap: 6px; }
.sys-card .mix .g { width: 9px; height: 9px; }
.fx-mini { overflow: visible; box-shadow: none; }

/* ==========================================================================
   Home hero: one full screen over the live mountain.
   The whole composition is driven by one unit. On wide screens --u maps a 1536 x 1024 artboard
   onto the viewport, so the composition only scales and never reflows. Below that it becomes a
   flex column sized by --c, with its own canvas for tablets, phones and landscape phones.
   ========================================================================== */
.hero {
  --cover: max(calc(100vw / 1536), calc(100vh / 1024));
  --fit: calc(100vh / 910);
  --u: min(var(--cover), var(--fit));
  --blur: calc(var(--u) * 26);
  --glow: calc(var(--u) * 34);
  --hairline: max(1px, calc(var(--u) * 1.6));
  --h-ink: var(--ink); --h-sub: var(--ink-2); --h-feat: var(--ink-2); --h-foot: var(--ink-3);
  position: relative; height: 100vh; min-height: 560px; overflow: hidden; isolation: isolate;
  font-family: var(--font-display); color: var(--h-ink);
  background: linear-gradient(180deg, #e7eff9 0%, #f1eefb 46%, #faf3ea 70%, var(--bg) 100%);
}
@supports (height: 100dvh) {
  .hero { --cover: max(calc(100vw / 1536), calc(100dvh / 1024)); --fit: calc(100dvh / 910); height: 100dvh; }
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.hero-art.is-static { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%237DD3FC'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 86 L38 24 L53 50 L67 28 L92 86 Z' fill='url(%23g)' opacity='.55'/%3E%3Ccircle cx='53' cy='14' r='5' fill='%23F5B04A'/%3E%3C/svg%3E") 50% 88% / auto 58% no-repeat; }
.hero-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(62% 36% at 50% 38%, rgba(var(--bg-rgb), 0.74) 0%, rgba(var(--bg-rgb), 0.36) 55%, rgba(var(--bg-rgb), 0) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0) 78%, rgba(var(--bg-rgb), 0.92) 100%);
}
.hero-in, .hero-foot { position: relative; z-index: 1; }
.hero .title, .hero .sub, .hero .feats { margin: 0; padding: 0; font-weight: inherit; }
.hero .title span, .hero .sub span { display: block; }
.hero .feats li { list-style: none; }
#h1a, #h1b { font-variation-settings: 'wght' 424; font-weight: 424; color: var(--h-ink); }
#sub1, #sub2 { font-variation-settings: 'wght' 446; font-weight: 446; color: var(--h-sub); }
#cta { font-variation-settings: 'wght' 497; font-weight: 497; color: var(--h-ink); }
#f1, #f2, #f3, #f4 { font-variation-settings: 'wght' 534; font-weight: 534; color: var(--h-feat); }
#foot1, #foot2 { font-variation-settings: 'wght' 521; font-weight: 521; color: var(--h-foot); }
.hero .title { letter-spacing: -0.014em; }
.chev { fill: none; stroke: var(--ink-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero .rule { display: block; background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.34) 0%, rgba(var(--ink-rgb), 0.5) 52%, rgba(var(--ink-rgb), 0.3) 100%); }
.hero .rule:focus-visible { outline-offset: 6px; }

/* the glass CTA: warm on the left edge, cool on the right, echoing the sun and the haze */
.hero .cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.36) 100%),
    linear-gradient(90deg, rgba(255, 208, 138, 0.34) 0%, rgba(255, 232, 200, 0.14) 24%, rgba(190, 214, 242, 0.1) 60%, rgba(158, 198, 246, 0.3) 100%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3); backdrop-filter: blur(var(--blur)) saturate(1.3);
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 32) rgba(245, 176, 74, 0.2), 0 0 var(--glow) rgba(125, 180, 240, 0.22), inset 0 var(--hairline) 0 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow .3s ease, translate .3s ease;
}
.hero .cta:hover { translate: 0 -1px; box-shadow: 0 calc(var(--u) * 14) calc(var(--u) * 38) rgba(245, 176, 74, 0.3), 0 0 calc(var(--glow) * 1.3) rgba(125, 180, 240, 0.3), inset 0 var(--hairline) 0 0 rgba(255, 255, 255, 0.95); }
.hero .cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--hairline); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(90deg, rgba(228, 150, 36, 0.95) 0%, rgba(240, 190, 110, 0.7) 12%, rgba(200, 210, 225, 0.22) 32%, rgba(190, 205, 225, 0.16) 62%, rgba(118, 168, 238, 0.7) 90%, rgba(96, 146, 232, 0.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.hero .cta .arrow { fill: none; stroke: var(--h-ink); stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* ---------- A. Locked composition (wide screens) ---------- */
@media (min-width: 1200px) and (min-height: 560px) and (min-aspect-ratio: 100/95) {
  .hero-in { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 1536); height: calc(var(--u) * 1024); transform: translate(-50%, -50%); }
  .hero .title { position: absolute; left: 0; right: 0; top: calc(var(--u) * 250); text-align: center; font-size: calc(var(--u) * 54); line-height: calc(var(--u) * 64); }
  .hero .sub { position: absolute; left: 0; right: 0; top: calc(var(--u) * 404); text-align: center; font-size: calc(var(--u) * 20.6); line-height: calc(var(--u) * 30); }
  .hero .cta { position: absolute; left: 50%; top: calc(var(--u) * 498); transform: translateX(-50%); height: calc(var(--u) * 52); padding: 0 calc(var(--u) * 32); gap: calc(var(--u) * 14); font-size: calc(var(--u) * 20); }
  .hero .cta .arrow { width: calc(var(--u) * 16); height: calc(var(--u) * 11); }
  .hero .feats { position: absolute; left: 0; right: 0; top: calc(var(--u) * 718); display: flex; justify-content: center; gap: calc(var(--u) * 58); }
  .hero .feats li { display: flex; align-items: center; gap: calc(var(--u) * 12); font-size: calc(var(--u) * 15.2); line-height: 1; white-space: nowrap; }
  .hero .chev { width: calc(var(--u) * 9); height: calc(var(--u) * 16); }
  .hero .rule { position: absolute; left: calc(var(--u) * 767.5); top: calc(var(--u) * 782); width: max(1px, calc(var(--u) * 1.2)); height: calc(var(--u) * 57); }
  .hero-foot { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 40); text-align: center; font-size: calc(var(--u) * 15.4); line-height: calc(var(--u) * 25); }
  .hero-foot span { display: block; }
}

/* ---------- B. Flow (large tablet down to phone) ---------- */
@media (max-width: 1199px), (max-height: 559px), (max-aspect-ratio: 100/95) {
  .hero { --c: min(calc(100vw / 430), calc(100vh / 860)); display: flex; flex-direction: column; min-height: 520px; }
  .hero-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(var(--c) * 20); padding: calc(72px + var(--c) * 12) calc(var(--c) * 22) calc(var(--c) * 8); }
  .hero .title { font-size: calc(var(--c) * 33); line-height: 1.14; max-width: 16ch; text-wrap: balance; }
  .hero .sub { font-size: calc(var(--c) * 17); line-height: 1.36; max-width: 30ch; text-wrap: balance; }
  .hero .cta { gap: calc(var(--c) * 12); padding: calc(var(--c) * 16) calc(var(--c) * 26); font-size: calc(var(--c) * 18); }
  .hero .cta .arrow { width: calc(var(--c) * 16); height: calc(var(--c) * 11); }
  .hero .feats { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: calc(var(--c) * 15) calc(var(--c) * 22); margin-top: calc(var(--c) * 6); }
  .hero .feats li { display: flex; align-items: center; gap: calc(var(--c) * 9); font-size: calc(var(--c) * 14); text-align: left; }
  .hero .chev { width: calc(var(--c) * 9); height: calc(var(--c) * 16); }
  .hero .rule { width: 1px; height: calc(var(--c) * 33); margin: calc(var(--c) * 8) auto 0; }
  .hero-foot { text-align: center; padding: 0 calc(var(--c) * 22) calc(env(safe-area-inset-bottom) + var(--c) * 22); font-size: calc(var(--c) * 13); line-height: 1.55; }
  .hero-foot span { display: block; }

  /* phones: the headline wraps, so the type can grow instead of shrink */
  @media (max-width: 599px), (max-height: 429px) {
    .hero { --c: min(calc(100vw / 360), calc(100vh / 770), 1px); }
    .hero-veil { background:
      radial-gradient(130% 46% at 50% 42%, rgba(var(--bg-rgb), 0.8) 0%, rgba(var(--bg-rgb), 0.46) 55%, rgba(var(--bg-rgb), 0) 100%),
      linear-gradient(180deg, rgba(var(--bg-rgb), 0.4) 0%, rgba(var(--bg-rgb), 0) 18%, rgba(var(--bg-rgb), 0) 64%, rgba(var(--bg-rgb), 0.9) 100%); }
    .hero-in { gap: calc(var(--c) * 22); padding: calc(64px + var(--c) * 18) calc(var(--c) * 24) calc(var(--c) * 8); }
    .hero .title { font-size: calc(var(--c) * 32); line-height: 1.18; max-width: none; }
    .hero .sub { font-size: calc(var(--c) * 16); line-height: 1.45; max-width: none; }
    .hero .cta { font-size: calc(var(--c) * 16.5); padding: calc(var(--c) * 15) calc(var(--c) * 28); min-height: 48px; }
    .hero .cta .arrow { width: calc(var(--c) * 17); height: calc(var(--c) * 12); }
    .hero .feats { gap: calc(var(--c) * 16) calc(var(--c) * 18); margin-top: calc(var(--c) * 18); }
    .hero .feats li { font-size: calc(var(--c) * 13); gap: calc(var(--c) * 10); }
    .hero .chev { width: calc(var(--c) * 10); height: calc(var(--c) * 18); }
    .hero .rule { height: calc(var(--c) * 30); margin-top: calc(var(--c) * 20); }
    .hero-foot { font-size: calc(var(--c) * 13.5); line-height: 1.6; text-wrap: balance; }
  }
  /* tall phones: lift the text block so the feature list clears the summit */
  @media (max-width: 599px) and (min-height: 600px) {
    .hero-in { padding-bottom: calc(var(--c) * 96); }
  }
  /* landscape phones: re-proportion the canvas */
  @media (max-height: 429px) and (min-aspect-ratio: 1/1) {
    .hero { --c: min(calc(100vw / 760), calc(100vh / 430)); }
    .hero-in { gap: calc(var(--c) * 12); }
    .hero .title { font-size: calc(var(--c) * 31); max-width: 30ch; }
    .hero .title span { display: inline; }
    .hero .sub { font-size: calc(var(--c) * 16); max-width: 50ch; }
    .hero .sub span { display: inline; }
    .hero .cta { font-size: calc(var(--c) * 15.5); padding: calc(var(--c) * 12) calc(var(--c) * 24); }
    .hero .feats { grid-template-columns: repeat(4, max-content); gap: calc(var(--c) * 24); margin-top: calc(var(--c) * 2); }
    .hero .feats li { font-size: calc(var(--c) * 13.5); }
    .hero .rule { height: calc(var(--c) * 20); margin-top: calc(var(--c) * 6); }
    .hero-foot { font-size: calc(var(--c) * 13); }
    .hero-foot span { display: inline; }
  }
  /* tablets: the desktop's proportions, re-architected as flow */
  @media (min-width: 600px) and (min-height: 430px) {
    .hero { --c: min(calc(100vw / 860), calc(100vh / 1120)); }
    .hero-in { gap: calc(var(--c) * 26); padding: calc(80px + var(--c) * 20) calc(var(--c) * 44) calc(var(--c) * 12); }
    .hero .title { font-size: calc(var(--c) * 50); line-height: 1.14; max-width: none; }
    .hero .sub { font-size: calc(var(--c) * 21); line-height: 1.38; max-width: none; }
    .hero .cta { gap: calc(var(--c) * 14); padding: calc(var(--c) * 18) calc(var(--c) * 34); font-size: calc(var(--c) * 21); }
    .hero .cta .arrow { width: calc(var(--c) * 20); height: calc(var(--c) * 14); }
    .hero .feats { gap: calc(var(--c) * 22) calc(var(--c) * 54); margin-top: calc(var(--c) * 12); }
    .hero .feats li { gap: calc(var(--c) * 12); font-size: calc(var(--c) * 16); }
    .hero .chev { width: calc(var(--c) * 12); height: calc(var(--c) * 21); }
    .hero .rule { height: calc(var(--c) * 46); margin-top: calc(var(--c) * 22); }
    .hero-foot { font-size: calc(var(--c) * 16); padding-bottom: calc(env(safe-area-inset-bottom) + var(--c) * 36); }
    @media (min-aspect-ratio: 1/1) {
      .hero { --c: min(calc(100vw / 1040), calc(100vh / 780)); }
      .hero .feats { grid-template-columns: repeat(4, max-content); gap: calc(var(--c) * 40); }
    }
  }
}
@supports (height: 100dvh) {
  @media (max-width: 1199px), (max-height: 559px), (max-aspect-ratio: 100/95) {
    .hero { --c: min(calc(100vw / 430), calc(100dvh / 860)); }
    @media (max-width: 599px), (max-height: 429px) { .hero { --c: min(calc(100vw / 360), calc(100dvh / 770), 1px); } }
    @media (max-height: 429px) and (min-aspect-ratio: 1/1) { .hero { --c: min(calc(100vw / 760), calc(100dvh / 430)); } }
    @media (min-width: 600px) and (min-height: 430px) {
      .hero { --c: min(calc(100vw / 860), calc(100dvh / 1120)); }
      @media (min-aspect-ratio: 1/1) { .hero { --c: min(calc(100vw / 1040), calc(100dvh / 780)); } }
    }
  }
}

/* ---------- Entrance: one CSS timeline, about 2.1s, run once and then retired ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.is-home { --ent-line: cubic-bezier(.16, 1, .3, 1); --ent-soft: cubic-bezier(.25, .8, .35, 1); --rise: 9px; }
  @media (max-width: 599px) { html.is-home { --rise: 6px; } }
  @keyframes en-wipe { from { clip-path: inset(-.78em 0 calc(100% + .78em) 0); translate: 0 var(--rise); } to { clip-path: inset(-.78em 0 -.78em 0); translate: 0 0; } }
  @keyframes en-lift { from { opacity: 0; translate: 0 var(--rise); } }
  @keyframes en-settle { from { opacity: 0; translate: 0 calc(var(--rise) * .7); scale: .99; } }
  @keyframes en-draw { from { scale: 1 0; } }
  @keyframes en-fade { from { opacity: 0; } }
  html.is-home:not(.is-entered) .hero-art { animation: en-fade 1.4s ease .05s backwards; }
  html.is-home:not(.is-entered) .topbar .brand { animation: en-lift .6s var(--ent-soft) .12s backwards; }
  html.is-home:not(.is-entered) #nav-systems, html.is-home:not(.is-entered) .menu-btn .caret { animation: en-lift .55s var(--ent-soft) .2s backwards; }
  html.is-home:not(.is-entered) #nav-approach { animation: en-lift .55s var(--ent-soft) .25s backwards; }
  html.is-home:not(.is-entered) #nav-engineer { animation: en-lift .55s var(--ent-soft) .3s backwards; }
  html.is-home:not(.is-entered) #nav-faq { animation: en-lift .55s var(--ent-soft) .33s backwards; }
  html.is-home:not(.is-entered) #nav-profile, html.is-home:not(.is-entered) .login .navarrow { animation: en-lift .55s var(--ent-soft) .35s backwards; }
  html.is-home:not(.is-entered) .topbar .nav-pill { animation: en-settle .6s var(--ent-soft) .4s backwards; }
  html.is-home:not(.is-entered) .burger { animation: en-lift .6s var(--ent-soft) .4s backwards; }
  html.is-home:not(.is-entered) #h1a { animation: en-wipe .95s var(--ent-line) .34s backwards; }
  html.is-home:not(.is-entered) #h1b { animation: en-wipe .95s var(--ent-line) .44s backwards; }
  html.is-home:not(.is-entered) #sub1 { animation: en-lift .7s var(--ent-soft) .74s backwards; }
  html.is-home:not(.is-entered) #sub2 { animation: en-lift .7s var(--ent-soft) .8s backwards; }
  html.is-home:not(.is-entered) .hero .cta { animation: en-lift .8s var(--ent-line) .94s backwards; }
  html.is-home:not(.is-entered) .hero .feats li:nth-child(1) { animation: en-lift .6s var(--ent-soft) 1.08s backwards; }
  html.is-home:not(.is-entered) .hero .feats li:nth-child(2) { animation: en-lift .6s var(--ent-soft) 1.15s backwards; }
  html.is-home:not(.is-entered) .hero .feats li:nth-child(3) { animation: en-lift .6s var(--ent-soft) 1.22s backwards; }
  html.is-home:not(.is-entered) .hero .feats li:nth-child(4) { animation: en-lift .6s var(--ent-soft) 1.29s backwards; }
  html.is-home:not(.is-entered) .hero .rule { transform-origin: top; animation: en-draw .55s var(--ent-line) 1.34s backwards; }
  html.is-home:not(.is-entered) #foot1 { animation: en-lift .6s var(--ent-soft) 1.42s backwards; }
  html.is-home:not(.is-entered) #foot2 { animation: en-lift .6s var(--ent-soft) 1.48s backwards; }
}

/* ---------- Pills across the site ---------- */
.btn { border-radius: 999px; padding: 12px 22px; font-family: var(--font-display); }
.btn span, .btn { font-variation-settings: 'wght' 560; }
