/* ==========================================================================
   SAITEKO · Website V1.1 · Design system
   Source: SAITEKO Brand Book SAI-BRD-BB-001 v1.0, evolved with founder feedback:
   Inter only, light/dark/auto, soft geometry from the logo, brand gradients,
   living animated surfaces. Brand colour values remain Provisional (raster).
   ========================================================================== */

/* 1. Font: Inter only, self-hosted (OFL 1.1) ------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
}

/* 2. Tokens: light (default) ------------------------------------------------- */
:root {
  /* Brand */
  --sk-cyan: #00E8FD;
  --sk-electric: #0187FD;
  --sk-royal: #0035FC;
  --sk-night: #05070F;
  --sk-icon-night: #010312;
  --sk-ink: #0E133B;
  --sk-grad: linear-gradient(110deg, #00E8FD 0%, #0187FD 50%, #0035FC 100%);
  --sk-grad-btn: linear-gradient(110deg, #0A6BF2 0%, #0035FC 50%, #2A1FE0 75%, #0A6BF2 100%);

  /* Semantic */
  --bg: #F5F6F8;
  --bg-alt: #EDF0F6;
  --surface: #FFFFFF;
  --surface-2: #F6F7FA;
  --text: #0E133B;
  --text-2: #2A2F3D;
  --muted: #5F6779;
  --line: rgba(14, 19, 59, .09);
  --line-strong: rgba(14, 19, 59, .16);
  --input-border: #8A93A6;
  --accent: #0035FC;
  --accent-soft: rgba(0, 53, 252, .07);
  --focus: #0035FC;
  --ok: #0B7A4B;
  --wait: #B07400;
  --wait-text: #8A5A00;
  --danger: #C02631;
  --ok-soft: rgba(11, 122, 75, .08);
  --wait-soft: rgba(176, 116, 0, .09);
  --danger-soft: rgba(192, 38, 49, .07);
  --text-grad: linear-gradient(100deg, #0187FD 0%, #0035FC 75%);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(14, 19, 59, .08);
  --shadow-card: 0 1px 2px rgba(14, 19, 59, .04), 0 18px 40px -24px rgba(14, 19, 59, .18);
  --shadow-lift: 0 2px 4px rgba(14, 19, 59, .04), 0 28px 56px -26px rgba(0, 53, 252, .32);
  --shadow-pill: 0 1px 2px rgba(14, 19, 59, .05), 0 12px 32px -18px rgba(14, 19, 59, .28);
  --fld-line: rgba(14, 19, 59, .045);
  --fld-major: rgba(14, 19, 59, .075);
  --fld-stroke: rgba(14, 19, 59, .2);
  --fld-text: rgba(14, 19, 59, .45);
  --fld-wash: rgba(1, 135, 253, .05);

  /* Scene palette (animated illustrations) */
  --sc-top: #FFFFFF;
  --sc-left: #E4E9F2;
  --sc-right: #CFD7E5;
  --sc-edge: rgba(14, 19, 59, .16);
  --sc-floor: rgba(14, 19, 59, .035);
  --sc-floor-line: rgba(14, 19, 59, .08);
  --sc-line: rgba(14, 19, 59, .26);
  --sc-text: #2A2F3D;
  --sc-tag: #FFFFFF;
  --sc-paper: #FFFFFF;
  --sc-ink: #C9D1DF;

  /* Type */
  --font: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.35rem + 5vw, 5.5rem);
  --fs-h1: clamp(1.75rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.15rem + .9vw, 1.75rem);
  --fs-h4: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);

  /* Geometry: soft, derived from the logo's rounded forms */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.45, 0, .25, 1);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;
  --t-reveal: 900ms;

  /* Layout */
  --content: 1200px;
  --margin: 20px;
  --gutter: 20px;
  --section-y: clamp(56px, 3rem + 3vw, 96px);
  --header-h: 64px;
  --header-top: 12px;
}
@media (min-width: 700px) { :root { --margin: 32px; --gutter: 24px; } }
@media (min-width: 1200px) { :root { --margin: 48px; } }

/* 3. Dark tokens: device preference or manual choice, and always-dark bands --- */
[data-resolved="dark"],
.surface-dark {
  --bg: #05070F;
  --bg-alt: #080C18;
  --surface: #0D1222;
  --surface-2: #121829;
  --text: #EEF1F6;
  --text-2: #C9CFDB;
  --muted: #A3ACBD;
  --line: rgba(201, 207, 219, .1);
  --line-strong: rgba(201, 207, 219, .2);
  --input-border: #6B7385;
  --accent: #00E8FD;
  --accent-soft: rgba(0, 232, 253, .1);
  --focus: #00E8FD;
  --ok: #3DDC97;
  --wait: #FFC857;
  --wait-text: #FFC857;
  --danger: #FF6B6B;
  --ok-soft: rgba(61, 220, 151, .1);
  --wait-soft: rgba(255, 200, 87, .1);
  --danger-soft: rgba(255, 107, 107, .1);
  --text-grad: linear-gradient(100deg, #00E8FD 0%, #4AA8FF 100%);
  --glass: rgba(10, 14, 27, .72);
  --glass-line: rgba(201, 207, 219, .12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -26px rgba(0, 135, 253, .35);
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .8);
  --fld-line: rgba(201, 207, 219, .05);
  --fld-major: rgba(201, 207, 219, .09);
  --fld-stroke: rgba(201, 207, 219, .24);
  --fld-text: rgba(201, 207, 219, .5);
  --fld-wash: rgba(0, 232, 253, .06);
  --sc-top: #1C2439;
  --sc-left: #141B2D;
  --sc-right: #0F1524;
  --sc-edge: rgba(201, 207, 219, .16);
  --sc-floor: rgba(201, 207, 219, .035);
  --sc-floor-line: rgba(201, 207, 219, .07);
  --sc-line: rgba(201, 207, 219, .3);
  --sc-text: #C9CFDB;
  --sc-tag: #0D1222;
  --sc-paper: #E9EDF5;
  --sc-ink: #9AA6BC;
}
.surface-dark { background-color: var(--bg); color: var(--text); }
[data-resolved="dark"] .surface-dark { --bg: #0A0F1E; --surface: #111729; --surface-2: #161D31; }
.surface-alt { background-color: var(--bg-alt); }

/* 4. Reset & base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px);
  color-scheme: light;
}
html[data-resolved="dark"] { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
.list-reset, ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(1, 135, 253, .22); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; 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: -120px; z-index: 1000; padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--sk-royal); color: #FFFFFF; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.tnum { font-variant-numeric: tabular-nums; }

/* 5. Typography ---------------------------------------------------------------- */
.display, h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 { color: var(--text); font-weight: 650; text-wrap: balance; }
/* Title lines: after a full stop (or between the two clauses of a title) the text always starts a new line */
.tl { display: block; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.042em; font-weight: 650; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.02em; font-weight: 620; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.012em; font-weight: 620; }
h5, .h5 { font-size: 1.0625rem; line-height: 1.3; font-weight: 620; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.small { font-size: .9375rem; line-height: 1.55; }
.caption { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.secondary { color: var(--text-2); }
.accent { color: var(--accent); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.center { text-align: center; margin-inline: auto; }

/* Gradient words (large text only, contrast-safe ranges per theme) */
.grad {
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: .04em;
}

/* Small label: Inter, uppercase */
.label {
  font-size: .75rem; font-weight: 620; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .75rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sk-grad); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--text); }

/* 6. Layout ---------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--content) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.container--narrow { max-width: calc(860px + 2 * var(--margin)); }
.section { position: relative; isolation: isolate; padding-block: var(--section-y); overflow: clip; }
.section--flush-top { padding-top: 0; }
.section > .container { position: relative; z-index: 1; }
.head { display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 1040px; margin: 0 auto clamp(32px, 1.75rem + 1.5vw, 56px); }
.head > .lead { max-width: 780px; }
.head .lead { max-width: 64ch; }
.stack > * + * { margin-top: var(--stack, 16px); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.duo { display: grid; gap: var(--gutter); align-items: stretch; }
@media (min-width: 1000px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .duo--wide-a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row--center { justify-content: center; }
.flex-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; } .mt-8 { margin-top: 64px; }

/* 7. Header: floating pill ------------------------------------------------------- */
.site-header { position: sticky; top: var(--header-top); z-index: 100; padding-inline: var(--margin); margin-top: var(--header-top); pointer-events: none; }
.site-header__bar {
  pointer-events: auto; position: relative;
  max-width: var(--content); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 22px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-pill);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  transition: background-color var(--t-slow) var(--ease), box-shadow var(--t-base) var(--ease);
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { width: 118px; height: auto; }
/* Transparent derivatives of the official artwork (alpha extracted, colours and
   proportions unchanged): coloured wordmark on light surfaces, dark variant on dark. */
.logo-on-dark { display: none; }
[data-resolved="dark"] .logo-on-light { display: none; }
[data-resolved="dark"] .logo-on-dark { display: block; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  background: none; border: 0; color: var(--text-2); font-size: .9375rem; font-weight: 520; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__link .icon { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease); }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--accent-soft); color: var(--text); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__link[aria-current="page"], .nav__link[data-current] { color: var(--text); font-weight: 620; }
.nav__link[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sk-grad); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.site-header .header-cta { display: none; }
@media (min-width: 1180px) {
  .nav { display: block; }
  .site-header .header-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}
@media (min-width: 1180px) and (max-width: 1319px) { .nav__link { padding-inline: 10px; } .header-actions { gap: 4px; } .site-header__bar { gap: 8px; } }
/* Dropdown (mega menu): editorial index, standalone icons, hairline structure */
.dropdown {
  position: absolute; left: 50%; top: calc(100% + 14px); width: min(700px, calc(100vw - 48px));
  padding: 8px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (max-width: 1279px) {
  .dropdown { left: -12px; transform: translate(0, 6px); }
  .dropdown.is-open { transform: none; }
}
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; counter-reset: dd; }
.dropdown__item {
  position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: start;
  padding: 14px 14px 14px 16px; border-radius: var(--r-xs); color: var(--text); text-decoration: none;
  counter-increment: dd; transition: background-color var(--t-fast) var(--ease);
}
.dropdown__item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--sk-grad); transform: scaleY(0); transform-origin: top; transition: transform var(--t-base) var(--ease); }
.dropdown__item::after { content: counter(dd, decimal-leading-zero); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--surface-2); }
.dropdown__item:hover::before, .dropdown__item:focus-visible::before { transform: scaleY(1); }
.dropdown__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dropdown__item .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.dropdown__item strong { display: block; font-size: .9375rem; font-weight: 620; letter-spacing: -0.005em; }
.dropdown__item > span > span { display: block; font-size: .8125rem; line-height: 1.45; color: var(--muted); margin-top: 3px; }
/* V2.0 mega menu: services on the left, explore links on the right */
.nav__item:has(.dropdown--mega) { position: static; }
.dropdown.dropdown--mega { left: 0; right: 0; width: auto; max-width: 1000px; margin: 0 auto; transform: translateY(6px); }
.dropdown.dropdown--mega.is-open { transform: none; }
.nav__link { white-space: nowrap; }
.dropdown__cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.dropdown__head { margin: 10px 16px 4px; font-size: .6875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dropdown__side { display: grid; align-content: start; gap: 2px; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.dropdown__link { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 11px 12px; border-radius: var(--r-xs); color: var(--text); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--surface-2); }
.dropdown__link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dropdown__link .icon { width: 19px; height: 19px; margin-top: 1px; color: var(--accent); }
.dropdown__link strong { display: block; font-size: .875rem; font-weight: 620; }
.dropdown__link > span > span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 10px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 650; letter-spacing: .06em; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.lang-switch > span:first-child { color: var(--text); }
.lang-switch__sep { opacity: .5; }
.lang-switch:hover { background: var(--accent-soft); color: var(--text); }
.lang-switch:hover .lang-switch__to { color: var(--accent); }
.lang-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.footer__mail { color: var(--text-2); font-size: .875rem; }
.dropdown__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 14px 16px 8px; border-top: 1px solid var(--line); }
.dropdown__agent { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: .8125rem; color: var(--muted); }
.dropdown__agent .agent { height: 30px; }
.dropdown__agent .agent[hidden] { display: none; }
.dropdown__agent strong { color: var(--text); font-weight: 650; }
.dropdown__agent.is-swap .agent:not([hidden]) { animation: sk-hop .42s var(--ease-out); }
@keyframes sk-hop { 0% { transform: translateY(6px); opacity: 0; } 60% { transform: translateY(-2px); opacity: 1; } 100% { transform: none; } }
/* Theme switch */
.theme-switch { position: relative; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 0; color: var(--text-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--text); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 200px; padding: 6px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.theme-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.theme-menu__title { padding: 8px 10px 6px; }
.theme-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-2); font-size: .9375rem; text-align: left;
}
.theme-option .icon { width: 17px; height: 17px; }
.theme-option:hover { background: var(--surface-2); color: var(--text); }
.theme-option[aria-pressed="true"] { color: var(--text); font-weight: 620; }
.theme-option[aria-pressed="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--sk-grad); }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: .875rem; }
.segmented button .icon { width: 15px; height: 15px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 620; box-shadow: var(--shadow-card); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: .875rem; font-weight: 600;
}
.menu-toggle__bars { position: relative; width: 16px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.menu-toggle__bars::before { top: 1px; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4.5px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + var(--header-top) * 2 + 16px) var(--margin) 28px;
  background: var(--bg); display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--r-md);
  color: var(--text); text-decoration: none; font-size: 1.375rem; font-weight: 620; letter-spacing: -0.015em;
  transform: translateY(10px); opacity: 0; transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) var(--ease-out), background-color var(--t-fast);
}
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu__list li:nth-child(2) .mobile-menu__link { transition-delay: 40ms; }
.mobile-menu__list li:nth-child(3) .mobile-menu__link { transition-delay: 80ms; }
.mobile-menu__list li:nth-child(4) .mobile-menu__link { transition-delay: 120ms; }
.mobile-menu__list li:nth-child(5) .mobile-menu__link { transition-delay: 160ms; }
.mobile-menu__link:hover { background: var(--surface-2); }
.mobile-menu__link[aria-current="page"] { background: var(--accent-soft); }
.mobile-menu__link .icon { color: var(--muted); }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
body.menu-open { overflow: hidden; }

