/* ==========================================================================
   Housal Consulting — Design system 2026
   Tokens → base → layout → components → sections → utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (dérivé du logo #188080) */
  --brand: #0f6d6c;          /* teal profond — texte/CTA sur clair (AA) */
  --brand-strong: #0a5453;
  --brand-bright: #22a39b;   /* teal lumineux — accents sur sombre */
  --brand-tint: #e3efed;     /* fond teinté */
  --accent: #d99a4e;         /* sable — signal humain, usage rare */

  /* Neutres biaisés teal */
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --text: #0d1d20;
  --text-2: #4b5f63;
  --text-3: #6f8286;
  --line: #d9e3e1;
  --line-strong: #c3d1ce;

  /* Sections sombres (identiques dans les deux thèmes) */
  --night: #081a1d;
  --night-2: #0e2a2d;
  --night-line: rgba(255, 255, 255, .10);
  --night-text: #e8f1f0;
  --night-text-2: #9fb6b6;

  /* Type */
  --font-sans: "Geist", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.4rem, 1.4rem + 3.8vw, 4.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-label: .75rem;

  /* Espace & forme */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --container: 1240px;
  --section: clamp(3.5rem, 2.5rem + 6vw, 8.5rem);
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(8, 26, 29, .06), 0 8px 24px -12px rgba(8, 26, 29, .12);
  --shadow-2: 0 2px 6px rgba(8, 26, 29, .06), 0 24px 60px -24px rgba(8, 26, 29, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #3cbcb1;
    --brand-strong: #6fd6cc;
    --brand-bright: #3cbcb1;
    --brand-tint: #10302f;
    --bg: #07161a;
    --surface: #0d2124;
    --surface-2: #11292c;
    --text: #e6efee;
    --text-2: #a4b8b9;
    --text-3: #7f9597;
    --line: #1c3639;
    --line-strong: #29474a;
    --night: #041013;
    --night-2: #0a2024;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #3cbcb1;
  --brand-strong: #6fd6cc;
  --brand-bright: #3cbcb1;
  --brand-tint: #10302f;
  --bg: #07161a;
  --surface: #0d2124;
  --surface-2: #11292c;
  --text: #e6efee;
  --text-2: #a4b8b9;
  --text-3: #7f9597;
  --line: #1c3639;
  --line-strong: #29474a;
  --night: #041013;
  --night-2: #0a2024;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .7);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-bright); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--surface { background: var(--surface); }
.section--tint { background: var(--surface-2); }
.section--night { background: var(--night); color: var(--night-text); }

.section-head { display: grid; gap: 1.25rem; max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section--night .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-final .eyebrow { color: var(--brand-bright); }
.h1 { font-size: var(--fs-h1); letter-spacing: -.035em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.3; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; max-width: 62ch; }
.section--night .lead { color: var(--night-text-2); }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); }
.text-brand { color: var(--brand); }
.prose { display: grid; gap: 1.1rem; max-width: 68ch; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- 5. Buttons ---------- */
.btn {
  --_bg: var(--brand); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font-weight: 550; font-size: .975rem; letter-spacing: -.005em; line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--_bg) 80%, transparent); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --_bg: var(--brand-strong); }
