/* ==========================================================================
   SyncFlow Systems — marketing site
   Brand: Violet #6E34B5 · Teal #0E9C8E · Ink #1B1436 · Poppins + Inter
   ========================================================================== */

:root {
  /* Brand palette */
  --violet: #6E34B5;
  --violet-600: #5E2BA0;
  --violet-light: #8A5FD0;
  --teal: #0E9C8E;
  --teal-light: #12B5A5;
  --ink: #1B1436;
  --ink-900: #130E28;
  --ink-800: #1F1840;
  --paper: #FBFAFF;
  --white: #FFFFFF;
  --muted: #6B6480;

  /* Semantic tokens (light surfaces) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: #4A4363;
  --line: rgba(27, 20, 54, 0.12);
  --line-strong: rgba(27, 20, 54, 0.22);
  --card: var(--white);
  --focus: var(--violet);
  --error: #B42318;

  /* Semantic tokens (dark surfaces) */
  --on-dark: #F1EEFA;
  --on-dark-soft: #B9B2D1;
  --on-dark-line: rgba(241, 238, 250, 0.12);

  --grad: linear-gradient(90deg, #6E34B5 0%, #4A6DB3 55%, #12B5A5 100%);

  /* Type */
  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  /* Z scale */
  --z-header: 100;
  --z-menu: 90;
  --z-intro: 1000;
  --z-skip: 1100;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  touch-action: manipulation;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(110, 52, 181, 0.22); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Dark surfaces set their own focus colour */
.site-header, .hero, .trust, .industries, .process, .site-footer, .mobile-menu { --focus: var(--teal-light); }

/* ---------- Type helpers ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  color: var(--violet); margin-bottom: 18px;
}
.section-label::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad);
}
.section-label--dark { color: var(--teal-light); }

.section-title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-family: var(--font-body); font-size: 0.975rem; font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform 450ms var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--violet); color: var(--white); box-shadow: 0 10px 30px -12px rgba(110, 52, 181, 0.7); }
.btn--primary:hover { background: var(--violet-600); }
.btn--ghost { border-color: rgba(241, 238, 250, 0.3); color: var(--on-dark); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: rgba(241, 238, 250, 0.6); background: rgba(255, 255, 255, 0.08); }
.btn--ghost-dark { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #EDE7F8; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* Rolling text (built by JS from [data-roll]) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll__a, .roll__b { display: block; transition: transform 550ms var(--ease-out); }
.roll__b { position: absolute; inset: 0; transform: translateY(110%); }
:is(a, button):hover .roll__a { transform: translateY(-110%); }
:is(a, button):hover .roll__b { transform: translateY(0); }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { display: none; }
html[data-intro="play"] .intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center;
  background: var(--ink-900); color: var(--on-dark);
}
.intro__inner { display: grid; justify-items: center; gap: 22px; padding: 24px; }
.intro__mark { position: relative; width: min(340px, 72vw); }
.intro__wordmark { width: 100%; height: auto; clip-path: inset(0 100% 0 0); }
.intro__spark {
  position: absolute; top: 58%; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal-light); box-shadow: 0 0 18px 4px rgba(18, 181, 165, 0.6);
  opacity: 0; transform: translate(-50%, -50%);
}
.intro__text {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--on-dark-soft); min-height: 1.4em; opacity: 0;
}
.intro__bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(241, 238, 250, 0.12); overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  padding-inline: var(--gutter);
  pointer-events: none;
  --hdr-fg: var(--on-dark);
  --hdr-soft: rgba(241, 238, 250, 0.72);
  color: var(--hdr-fg);
}
.site-header[data-theme="light"] { --hdr-fg: var(--ink); --hdr-soft: rgba(27, 20, 54, 0.68); --focus: var(--violet); }

.site-header__bar {
  pointer-events: auto;
  position: relative;
  max-width: 1320px; height: 76px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 2px;
  border: 1px solid transparent; border-radius: 16px;
  transition: max-width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out), margin var(--dur-slow) var(--ease-out),
              padding var(--dur-slow) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled .site-header__bar {
  max-width: 1180px; height: 60px; margin-top: 10px; padding: 0 8px 0 16px;
  background: rgba(27, 20, 54, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(241, 238, 250, 0.08);
}
.site-header[data-theme="light"].is-scrolled .site-header__bar {
  background: rgba(251, 250, 255, 0.85);
  border-color: rgba(27, 20, 54, 0.08);
  box-shadow: 0 12px 40px -24px rgba(27, 20, 54, 0.35);
}
.site-header.is-panel-open .site-header__bar,
.site-header.is-menu-open .site-header__bar { background: var(--ink); border-color: rgba(241, 238, 250, 0.08); }

.brand { display: block; flex: none; padding: 6px 0; }
.brand__img { width: auto; height: 38px; transition: height var(--dur-slow) var(--ease-out); }
.is-scrolled .brand__img { height: 32px; }
.brand__img--light { display: none; }
.site-header[data-theme="light"] .brand__img--dark { display: none; }
.site-header[data-theme="light"] .brand__img--light { display: block; }

.primary-nav { display: none; }
.primary-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 12px; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 500; color: var(--hdr-soft);
  transition: color var(--dur) ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { color: var(--hdr-fg); }
.nav-link__chev { transition: transform var(--dur) var(--ease-out); }
.nav-link[aria-expanded="true"] .nav-link__chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.sound-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px; border-radius: 8px;
  font-size: 0.8125rem; color: var(--hdr-soft);
}
.sound-toggle:hover { color: var(--hdr-fg); }
.sound-toggle__state { font-weight: 600; }
.sound-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle__bars i { width: 2px; height: 4px; border-radius: 1px; background: currentColor; transition: height var(--dur) ease; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i { animation: eq 900ms ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(2) { animation-delay: -300ms; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(3) { animation-delay: -600ms; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(4) { animation-delay: -150ms; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--hdr-fg); }
.menu-toggle__lines { position: relative; width: 22px; height: 10px; }
.menu-toggle__lines i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 450ms var(--ease-out), top 450ms var(--ease-out);
}
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { top: 4px; transform: rotate(-45deg); }

/* Services mega panel */
.services-panel {
  pointer-events: auto;
  position: absolute; left: 0; right: 0; top: 0;
  padding-top: 96px; padding-bottom: 48px;
  background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  z-index: -1;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 650ms var(--ease-out);
}
.services-panel.is-open { clip-path: inset(0 0 0 0); }
.services-panel__inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 64px;
  background-image: linear-gradient(rgba(241, 238, 250, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 238, 250, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.services-panel__label { grid-column: 1 / -1; font-size: 0.875rem; font-weight: 600; color: var(--teal-light); }
.services-panel__list { display: grid; gap: 2px; }
.sp-link {
  display: inline-block;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.75rem, 0.8rem + 2.2vw, 3rem); line-height: 1.15; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 238, 250, 0.5);
  transition: color var(--dur) ease, -webkit-text-stroke-color var(--dur) ease;
}
.sp-link.is-active, .sp-link:hover, .sp-link:focus-visible { color: var(--on-dark); -webkit-text-stroke-color: transparent; }
.services-panel__preview { align-self: center; padding: 28px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.sp-preview__title { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; margin-bottom: 10px; }
.sp-preview__text { color: var(--on-dark-soft); margin-bottom: 16px; }
.sp-preview__tags { font-size: 0.875rem; color: var(--teal-light); }
.services-panel__foot { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-soft); font-size: 0.9375rem; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 600ms var(--ease-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; padding: 104px var(--gutter) 28px; }
.mobile-menu__label { font-size: 0.875rem; font-weight: 600; color: var(--teal-light); margin-bottom: 12px; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; border-bottom: 1px solid var(--on-dark-line);
  font-family: var(--font-head); font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em;
}
.mobile-menu__list a .icon { color: var(--on-dark-soft); }
.mobile-menu__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 4px; }
.mobile-menu__foot .sound-toggle--row { margin-top: 8px; }
.mobile-menu__foot .btn { margin-top: 12px; }
.mobile-menu__mail { color: var(--on-dark-soft); font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.sound-toggle--row { display: flex; width: 100%; justify-content: space-between; padding: 0; min-height: 44px; color: var(--on-dark-soft); font-size: 0.875rem; }
.sound-toggle--row .sound-toggle__bars { margin-left: auto; margin-right: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 96px;
  background: var(--ink); color: var(--on-dark);
  overflow: hidden;
}
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__canvas { background: radial-gradient(120% 90% at 85% 10%, #3B2373 0%, var(--ink) 55%); }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 95, 208, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 95, 208, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(138, 95, 208, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 95, 208, 0.06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 85%);
}

.blueprint {
  position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: auto; right: -210px; top: 72px; opacity: 0.32;
}
.blueprint text { font-family: var(--font-body); font-size: 13px; fill: rgba(241, 238, 250, 0.82); }
.bp-annot path { stroke: rgba(138, 95, 208, 0.45); stroke-width: 1; }
.bp-annot text { font-size: 11px; fill: rgba(185, 178, 209, 0.75); letter-spacing: 0.02em; }
.bp-wires path { stroke: url(#bp-line); stroke-width: 1.25; stroke-dasharray: 4 5; opacity: 0.8; }
.bp-packets circle { fill: var(--teal-light); filter: drop-shadow(0 0 4px rgba(18, 181, 165, 0.9)); }
.bp-hub rect { fill: rgba(110, 52, 181, 0.35); stroke: var(--violet-light); stroke-width: 1.5; }
.bp-hub__title { font-family: var(--font-head) !important; font-size: 20px !important; font-weight: 600; fill: #fff !important; }
.bp-hub__sub { font-size: 10.5px !important; fill: rgba(241, 238, 250, 0.7) !important; }
.bp-nodes rect { fill: rgba(27, 20, 54, 0.75); stroke: rgba(138, 95, 208, 0.6); stroke-width: 1; }
.bp-node--accent rect { stroke: rgba(18, 181, 165, 0.75); }
.bp-ticks path { stroke: var(--teal-light); stroke-width: 1.5; }

.hero__content { position: relative; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; margin-bottom: 28px;
  border: 1px solid rgba(18, 181, 165, 0.35); border-radius: 999px;
  background: rgba(18, 181, 165, 0.08);
  font-size: 0.8125rem; font-weight: 500; color: var(--on-dark);
}
.hero__kicker .icon { color: var(--teal-light); }
.hero__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.35rem, 1.05rem + 5vw, 5.4rem);
  line-height: 1.04; letter-spacing: -0.03em;
  max-width: 13.5em;
}
.hero__title-light { font-weight: 300; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__inner { display: block; }
.hero__sub { max-width: 40rem; margin-top: 28px; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--on-dark-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 44px; height: 56px; margin-left: -22px; display: grid; place-items: center; }
.hero__scroll-line { position: relative; width: 1px; height: 40px; background: rgba(241, 238, 250, 0.2); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--teal-light); animation: scrollcue 2.2s var(--ease-in-out) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* Hero entrance (JS adds .is-ready once the intro is done) */
.js .hero .line__inner { transform: translateY(105%); }
.js .hero__kicker, .js .hero__sub, .js .hero__actions, .js .blueprint, .js .hero__scroll { opacity: 0; }
.js .is-ready .hero .line__inner { transform: none; transition: transform 1.1s var(--ease-out); }
.js .is-ready .hero .line:nth-child(2) .line__inner { transition-delay: 90ms; }
.js .is-ready .hero .line:nth-child(3) .line__inner { transition-delay: 180ms; }
.js .is-ready .hero__kicker { opacity: 1; transition: opacity 800ms ease 100ms; }
.js .is-ready .hero__sub { opacity: 1; transition: opacity 900ms ease 450ms; }
.js .is-ready .hero__actions { opacity: 1; transition: opacity 900ms ease 600ms; }
.js .is-ready .blueprint { opacity: 0.32; transition: opacity 1.6s ease 300ms; }
.js .is-ready .hero__scroll { opacity: 1; transition: opacity 900ms ease 900ms; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { background: var(--ink-900); color: var(--on-dark); border-top: 1px solid var(--on-dark-line); }
.trust__inner { display: grid; gap: 28px; padding-block: 36px; }
.trust__partner { display: flex; align-items: center; gap: 14px; }
.trust__seal { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(110, 52, 181, 0.25); color: var(--teal-light); border: 1px solid rgba(138, 95, 208, 0.4); }
.trust__partner strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; }
.trust__partner-sub { display: block; font-size: 0.875rem; color: var(--on-dark-soft); }
.trust__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logo-tile {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 84px; padding: 14px 16px;
  border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(27, 20, 54, 0.06);
}
.logo-tile--stack { flex-direction: column; gap: 6px; }
.logo-tile__img { width: auto; max-width: 100%; height: 30px; object-fit: contain; }
.logo-tile__img--odoo { height: 30px; }
.logo-tile__img--mpesa { height: 34px; }
.logo-tile__img--kra { height: 36px; }
.logo-tile__img--wa { height: 34px; flex: none; }
.logo-tile__label { font-size: 0.75rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.logo-tile__wa { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: #1F2C34; line-height: 1.15; }
@media (max-width: 400px) {
  .logo-tile { padding: 12px 10px; }
  .logo-tile__img--kra { height: 24px; }
  .logo-tile__wa { font-size: 0.8125rem; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { position: relative; background: var(--paper); color: var(--ink); padding-top: var(--section-y); padding-bottom: var(--section-y); overflow-x: clip; }
.services__intro { margin-bottom: clamp(48px, 7vw, 88px); }
.services__intro .section-title { margin-bottom: 28px; }
.fill-text {
  max-width: 32em;
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.3rem, 0.95rem + 1.45vw, 2.15rem); line-height: 1.38; letter-spacing: -0.01em;
  color: var(--ink);
}
.fill-text strong { font-weight: 600; color: var(--violet); }
.fill-text .w { transition: opacity 240ms linear; }
.js .fill-text.is-armed .w { opacity: 0.16; }
.js .fill-text.is-armed .w.is-on { opacity: 1; }

.services__bar { display: none; }
.services__track { display: grid; gap: 16px; padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }

.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, opacity 500ms ease;
}
.svc-card:hover { border-color: rgba(110, 52, 181, 0.35); }
.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc-card__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(110, 52, 181, 0.08); color: var(--violet); }
.svc-card__tags { max-width: 22em; text-align: right; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.svc-card__title { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; }
.svc-card__title-note { font-weight: 400; color: var(--muted); }
.svc-card__text { color: var(--fg-soft); max-width: 34em; }
.svc-card__link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; font-weight: 600; color: var(--violet); }
.svc-card__link .icon { transition: transform 450ms var(--ease-out); }
.svc-card__link:hover .icon { transform: translate(2px, -2px); }

.svc-card--accent { background: var(--ink); color: var(--on-dark); border-color: var(--ink); --focus: var(--teal-light); }
.svc-card--accent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.svc-card--accent .svc-card__icon { background: rgba(18, 181, 165, 0.14); color: var(--teal-light); }
.svc-card--accent .svc-card__tags { color: var(--teal-light); }
.svc-card--accent .svc-card__text { color: var(--on-dark-soft); }
.svc-card--accent .svc-card__link { color: var(--teal-light); }

.svc-card--note { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.svc-card--note .svc-card__note-title { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries { background: var(--ink); color: var(--on-dark); padding-block: var(--section-y); }
.industries__head { margin-bottom: clamp(40px, 6vw, 72px); }
.ind-list { position: relative; border-top: 1px solid var(--on-dark-line); }
.ind-item { border-bottom: 1px solid var(--on-dark-line); }
.ind-item__btn {
  width: 100%; min-height: 76px; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
}
.ind-item__name {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.6rem, 0.9rem + 3.2vw, 4.25rem); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--on-dark-soft);
  transition: color var(--dur) ease, -webkit-text-stroke-color var(--dur) ease;
}
.ind-item.is-open .ind-item__name, .ind-item__btn:hover .ind-item__name { color: var(--on-dark); }
.ind-item__icon { color: var(--on-dark-soft); transition: transform 500ms var(--ease-out), color var(--dur) ease; }
.ind-item.is-open .ind-item__icon { transform: rotate(90deg); color: var(--teal-light); }
.ind-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out); }
.ind-item.is-open .ind-item__panel { grid-template-rows: 1fr; }
.ind-item__inner { min-height: 0; overflow: hidden; }
.ind-item__inner > p { color: var(--on-dark-soft); max-width: 36em; }
.ind-item__inner > .chips { margin-bottom: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 6px 12px; border: 1px solid rgba(18, 181, 165, 0.35); border-radius: 999px; font-size: 0.8125rem; color: var(--on-dark); background: rgba(18, 181, 165, 0.06); }

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  position: relative;
  background: var(--ink-900); color: var(--on-dark);
  padding-block: var(--section-y);
  background-image: linear-gradient(rgba(138, 95, 208, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 95, 208, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.process__layout { display: grid; gap: 40px; }
.process__head .section-title { max-width: 14em; }
.process__lede { margin-top: 20px; max-width: 36em; color: var(--on-dark-soft); font-size: 1.0625rem; }

.stages { display: grid; gap: 14px; counter-reset: stage; }
.stage { position: relative; padding: 22px 20px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.stage__head { display: flex; align-items: center; gap: 14px; }
.stage__num {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(18, 181, 165, 0.5); color: var(--teal-light);
  font-family: var(--font-head); font-size: 0.9375rem; font-weight: 600;
}
.stage__name { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.stage__body { padding-top: 14px; padding-left: 48px; }
.stage__text { color: var(--on-dark-soft); }
.stage__deliv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stage__deliv li { padding: 4px 10px; border-radius: 6px; background: rgba(241, 238, 250, 0.06); font-size: 0.8125rem; color: var(--on-dark); }
.stage__gate { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(18, 181, 165, 0.35); font-size: 0.875rem; font-weight: 500; color: var(--teal-light); }

.pipeline { display: none; }

/* ==========================================================================
   Why
   ========================================================================== */
.why { background: var(--paper); color: var(--ink); padding-block: var(--section-y); }
.why__layout { display: grid; gap: 56px; }
.why__lede { margin-top: 24px; max-width: 34em; font-size: 1.125rem; color: var(--fg-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 20px; background: var(--white); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { font-family: var(--font-head); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--violet); }

.proofs { display: grid; }
.proof { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.proof:last-child { border-bottom: 1px solid var(--line); }
.proof__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(14, 156, 142, 0.1); color: var(--teal); }
.proof__title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.proof p { color: var(--fg-soft); max-width: 38em; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.creds li { padding: 5px 12px; border: 1px solid rgba(110, 52, 181, 0.3); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--violet); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--paper); padding-bottom: var(--section-y); }
.cta-band__panel {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #EFE8FB 0%, #E9EFFA 50%, #E1F5F1 100%);
  border: 1px solid rgba(110, 52, 181, 0.12);
}
.cta-band__swoosh { position: absolute; right: -40px; top: 18px; width: 420px; opacity: 0.55; pointer-events: none; }
.cta-band__copy { position: relative; max-width: 38em; }
.cta-band__title { font-family: var(--font-head); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; color: var(--ink); }
.cta-band__copy p { color: var(--fg-soft); font-size: 1.0625rem; }
.cta-band .btn { position: relative; justify-self: start; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--paper); color: var(--ink); padding-bottom: var(--section-y); border-top: 1px solid var(--line); padding-top: var(--section-y); }
.contact__layout { display: grid; gap: 48px; }
.contact__lede { margin-top: 20px; max-width: 30em; font-size: 1.125rem; color: var(--fg-soft); }
.reply-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 14px; border-radius: 999px; background: rgba(14, 156, 142, 0.1); font-size: 0.875rem; font-weight: 600; color: #0B7A6F; }
.reply-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(14, 156, 142, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(14, 156, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 156, 142, 0); } }
.contact__details { display: grid; gap: 20px; margin-top: 36px; }
.contact__details li { display: flex; gap: 14px; }
.contact__details .icon { color: var(--violet); margin-top: 2px; }
.contact__k { font-size: 0.8125rem; color: var(--muted); }
.contact__details a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; color: var(--violet); text-decoration: underline; text-decoration-color: rgba(110, 52, 181, 0.3); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__details a:hover { text-decoration-color: currentColor; }

.contact__panel {
  display: grid; gap: 18px; align-content: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 40px 80px -60px rgba(27, 20, 54, 0.35);
}
.contact__panel-title { font-family: var(--font-head); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.contact__panel-text { color: var(--fg-soft); font-size: 1.0625rem; }
.contact__checklist { display: grid; gap: 10px; }
.contact__checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.contact__checklist .icon { color: var(--teal); margin-top: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.contact__panel-note { font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }
.contact__panel-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 420px) { .contact__actions .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.site-footer__canvas { background: radial-gradient(100% 80% at 20% 0%, #2C1A5A 0%, var(--ink) 60%); }
.site-footer__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(27, 20, 54, 0) 0%, rgba(19, 14, 40, 0.65) 55%, rgba(19, 14, 40, 0.95) 100%); }
.site-footer__inner { display: flex; flex-direction: column; gap: 64px; padding-top: clamp(96px, 12vw, 160px); padding-bottom: 28px; }
.site-footer__cta { display: grid; gap: 28px; justify-items: start; }
.site-footer__big { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.6rem, 1rem + 7vw, 7.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 12em; }
.site-footer__cols { display: grid; gap: 36px; padding-top: 40px; border-top: 1px solid var(--on-dark-line); }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 14px; }
.site-footer__brand p { color: var(--on-dark-soft); font-size: 0.9375rem; }
.site-footer__h { font-size: 0.8125rem; font-weight: 600; color: var(--teal-light); margin-bottom: 12px; }
.site-footer__col ul { display: grid; gap: 2px; }
.site-footer__col li { color: var(--on-dark-soft); font-size: 0.9375rem; }
.site-footer__col a { display: inline-flex; min-height: 36px; align-items: center; color: var(--on-dark); font-size: 0.9375rem; overflow-wrap: anywhere; }
.social { display: flex !important; gap: 8px !important; margin-top: 14px; }
.social a { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--on-dark-line); border-radius: 10px; transition: border-color var(--dur) ease, background-color var(--dur) ease; }
.social a:hover { border-color: rgba(241, 238, 250, 0.4); background: rgba(255, 255, 255, 0.05); }
.social .icon { width: 18px; height: 18px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: 0.875rem; color: var(--on-dark-soft); }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
  .trust__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card { padding: 32px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__panel { grid-template-columns: 1fr auto; }
  .cta-band .btn { justify-self: end; }
  .blueprint { width: 620px; right: -200px; }
}

@media (max-width: 420px) {
  .header-cta { display: none; }
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .site-header__bar { padding: 0 8px; }

  .hero { padding: 140px 0 120px; }
  .hero__content { padding-right: calc(var(--gutter) + min(26vw, 400px)); }
  .blueprint {
    width: min(40vw, 580px); opacity: 1;
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 20px));
    top: 50%; transform: translateY(-44%);
  }
  .js .is-ready .blueprint { opacity: 1; }
  .hero__title { font-size: clamp(3rem, 1rem + 3.2vw, 4.6rem); max-width: none; }
  .hero__title .line__inner { white-space: nowrap; }

  .trust__inner { grid-template-columns: auto 1fr; align-items: center; gap: 48px; }

  /* Pinned horizontal services */
  .services__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
  .services__count { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
  .services__count-now { font-weight: 600; color: var(--ink); }
  .services__index { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .services__index a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color var(--dur) ease, background-color var(--dur) ease; }
  .services__index a:hover { color: var(--ink); }
  .services__index a.is-active { background: var(--ink); color: var(--white); }

  .services.is-horizontal .services__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .services.is-horizontal .services__viewport { overflow: visible; }
  .services.is-horizontal .services__track {
    display: flex; gap: 24px; width: max-content; max-width: none; margin: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
    will-change: transform;
  }
  .services.is-horizontal .svc-card { width: min(540px, 40vw); min-height: min(460px, 58vh); padding: 40px; }
  .services.is-horizontal .svc-card--note { width: min(380px, 28vw); }
  .services.is-horizontal .svc-card > * { transition: opacity 500ms ease; }
  .services.is-horizontal .svc-card:not(.is-active):not(.svc-card--note) > * { opacity: 0.45; }
  .services.is-horizontal .svc-card.is-active { box-shadow: 0 40px 80px -40px rgba(110, 52, 181, 0.45); }
  .services:not(.is-horizontal) .services__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Industries: list left, preview right */
  .industries .ind-list { padding-right: 42%; min-height: 470px; }
  .ind-item__btn { min-height: 92px; }
  .ind-item__name { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.5rem); color: transparent; -webkit-text-stroke: 1px rgba(241, 238, 250, 0.5); }
  .ind-item.is-open .ind-item__name, .ind-item__btn:hover .ind-item__name { color: var(--on-dark); -webkit-text-stroke-color: transparent; }
  .ind-item__panel {
    position: absolute; top: 0; right: 0; width: 36%;
    display: block; padding: 32px; border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 400ms ease, transform 600ms var(--ease-out), visibility 0s linear 400ms;
  }
  .ind-item.is-open .ind-item__panel { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms ease, transform 600ms var(--ease-out), visibility 0s; }
  .ind-item__inner { overflow: visible; }
  .ind-item__inner > .chips { margin-bottom: 0; }
  .ind-item__inner > p { font-size: 1.125rem; }

  /* Process: stepper + pipeline */
  .process__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
  .process__head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 64px; align-items: end; }
  .process__head .section-title { max-width: none; font-size: clamp(2.2rem, 1rem + 2.4vw, 3.25rem); }
  .process__lede { margin-top: 0; }
  .process__head .section-label { grid-column: 1 / -1; }
  .stages { gap: 0; border-left: 1px solid var(--on-dark-line); }
  .stage { padding: 14px 0 14px 28px; border: 0; border-radius: 0; background: none; cursor: pointer; }
  .stage::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 600ms var(--ease-out); }
  .stage.is-active::before { transform: scaleY(1); }
  .stage__name { color: var(--on-dark-soft); transition: color var(--dur) ease; }
  .stage.is-active .stage__name, .stage:hover .stage__name { color: var(--on-dark); }
  .stage__num { opacity: 0.6; transition: opacity var(--dur) ease, background-color var(--dur) ease; }
  .stage.is-active .stage__num { opacity: 1; background: rgba(18, 181, 165, 0.14); }
  .stage__body { display: grid; grid-template-rows: 0fr; padding-top: 0; transition: grid-template-rows 550ms var(--ease-out), padding 550ms var(--ease-out); }
  .stage__body > .stage__text { min-height: 0; overflow: hidden; }
  .stage.is-active .stage__body { grid-template-rows: 1fr; padding-top: 10px; }
  /* Shown in the inspector visually; kept in the list for screen readers. */
  .stage__deliv, .stage__gate { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  .pipeline { display: block; }
  .pipeline__frame { padding: 24px 28px; border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
  .pipeline__title { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; margin-bottom: 28px; }
  .pipeline__title span { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--on-dark-soft); }
  .pipeline__rail { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 8px; --p: 0%; }
  .pipeline__rail::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 2px; background: rgba(241, 238, 250, 0.12); border-radius: 2px; }
  .pipeline__fill { position: absolute; left: 9px; top: 9px; height: 2px; width: calc((100% - 18px) * var(--pf, 0)); background: var(--grad); border-radius: 2px; transition: width 700ms var(--ease-out); }
  .pipeline__packet { position: absolute; left: 9px; top: 6px; width: calc((100% - 18px) * var(--pf, 0)); height: 8px; transition: width 700ms var(--ease-out); pointer-events: none; }
  .pipeline__packet::after { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(18, 181, 165, 0.8); animation: packet 2.4s var(--ease-in-out) infinite; }
  @keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
  .pnode { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; width: 72px; margin: 0 -27px; }
  .pnode:first-of-type { margin-left: 0; justify-items: start; width: 60px; }
  .pnode:last-of-type { margin-right: -27px; }
  .pnode__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(241, 238, 250, 0.3); background: var(--ink-900); transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease; }
  .pnode__label { font-size: 0.8125rem; font-weight: 500; color: var(--on-dark-soft); transition: color var(--dur) ease; }
  .pnode.is-done .pnode__dot { border-color: var(--teal-light); background: var(--teal-light); }
  .pnode.is-active .pnode__dot { border-color: var(--teal-light); background: var(--ink-900); box-shadow: 0 0 0 6px rgba(18, 181, 165, 0.18); }
  .pnode.is-active .pnode__label, .pnode:hover .pnode__label { color: var(--on-dark); }
  .pgate { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 4px; transform: rotate(45deg); border: 1.5px solid rgba(241, 238, 250, 0.35); background: var(--ink-900); transition: background-color var(--dur) ease, border-color var(--dur) ease; }
  .pgate.is-passed { background: var(--violet-light); border-color: var(--violet-light); }
  .pgate[data-gate="4"] { margin-left: 4px; }

  .inspector { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: rgba(19, 14, 40, 0.7); border: 1px solid var(--on-dark-line); min-height: 214px; }
  .inspector > * { transition: opacity 260ms ease, transform 400ms var(--ease-out); }
  .inspector.is-swapping > * { opacity: 0; transform: translateY(6px); }
  .inspector__stage { font-size: 0.8125rem; color: var(--teal-light); font-weight: 600; }
  .inspector__name { margin-top: 6px; font-family: var(--font-head); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
  .inspector__text { margin-top: 8px; color: var(--on-dark-soft); max-width: 36em; }
  .inspector__sub { margin-top: 20px; font-size: 0.8125rem; color: var(--on-dark-soft); }
  .inspector__deliv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; list-style: none; padding: 0; }
  .inspector__deliv li { padding: 6px 12px; border-radius: 8px; background: rgba(241, 238, 250, 0.07); font-size: 0.875rem; }
  .inspector__gate { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(18, 181, 165, 0.4); color: var(--teal-light); font-weight: 600; font-size: 0.9375rem; }

  .process.is-pinned { padding-block: 0; }
  .process.is-pinned .process__pin { height: 100vh; display: flex; align-items: center; padding-top: 72px; }

  .why__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .why__intro { position: sticky; top: 120px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .contact__info { position: sticky; top: 120px; }

  .site-footer { min-height: 100vh; display: flex; }
  .site-footer__inner { justify-content: space-between; }
  .site-footer__cta { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}

/* Short desktop screens (e.g. 1366x768): compact the pinned stepper so it fits */
@media (min-width: 1024px) and (max-height: 860px) {
  .process.is-pinned .process__pin { padding-top: 68px; }
  .process__head .section-title { font-size: clamp(1.9rem, 1rem + 1.8vw, 2.6rem); }
  .process__head .section-label { margin-bottom: 10px; }
  .process__lede { font-size: 1rem; }
  .process__layout { gap: 18px 56px; }
  .stage { padding-block: 9px; }
  .pipeline__frame { padding: 18px 24px; }
  .pipeline__title { margin-bottom: 18px; }
  .inspector { margin-top: 18px; padding: 18px 22px; min-height: 186px; }
  .inspector__name { font-size: 1.6rem; }
  .inspector__sub { margin-top: 14px; }
  .inspector__gate { margin-top: 16px; padding-top: 14px; }
}

@media (min-width: 1280px) {
  .site-header .sound-toggle:not(.sound-toggle--row) { display: inline-flex; }
}

/* Reduced motion: everything visible, nothing drifts */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .hero .line__inner { transform: none; }
  .js .hero__kicker, .js .hero__sub, .js .hero__actions, .js .hero__scroll { opacity: 1; }
  .js .blueprint { opacity: 0.32; }
  .bp-packets { display: none; }
  .roll__b { display: none; }
  :is(a, button):hover .roll__a { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .js .blueprint { opacity: 1; }
}