/* 8. Buttons --------------------------------------------------------------------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 620; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background-position .7s var(--ease), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform var(--t-base) var(--ease); }
.btn:hover .icon--arrow, .btn:focus-visible .icon--arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .875rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #FFFFFF; background: var(--sk-grad-btn); background-size: 220% 100%; background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px rgba(0, 53, 252, .55);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 32px -12px rgba(0, 53, 252, .6), 0 4px 10px -4px rgba(0, 232, 253, .35); }
.btn--secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.btn--secondary:hover { transform: translateY(-2px); border-color: var(--text-2); }
.btn--ghost { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn--text { color: var(--text); background: none; padding-inline: 10px; }
.btn--text:hover { color: var(--accent); }
.btn--danger { color: #FFFFFF; background: var(--danger); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 620; font-size: .9375rem; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 9. Icons ----------------------------------------------------------------------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 8; }
.icon--grad { color: var(--accent); }
/* Icon mark: standalone icon, no container. A short gradient rule anchors it
   to the grid instead of a rounded box. */
.icon-badge { position: relative; display: inline-grid; place-items: center start; width: 32px; height: 32px; flex: none; color: var(--accent); }
.icon-badge::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 14px; height: 2px; background: var(--sk-grad); }
.icon-badge .icon { width: 28px; height: 28px; }
.icon-badge--sm { width: 24px; height: 24px; }
.icon-badge--sm::after { display: none; }
.icon-badge--sm .icon { width: 22px; height: 22px; }