:root[data-theme="dark"] .btn--primary, :root[data-theme="dark"] .btn--primary:hover { --_fg: #04201f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { --_fg: #04201f; } }
.btn--ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--line-strong); }
.btn--ghost:hover { --_bd: var(--text); box-shadow: none; }
.btn--light { --_bg: #fff; --_fg: #0a2a2b; }
.btn--light:hover { --_bg: #e9f5f3; }
.btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.28); }
.btn--outline-light:hover { --_bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: .6rem 1.05rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 550; color: var(--brand);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header--over-dark:not(.is-scrolled) { background: transparent; color: #fff; }
.site-header--over-dark:not(.is-scrolled) .brand__name small { color: rgba(255,255,255,.6); }
.site-header--over-dark:not(.is-scrolled) .nav__link:hover,
.site-header--over-dark:not(.is-scrolled) .nav__link[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.site-header--over-dark:not(.is-scrolled) .btn--ghost { --_fg: #fff; --_bd: rgba(255,255,255,.3); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand__mark { width: 36px; height: 36px; color: var(--brand-bright); }
.brand__name { display: grid; line-height: 1; font-weight: 650; letter-spacing: -.02em; font-size: 1.06rem; }
.brand__name small { font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-top: .3rem; }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; transition: background .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--surface-2); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link[aria-current="page"] { color: var(--brand); }
.header-actions { display: none; align-items: center; gap: .6rem; }

@media (min-width: 1080px) {
  .nav, .header-actions { display: flex; }
  .nav { margin-left: auto; }
  .menu-toggle { display: none !important; }
}

/* Mega menu */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2); padding: 1.25rem; width: max-content; max-width: min(1080px, calc(100vw - 48px));
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown--mega { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: .5rem; }
.dropdown--mega { left: auto; right: -260px; translate: none; }
.dropdown__col { padding: .9rem; border-radius: var(--radius); transition: background .2s; }
.dropdown__col:hover { background: var(--surface-2); }
.dropdown__head { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; margin-bottom: .7rem; }
.dropdown__head .icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); }
.dropdown__col a:not(.dropdown__head) { display: block; padding: .3rem 0; font-size: .9rem; color: var(--text-2); transition: color .2s; }
.dropdown__col a:not(.dropdown__head):hover { color: var(--brand); }
.dropdown__foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: .5rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface-2); font-size: .9rem; color: var(--text-2);
}
.dropdown--list { display: grid; gap: .25rem; min-width: 320px; }
.dropdown--list a { display: grid; grid-template-columns: 36px 1fr; gap: .8rem; align-items: start; padding: .75rem; border-radius: var(--radius); transition: background .2s; }
.dropdown--list a:hover { background: var(--surface-2); }
.dropdown--list .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.dropdown--list strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.dropdown--list span { display: block; font-size: .85rem; color: var(--text-2); line-height: 1.45; margin-top: .15rem; }

/* Mobile menu */
.menu-toggle {
  margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.site-header--over-dark:not(.is-scrolled) .menu-toggle { border-color: rgba(255,255,255,.3); }
.menu-toggle span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--text);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--bg); color: var(--text); }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__group > button, .mobile-menu__group > a {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; text-align: left;
}
.mobile-menu__group > button svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.mobile-menu__group > button[aria-expanded="true"] svg { transform: rotate(45deg); }
.mobile-menu__panel { display: grid; gap: 1.1rem; padding: 0 0 1.25rem; }
.mobile-menu__panel h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: .35rem; }
.mobile-menu__panel a { display: block; padding: .3rem 0; color: var(--text-2); font-size: 1.02rem; }
.mobile-menu__cta { margin-top: auto; display: grid; gap: .6rem; }
.mobile-menu__cta .btn { width: 100%; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; gap: .5rem; padding: .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-2);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 44px; }
@media (min-width: 1080px) { .mobile-cta { display: none; } }

/* ---------- 7. Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem);
  background: var(--night); color: var(--night-text);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(34,163,155,.28), rgba(34,163,155,0) 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero__grid { display: grid; gap: clamp(3rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero h1 { font-size: var(--fs-display); letter-spacing: -.045em; line-height: 1.02; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero__lead { font-size: var(--fs-lead); color: var(--night-text-2); max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .6rem; font-size: var(--fs-sm); color: var(--night-text-2); }
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--brand-bright); }

/* Console visual */
.console {
  position: relative; border-radius: var(--radius-l); padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--night-line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .35rem 1rem; border-bottom: 1px solid var(--night-line); }