/* 10. Badges & status ---------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 620; letter-spacing: .02em; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge--ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 24%, transparent); }
.badge--dev { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
.badge--dev .badge__dot { background: transparent; border: 1.6px solid currentColor; }
.badge--vision { border-style: dashed; color: var(--muted); }
.badge--vision .badge__dot { background: transparent; border: 1.6px dashed currentColor; }
.badge--principle .badge__dot { border-radius: 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 560; color: var(--text-2); }
.status__shape { width: 9px; height: 9px; flex: none; }
.status--running .status__shape { border-radius: 50%; background: var(--accent); animation: sk-breathe 1.8s var(--ease) infinite; }
.status--awaiting .status__shape { background: var(--wait); transform: rotate(45deg) scale(.86); border-radius: 2px; }
.status--completed .status__shape { border-radius: 50%; background: var(--ok); }
.status--idle .status__shape { border-radius: 50%; border: 1.6px solid var(--muted); }

/* 11. Cards with soft lift and gradient ring ---------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 1.2rem + 1vw, 32px);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-base) var(--ease);
}
.ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--sk-grad); opacity: 0; transition: opacity var(--t-slow) var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lift:hover, .lift:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.ring:hover::after, .ring:focus-visible::after, .ring.is-active::after { opacity: 1; }
a.card { color: inherit; text-decoration: none; }
.card__title { font-size: var(--fs-h4); line-height: 1.25; font-weight: 620; letter-spacing: -0.012em; }
.card__text { color: var(--text-2); font-size: .9375rem; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent); font-weight: 620; font-size: .9375rem; }
.card__foot .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease); }
.card:hover .card__foot .icon { transform: translateX(5px); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card--flat { box-shadow: none; background: var(--surface-2); }
.card--quiet { background: transparent; box-shadow: none; border-style: dashed; }

/* Art cards (animated scene on top, text below) */
.art-card { padding: 0; overflow: hidden; gap: 0; }
.art-card__art { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.art-card__art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.art-card__kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Panels for large scenes */
.panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(120% 100% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.panel .scene { display: block; width: 100%; height: auto; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 12. Story illustrations (SVG, built in scenes.js) ------------------------------- */
.scene { overflow: hidden; font-family: var(--font); }
.scene text { font-family: var(--font); font-feature-settings: "tnum" 1; }
.scene .st-probe { visibility: hidden; }
/* Surfaces */
.scene .st-card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.scene .st-card-hi { stroke: var(--accent); stroke-width: 1.6; }
.scene .st-glass { fill: var(--glass); }
.scene .st-div { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.scene .st-row { fill: var(--surface-2); }
.scene .st-row-acc { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.scene .st-row-ok { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 1; }
.scene .st-row-wait { fill: var(--wait-soft); stroke: var(--wait); stroke-width: 1; }
.scene .st-row-dang { fill: var(--danger-soft); stroke: var(--danger); stroke-width: 1; }
.scene .st-skel { fill: var(--line-strong); }
.scene .st-bar { fill: var(--sc-left); }
.scene .st-ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 5 5; }
.scene .st-ghost-on { stroke: var(--accent); fill: var(--accent-soft); }
.scene .st-field { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.scene .st-field-on { stroke: var(--accent); stroke-width: 1.6; fill: var(--surface); }
.scene .st-caret { stroke: var(--accent); stroke-width: 1.6; }
.scene .st-radio { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; }
.scene .st-knob { fill: #FFFFFF; stroke: var(--line-strong); stroke-width: 1; }
.scene .st-bubble-u { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.scene .st-bubble-a { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.scene .st-phone { fill: #05070F; stroke: var(--line-strong); stroke-width: 1; }
/* Text */
.scene .st-ink { fill: var(--text); }
.scene .st-ink2 { fill: var(--text-2); }
.scene .st-muted { fill: var(--muted); }
.scene .st-white { fill: #FFFFFF; }
.scene .st-white-m { fill: rgba(255, 255, 255, .78); }
.scene .st-acc-t { fill: var(--accent); }
.scene .st-ok-t { fill: var(--ok); }
.scene .st-wait-t { fill: var(--wait-text); }
.scene .st-dang-t { fill: var(--danger); }
/* Paper is always light: fixed ink */
.scene .st-paper { fill: var(--sc-paper); stroke: var(--sc-edge); stroke-width: 1; }
.scene .st-fold { fill: #D5DCE8; }
.scene .st-pink { fill: #0E133B; }
.scene .st-pmuted { fill: #5F6779; }
.scene .st-pskel { fill: #D3D9E4; }
.scene .st-pdiv { stroke: #DDE2EA; stroke-width: 1; }
.scene .st-pic { fill: none; stroke: #0E133B; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-scanband { fill: rgba(1, 135, 253, .12); }
.scene .st-scanline { stroke: url(#sc-gl); stroke-width: 2.5; stroke-linecap: round; }
.scene .st-brk { fill: none; stroke: #0187FD; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Accents and status */
.scene .st-accf { fill: var(--accent); }
.scene .st-gf { fill: url(#sc-g); }
.scene .st-okf { fill: var(--ok); }
.scene .st-waitf { fill: var(--wait); }
.scene .st-dangf { fill: var(--danger); }
.scene .st-mutedf { fill: var(--muted); }
.scene .st-halo { fill: url(#sc-glow); }
.scene .st-ping { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.scene .st-link { fill: none; stroke: var(--sc-line); stroke-width: 1.4; stroke-dasharray: 3 6; stroke-linecap: round; }
.scene .st-link-on { stroke: url(#sc-gl); stroke-width: 2; stroke-dasharray: 4 6; }
.scene .st-route { fill: none; stroke: var(--fld-stroke); stroke-width: 1; stroke-dasharray: 3 5; }
.scene .st-route-on { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: none; }
.scene .st-token { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.scene .st-idx-rail { stroke: var(--fld-stroke); stroke-width: 1; }
.scene .st-idx-tick-on { stroke: var(--accent); stroke-width: 1.5; }
.scene .st-idx-head { fill: var(--fld-text); letter-spacing: .14em; }
.scene .st-orbit { fill: none; stroke: url(#sc-gl); stroke-width: 2.4; stroke-linecap: round; }
.scene .st-chart { fill: none; stroke: url(#sc-gl); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-perim { fill: none; stroke: url(#sc-g); stroke-width: 2; stroke-dasharray: 9 9; }
.scene .st-perim-fill { fill: var(--accent-soft); }
.scene .st-cursor { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.scene .st-press { fill: none; stroke: var(--accent); stroke-width: 2; }
/* Icons */
.scene .st-ic { fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-ic.is-fill { fill: var(--text-2); stroke: none; }
.scene .st-ic-acc { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-ic-ghost { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.scene .st-ic-dang { fill: none; stroke: var(--danger); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-icw { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-icw-fill { fill: #FFFFFF; stroke: none; }
/* Pills */
.scene .st-pill__bg { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.scene .st-pill__t { fill: var(--text-2); }
.scene .st-pill .st-ic { stroke: var(--text-2); }
.scene .st-pill .st-ic.is-fill { fill: var(--text-2); }
.scene .st-pill--glass .st-pill__bg { fill: var(--glass); stroke: var(--glass-line); }
.scene .st-pill--glass .st-ic.is-fill { fill: var(--accent); }
.scene .st-pill--acc .st-pill__bg { fill: url(#sc-g); stroke: none; }
.scene .st-pill--acc .st-pill__t { fill: #FFFFFF; }
.scene .st-pill--acc .st-ic { stroke: #FFFFFF; }
.scene .st-pill--acc .st-ic.is-fill { fill: #FFFFFF; }
.scene .st-pill--ok .st-pill__bg { fill: var(--ok-soft); stroke: var(--ok); }
.scene .st-pill--ok .st-pill__t { fill: var(--ok); }
.scene .st-pill--ok .st-ic { stroke: var(--ok); }
.scene .st-pill--wait .st-pill__bg { fill: var(--wait-soft); stroke: var(--wait); }
.scene .st-pill--wait .st-pill__t { fill: var(--wait-text); }
.scene .st-pill--wait .st-ic { stroke: var(--wait-text); }
.scene .st-pill--info .st-pill__bg { fill: var(--accent-soft); stroke: var(--accent); }
.scene .st-pill--info .st-pill__t { fill: var(--accent); }
.scene .st-pill--info .st-ic { stroke: var(--accent); }
.scene .st-pill--info .st-ic.is-fill { fill: var(--accent); }
.scene .st-pill--danger .st-pill__bg { fill: var(--danger-soft); stroke: var(--danger); }
.scene .st-pill--danger .st-pill__t { fill: var(--danger); }
.scene .st-pill--danger .st-ic { stroke: var(--danger); }
/* Camera feeds are always dark, like the real video: fixed colours */
.scene .st-frame { fill: #0A0F1E; stroke: var(--line-strong); stroke-width: 1; }
.scene .st-belt { fill: #121A2E; }
.scene .st-cvt { fill: #EAF6FF; }
.scene .st-cvm { fill: rgba(234, 246, 255, .62); }
.scene .st-cvok-t { fill: #3DDC97; }
.scene .st-cvl { fill: none; stroke: rgba(234, 246, 255, .2); stroke-width: 1.4; }
.scene .st-cvl-f { fill: rgba(234, 246, 255, .2); }
.scene .st-cvf { fill: rgba(234, 246, 255, .07); }
.scene .st-cvrail { stroke: rgba(234, 246, 255, .35); stroke-width: 5; stroke-linecap: round; }
.scene .st-cvchain { stroke: rgba(234, 246, 255, .3); stroke-width: 1.5; stroke-dasharray: 3 3; }
.scene .st-cvlimb { fill: none; stroke: rgba(234, 246, 255, .3); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.scene .st-cvbody { stroke: rgba(234, 246, 255, .2); stroke-width: 12; stroke-linecap: round; }
.scene .st-cvbody-f { fill: rgba(234, 246, 255, .2); }
.scene .st-cvbone { stroke: #00E8FD; stroke-width: 3; stroke-linecap: round; }
.scene .st-cvbone-o { fill: none; stroke: #00E8FD; stroke-width: 2.4; }
.scene .st-cvjoint { fill: #FFFFFF; stroke: #00E8FD; stroke-width: 2; }
.scene .st-cvbox { fill: none; stroke: #00E8FD; stroke-width: 2.2; stroke-linecap: round; }
.scene .st-cvbox2 { fill: none; stroke: #4AA8FF; stroke-width: 2; stroke-linecap: round; }
.scene .st-cvdang-s { fill: none; stroke: #FF6B6B; stroke-width: 2.2; stroke-linecap: round; }
.scene .st-cvedge { fill: none; stroke: #00E8FD; stroke-width: 2.2; }
.scene .st-cvdim { stroke: #00E8FD; stroke-width: 1.4; fill: none; }
.scene .st-cvacc-s { fill: none; stroke: #00E8FD; stroke-width: 2; }
.scene .st-cvaccf { fill: #00E8FD; }
.scene .st-cvscan { fill: #00E8FD; opacity: .8; }
.scene .st-cvtrail { fill: none; stroke: #00E8FD; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .75; }
.scene .st-cvperson { fill: #EAF6FF; }
.scene .st-cvitem { fill: #FFC857; }
.scene .st-cvmask { fill: rgba(0, 232, 253, .16); stroke: #00E8FD; stroke-width: 1.6; }
.scene .st-cvleg { fill: none; stroke: rgba(0, 232, 253, .45); stroke-width: 9; stroke-linecap: round; }
.scene .st-cvplay { fill: #EAF6FF; stroke: none; }
.scene .st-heat { fill: url(#sc-heat); }
.scene .st-heat2 { fill: url(#sc-heat2); }
.scene .st-part { fill: #C9D1DF; stroke: #9AA6BC; stroke-width: 1; }
.scene .st-hole { fill: #0A0F1E; stroke: #9AA6BC; stroke-width: 1; }
.scene .st-px { fill: #EAF6FF; }
.scene .st-scratch { fill: none; stroke: #5F6779; stroke-width: 2.4; stroke-linecap: round; }
.scene .st-ball { fill: #FF8A3D; }
.scene .st-rim { fill: none; stroke: #FF8A3D; stroke-width: 3; }
.scene .st-thumb0 { fill: #1D2742; }
.scene .st-thumb1 { fill: #22304F; }
.scene .st-thumb2 { fill: #18213A; }
.scene .st-pill--cv .st-pill__bg { fill: #00E8FD; stroke: none; }
.scene .st-pill--cv .st-pill__t { fill: #03111C; }
.scene .st-pill--cv .st-ic { stroke: #03111C; }
.scene .st-pill--cvdark .st-pill__bg { fill: rgba(5, 7, 15, .72); stroke: rgba(234, 246, 255, .22); }
.scene .st-pill--cvdark .st-pill__t { fill: #EAF6FF; }
.scene .st-pill--cvdark .st-ic { stroke: #EAF6FF; }
.scene .st-pill--cvdark .st-ic.is-fill { fill: #00E8FD; }
.scene .st-pill--cvok .st-pill__bg { fill: #3DDC97; stroke: none; }
.scene .st-pill--cvok .st-pill__t { fill: #04140C; }
.scene .st-pill--cvok .st-ic { stroke: #04140C; }
.scene .st-pill--cvdanger .st-pill__bg { fill: #FF6B6B; stroke: none; }
.scene .st-pill--cvdanger .st-pill__t { fill: #1A0505; }
.scene .st-pill--cvdanger .st-ic { stroke: #1A0505; }
/* Hero orbits */

/* Captions: numbered steps under a panel, or a chip over a card */
.story-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 16px 24px 20px; list-style: none; border-top: 1px solid var(--line); background: var(--surface); }
/* Bars sit at the bottom of every step, so they line up even when one label wraps */
.story-step { display: grid; gap: 10px; align-content: space-between; color: var(--muted); transition: color .4s var(--ease); }
.story-step__txt { text-wrap: balance; padding-top: 2px; }
.story-step__head { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.story-step__no { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; color: var(--muted); transition: background .4s var(--ease), color .4s var(--ease); }
.story-step__bar { position: relative; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.story-step__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--sk-grad); border-radius: inherit; }
.story-step.is-active { color: var(--text); }
.story-step.is-active .story-step__no { background: var(--sk-grad); color: #FFFFFF; border-color: transparent; }
.story-step.is-done .story-step__no { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.story-step.is-done .story-step__bar i { width: 100%; opacity: .45; }
@media (max-width: 700px) { .story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 16px 16px; } }
.story-cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-pill); font-size: .8125rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.story-cap__no { flex: none; padding: 3px 8px; border-radius: var(--r-pill); background: var(--sk-grad); color: #FFFFFF; font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.story-cap.is-swap .story-cap__txt { animation: sk-cap .5s var(--ease) both; }
.has-cap { display: flex; flex-direction: column; }
.art-card__art.has-cap { aspect-ratio: auto; }
.art-card__art.has-cap .scene { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; }
.has-cap > .scene { flex: none; }
.has-cap > .story-cap { position: relative; left: auto; bottom: auto; align-self: flex-start; margin: 0 14px 14px; box-shadow: none; }
@keyframes sk-cap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 13. Field backgrounds (built in main.js) ------------------------------------------
   48 px orthogonal grid centred on the page, masked into asymmetric areas so
   the content keeps generous negative space. */
.fld { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fld__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--fld-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fld-major) 1px, transparent 1px),
    linear-gradient(to right, var(--fld-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fld-line) 1px, transparent 1px);
  background-size: 192px 192px, 192px 192px, 48px 48px, 48px 48px;
  background-position: 50% 0, 0 0, calc(50% + 24px) 0, 0 0;
}
.fld--hero .fld__grid { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 72%), linear-gradient(180deg, #000 55%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 72%), linear-gradient(180deg, #000 55%, transparent); mask-composite: intersect; }
.fld--plain .fld__grid { -webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 82%), linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 42%, #000 82%), linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent); mask-composite: intersect; }
.fld--offset .fld__grid { -webkit-mask-image: linear-gradient(270deg, transparent 42%, #000 82%), linear-gradient(0deg, transparent, #000 18%, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(270deg, transparent 42%, #000 82%), linear-gradient(0deg, transparent, #000 18%, #000 70%, transparent); mask-composite: intersect; }
.fld--band .fld__grid { -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.fld--card .fld__grid { -webkit-mask-image: linear-gradient(315deg, #000 10%, transparent 60%); mask-image: linear-gradient(315deg, #000 10%, transparent 60%); }
.fld__svg { position: absolute; inset: 0; display: block; overflow: visible; }
.fld__frame { fill: none; stroke: var(--fld-stroke); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0ms); }
.fld__ticks { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transition: opacity .6s var(--ease) calc(var(--d, 0ms) + 1.1s); }
.fld__wash { fill: var(--fld-wash); opacity: 0; transition: opacity 1.2s var(--ease) var(--d, 0ms); }
.fld__rule { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) var(--d, 0ms), opacity .4s var(--ease) var(--d, 0ms); }
.fld__cell { fill: none; stroke: var(--fld-stroke); stroke-width: 1; opacity: 0; transition: opacity .6s var(--ease) var(--d, 0ms); }
.fld__label { font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: .14em; fill: var(--fld-text); font-variant-numeric: tabular-nums; white-space: pre; opacity: 0; transition: opacity .8s var(--ease) .6s; }
.fld__ruler { fill: none; stroke: var(--fld-stroke); stroke-width: 1; opacity: 0; transition: opacity 1s var(--ease) .3s; }
.fld__track { fill: none; stroke: var(--fld-major); stroke-width: 1; stroke-dasharray: 2 4; }
.fld__pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: square; stroke-dasharray: 70 1000; stroke-dashoffset: 70; opacity: 0; }
.fld__node { fill: var(--surface); stroke: var(--accent); stroke-width: 1; opacity: 0; transition: opacity .6s var(--ease) 1.4s; }
.fld.is-in .fld__frame { stroke-dashoffset: 0; }
.fld.is-in .fld__ticks, .fld.is-in .fld__label, .fld.is-in .fld__node { opacity: 1; }
.fld.is-in .fld__wash, .fld.is-in .fld__cell { opacity: 1; }
.fld.is-in .fld__ruler { opacity: .9; }
.fld.is-in .fld__rule { opacity: 1; transform: scaleX(1); }
.fld.is-in .fld__cell { animation: sk-cell 6s steps(1) infinite; animation-delay: calc(var(--i) * .5s + 1.4s); }
.fld.is-in .fld__pulse { opacity: 1; animation: sk-pulse 9s var(--ease) infinite; animation-delay: var(--dl, 0s); }
.fld.is-paused * { animation-play-state: paused !important; }
/* Agents at work in the background grid */
.fld__actor { position: absolute; left: 0; top: 0; line-height: 0; opacity: 0; transition: opacity .8s var(--ease) 1.2s; }
.fld__actor .agent { height: 34px; }
.fld.is-in .fld__actor { opacity: .82; }
.fld__actor--perch { transform: translateY(-100%); }
.fld__actor--perch .agent { animation: sk-perch 4.8s var(--ease) infinite; }
.fld__actor--flow { offset-anchor: 50% 100%; offset-rotate: 0deg; offset-distance: 0%; }
.fld.is-in .fld__actor--flow { animation: sk-flow-walk 22s linear infinite; animation-delay: var(--dl, 0s); }
.fld.is-in .fld__actor--flow .agent { animation: sk-flow-face 22s steps(1) infinite; animation-delay: var(--dl, 0s); }
.fld__scan { position: absolute; overflow: hidden; opacity: 0; transition: opacity .8s var(--ease) 1.4s; }
.fld__scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 10px var(--accent); animation: sk-scan 3.6s var(--ease) infinite alternate; }
.fld.is-in .fld__scan { opacity: .7; }
@keyframes sk-perch { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sk-flow-walk { 0% { offset-distance: 0%; } 44% { offset-distance: 100%; } 50% { offset-distance: 100%; } 94% { offset-distance: 0%; } 100% { offset-distance: 0%; } }
@keyframes sk-flow-face { 0% { transform: scaleX(-1); } 47% { transform: scaleX(1); } 97% { transform: scaleX(-1); } }
@keyframes sk-scan { from { transform: translateY(0); } to { transform: translateY(calc(var(--h, 90px))); } }
[data-resolved="dark"] .fld__actor .agent, .surface-dark .fld__actor .agent { filter: drop-shadow(1px 0 0 rgba(201, 207, 219, .45)) drop-shadow(-1px 0 0 rgba(201, 207, 219, .45)) drop-shadow(0 -1px 0 rgba(201, 207, 219, .45)); }
@keyframes sk-cell { 0%, 12% { fill: var(--accent); stroke: var(--accent); } 13%, 100% { fill: transparent; stroke: var(--fld-stroke); } }
@keyframes sk-pulse { 0% { stroke-dashoffset: 70; } 45%, 100% { stroke-dashoffset: -1000; } }

/* 14. Hero (home) ------------------------------------------------------------------ */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * (var(--header-h) + var(--header-top) * 2));
}
.hero { padding-top: calc(var(--header-h) + var(--header-top) * 2 + clamp(56px, 3rem + 4vw, 112px)); padding-bottom: clamp(64px, 4rem + 3vw, 120px); }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero__copy { display: grid; justify-items: center; gap: 26px; text-align: center; max-width: 1000px; margin: 0 auto; }
.hero__title span { display: block; }
.hero__sub { max-width: 60ch; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-soft { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 560; color: var(--text-2); box-shadow: var(--shadow-card); }
.chip-soft .icon { width: 15px; height: 15px; }
.hero__stage { margin-top: clamp(40px, 2rem + 3vw, 72px); }

/* 15. Page hero (inner pages) ---------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + var(--header-top) * 2 + clamp(48px, 2.5rem + 3vw, 96px)); padding-bottom: clamp(56px, 3rem + 3vw, 104px); }
.page-hero__copy { display: grid; justify-items: center; gap: 22px; text-align: center; max-width: 940px; margin: 0 auto; }
.page-hero__stage { margin-top: clamp(36px, 2rem + 2vw, 60px); }
.page-hero--with-secnav .page-hero__copy { padding-bottom: 0; }
/* With the agent crew in the margins, the hero grid keeps only lines and ruler */
.page-hero--crew .fld__mod, .page-hero--crew .fld__label { display: none; }

/* Section index. Narrow screens: a row of chips at the end of the hero.
   From 1100 px: a lateral rail fixed in the left margin (moved to <body> by
   main.js), shown after the hero and hidden over the footer. Dots mark done,
   current and upcoming sections; hovering or focusing opens the labels. */
.secnav { position: relative; z-index: 1; margin: clamp(28px, 1.5rem + 1vw, 40px) auto 0; padding-inline: var(--margin); }
.secnav__head { display: none; }
.secnav__list { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.secnav__list::-webkit-scrollbar { display: none; }
.secnav__link {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--glass); color: var(--text-2); text-decoration: none; font-size: .875rem; font-weight: 560; white-space: nowrap;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.secnav__link:hover { color: var(--text); border-color: var(--accent); }
.secnav__dot { display: none; }
.secnav__no { font-size: .75rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 1100px) {
  .secnav {
    position: fixed; left: 14px; top: 50%; z-index: 80; margin: 0; padding: 14px 10px; width: auto; border-radius: 18px;
    border: 1px solid transparent; background: transparent; opacity: 0; visibility: hidden; transform: translate(-14px, -50%);
    transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow), background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  }
  .secnav.is-shown { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
  .secnav__head { display: flex; justify-content: space-between; gap: 16px; margin: 0 4px 10px 36px; font-size: .6875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--fld-text); opacity: 0; transition: opacity var(--t-base) var(--ease); }
  .secnav__list { position: relative; display: grid; gap: 2px; width: auto; overflow: visible; padding: 0; margin: 0; }
  .secnav__list::before, .secnav__list::after { content: ""; position: absolute; left: 11px; top: 16px; width: 1.5px; border-radius: 1px; }
  .secnav__list::before { bottom: 16px; background: var(--line-strong); }
  .secnav__list::after { height: var(--secnav-prog, 0px); background: var(--sk-grad-btn); transition: height var(--t-slow) var(--ease); }
  .secnav__link { position: relative; z-index: 1; height: 32px; padding: 0 10px 0 0; gap: 10px; border: 0; background: none; border-radius: 8px; color: var(--text-2); }
  .secnav__link:hover { color: var(--text); }
  .secnav__dot {
    display: block; flex: none; width: 11px; height: 11px; margin-left: 6.25px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid var(--line-strong);
    transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  }
  .secnav__link:hover .secnav__dot { border-color: var(--accent); transform: scale(1.15); }
  .secnav__link.is-done .secnav__dot { background: var(--accent); border-color: var(--accent); }
  .secnav__link.is-active .secnav__dot { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), inset 0 0 0 2px var(--surface), inset 0 0 0 6px var(--accent); }
  .secnav__no, .secnav__txt { opacity: 0; transform: translateX(-6px); white-space: nowrap; pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
  .secnav__link.is-active .secnav__txt { color: var(--text); font-weight: 650; }
  /* Open: on hover or keyboard focus */
  .secnav:hover, .secnav:focus-within, .secnav.is-open { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-lift); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
  .secnav:hover .secnav__head, .secnav:focus-within .secnav__head, .secnav.is-open .secnav__head { opacity: 1; }
  .secnav:hover :is(.secnav__no, .secnav__txt), .secnav:focus-within :is(.secnav__no, .secnav__txt), .secnav.is-open :is(.secnav__no, .secnav__txt) { opacity: 1; transform: none; pointer-events: auto; }
  /* After a change, the current label shows briefly beside its dot */
  .secnav.is-flash:not(:hover):not(:focus-within) .secnav__link.is-active .secnav__txt {
    opacity: 1; transform: none; padding: 5px 10px; margin-left: -2px; border-radius: var(--r-pill);
    background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-pill); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .8125rem;
  }
}
/* Very wide screens have room for the labels: keep the index open */
@media (min-width: 1720px) {
  .secnav.is-shown { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow-pill); left: 24px; }
  .secnav.is-shown .secnav__head { opacity: 1; }
  .secnav.is-shown :is(.secnav__no, .secnav__txt) { opacity: 1; transform: none; pointer-events: auto; }
}

/* 16. Tabs (problem → solution) ----------------------------------------------------- */
.tabbar {
  position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--text-2); font-size: .9375rem; font-weight: 560; transition: color var(--t-base) var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #FFFFFF; }
.tabbar__indicator {
  position: absolute; z-index: 0; top: 6px; left: 0; height: 44px; border-radius: var(--r-pill);
  background: var(--sk-grad-btn); background-size: 220% 100%; transition: transform var(--t-slow) var(--ease), width var(--t-slow) var(--ease);
}
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering { animation: sk-panel-in .62s var(--ease) both; }
.ps { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .ps { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.ps__art { display: flex; flex-direction: column; justify-content: center; min-height: 320px; }
.flow { position: relative; display: grid; gap: 14px; align-content: center; }
.flow__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.flow__no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: .875rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow__step h3 { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.flow__step p { color: var(--text-2); font-size: .9688rem; }
.flow__step--solution .flow__no { background: var(--sk-grad); color: #FFFFFF; }
.flow__step--solution h3 { color: var(--accent); }
.flow__step:not(:last-child)::after { content: ""; position: absolute; left: 43px; bottom: -15px; width: 2px; height: 16px; border-radius: 2px; background: var(--line-strong); }

/* 17. Connected steps (horizontal) with travelling signal ----------------------------- */
.steps { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; }
.step__no { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.step__signal { display: none; }
@media (min-width: 1060px) {
  .steps--4 .step:not(:last-child)::before, .steps--3 .step:not(:last-child)::before {
    content: ""; position: absolute; top: 46px; right: calc(-1 * var(--gutter)); width: var(--gutter); height: 2px; background: var(--line-strong); z-index: 2;
  }
  .step__signal { display: block; position: absolute; top: 44px; right: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); z-index: 3; animation: sk-travel-x 2.6s var(--ease) infinite; animation-delay: var(--d, 0s); }
}

/* Method sequence (about) */
.seq { display: grid; gap: 12px; }
@media (min-width: 760px) { .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .seq { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.seq__item { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease); }
.seq__item h3 { font-size: 1.0625rem; font-weight: 620; }
.seq__item p { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.seq__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.seq__bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--sk-grad); transform: scaleX(0); transform-origin: left; }
.seq__item.is-active { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.seq__item.is-active .seq__bar::after { animation: sk-fill var(--seq, 2.2s) linear both; }
.seq__item.is-done .seq__bar::after { transform: scaleX(1); }

/* 18. Lists ---------------------------------------------------------------------- */
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.check-list .icon { width: 22px; height: 22px; margin-top: 1px; }
.dot-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.dot-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--text-2); }
.dot-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sk-grad); margin-top: .62em; }

/* 19. Notes ---------------------------------------------------------------------- */
.note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: .9063rem; line-height: 1.55; border: 1px solid var(--line); }
.note .icon { width: 22px; height: 22px; color: var(--accent); }
.note strong { color: var(--text); font-weight: 620; }
.note--warn .icon { color: var(--wait); }

/* 20. Modules (process packs) ------------------------------------------------------ */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .modules { gap: 8px; } }
.module { position: relative; display: grid; gap: 4px; align-content: start; min-height: 100px; padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: transparent; transition: transform var(--t-slow) var(--ease), border-color var(--t-base); }
.module:hover { transform: translateY(-3px); border-color: var(--text-2); }
.module__code { font-size: .6875rem; font-weight: 650; letter-spacing: .08em; color: var(--muted); }
.module__name { font-size: .875rem; font-weight: 620; line-height: 1.3; color: var(--text); hyphens: auto; }
.module__state { margin-top: auto; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.module--active { border: 0; background: var(--surface); box-shadow: var(--shadow-lift); }
.module--active::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--sk-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.module--active .module__code, .module--active .module__state { color: var(--accent); }

/* 21. Service sections (solutions) ------------------------------------------------- */
.service { scroll-margin-top: calc(var(--header-h) + var(--header-top) * 2 + 24px); }
.service__stage { margin-bottom: var(--gutter); }
.compare { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare h3 { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.compare .card--after h3 { color: var(--accent); }
.compare p { color: var(--text-2); font-size: 1.0313rem; line-height: 1.6; }
.examples { display: grid; gap: var(--gutter); margin-top: var(--gutter); }
@media (min-width: 640px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .examples { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.example { padding: 22px; gap: 10px; }
.example strong { font-size: 1rem; font-weight: 620; }
.example p { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.benefits-band { display: grid; gap: 14px; margin-top: var(--gutter); padding: clamp(20px, 1rem + 1.5vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (min-width: 760px) { .benefits-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .benefits-band > .label { grid-column: 1 / -1; } }
@media (min-width: 1060px) { .benefits-band { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; } }
.benefits-band li { font-size: .9375rem; }
.service-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 32px; text-align: center; }

/* 22. Features / themes ----------------------------------------------------------- */
.feature { padding: 26px; gap: 12px; }
.feature__en { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feature p { color: var(--text-2); font-size: .9375rem; }
.components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .components { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.component { padding: 20px; gap: 10px; }
.component strong { font-size: .9375rem; font-weight: 620; line-height: 1.3; }
.component span { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.roadmap { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roadmap__track { position: relative; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 28px; max-width: var(--content); overflow: hidden; }
.roadmap__track::after { content: ""; position: absolute; inset: 0; background: var(--sk-grad); transform-origin: left; animation: sk-roadmap 7s var(--ease) infinite; }
.phase { gap: 14px; }
.phase ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.phase li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.phase li .icon { width: 18px; height: 18px; margin-top: 3px; }

/* 23. About -------------------------------------------------------------------- */
.mv { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv__card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 1.5rem + 2vw, 52px); border-radius: var(--r-xl); display: grid; gap: 20px; align-content: start; min-height: 340px; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--surface); }
.mv__card > :not(.fld) { position: relative; z-index: 1; }
.mv__text { font-size: clamp(1.3125rem, 1.05rem + .9vw, 1.75rem); line-height: 1.3; letter-spacing: -0.018em; font-weight: 600; color: var(--text); }
.statement { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.028em; font-weight: 650; text-wrap: balance; }
.not-card .label { color: var(--danger); display: inline-flex; align-items: center; gap: 8px; }
.not-card .label .icon { width: 15px; height: 15px; }
.value__not { font-size: .8125rem; color: var(--muted); padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }

/* 24. CTA band ------------------------------------------------------------------ */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 2.5rem + 4vw, 104px) clamp(24px, 1rem + 4vw, 72px); text-align: center; }
.cta-band__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; max-width: 780px; margin: 0 auto; }

/* 25. Forms ---------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { display: flex; align-items: baseline; gap: 6px; font-size: .9063rem; font-weight: 620; color: var(--text); }
.field__opt { margin-left: auto; font-size: .75rem; font-weight: 560; color: var(--muted); }
.field__req { color: var(--danger); }
.field__hint { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.field__hint--soft { color: var(--wait-text); display: flex; gap: 6px; align-items: flex-start; }
.field__hint--soft .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); border: 1px solid var(--input-border); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--accent-soft); }
.input:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { display: none; align-items: flex-start; gap: 6px; font-size: .8125rem; font-weight: 560; color: var(--danger); line-height: 1.4; }
.field__error .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.has-error > .field__error, .has-error .field__error { display: flex; }
.counter { font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.choice-group > legend { padding: 0; margin-bottom: 4px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: .9063rem; font-weight: 520; line-height: 1.3;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.choice:hover .chip { border-color: var(--text-2); color: var(--text); transform: translateY(-1px); }
.choice input:checked + .chip { border-color: transparent; background: var(--sk-grad-btn); background-size: 220% 100%; color: #FFFFFF; box-shadow: 0 8px 18px -10px rgba(0, 53, 252, .6); }
.choice input:focus-visible + .chip, .choice input:focus-visible + .option { outline: 2px solid var(--focus); outline-offset: 3px; }
.options { display: grid; gap: 10px; }
@media (min-width: 680px) { .options--2 { grid-template-columns: 1fr 1fr; } .options--3 { grid-template-columns: repeat(3, 1fr); } }
.options .choice { display: flex; }
.option {
  position: relative; flex: 1; display: grid; grid-template-columns: auto 1fr 22px; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface-2);
  transition: border-color var(--t-fast), background-color var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease);
}
.option--noicon { grid-template-columns: 1fr 22px; }
.option__icon { display: grid; place-items: center start; width: 28px; height: 28px; color: var(--accent); }
.option__icon .icon { width: 22px; height: 22px; }
.option__title { display: block; font-size: 1rem; font-weight: 620; color: var(--text); line-height: 1.3; }
.option__desc { display: block; font-size: .875rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.option__radio { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--input-border); position: relative; transition: border-color var(--t-fast); }
.option__radio::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sk-grad); transform: scale(0); transition: transform var(--t-base) var(--ease); }
.choice input[type="checkbox"] + .option .option__radio, .choice input[type="checkbox"] + .option .option__radio::after { border-radius: 7px; }
.choice:hover .option { border-color: var(--text-2); transform: translateY(-1px); }
.choice input:checked + .option { background: var(--surface); border-color: transparent; box-shadow: var(--shadow-lift); }
.choice input:checked + .option::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--sk-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.choice input:checked + .option .option__radio { border-color: transparent; }
.choice input:checked + .option .option__radio::after { transform: scale(1); }
.choice-group.has-error .chip, .choice-group.has-error .option { border-color: var(--danger); }
.check-inline { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9063rem; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sk-royal); cursor: pointer; }
.conditional { animation: sk-panel-in .5s var(--ease) both; }
.error-summary { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); display: grid; gap: 8px; }
.error-summary h3 { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 620; color: var(--danger); }
.error-summary h3 .icon { width: 18px; height: 18px; }
.error-summary ul { margin: 0; padding-left: 26px; display: grid; gap: 4px; font-size: .875rem; }
.error-summary a { color: var(--danger); }
/* Submission status (contact form) and submission error (call request) */
.form-status { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 20px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); border-left-width: 3px; background: var(--surface); }
.form-status--ok { border-left-color: var(--ok); }
.form-status--ok .icon { color: var(--ok); }
.form-status--error { border-left-color: var(--danger); }
.form-status--error .icon { color: var(--danger); }
.form-status h3 { font-size: 1rem; font-weight: 650; margin-bottom: 4px; }
.form-status p { font-size: .9063rem; color: var(--text-2); }
.send-error { display: grid; gap: 10px; margin-top: 20px; padding: 20px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); border-left: 3px solid var(--danger); background: var(--surface); }
.send-error h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 650; }
.send-error h3 .icon { color: var(--danger); width: 20px; height: 20px; }
.send-error p { color: var(--text-2); font-size: .9375rem; }
.send-error .cta-row { justify-content: flex-start; gap: 8px; }
/* Honeypot: present for bots, invisible and unreachable for people */
.ob-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 26. Contact ------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-side { display: grid; gap: var(--gutter); align-content: start; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-email a { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.contact-email a:hover { color: var(--accent); }
.next-steps { display: grid; gap: 14px; padding: 0; list-style: none; }
.next-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.next-steps p { font-size: .9375rem; color: var(--text-2); padding-top: 4px; }
.form-card { padding: clamp(24px, 1rem + 2.5vw, 48px); border-radius: var(--r-xl); }

/* 27. Onboarding (book a call) ----------------------------------------------------- */
.ob { position: relative; isolation: isolate; overflow: clip; margin-top: calc(-1 * (var(--header-h) + var(--header-top) * 2)); padding-top: calc(var(--header-h) + var(--header-top) * 2 + clamp(32px, 2rem + 2vw, 64px)); padding-bottom: var(--section-y); }
.ob > .container { position: relative; z-index: 1; }
.ob__head { display: grid; justify-items: center; gap: 14px; text-align: center; margin: 0 auto 28px; max-width: 760px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 14px; margin: 0 auto; }
.stepper::-webkit-scrollbar { display: none; }
.stepper__item { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.stepper__item:not(:last-child)::after { content: ""; width: clamp(14px, 3vw, 52px); height: 2px; border-radius: 2px; background: var(--line-strong); margin-left: 6px; transition: background var(--t-slow) var(--ease); }
.stepper__item.is-done:not(:last-child)::after { background: var(--sk-grad); }
.stepper__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: none; color: var(--muted); font-size: .9063rem; font-weight: 560;
  transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.stepper__btn:disabled { cursor: default; }
.stepper__no { font-size: .8125rem; font-weight: 650; color: inherit; font-variant-numeric: tabular-nums; }
.stepper__item.is-current .stepper__btn { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-card); }
.stepper__item.is-current .stepper__no { color: var(--accent); }
.stepper__item.is-done .stepper__btn { color: var(--text-2); }
.stepper__item.is-done .stepper__btn:not(:disabled):hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .stepper__label { display: none; } .stepper__item.is-current .stepper__label { display: inline; } .stepper__btn { padding: 0 12px; } }
.ob-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
.ob-meta .caption { display: inline-flex; align-items: center; gap: 6px; }
.ob-meta .icon { width: 15px; height: 15px; }
.ob-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 980px; margin: 0 auto 22px; }
.ob-progress__bar { height: 100%; width: 0; background: var(--sk-grad); border-radius: 3px; transition: width .6s var(--ease); }
.ob-card { max-width: 980px; margin: 0 auto; padding: clamp(24px, 1rem + 3vw, 64px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.ob-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.ob-step.is-entering { animation: sk-step-in .55s var(--ease) both; }
.ob-step__kicker { margin-bottom: 10px; }
.ob-step__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; }
.ob-step__title:focus { outline: none; }
.ob-step__sub { margin-top: 12px; color: var(--text-2); font-size: 1.0625rem; }
.ob-step__body { display: grid; gap: 30px; margin-top: 36px; }
.ob-group { display: grid; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.ob-group:first-child { padding-top: 0; border-top: 0; }
.ob-group__title { font-size: 1.125rem; font-weight: 650; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 28px; }
.picked__label { display: flex; align-items: center; gap: 12px; font-weight: 620; }
.picked__label .icon { width: 20px; height: 20px; }
.ob-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.ob-foot__right { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.summary { display: grid; gap: 14px; }
.summary__section { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.summary__head h3 { font-size: 1rem; font-weight: 620; }
.summary__list { margin: 0; padding: 4px 20px; }
.summary__list > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary__list > div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .summary__list > div { grid-template-columns: 220px 1fr; gap: 20px; } }
.summary__list dt { font-size: .8438rem; color: var(--muted); }
.summary__list dd { margin: 0; font-size: .9375rem; color: var(--text); white-space: pre-line; word-break: break-word; }
.summary__list dd.is-empty { color: var(--muted); font-style: italic; }
.gate { display: grid; gap: 22px; }
.gate__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); min-height: 320px; display: grid; place-items: center; padding: 40px 24px; text-align: center; isolation: isolate; }
.gate__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; max-width: 50ch; }

/* 28. Dialog & toast ----------------------------------------------------------------- */
.dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); }
.dialog::backdrop { background: rgba(5, 7, 15, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: sk-dialog-in .42s var(--ease) both; }
.dialog__body { padding: 30px 30px 8px; display: grid; gap: 12px; }
.dialog__body h2 { font-size: 1.375rem; }
.dialog__body p { color: var(--text-2); font-size: .9375rem; }
.dialog__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 22px 30px 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); background: #0E133B; color: #EEF1F6; font-size: .9063rem; font-weight: 560; box-shadow: var(--shadow-lift); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.toast .icon { width: 18px; height: 18px; color: #3DDC97; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 29. Footer ---------------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(64px, 3rem + 3vw, 104px); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.site-footer > .container { position: relative; z-index: 1; }
.footer__top { display: grid; gap: 48px; padding-bottom: 56px; }
@media (min-width: 1000px) { .footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.footer__brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.footer__brand-link { display: inline-block; border-radius: 8px; }
.footer__lockup { width: 220px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
@media (min-width: 760px) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__col h2 { font-size: .75rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.footer__col a, .footer__col p { color: var(--text-2); text-decoration: none; font-size: .9375rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }

/* 30. Legal (draft) ---------------------------------------------------------------- */
.legal { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.legal__toc { display: grid; gap: 2px; align-content: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (min-width: 1000px) { .legal__toc { position: sticky; top: calc(var(--header-h) + var(--header-top) * 2 + 24px); } }
.legal__toc a { display: block; padding: 8px 10px; border-radius: var(--r-xs); color: var(--text-2); text-decoration: none; font-size: .9063rem; }
.legal__toc a:hover { background: var(--surface-2); color: var(--text); }
.legal__body { display: grid; gap: 16px; }
.legal__body section { display: grid; gap: 14px; padding: clamp(22px, 1rem + 1.5vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.legal__body h2 { font-size: var(--fs-h4); }
.legal__body p, .legal__body li { color: var(--text-2); }
.placeholder-field { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px dashed var(--wait); background: color-mix(in srgb, var(--wait) 7%, transparent); }
.placeholder-field .label { color: var(--wait-text); }
.placeholder-field span:last-child { font-size: .9063rem; color: var(--text-2); }

/* 31. Reveal & page transitions --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out), box-shadow var(--t-slow) var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="scale"] { transform: translateY(18px) scale(.97); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].is-visible.lift:hover { transform: translateY(-6px); transition-delay: 0ms; transition-duration: var(--t-slow); }
.page-main { animation: sk-page-in .7s var(--ease-out) both; }
body.is-leaving .page-main, body.is-leaving .site-footer { opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease); }

@keyframes sk-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sk-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sk-step-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes sk-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sk-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.3); } }
@keyframes sk-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sk-roadmap { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@keyframes sk-travel-x { 0% { transform: translateX(calc(-1 * var(--gutter))); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }

/* 32. Reduced motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none !important; }
  .step__signal { display: none !important; }
  .fld__pulse { display: none; }
  .fld__actor { opacity: .82 !important; } .fld__actor--flow { offset-distance: 35% !important; animation: none !important; } .fld__actor .agent, .fld__scan::before { animation: none !important; }
  .fld .fld__frame { stroke-dashoffset: 0; }
  .fld .fld__ticks, .fld .fld__label, .fld .fld__node, .fld .fld__wash, .fld .fld__cell, .fld .fld__ruler { opacity: 1; }
  .fld .fld__rule { opacity: 1; transform: none; }
}

/* 33. Print ---------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-menu, .secnav, .fld, .cta-band { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 34. Additions ------------------------------------------------------------------ */
[data-theme-icon] { display: inline-grid; }
.services { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) {
  .services { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .services > :nth-child(-n+3) { grid-column: span 2; }
  .services > :nth-child(n+4) { grid-column: span 3; }
}
.grid-5 { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.benefit-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: .9375rem; }
.benefit-item .icon { width: 22px; height: 22px; margin-top: 1px; }
.side-card { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.num-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   V1.2 additions: story heroes, explorer, projects, contact
   ========================================================================== */
.mb-5 { margin-bottom: var(--gutter); }

/* Home hero: the story wraps the headline (borderless) */
.hero__scene { position: relative; z-index: 0; display: block; width: 100%; height: 250px; margin-top: 28px; pointer-events: none; }
@media (min-width: 1160px) {
  .hero--story { padding-bottom: clamp(150px, 6rem + 4vw, 190px); }
  .hero__scene { position: absolute; inset: 0; height: 100%; margin: 0; }
  .hero--story .hero__sub { max-width: 50ch; }
}
/* Inner page heroes: soft orbits around the headline */
.page-hero__scene { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* Solutions explorer (home) */
.explorer { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .explorer { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.explorer__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.explorer__list::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .explorer__list { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--header-h) + var(--header-top) * 2 + 24px); } }
.explorer__tab {
  position: relative; display: flex; align-items: center; gap: 14px; flex: none; width: auto; text-align: left;
  padding: 12px 16px 12px 12px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s var(--ease), background .3s var(--ease);
}
.explorer__tab:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.explorer__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.explorer__tab[aria-selected="true"] { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sk-grad) border-box; border-color: transparent; box-shadow: var(--shadow-lift); }
.explorer__txt { display: grid; gap: 2px; }
.explorer__txt strong { font-size: .9375rem; font-weight: 650; letter-spacing: -0.005em; }
.explorer__txt span { font-size: .8125rem; color: var(--muted); }
@media (max-width: 999px) { .explorer__txt span { display: none; } .explorer__tab { padding: 8px 16px 8px 8px; } }
.explorer__panel[hidden] { display: none; }
.explorer__panel.is-entering { animation: sk-panel-in .62s var(--ease) both; }
.explorer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 0 4px; }
.explorer__foot p { color: var(--text-2); max-width: 62ch; }

/* Problem → solution tabs: illustration on top, three steps below */
@media (min-width: 1000px) {
  .ps { grid-template-columns: minmax(0, 1fr); }
  .ps .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .ps .flow__step:not(:last-child)::after { display: none; }
}

/* Projects */
.project .art-card__body { gap: 12px; }
.project .card__text { color: var(--text-2); }
.project__agent { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 4px 12px 4px 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .8125rem; text-decoration: none; transition: border-color var(--t-base) var(--ease); }
.project__agent .agent { height: 28px; }
.project__agent strong { color: var(--text); font-weight: 650; }
.project__agent:hover { border-color: var(--accent); }
.art-card__body > .project__agent { margin-bottom: 4px; }
.footer__crew { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 2px; }
.footer__crew .agent { height: 30px; opacity: .92; }
.footer__crew .agent[data-agent="teko"] { height: 40px; }
.project__constraint { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.project__constraint .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px 18px; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.stats dt { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 2px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--text-2); }
.project .link-arrow { margin-top: 4px; }
.project--wide { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .project--wide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .project--wide .art-card__art { border-bottom: 0; border-right: 1px solid var(--line); justify-content: center; }
}
.feature-project { display: grid; gap: calc(var(--gutter) * 1.5); }
.feature-project__body { display: grid; gap: var(--gutter); }
@media (min-width: 1000px) { .feature-project__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 48px; } }

/* Contact: guided call first, then "oppure" */
.guided { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 32px; padding: clamp(24px, 1rem + 2.5vw, 48px); border-radius: var(--r-xl); }
.guided > :not(.fld) { position: relative; z-index: 1; }
@media (min-width: 1000px) { .guided { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.guided__copy { display: grid; gap: 18px; justify-items: start; }
.guided__art { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.guided__art .scene { display: block; width: 100%; height: auto; }
.or-sep { display: flex; align-items: center; gap: 18px; max-width: 560px; margin: 0 auto clamp(28px, 1.5rem + 1vw, 44px); color: var(--muted); font-size: .8125rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
@media (min-width: 1000px) { .contact-grid--alt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.form-card--quiet { box-shadow: none; background: var(--surface); }

/* Agents on a page hero (404) */
.mascot-stage { display: flex; align-items: flex-end; justify-content: center; gap: 24px; margin-top: 8px; }
.mascot-stage--sm { margin: 0 0 4px; }

/* ==========================================================================
   V1.5: animated SAITEKO agents (js/agents.js)
   ========================================================================== */
.agent { display: inline-block; flex: none; height: 92px; aspect-ratio: var(--ag-ratio, .7); vertical-align: bottom; }
.agent svg { display: block; width: 100%; height: 100%; overflow: visible; }
.agent[data-size="xs"] { height: 42px; }
.agent[data-size="sm"] { height: 64px; }
.agent[data-size="lg"] { height: 138px; }
.agent[data-size="xl"] { height: 184px; }
[data-resolved="dark"] .agent, .surface-dark .agent,
[data-resolved="dark"] .scene .st-agent, .surface-dark .scene .st-agent { filter: drop-shadow(1.5px 0 0 rgba(201, 207, 219, .5)) drop-shadow(-1.5px 0 0 rgba(201, 207, 219, .5)) drop-shadow(0 1.5px 0 rgba(201, 207, 219, .5)) drop-shadow(0 -1.5px 0 rgba(201, 207, 219, .5)); }
/* Agent cards (teko.html) */
.agent-lineup { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 14px 26px; margin-top: 10px; }
@media (max-width: 640px) { .agent-lineup .agent[data-size="sm"] { height: 46px; } .agent-lineup .agent[data-size="xl"] { height: 120px; } .agent-lineup .agent[data-size="lg"] { height: 90px; } .agent-lineup { gap: 10px 14px; } }
.agent-card { display: grid; gap: 18px; align-content: start; }
.agent-card__head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.agent-card__stage { display: grid; place-items: end center; width: 112px; height: 112px; padding-bottom: 10px; border-radius: var(--r-sm);
  background-color: var(--surface-2); border: 1px solid var(--line);
  background-image: linear-gradient(to right, var(--fld-line) 1px, transparent 1px), linear-gradient(to bottom, var(--fld-line) 1px, transparent 1px); background-size: 16px 16px; background-position: center; }
.agent-card--lead .agent-card__stage { width: 150px; height: 168px; }
.agent-card__id { display: grid; gap: 6px; }
.agent-card__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.agent-card__service { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
.agent-card__service .icon { width: 14px; height: 14px; }
.agent-card__service:hover { text-decoration: underline; }
.agent-card__role { font-weight: 550; color: var(--muted); }
.agent-card__spec { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.agent-card__spec > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agent-card__spec dt { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.agent-card__spec dd { margin: 0; font-size: .9375rem; color: var(--text-2); }
.agent-card__project { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--text-2); }
.agent-card__project .icon { width: 18px; height: 18px; }
@media (max-width: 560px) { .agent-card__head { grid-template-columns: 1fr; } .agent-card__spec > div { grid-template-columns: 1fr; gap: 2px; } }
/* Solutions: the area's agent */
.area-agent { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: var(--gutter); padding: 20px 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.area-agent__stage { display: grid; place-items: end center; width: 104px; height: 104px; padding-bottom: 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.area-agent__body { display: grid; gap: 8px; }
.area-agent__title { font-size: 1.0625rem; font-weight: 650; }
.area-agent__title span { color: var(--muted); font-weight: 550; }
.area-agent ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.area-agent li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--text-2); }
.area-agent li .icon { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 640px) { .area-agent { grid-template-columns: 1fr; } }
/* Home explorer: agent badge next to each area */
.explorer__agent { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: .875rem; }
.explorer__agent strong { color: var(--text); }
.explorer__agent .agent { height: 40px; }
.explorer__agent:hover { border-color: var(--accent); }
.explorer__foot--agent { margin-top: 16px; }
.explorer__foot--agent + .explorer__foot { margin-top: 10px; }
/* Call request guide: PIX animated, typing dots before each new line */
.ob-guide .agent { height: 56px; }
.ob-guide__dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.ob-guide__dots i { width: 6px; height: 6px; border-radius: 1px; background: var(--muted); animation: sk-dot 1s steps(2) infinite; }
.ob-guide__dots i:nth-child(2) { animation-delay: .2s; } .ob-guide__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sk-dot { 0% { opacity: .25; } 50% { opacity: 1; } }

/* Titles: balanced lines, never a single word on the last line (js/main.js adds the fallback) */
.statement { max-width: 1040px; margin-inline: auto; }
.page-hero__copy { max-width: 1040px; }
/* Contact: the side column follows the form on desktop, so no empty area appears */
@media (min-width: 1000px) { .contact-grid--alt .contact-side { position: sticky; top: calc(var(--header-h) + var(--header-top) * 2 + 24px); align-self: start; } }
.contact-tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-tips li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.contact-tips .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
/* Call request: guide bubble */
.ob-guide { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.ob-guide__bubble { position: relative; flex: 1; padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .9375rem; color: var(--text-2); min-height: 46px; }
.ob-guide__bubble::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; background: var(--surface-2); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.ob-guide__bubble strong { color: var(--accent); font-weight: 700; letter-spacing: .04em; margin-right: 4px; }
.ob-guide.is-swap .ob-guide__bubble { animation: sk-cap .45s var(--ease) both; }

/* 36. Companion: TEKO-01 walks along the bottom edge, PIX flies around him (js/companion.js) */
.companion { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.companion.is-ready { opacity: 1; }
.companion.is-away, .companion.is-hidden { opacity: 0; transform: translateY(24px); }
.companion.is-away *, .companion.is-hidden * { pointer-events: none !important; }
.companion__walker { position: absolute; left: 0; bottom: 14px; will-change: transform; }
.companion__teko { display: block; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 12px; filter: drop-shadow(0 6px 8px rgba(14, 19, 59, .18)); }
.companion__teko .agent { height: 69px; display: block; transition: transform var(--t-fast) var(--ease); }
.companion__teko.is-left .agent { transform: scaleX(-1); }
.companion__teko:hover .agent { transform: translateY(-3px); }
.companion__teko.is-left:hover .agent { transform: scaleX(-1) translateY(-3px); }
.companion__teko:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.companion__pix { position: fixed; left: 0; top: 0; will-change: transform; transform: translate3d(-100px, 0, 0); }
.companion__pix .agent { height: 40px; display: block; filter: drop-shadow(0 4px 10px rgba(0, 135, 253, .35)); }
.companion__trail { position: absolute; inset: 0; }
.companion__spark { position: fixed; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #00E8FD; box-shadow: 0 0 6px rgba(0, 232, 253, .8); animation: sk-spark .7s var(--ease-out) forwards; }
.companion__spark:nth-child(3n) { background: #D8FBFF; }
.companion__spark:nth-child(3n+1) { width: 3px; height: 3px; background: #0187FD; }
.companion__spark.is-big { width: 5px; height: 5px; animation-duration: .9s; }
@keyframes sk-spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 8px)) scale(.4); } }
[data-resolved="dark"] .companion__teko { filter: drop-shadow(1.5px 0 0 rgba(201, 207, 219, .55)) drop-shadow(-1.5px 0 0 rgba(201, 207, 219, .55)) drop-shadow(0 -1.5px 0 rgba(201, 207, 219, .55)) drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
[data-resolved="dark"] .companion__pix .agent, [data-resolved="dark"] .companion__guest .agent { filter: drop-shadow(1px 0 0 rgba(201, 207, 219, .55)) drop-shadow(-1px 0 0 rgba(201, 207, 219, .55)) drop-shadow(0 -1px 0 rgba(201, 207, 219, .55)); }

/* Speech bubble and the agent of the section */
.companion__bubble {
  position: absolute; left: 0; bottom: calc(100% + 12px); width: max-content; max-width: min(300px, calc(100vw - 32px)); margin: 0; padding: 10px 14px;
  border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift);
  font-size: .875rem; font-weight: 550; line-height: 1.4; color: var(--text); text-wrap: pretty;
  opacity: 0; transform: translateY(6px) scale(.97); transform-origin: 0 100%; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); pointer-events: none;
}
.companion.is-right .companion__bubble { left: auto; right: 0; border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }
.companion.is-talking .companion__bubble { opacity: 1; transform: none; }
.companion__guest { position: absolute; bottom: 0; left: calc(100% + 10px); display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: translateX(-16px); transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease); }
.companion.is-right .companion__guest { left: auto; right: calc(100% + 10px); transform: translateX(16px); }
.companion.has-guest.is-talking .companion__guest { opacity: 1; transform: none; }
.companion__guest .agent { height: 44px; display: block; }
.companion__guest .agent[hidden] { display: none; }
.companion__guest-name { order: 2; font-size: .625rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }

/* Card opened by clicking TEKO-01 */
.companion__card {
  position: fixed; bottom: 104px; width: min(320px, calc(100vw - 24px)); padding: 18px; border-radius: 16px; pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); display: grid; gap: 12px;
  animation: sk-panel-in .28s var(--ease-out) both;
}
.companion__card[hidden] { display: none; }
.companion__card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.companion__card-head .agent { height: 42px; }
.companion__card-title { margin: 0; font-weight: 750; font-size: 1rem; color: var(--text); }
.companion__card-role { margin: 2px 0 6px; font-size: .8125rem; color: var(--muted); }
.companion__badge { font-size: .6875rem; }
.companion__card-text { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.companion__card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.companion__card-links .btn { min-height: 0; height: 38px; padding: 0 14px; font-size: .8125rem; }
.companion__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; align-self: start; }
.companion__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.companion__close:hover { color: var(--text); }
.companion__hide { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.companion__hide:hover { color: var(--text); }
.companion-restore { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: grid; place-items: end center; width: 44px; height: 44px; padding: 0 0 5px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass); box-shadow: var(--shadow-pill); cursor: pointer; overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.companion-restore[hidden] { display: none; }
.companion-restore .agent { height: 30px; }
.companion-restore:hover { border-color: var(--accent); }
@media (max-width: 699px) {
  .companion__teko .agent { height: 54px; }
  .companion__pix .agent { height: 30px; }
  .companion__guest .agent { height: 34px; }
  .companion__bubble { font-size: .8125rem; max-width: min(240px, calc(100vw - 32px)); }
  .companion__card { bottom: 86px; }
}
@media print { .companion, .companion-restore { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .companion__spark { display: none; } }

/* 37. V2.0 components ------------------------------------------------------------- */
/* Commercial status: A available, B configurable on project, C planned (roadmap) */
.status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid; font-size: .75rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status--a { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.status--b { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); background: var(--accent-soft); }
.status--c { color: var(--muted); border-color: var(--line-strong); border-style: dashed; background: transparent; }
.status--c .status__dot { background: transparent; border: 1.5px dashed currentColor; }
.status-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0 0 var(--gutter); }
.duo--center { align-items: center; }
.check-list--sm { gap: 9px; }
.check-list--sm li { grid-template-columns: 18px 1fr; gap: 10px; font-size: .9063rem; }
.check-list--sm .icon { width: 18px; height: 18px; margin-top: 2px; }

/* Capabilities and approval levels (AI Agents) */
.cap-grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cap-card__title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.cap-card__text { color: var(--text-2); font-size: .9375rem; }
.levels { display: grid; gap: var(--gutter); margin-top: var(--gutter); }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.level { position: relative; }
.level__no { position: absolute; top: 22px; right: 24px; font-size: .75rem; font-weight: 650; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.level__title { font-size: 1.125rem; font-weight: 650; }
.level p { color: var(--text-2); font-size: .9375rem; }

/* Agent examples */
.agent-ex-grid { display: grid; gap: var(--gutter); }
@media (min-width: 800px) { .agent-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent-ex__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.agent-ex__head .agent { height: 34px; opacity: .9; }
.agent-ex__title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.agent-ex__fn { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.agent-ex__text { color: var(--text-2); font-size: .9375rem; }
.agent-ex__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* Hand-off conversation (illustrative) */
.handoff { gap: 12px; }
.handoff__msg { display: grid; gap: 4px; max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: .9063rem; line-height: 1.45; }
.handoff__msg strong { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.handoff__msg p { color: var(--text); }
.handoff__msg--in { justify-self: start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.handoff__msg--ai { justify-self: end; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-bottom-right-radius: 4px; }
.handoff__msg--human { justify-self: end; background: color-mix(in srgb, var(--ok) 8%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); border-bottom-right-radius: 4px; }
.handoff__src { font-size: .75rem; color: var(--accent); font-weight: 600; }
.limits .icon { width: 26px; height: 26px; }

/* Business functions explorer */
.fn-explorer .explorer__tab { padding-block: 9px; }
@media (min-width: 1000px) { .fn-explorer { grid-template-columns: 290px minmax(0, 1fr); } .fn-explorer .explorer__txt span { display: none; } .fn-explorer .explorer__tab[aria-selected="true"] .explorer__txt span { display: block; } }
.fn-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--gutter); }
.fn-panel__head .icon-badge { width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--accent-soft); }
.fn-panel__head .icon { width: 24px; height: 24px; }
.fn-panel__title { font-size: var(--fs-h3, 1.75rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.fn-panel__short { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.fn-panel__grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .fn-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fn-card { gap: 12px; }
.fn-card .label { display: flex; align-items: center; gap: 8px; }
.fn-card .label .icon { width: 16px; height: 16px; color: var(--accent); }
.fn-card > p:not(.label) { color: var(--text-2); font-size: .9688rem; line-height: 1.6; }
.fn-card--sol { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sk-grad) border-box; border: 1.5px solid transparent; }
.fn-links { display: grid; gap: 6px; }
.fn-panel__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: var(--gutter); padding: 18px 22px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.fn-panel__cta p { max-width: 52ch; }

/* Sectors */
.sectors { gap: 16px; }
.sectors__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sectors__list li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .875rem; font-weight: 560; color: var(--text-2); }

/* Process Packs */
.layer-card .label { color: var(--accent); }
.pack-grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack { scroll-margin-top: calc(var(--header-h) + var(--header-top) * 2 + 24px); }
.pack__head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.pack__title { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.pack__sub { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.pack__flow { display: grid; gap: 10px; margin: 0; }
.pack__flow > div { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line-strong); }
.pack__flow > div:last-child { border-left-color: var(--accent); }
.pack__flow dt { font-size: .6875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pack__flow dd { margin: 0; font-size: .9063rem; color: var(--text-2); }
.pack__status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pack:target { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); }
.eco-grid { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .eco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eco__head { display: flex; align-items: center; gap: 12px; }
.eco__title { font-size: 1.125rem; font-weight: 650; }
.eco .status { margin-top: auto; }

/* Private AI deployment */
.deploy-grid { display: grid; gap: var(--gutter); }
@media (min-width: 960px) { .deploy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deploy__head { display: flex; align-items: center; gap: 14px; }
.deploy__head .icon-badge { width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--accent-soft); }
.deploy__title { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.deploy__spec { display: grid; gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.deploy__spec > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.deploy__spec dt { font-size: .6875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.deploy__spec dd { margin: 0; font-size: .9063rem; color: var(--text-2); }
.note-box { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 18px 22px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text-2); }
.note-box .icon { width: 22px; height: 22px; margin-top: 1px; }
.note-box strong { color: var(--text); }
.edge-card .status { margin-bottom: 4px; }

/* AI Opportunity Assessment */
.page-hero--compact { padding-bottom: clamp(28px, 1.5rem + 2vw, 48px); }
.assess__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .875rem; color: var(--text-2); }
.assess__facts li { display: inline-flex; align-items: center; gap: 8px; }
.assess__facts .icon { width: 16px; height: 16px; color: var(--accent); }
.assess { max-width: 920px; margin: 0 auto; gap: 22px; scroll-margin-top: calc(var(--header-h) + var(--header-top) * 2 + 16px); }
.assess__top { display: grid; gap: 10px; }
.assess__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.assess__bar i { display: block; height: 100%; width: 0; background: var(--sk-grad); border-radius: inherit; transition: width var(--t-slow) var(--ease); }
.assess__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; animation: sk-step-in .45s var(--ease-out) both; }
.assess__q { padding: 0; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); text-wrap: balance; }
.assess__q:focus { outline: none; }
.choice-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choice-list .chip { min-height: 46px; padding-inline: 18px; }
.assess__err { color: var(--danger); font-size: .9063rem; font-weight: 560; }
.assess__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.assess__nav [data-next] { margin-left: auto; }
.assess__result { display: grid; gap: 14px; animation: sk-step-in .45s var(--ease-out) both; }
.assess__result h2:focus { outline: none; }
.opps { display: grid; gap: 12px; margin-top: 6px; }
.opp { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.opp__no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sk-grad); color: #FFFFFF; font-size: .8125rem; font-weight: 700; }
.opp__type { font-size: .6875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.opp__title { margin-top: 3px; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.opp__text { margin-top: 4px; color: var(--text-2); font-size: .9375rem; }
.opp__link { margin-top: 8px; display: inline-flex; }
.assess__notes { display: grid; gap: 10px; padding: 16px 0 4px; }
.assess__notes p { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: .9375rem; }
.assess__notes .icon { width: 20px; height: 20px; margin-top: 1px; }
.assess__contact { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (max-width: 560px) { .assess__nav .btn { flex: 1; justify-content: center; } .choice-list .chip { min-height: 42px; padding-inline: 14px; } }
.assess__result .eyebrow { justify-self: start; }
/* Home: business functions teaser, integrations strip, four-step method */
.fn-teaser { display: grid; gap: 18px; margin-top: clamp(40px, 2rem + 2vw, 64px); padding: clamp(22px, 1.2rem + 1vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.fn-teaser__head { display: grid; gap: 6px; }
.fn-teaser__list { display: flex; flex-wrap: wrap; gap: 8px; }
.fn-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 580; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.fn-chip .icon { width: 16px; height: 16px; }
.fn-chip:hover, .fn-chip:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.int-strip { display: grid; gap: 14px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.int-strip__title { color: var(--text-2); }
.int-strip__title strong { color: var(--text); }
.int-strip__list { display: flex; flex-wrap: wrap; gap: 8px; }
.int-strip__list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 580; color: var(--text-2); }
.int-strip__list .icon { width: 15px; height: 15px; }
@media (min-width: 1060px) { .seq--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seq__head { display: flex; align-items: flex-end; justify-content: space-between; }
.seq__head .agent { height: 32px; }
.seq--4 .seq__item h3 { font-size: 1.25rem; }
.seq--4 .seq__item p { font-size: .9375rem; color: var(--text-2); }
/* Solutions: what each area includes; FAQ accordion */
.svc-list { display: grid; gap: 16px; margin-top: var(--gutter); padding: clamp(20px, 1rem + 1.5vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.svc-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.svc-list__items { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq__title { text-align: center; margin-bottom: 10px; }
.faq__item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 620; color: var(--text); border-radius: inherit; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform var(--t-base) var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq__item p { padding: 0 22px 20px; color: var(--text-2); line-height: 1.6; }
.int-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.int-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 20px; }
.int-card__title { font-size: 1rem; font-weight: 650; }
.int-card__text { margin-top: 3px; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.contact-assess { gap: 10px; } .contact-assess__title { font-weight: 650; font-size: 1.0625rem; color: var(--text); }
/* Alignment rules (V2.0 feedback): bars and footers line up across a row */
.seq__item { display: flex; flex-direction: column; gap: 8px; }
.seq__bar { margin-top: auto; }
@media (min-width: 960px) {
  .deploy-grid { grid-template-rows: auto; }
  .deploy { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
}
/* Language switch: in the header from 480 px, in the mobile menu below */
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-switch--menu { border: 1px solid var(--line-strong); }
@media (min-width: 480px) { .lang-switch--menu { display: none; } }
@media (max-width: 479px) { .site-header .lang-switch { display: none; } }
/* Very narrow phones (320 px) */
@media (max-width: 359px) {
  :root { --fs-display: 1.875rem; --fs-h1: 1.625rem; }
  .menu-toggle__label { display: none; }
  .site-header__bar { padding-left: 16px; gap: 8px; }
}
.footer__crew { flex-wrap: wrap; }

/* 38. V2.1 components ------------------------------------------------------------- */
/* Titles: a sentence (.tl) always starts a new line; a clause (.tc) moves to the
   next line as a whole block, never broken in the middle */
.tc { display: inline-block; text-wrap: balance; }

/* Options in forms: an ordered grid of equal tiles, never a cloud of pills */
.chips, .choice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.chips .choice, .choice-list .choice { display: block; }
.chips .chip, .choice-list .chip {
  position: relative; display: flex; align-items: center; width: 100%; height: 100%; min-height: 54px; padding: 12px 16px 12px 46px;
  border-radius: 14px; text-align: left; white-space: normal; font-weight: 560; color: var(--text);
}
.chips .chip::before, .choice-list .chip::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.chips input[type="checkbox"] + .chip::before, .choice-list input[type="checkbox"] + .chip::before { border-radius: 6px; }
.chips input:checked + .chip, .choice-list input:checked + .chip {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sk-grad) border-box; border: 1.5px solid transparent; color: var(--text); box-shadow: var(--shadow-card);
}
.chips input:checked + .chip::before, .choice-list input:checked + .chip::before { border-color: transparent; background: var(--sk-grad); box-shadow: inset 0 0 0 4px var(--surface); }
.chips input[type="checkbox"]:checked + .chip::before, .choice-list input[type="checkbox"]:checked + .chip::before { box-shadow: none; background: var(--sk-grad) center / 12px 12px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--sk-grad); }
.choice:hover .chip { transform: none; border-color: var(--accent); }

/* Tiles: equal clickable boxes with an icon (sectors, departments, integrations) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 44px 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.3;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.tile > .icon:first-child { flex: none; width: 22px; height: 22px; color: var(--accent); }
.tile__arrow { position: absolute; right: 16px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-base) var(--ease), color var(--t-base); }
a.tile:hover, a.tile:focus-visible, button.tile:hover, button.tile:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
a.tile:hover .tile__arrow, button.tile:hover .tile__arrow { transform: translateX(3px); color: var(--accent); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tile small { display: block; margin-top: 2px; font-weight: 500; font-size: .8125rem; color: var(--muted); }
button.tile { font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* Plain meta line inside cards (instead of tag pills) */
.meta-line { font-size: .875rem; color: var(--muted); }
.meta-line strong { color: var(--text-2); font-weight: 600; }

/* Link cards: what you find and why it helps, the whole box is the link */
.link-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.link-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.link-card__icon .icon { width: 20px; height: 20px; }
.link-card__icon .agent { height: 30px; }
.link-card strong { display: block; font-size: .9688rem; font-weight: 650; line-height: 1.3; }
.link-card span.link-card__txt { display: block; margin-top: 2px; font-size: .875rem; color: var(--text-2); line-height: 1.45; }
.link-card > .icon:last-child { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t-base) var(--ease), color var(--t-base); }
.link-card:hover, .link-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.link-card:hover > .icon:last-child { transform: translateX(3px); color: var(--accent); }
.link-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.link-cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .link-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .link-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Clickable cards: the whole card is a link or a button */
a.card, button.card { color: inherit; text-decoration: none; cursor: pointer; text-align: left; font: inherit; }
button.card { width: 100%; }
a.card:focus-visible, button.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 620; font-size: .9063rem; }
.card__more .icon { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
a.card:hover .card__more .icon, button.card:hover .card__more .icon { transform: translateX(3px); }

/* Detail panel opened by clickable boxes without a page of their own */
.detail { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 720px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); }
.detail::backdrop { background: rgba(5, 7, 15, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.detail[open] { animation: sk-dialog-in .42s var(--ease) both; }
.detail__body { display: grid; gap: 14px; padding: 28px 28px 24px; }
.detail__body h2 { font-size: 1.375rem; line-height: 1.2; padding-right: 40px; }
.detail__body p, .detail__body li { color: var(--text-2); }
.detail__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.detail__close .icon { width: 16px; height: 16px; }
.detail__close:hover { color: var(--text); }

/* FAQ: numbered list with category filter */
.faq { counter-reset: faq; }
.faq__item { counter-increment: faq; }
.faq__item summary { justify-content: flex-start; }
.faq__item summary::before { content: counter(faq, decimal-leading-zero); flex: none; width: 30px; font-size: .8125rem; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.faq__item summary .icon { margin-left: auto; }
.faq__item p { padding-left: 68px; }
.faq__item[hidden] { display: none; }
.faq__intro { text-align: center; max-width: 60ch; margin: -2px auto 18px; color: var(--text-2); }
.faq-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; max-width: 880px; margin: 0 auto 18px; }
.faq-filter button { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.faq-filter button[aria-pressed="true"] { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sk-grad) border-box; border: 1.5px solid transparent; color: var(--text); }
.faq-more { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 560px) { .faq__item p { padding-left: 22px; } }

/* Time calculator */
.calc { display: grid; gap: var(--gutter); padding: clamp(22px, 1.2rem + 1.5vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 3vw, 56px); } }
.calc__inputs { display: grid; gap: 22px; }
.calc__presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.calc__presets button { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: .8438rem; font-weight: 600; cursor: pointer; text-align: left; }
.calc__presets button[aria-pressed="true"] { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sk-grad) border-box; border: 1.5px solid transparent; color: var(--text); }
.calc__row { display: grid; gap: 10px; }
.calc__row label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .9375rem; color: var(--text); }
.calc__row output { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); outline: none; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-card); cursor: pointer; }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: pointer; }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.calc__cost { display: grid; gap: 8px; }
.calc__cost label { font-weight: 600; font-size: .9375rem; }
.calc__cost .input { max-width: 200px; }
.calc__out { display: grid; gap: 18px; }
.calc__scale { font-size: .8125rem; color: var(--muted); }
.calc__bar { display: grid; gap: 8px; }
.calc__bar-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .9375rem; }
.calc__bar-head span:last-child { font-variant-numeric: tabular-nums; }
.calc__track { height: 14px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.calc__fill { height: 100%; border-radius: inherit; transition: width var(--t-slow) var(--ease); }
.calc__fill--now { background: var(--text); }
.calc__fill--ai { background: var(--sk-grad); }
.calc__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.calc__big strong { font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--sk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__big span { color: var(--text-2); }
.calc__sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc__sub div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.calc__sub dt { font-size: .8125rem; color: var(--muted); }
.calc__sub dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__how { border-top: 1px solid var(--line); padding-top: 14px; }
.calc__how summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.calc__how p { margin-top: 10px; color: var(--text-2); font-size: .9063rem; }
.calc .cta-row { margin-top: 4px; }

/* Country combobox */
.combo { position: relative; }
.combo__list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
.combo__list[hidden] { display: none; }
.combo__opt { padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); font-size: .9375rem; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--accent-soft); color: var(--text); }
.combo__opt mark { background: none; color: var(--accent); font-weight: 650; }
.combo__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.combo__empty { padding: 10px 12px; color: var(--muted); font-size: .9063rem; }
.combo .input { padding-right: 40px; }
.combo__chev { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }

/* 39. TEKO-01 site chat (js/teko-chat.js) inside the companion card --------------- */
.companion__card { width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 128px)); grid-template-rows: auto minmax(0, 1fr) auto; padding: 16px; gap: 10px; }
.companion__card-role { margin: 2px 0 0; }
.companion__chat { min-height: 0; display: flex; }
.companion__card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8125rem; }
.companion__card-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.companion__card-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; width: 100%; }
.chat__note { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .75rem; line-height: 1.45; color: var(--text-2); }
.chat__note .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }
.chat__log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 4px; overscroll-behavior: contain; scrollbar-width: thin; }
.chat__msg { max-width: 92%; display: grid; gap: 8px; }
.chat__msg p { margin: 0; font-size: .875rem; line-height: 1.5; text-wrap: pretty; }
.chat__msg--bot { align-self: flex-start; }
.chat__msg--bot > p { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); color: var(--text); }
.chat__msg--user { align-self: flex-end; }
.chat__msg--user > p { padding: 9px 12px; border-radius: 14px 4px 14px 14px; background: var(--accent); color: #fff; }
[data-resolved="dark"] .chat__msg--user > p { color: #04081A; }
.chat__msg--typing { grid-auto-flow: column; justify-content: start; gap: 4px; padding: 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); }
.chat__msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: sk-chat-dot 1s infinite ease-in-out; }
.chat__msg--typing span:nth-child(2) { animation-delay: .15s; } .chat__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sk-chat-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__links { display: grid; gap: 6px; }
.chat__link { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k a" "t a"; align-items: center; gap: 0 10px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.chat__link:hover { border-color: var(--accent); transform: translateY(-1px); }
.chat__link-k { grid-area: k; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chat__link strong { grid-area: t; font-size: .8125rem; font-weight: 650; line-height: 1.35; }
.chat__link .icon { grid-area: a; width: 16px; height: 16px; color: var(--accent); }
.chat__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat__actions .btn { --h: 38px; padding: 0 10px; font-size: .8125rem; white-space: nowrap; }
.chat__suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat__suggest[hidden] { display: none; }
.chat__chip { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.chat__chip:hover { border-color: var(--accent); background: var(--surface-2); }
.chat__chip:focus-visible, .chat__link:focus-visible, .chat__input:focus-visible, .chat__send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat__form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.chat__input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.chat__input::placeholder { color: var(--muted); }
.chat__send { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; }
[data-resolved="dark"] .chat__send { color: #04081A; }
.chat__send .icon { width: 18px; height: 18px; }
.chat__form.is-busy .chat__send { opacity: .5; pointer-events: none; }
.chat__lead { max-width: 100%; width: 100%; }
.chat__lead > p { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); }
.chat__lead form { display: grid; gap: 6px; }
.chat__lead .input { height: 42px; font-size: 1rem; }
.chat__consent { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: .75rem; line-height: 1.45; color: var(--text-2); }
.chat__consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.chat__consent a { color: var(--accent); }
.chat__err { margin: 0; font-size: .8125rem; color: var(--danger, #C62828); }
.chat__err[hidden] { display: none; }
@media (max-width: 699px) {
  .companion__card { left: 12px !important; right: 12px; width: auto; bottom: 82px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
}
@media (max-width: 359px) { .chat__suggest, .chat__actions { grid-template-columns: 1fr; } }

/* 40. V2.1 page blocks -------------------------------------------------------------- */
/* Pain and solution pairs: every pair is a link, "e molto altro" closes the list */
.pairs { display: grid; gap: 10px; }
.pair {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 14px 18px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.pair:hover, .pair:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.pair:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pair__p, .pair__s { display: grid; gap: 2px; font-size: .9375rem; line-height: 1.4; }
.pair__p { color: var(--text-2); }
.pair__s { font-weight: 620; }
.pair__k { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pair__s .pair__k { color: var(--accent); }
.pair > .icon:last-child { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-base) var(--ease), color var(--t-base); }
.pair:hover > .icon:last-child { transform: translateX(3px); color: var(--accent); }
.pairs__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 0; padding: 14px 18px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); color: var(--text-2); font-size: .9375rem; text-decoration: none; }
.pairs__more > .icon:first-child { width: 18px; height: 18px; color: var(--accent); flex: none; }
a.pairs__more:hover { border-color: var(--accent); color: var(--text); }
.pairs__more-cta { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent); font-weight: 620; white-space: nowrap; }
.pairs__more-cta .icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr) auto; } .pair__s { grid-column: 1; } .pair > .icon:last-child { grid-row: 1 / span 2; grid-column: 2; } }

/* Check list */
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--text-2); line-height: 1.5; }
.ticks li .icon { width: 20px; height: 20px; margin-top: 2px; }
.ticks strong { color: var(--text); font-weight: 650; }
.surface-dark .ticks li { color: var(--text-2); }

/* Clickable cards: icon, title, text, value link at the bottom */
.card--link { height: 100%; }
.card--link .icon-badge { width: 40px; height: 40px; }
.card--link .icon-badge .icon { width: 26px; height: 26px; }
.seq__item--link { cursor: pointer; transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.seq__item--link:hover, .seq__item--link:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.seq__item--link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.seq__item--link .card__more { padding-top: 4px; font-size: .875rem; }

/* Service areas on the Solutions page: text and animation side by side */
.area { display: grid; gap: clamp(24px, 1.5rem + 1.5vw, 48px); align-items: start; scroll-margin-top: calc(var(--header-h) + 40px); }
.area + .area { margin-top: clamp(56px, 3rem + 3vw, 104px); padding-top: clamp(56px, 3rem + 3vw, 104px); border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .area { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .area--flip .area__art { order: 2; } }
.area__copy { display: grid; gap: 18px; align-content: start; }
.area__copy h3 { font-size: var(--fs-h2, 2rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.area__copy .lead { font-size: 1.0625rem; }
.area__head { display: flex; align-items: center; gap: 12px; }
.area__head .label { margin: 0; }
.area__art { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 999px) { .area__art { position: static; } }

/* Notes: short text that belongs to the block above (never on its own) */
.note { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; max-width: 780px; margin: 18px auto 0; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); font-size: .875rem; line-height: 1.5; }
.note .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.note a { color: var(--accent); font-weight: 600; }
.cta-band__note { margin: 0; color: var(--text-2); font-size: .9375rem; }
.cta-band__note a { color: var(--accent); font-weight: 620; }

/* Chat preview (TEKO-AI band) */
.chat-preview { display: grid; gap: 10px; padding: clamp(18px, 1rem + 1vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.chat-preview__head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-preview__head .agent { height: 40px; }
.chat-preview__head strong { display: block; font-size: .9375rem; }
.chat-preview__head span { font-size: .8125rem; color: var(--muted); }
.chat-preview__msg { max-width: 88%; margin: 0; padding: 10px 14px; font-size: .9063rem; line-height: 1.5; }
.chat-preview__msg--u { justify-self: end; border-radius: 14px 4px 14px 14px; background: var(--accent); color: #fff; }
[data-resolved="dark"] .chat-preview__msg--u { color: #04081A; }
.chat-preview__msg--b { justify-self: start; border-radius: 4px 14px 14px 14px; background: var(--surface-2); color: var(--text); }
.chat-preview__src { justify-self: start; font-size: .75rem; color: var(--muted); }
.chat-preview__src strong { color: var(--text-2); font-weight: 600; }

/* Story chapters (About) */
.chapters { display: grid; gap: var(--gutter); counter-reset: ch; }
@media (min-width: 900px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chapter { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 1.2rem + 1vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); counter-increment: ch; }
.chapter::before { content: "Capitolo " counter(ch); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
:lang(en) .chapter::before { content: "Chapter " counter(ch); }
.chapter h3 { font-size: var(--fs-h4); line-height: 1.25; font-weight: 650; }
.chapter p { color: var(--text-2); }

/* Guides (Resources) */
.prose { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.prose h2 { font-size: var(--fs-h3, 1.5rem); line-height: 1.2; margin-top: 18px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.7; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 22px; }
.prose strong { color: var(--text); }
.prose .meta-line { margin-top: -6px; }
.area__copy > .eyebrow, .area__copy > .cta-row { justify-self: start; }
@media (max-width: 479px) { :root { --fs-display: clamp(1.875rem, 1rem + 4.6vw, 2.25rem); } }
@media (min-width: 1000px) { .area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.area__copy h3 { font-size: clamp(1.625rem, 1.1rem + 1.3vw, 2.375rem); }
@media (min-width: 1060px) { .seq--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1059px) { .seq--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seq--3 .seq__item h3 { font-size: 1.25rem; }
.seq--3 .seq__item p { font-size: .9375rem; color: var(--text-2); }
/* Plain steps: a sequence that is not a set of boxes (no card, so nothing to click) */
.seq--plain .seq__item { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 16px 4px 0; border-top: 2px solid var(--line-strong); }
.seq--plain .seq__item.ring::after { display: none; }
.seq--plain .seq__bar { display: none; }
.seq--plain .seq__item.is-active { border-top-color: var(--accent); }
.page-hero__art { max-width: 980px; margin: clamp(36px, 2rem + 2vw, 60px) auto 0; }
.assess__calc { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc--inline { margin-top: 8px; box-shadow: none; }
@media (min-width: 960px) { .calc--inline { grid-template-columns: 1fr; } }
/* Chapters are a story, not boxes: numbered columns with a top rule */
.chapter { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 18px 0 0; border-top: 2px solid var(--line-strong); }
.assess__meta { text-align: center; }
/* Side information that is not a box (contact page) */
.side-block { display: grid; gap: 10px; padding: 18px 2px 4px; border-top: 1px solid var(--line-strong); }
.contact-assess__title { display: block; }
a.card .secondary { display: block; }
/* V2.1: animations are always whole. On phones the drawing keeps a readable width and scrolls sideways */
.scene-scroll { display: block; }
@media (max-width: 599px) {
  .scene-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .scene-scroll > .scene { width: 600px; max-width: none; }
}
/* Alignment (V2.1 QA): link-card titles share the same top, step links sit at the bottom */
.link-card { align-items: start; }
.link-card > .icon:last-child { align-self: center; }
.seq__item--link .card__more { margin-top: auto; }
.seq__item--link .seq__bar { margin-top: 0; }
/* Legal pages */
.legal-prose section { display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 32px); }
.legal-toc { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.legal-toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.legal-toc a, .legal-prose a { color: var(--accent); }