.console__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-text-2); display: flex; align-items: center; gap: .55rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(217,154,78,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,154,78,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,154,78,0); } 100% { box-shadow: 0 0 0 0 rgba(217,154,78,0); } }
.console__channels { display: flex; gap: .35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.06); color: var(--night-text-2); border: 1px solid var(--night-line);
}
.chip svg { width: 12px; height: 12px; }
.chip--on { background: rgba(34,163,155,.16); color: #bff0ea; border-color: rgba(34,163,155,.35); }
.stream { position: relative; display: grid; gap: .6rem; padding-top: 1rem; height: 360px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); }
.stream__track { display: grid; gap: .6rem; animation: stream 28s linear infinite; }
@keyframes stream { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.msg {
  display: grid; grid-template-columns: 38px 1fr auto; gap: .8rem; align-items: center;
  padding: .8rem .9rem; border-radius: var(--radius); background: rgba(255,255,255,.045); border: 1px solid var(--night-line);
}
.msg__ch { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,163,155,.14); color: var(--brand-bright); }
.msg__ch svg { width: 18px; height: 18px; }
.msg__txt { min-width: 0; }
.msg__txt p { font-size: .92rem; color: var(--night-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__txt span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-text-2); }
.msg__lang { font-family: var(--font-mono); font-size: .7rem; padding: .25rem .5rem; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--night-text-2); }
.msg[dir="rtl"] .msg__txt p { text-align: right; }
.console__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--night-line); }
.console__foot div { padding: .5rem .6rem; }
.console__foot strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.console__foot span { font-size: .75rem; color: var(--night-text-2); line-height: 1.3; display: block; }
.console__tag { position: absolute; right: 1rem; bottom: -.7rem; }

/* ---------- 8. Stats band ---------- */
.stats { position: relative; z-index: 2; margin-top: clamp(-3rem, -2rem - 2vw, -2rem); }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  overflow: hidden;
}
.stat { padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); display: grid; gap: .35rem; align-content: start; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.stat__value { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .5em; font-weight: 500; letter-spacing: -.02em; color: var(--brand); margin-left: .12em; }
.stat__value .plus { color: var(--brand); font-weight: 500; }
.stat__label { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; max-width: 18ch; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } .stat:last-child { grid-column: auto; } .stat:nth-child(4) { grid-column: auto; } }
@media (min-width: 1080px) { .stats__grid { grid-template-columns: repeat(5, 1fr); } }
.stats__note { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--text-2); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }

/* ---------- 9. Intro / positioning ---------- */
.intro { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .intro { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.intro__statement { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 550; }
.intro__statement span { color: var(--text-3); }
.sector-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--text-2); background: var(--surface); }

/* ---------- 10. Services switcher ---------- */
.switcher { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .switcher { grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; } }
.switcher__tabs { display: grid; gap: .25rem; }
.switcher__tab {
  display: grid; grid-template-columns: 44px 1fr 20px; gap: .9rem; align-items: center; text-align: left;
  padding: .95rem 1rem; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.switcher__tab > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); transition: background .25s, color .25s; }
.switcher__tab strong { display: block; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.25; }
.switcher__tab small { display: block; font-size: .84rem; color: var(--text-3); margin-top: .15rem; line-height: 1.35; }
.switcher__tab > .chev { width: 18px; height: 18px; color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s var(--ease); }
.switcher__tab:hover { background: var(--surface); }
.switcher__tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.switcher__tab[aria-selected="true"] > .icon { background: var(--brand); color: #fff; }
.switcher__tab[aria-selected="true"] > .chev { opacity: 1; transform: none; color: var(--brand); }
.switcher__panels { position: relative; }
.panel {
  display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.panel[hidden] { display: none; }
.panel.is-entering { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) { .panel { grid-template-columns: 1fr 1fr; } }
.panel__visual { position: relative; min-height: 240px; background: var(--night); overflow: hidden; }
.panel__body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; }
.panel__body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.03em; }
.panel__body p { color: var(--text-2); }
.service-links { display: grid; border-top: 1px solid var(--line); }
.service-links a, .service-links span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: .98rem;
}
.service-links a svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.service-links a:hover { color: var(--brand); }
.service-links a:hover svg { transform: translateX(4px); color: var(--brand); }
.service-links span { color: var(--text-2); }
.service-links span em { font-style: normal; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* panel visuals (pure CSS/SVG compositions) */
.viz { position: absolute; inset: 0; display: grid; place-items: center; color: var(--night-text); }
.viz__glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,163,155,.35), transparent 70%); }
.viz svg { position: relative; width: min(82%, 360px); height: auto; }
.viz .fg { stroke: var(--brand-bright); }
.viz .soft { stroke: rgba(255,255,255,.18); }
.viz .fill-soft { fill: rgba(255,255,255,.06); }
.viz .fill-brand { fill: var(--brand-bright); }
.viz .fill-accent { fill: var(--accent); }
.viz text { fill: var(--night-text-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }

.startup-band {
  margin-top: 1.5rem; display: grid; gap: 1.25rem; align-items: center;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-l); border: 1px dashed var(--line-strong);
}
@media (min-width: 860px) { .startup-band { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.startup-band > .icon { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); }
.startup-band h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.startup-band p { color: var(--text-2); font-size: var(--fs-sm); max-width: 70ch; }

/* ---------- 11. Why Housal ---------- */
.why { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .why { grid-template-columns: .85fr 1.15fr; gap: 5rem; } .why__intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.why__intro { display: grid; gap: 1.5rem; align-content: start; }
.why__quote { padding-left: 1.25rem; border-left: 2px solid var(--brand); font-size: 1.05rem; color: var(--text-2); font-style: italic; }
.pillars { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.pillar { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pillar .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); transition: transform .35s var(--ease), background .35s, color .35s; }
.pillar:hover .icon { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.pillar h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .3rem; line-height: 1.3; }
.pillar p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }

/* ---------- 12. International ---------- */
.intl { position: relative; overflow: hidden; }
.intl__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .intl__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.intl__copy { display: grid; gap: 1.5rem; align-content: start; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 480px) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }
.lang {
  padding: .85rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--night-line);
  display: grid; gap: .1rem; transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.lang:hover { background: rgba(34,163,155,.12); border-color: rgba(34,163,155,.4); transform: translateY(-2px); }
.lang b { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.lang span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-text-2); }
.lang--more { border-style: dashed; }
.lang--more b { color: var(--brand-bright); }
.map { position: relative; aspect-ratio: 138 / 52; width: 100%; max-width: 100%; }
.map__dots {
  position: absolute; inset: 0; background: rgba(255,255,255,.22);
  -webkit-mask: url("../img/world-dots.svg") center / contain no-repeat; mask: url("../img/world-dots.svg") center / contain no-repeat;
}
.map__hub { position: absolute; width: 0; height: 0; }
.map__hub i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,154,78,.25); }
.map__hub i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.map__label { position: absolute; left: 14px; top: -34px; white-space: nowrap; padding: .45rem .7rem; border-radius: 10px; background: #fff; color: #0a2a2b; font-size: .8rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.map__label small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #557; font-weight: 500; }
.map__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__arcs path { fill: none; stroke: var(--brand-bright); stroke-width: .35; stroke-dasharray: 2 2; opacity: .6; }
.greeting-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 500; color: var(--night-text-2); letter-spacing: -.01em; }
.greeting-row span:nth-child(odd) { color: #fff; }

/* ---------- 13. Process ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; display: grid; gap: .9rem; padding: 1.75rem 0 1.75rem 3.5rem; border-top: 1px solid var(--line); align-content: start; }
.step__n { position: absolute; left: 0; top: 1.75rem; font-family: var(--font-mono); font-size: .8rem; color: var(--brand); font-weight: 500; letter-spacing: .06em; }
.step h3 { font-size: 1.1rem; letter-spacing: -.015em; line-height: 1.3; }
.step p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.step__bar { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--brand); transition: width 1.1s var(--ease); }
.is-visible .step__bar, .no-js .step__bar { width: 100%; }
@media (min-width: 1024px) {
  .step { padding: 2rem 1.5rem 0 0; }
  .step__n { position: static; }
}
.process .step:nth-child(2) .step__bar { transition-delay: .15s; }
.process .step:nth-child(3) .step__bar { transition-delay: .3s; }
.process .step:nth-child(4) .step__bar { transition-delay: .45s; }
.process .step:nth-child(5) .step__bar { transition-delay: .6s; }

/* ---------- 14. Tech & performance ---------- */
.tech { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .tech { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; } }
.tech-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--night-line); }
@media (min-width: 560px) { .tech-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.tech-item { display: grid; grid-template-columns: 22px 1fr; gap: .85rem; padding: 1.1rem 0; border-bottom: 1px solid var(--night-line); }
.tech-item svg { width: 22px; height: 22px; color: var(--brand-bright); margin-top: 2px; }
.tech-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: #fff; line-height: 1.3; }
.tech-item p { font-size: .9rem; color: var(--night-text-2); line-height: 1.5; margin-top: .2rem; }

.dash { border-radius: var(--radius-l); border: 1px solid var(--night-line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); padding: 1rem; display: grid; gap: .75rem; }
.dash__row { display: grid; gap: .75rem; }
@media (min-width: 560px) { .dash__row--2 { grid-template-columns: 1.3fr 1fr; } }
.dash__card { border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--night-line); padding: 1rem; display: grid; gap: .75rem; min-width: 0; }
.dash__label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-text-2); }
.dash__label i { font-style: normal; color: var(--brand-bright); }
.dash svg { width: 100%; height: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bars span { flex: 1; height: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-bright), rgba(34,163,155,.25)); transform-origin: bottom; transform: scaleY(var(--h, .5)); transition: transform 1s var(--ease); }
.js .dash:not(.is-visible) .bars span { transform: scaleY(.05); }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; }
.wave span { flex: 1; border-radius: 3px; background: rgba(255,255,255,.35); height: calc(var(--h) * 100%); }
.wave span.hl { background: var(--accent); }
.qm { display: grid; gap: .55rem; }
.qm div { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; align-items: center; font-size: .78rem; color: var(--night-text-2); }
.qm b { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.qm b::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--brand-bright); border-radius: inherit; }
.dash__caption { font-size: .75rem; color: var(--night-text-2); text-align: right; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 15. CX editorial ---------- */
.cx { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.cx__hero { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cx__hero { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 4rem; } }
.cx__quote { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.cx__quote mark { background: none; color: var(--brand); }
.cx__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .cx__grid { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; } }
.cx-card { border-radius: var(--radius-l); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); display: grid; gap: .9rem; align-content: start; background: var(--surface); border: 1px solid var(--line); }
.cx-card > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); }
.cx-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.cx-card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.cx-card--visual { position: relative; overflow: hidden; background: var(--night); color: var(--night-text); border-color: transparent; min-height: 360px; align-content: end; }
@media (min-width: 900px) { .cx-card--visual { grid-row: span 2; } }
.cx-card--visual p { color: var(--night-text-2); }
.cx-card--visual .viz { align-items: start; padding-top: 2rem; }
.cx-card--brand { background: var(--brand); color: #fff; border-color: transparent; }
.cx-card--brand p { color: rgba(255,255,255,.8); }
:root[data-theme="dark"] .cx-card--brand { color: #04201f; }
:root[data-theme="dark"] .cx-card--brand p { color: rgba(4,32,31,.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cx-card--brand { color: #04201f; } :root:not([data-theme="light"]) .cx-card--brand p { color: rgba(4,32,31,.75); } }
.cx-card__big { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; }
.values span { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--text-2); }

/* ---------- 16. CTA final ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--night-text); border-radius: clamp(20px, 3vw, 32px); padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem); }
.cta-final::before { content: ""; position: absolute; z-index: -1; right: -15%; bottom: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,163,155,.4), transparent 70%); }
.cta-final__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .cta-final__grid { grid-template-columns: 1fr 440px; gap: 4rem; align-items: start; } }
.cta-final h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); letter-spacing: -.04em; line-height: 1.02; }
.cta-final .lead { color: var(--night-text-2); }
.contact-lines { display: grid; gap: .9rem; margin-top: .5rem; }
.contact-lines li { display: flex; gap: .85rem; align-items: center; color: var(--night-text); }
.contact-lines svg { width: 20px; height: 20px; color: var(--brand-bright); flex-shrink: 0; }
.copy-btn { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--night-line); color: var(--night-text-2); transition: color .2s, border-color .2s; }
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* Form */
.form { display: grid; gap: .9rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
.form__row { display: grid; gap: .9rem; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 550; }
.field label span { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .75rem .85rem; min-height: 46px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); background: var(--surface); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c2413b; }
.form .btn { width: 100%; margin-top: .25rem; }
.form__legal { font-size: .76rem; color: var(--text-3); line-height: 1.5; }
.form__status { font-size: .9rem; padding: .75rem .9rem; border-radius: 10px; background: var(--brand-tint); color: var(--text); }
.form__title { font-size: 1.15rem; letter-spacing: -.02em; }

/* ---------- 17. Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .55rem; }
.footer-grid a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { color: var(--text-2); font-size: .94rem; max-width: 40ch; margin-top: 1rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--text-3); }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--text-3); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- 18. Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem)); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); background: var(--night); color: var(--night-text); }
.page-hero .hero__bg::before { width: 55vw; height: 55vw; }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: 1.25fr .75fr; gap: 4rem; } }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -.04em; line-height: 1.05; }
.page-hero .lead { color: var(--night-text-2); margin-top: 1.25rem; }
.page-hero .btn-row { margin-top: 2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; color: var(--night-text-2); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--night-line); }
.hero-facts div { padding: 1rem 0; border-bottom: 1px solid var(--night-line); }
.hero-facts div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--night-line); }
.hero-facts div:nth-child(even) { padding-left: 1rem; }
.hero-facts strong { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: .8rem; color: var(--night-text-2); }

.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; color: var(--text-2); transition: background .2s, color .2s; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.is-active { background: var(--text); color: var(--bg); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: .8fr 1.2fr; gap: 5rem; } .split__aside { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; } }
.split__aside { display: grid; gap: 1.25rem; align-content: start; }

.benefits { display: grid; gap: 1rem; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit { display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); align-content: start; }
.benefit:hover { border-color: var(--brand); transform: translateY(-2px); }
.benefit .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); }
.benefit h3 { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.35; }
.benefit p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }

.checklist { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .98rem; line-height: 1.5; }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.section--night .checklist { border-color: var(--night-line); }
.section--night .checklist li { border-color: var(--night-line); color: var(--night-text-2); }
.section--night .checklist li strong { color: #fff; }
.section--night .checklist svg { color: var(--brand-bright); }

.steps-v { display: grid; gap: 0; counter-reset: s; }
.steps-v li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2rem; }
.steps-v li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .85rem; color: var(--brand); background: var(--bg); position: relative; z-index: 1; }
.steps-v li::after { content: ""; position: absolute; left: 28px; top: 56px; bottom: 0; width: 1px; background: var(--line-strong); }
.steps-v li:last-child::after { display: none; }
.steps-v h3 { font-size: 1.1rem; letter-spacing: -.015em; margin: .9rem 0 .4rem; line-height: 1.3; }
.steps-v p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.section--tint .steps-v li::before { background: var(--surface-2); }

.proof-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 800px) { .proof-strip { grid-template-columns: repeat(4, 1fr); } }
.proof-strip div { background: var(--surface); padding: 1.5rem; display: grid; gap: .3rem; }
.proof-strip strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-strip span { font-size: .86rem; color: var(--text-2); }

.related { display: grid; gap: 1rem; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: grid; gap: .6rem; padding: 1.5rem; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; align-content: start; }
.related a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.related small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.related strong { font-size: 1.1rem; letter-spacing: -.015em; font-weight: 600; }
.related p { font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.related .link-arrow { margin-top: .3rem; font-size: .9rem; }

.cta-inline { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-l); background: var(--brand-tint); }
@media (min-width: 860px) { .cta-inline { grid-template-columns: 1fr auto; gap: 2rem; } }
.cta-inline h2, .cta-inline h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.025em; }
.cta-inline p { color: var(--text-2); margin-top: .4rem; }

.channels { display: flex; flex-wrap: wrap; gap: .5rem; }
.channels span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }
.channels svg { width: 15px; height: 15px; color: var(--brand); }

.legal { max-width: 760px; display: grid; gap: 2.25rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.legal p { color: var(--text-2); }

/* Solutions cards */
.sol-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .sol-grid { grid-template-columns: repeat(3, 1fr); } }
.sol { display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.sol .icon { width: 48px; height: 48px; padding: 12px; border-radius: 13px; background: var(--brand-tint); color: var(--brand); }
.sol h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.sol .service-links { margin-top: .25rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .eyebrow::before { display: none; }

/* ---------- 19. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stream__track { animation: none; }
}

/* ---------- 20. Small-screen refinements ---------- */
.hero__grid > *, .intl__grid > *, .tech > *, .why > *, .split > *, .cta-final__grid > *, .intro > *, .switcher > *, .page-hero__grid > * { min-width: 0; }
@media (max-width: 560px) {
  .console__channels { display: none; }
  .stream { height: 250px; }
  .dash { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .panel__visual { min-height: 180px; }
  .cx-card--visual { min-height: 300px; }
  .pillar { padding: 1.15rem 0; }
  .stat__label { max-width: none; }
}
.site-header--over-dark:not(.is-scrolled) .nav__link[aria-current="page"] { color: var(--brand-bright); }
