/* ==========================================================================
   Boardcom Labs — site styles
   Scroll effects read a 0→1 progress value (--p) written by assets/js/main.js.
   ========================================================================== */

:root {
  --ink: #0b0f17;
  --ink-2: #121826;
  --ink-3: #1b2333;
  --navy: #1e2a3a;
  --slate: #8b909a;

  --text: #0b0f17;
  --muted: #5b6270;
  --line: #e6e8ec;
  --soft: #f5f6f8;
  --white: #ffffff;

  --accent: #2d5bff;
  --accent-ink: #1f45d6;
  --accent-2: #7c4dff;
  --accent-3: #00b8d9;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  --ease: cubic-bezier(0.42, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

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

.section { padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--white); }

/* ---------- Typography ---------- */

.display {
  font-size: clamp(44px, 7.4vw, 108px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.display--page { font-size: clamp(42px, 6.4vw, 92px); }

.h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
}

.section--dark .lead,
.hero .lead { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.gradient-text {
  background: linear-gradient(100deg, #8fb0ff 0%, #b79bff 50%, #6fe3f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-ink); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #e9ecf3; }

.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Brand wordmark ---------- */

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-brand);
}

.brand__name {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand-c, var(--navy));
  transition: color 0.35s;
}

.brand__sub {
  margin-top: 4px;
  padding-left: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6em;
  color: var(--brand-sub, var(--slate));
  transition: color 0.35s;
}

/* ---------- Header ---------- */

.site-header {
  --brand-c: #ffffff;
  --brand-sub: rgba(255, 255, 255, 0.62);
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: color 0.35s;
}

/* Backdrop lives on a pseudo-element: a filter on the header itself would
   become the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), background-color 0.35s;
}

.site-header.is-glass::before {
  opacity: 1;
  background: rgba(11, 15, 23, 0.45);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-solid,
.site-header.is-open {
  --brand-c: var(--navy);
  --brand-sub: var(--slate);
  color: var(--ink);
}

.site-header.is-solid::before,
.site-header.is-open::before {
  opacity: 1;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-open::before { background: var(--white); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav { display: flex; gap: 4px; margin-right: auto; }

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  background: color-mix(in srgb, currentColor 9%, transparent);
}

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.header-cta { background: var(--white); color: var(--ink); }
.header-cta:hover { background: #e9ecf3; }
.is-solid .header-cta,
.is-open .header-cta { background: var(--accent); color: var(--white); }
.is-solid .header-cta:hover,
.is-open .header-cta:hover { background: var(--accent-ink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--white);
  color: var(--ink);
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a:not(.btn) {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mobile-nav .btn { margin-top: 32px; align-self: flex-start; }

.mobile-nav__parent { margin-top: auto; padding-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* Page scroll progress (native scroll-driven, JS fallback writes --page-p) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 101;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--page-p, 0));
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ==========================================================================
   Effect 1 — Parallax move-up-fast (sticky hero exit)
   The hero sticks while .sheet slides over it; hero lifts, scales, darkens,
   and [data-speed] layers rise faster than the scroll.
   ========================================================================== */

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.hero--short { height: 78vh; height: 78svh; min-height: 560px; }

.hero__bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(45, 91, 255, 0.5), transparent 70%),
    radial-gradient(38% 40% at 88% 28%, rgba(124, 77, 255, 0.38), transparent 70%),
    radial-gradient(36% 40% at 8% 62%, rgba(0, 184, 217, 0.2), transparent 70%),
    var(--ink);
  transform: scale(calc(1 + var(--p, 0) * 0.08));
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(44px, 9vh, 112px));
  transform: translate3d(0, calc(var(--p, 0) * -14vh), 0) scale(calc(1 - var(--p, 0) * 0.06));
  transform-origin: 50% 0;
}

.hero__inner--left { align-items: flex-start; text-align: left; }

.hero .eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero .lead { margin-top: 24px; margin-inline: auto; }
.hero__inner--left .lead { margin-inline: 0; }
.hero .btn-row { margin-top: 36px; justify-content: center; }
.hero__inner--left .btn-row { justify-content: flex-start; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: calc(var(--p, 0) * 0.7);
  pointer-events: none;
}

[data-speed] {
  transform: translate3d(0, calc(var(--p, 0) * var(--speed, 0) * -1px), 0);
}

.sheet {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.35);
  overflow-x: clip;
}

.sheet > :first-child { border-radius: inherit; }

/* Hero media: coded product collage */

.hero__stage {
  position: relative;
  width: min(1120px, 100%);
  flex: 1;
  margin-top: clamp(40px, 7vh, 80px);
}

.mock-window {
  position: absolute;
  top: 0;
  left: 11%;
  right: 11%;
  border-radius: 18px;
  background: #0f1522;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  text-align: left;
}

.mw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.mw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mw-bar i:first-child { background: #ff5f57; }
.mw-bar i:nth-child(2) { background: #febc2e; }
.mw-bar i:nth-child(3) { background: #28c840; }

.mw-bar span {
  margin-left: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.mw-body { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }

.mw-side {
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-side b {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.mw-side b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.mw-side b.on { background: rgba(45, 91, 255, 0.18); color: #fff; }
.mw-side b.on::before { background: var(--accent); }

.mw-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.mw-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.mw-kpi {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mw-kpi small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.mw-kpi strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.03em; color: #fff; }
.mw-kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: #3ddc97; }

.mw-chart {
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mw-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.9), rgba(45, 91, 255, 0.5));
}
.mw-chart i:nth-child(3n) { background: linear-gradient(180deg, rgba(0, 184, 217, 0.9), rgba(0, 184, 217, 0.35)); }

.mock-phone {
  position: absolute;
  top: 90px;
  left: 0;
  width: 230px;
  padding: 9px;
  border-radius: 38px;
  background: #05070b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.mp-screen {
  aspect-ratio: 9 / 18.5;
  border-radius: 30px;
  overflow: hidden;
  background: #f4f6fb;
  color: var(--ink);
  padding: 34px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.mp-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  border-radius: 999px;
  background: #05070b;
}

.mp-hello { font-size: 11px; color: var(--muted); }
.mp-title { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

.mp-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}
.mp-card small { font-size: 10px; opacity: 0.8; }
.mp-card strong { display: block; font-size: 22px; letter-spacing: -0.03em; }

.mp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}
.mp-row i { width: 26px; height: 26px; border-radius: 8px; background: #e7ecff; flex: none; }
.mp-row:nth-of-type(odd) i { background: #e8fbf3; }
.mp-row span { margin-left: auto; color: var(--muted); font-weight: 500; }

.mock-chat {
  position: absolute;
  top: 150px;
  right: 0;
  width: 300px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
  font-size: 13px;
}

.mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.mc-head i { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); }
.mc-head span { margin-left: auto; font-size: 11px; font-weight: 600; color: #19a974; }

.mc-msg { padding: 10px 12px; border-radius: 14px; line-height: 1.4; }
.mc-msg + .mc-msg { margin-top: 8px; }
.mc-msg--me { margin-left: 30px; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.mc-msg--bot { margin-right: 20px; background: #f1f3f7; border-bottom-left-radius: 4px; }

.mock-chip {
  position: absolute;
  top: -22px;
  right: 15%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(16, 22, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-chip i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #19a974;
}
.mock-chip svg { width: 14px; height: 14px; }

@media (max-width: 1000px) {
  .mock-window { left: 4%; right: 4%; }
  .mw-body { grid-template-columns: 1fr; }
  .mw-side { display: none; }
  .mock-chat { display: none; }
  .mock-phone { width: 170px; top: 120px; left: -8px; }
}

@media (max-width: 640px) {
  .mw-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-phone { width: 140px; }
  .mock-chip { right: 4%; }
}

/* Floating pills for inner-page heroes */

.float-field { position: relative; width: min(1100px, 100%); flex: 1; margin-top: clamp(32px, 6vh, 64px); }

.float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.float-pill i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.float-pill svg { width: 20px; height: 20px; }

.float-card {
  position: absolute;
  width: clamp(200px, 26vw, 320px);
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.float-card .mini { aspect-ratio: 4 / 3; }
.float-card p { margin-top: 12px; font-size: 14px; font-weight: 600; }

.hero-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.16em;
  z-index: -1;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-brand);
  font-size: clamp(120px, 22vw, 360px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

@media (max-width: 720px) {
  .float-pill--hide-sm,
  .float-card--hide-sm { display: none; }
}

/* ==========================================================================
   Parallax "rise" — content moves up faster than the page as it enters
   ========================================================================== */

[data-fx="rise"] {
  transform: translate3d(0, calc((1 - var(--p, 1)) * 120px), 0);
  opacity: calc(0.15 + var(--p, 1) * 0.85);
  will-change: transform;
}

/* ==========================================================================
   Effect 2 — Parallax scale-down grid
   A sticky stage pins a grid that starts oversized (1.28) and settles to 1.
   ========================================================================== */

.fx-scale {
  position: relative;
  height: 230vh;
  background: var(--ink);
  color: var(--white);
}

.fx-scale--light { background: var(--soft); color: var(--ink); }

.fx-scale__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}

.fx-scale__head {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(28px, 4vh, 48px);
  opacity: clamp(0, (var(--p, 1) - 0.35) / 0.55, 1);
  transform: translate3d(0, calc((1 - var(--p, 1)) * 40px), 0);
}

.fx-scale__head .lead { margin-top: 14px; }

.fx-scale__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transform: scale(calc(1.28 - 0.28 * var(--p, 1)));
  opacity: calc(0.6 + 0.4 * var(--p, 1));
  transform-origin: 50% 50%;
  will-change: transform;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #151c2a 0%, #0f1520 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}

.svc-card:hover { border-color: rgba(143, 176, 255, 0.45); }
.svc-card h3 { color: var(--white); }
.svc-card p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.62); }
.svc-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14px; color: #8fb0ff; }

.icon-tile {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.icon-tile svg { width: 24px; height: 24px; }

.fx-scale--light .svc-card {
  background: var(--white);
  border-color: var(--line);
}
.fx-scale--light .svc-card h3 { color: var(--ink); }
.fx-scale--light .svc-card p { color: var(--muted); }
.fx-scale--light .svc-card .link-arrow { color: var(--accent); }

.sol-card { gap: 10px; }
.sol-card .mini { aspect-ratio: 5 / 2.2; margin-bottom: 6px; }

.model-card { gap: 16px; }
.model-card .price-note { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.model-card ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.model-card li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.model-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.model-card--featured { background: var(--ink) !important; border-color: var(--ink) !important; }
.model-card--featured h3 { color: var(--white) !important; }
.model-card--featured p,
.model-card--featured li { color: rgba(255, 255, 255, 0.7) !important; }
.model-card--featured li svg,
.model-card--featured .price-note { color: #8fb0ff; }

@media (max-width: 1100px) {
  .fx-scale__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px), (max-height: 700px) {
  .fx-scale { height: auto; }
  .fx-scale__sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding-block: clamp(88px, 12vw, 140px);
  }
  .fx-scale__head { opacity: 1; transform: none; }
  .fx-scale__grid { transform: none; opacity: 1; }
}

@media (max-width: 640px) {
  .fx-scale__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Effect 3 — Parallax stagger LTR / RTL
   Each child reads its own order (--ord) and slides in on a staggered offset.
   ========================================================================== */

[data-fx="stagger"] { --s: 0.16; --dx: 140px; --dir: -1; }
[data-fx="stagger"][data-dir="rtl"] { --dir: 1; }

[data-fx="stagger"] > * {
  --pi: clamp(0, var(--p, 1) * (1 + (var(--n, 1) - 1) * var(--s)) - var(--ord, 0) * var(--s), 1);
  transform: translate3d(calc((1 - var(--pi)) * var(--dx) * var(--dir)), 0, 0);
  opacity: calc(0.05 + var(--pi) * 0.95);
  will-change: transform;
}

@media (max-width: 640px) {
  [data-fx="stagger"] { --dx: 64px; }
}

.solutions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sol-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: var(--soft);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out);
}
.sol-tile:hover { box-shadow: 0 24px 60px rgba(11, 15, 23, 0.1); }
.sol-tile .mini { border-radius: 0; aspect-ratio: 4 / 3.3; }
.sol-tile__body { padding: 22px 22px 26px; }
.sol-tile__body p { margin-top: 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 1000px) { .solutions-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions-row { grid-template-columns: 1fr; } }

.industry-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.industry {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.industry .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.industry .icon-tile svg { width: 20px; height: 20px; }
.industry strong { font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; }
.industry small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }

@media (max-width: 1100px) { .industry-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industry-row { grid-template-columns: repeat(2, 1fr); } }

.row-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.row-label h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.03em; }
.row-label p { font-size: 15px; color: var(--muted); }

/* ==========================================================================
   Effect 4 — Parallax garage-door reveal
   Background scales 1 → 1.1, copy lifts with widening line gap, and a light
   panel rises from the bottom like a garage door.
   ========================================================================== */

.fx-garage {
  position: relative;
  height: 290vh;
  background: var(--ink);
}

.fx-garage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.fx-garage__bg {
  position: absolute;
  inset: -6%;
  z-index: -1;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, #23408f 0%, #101c44 42%, #05070d 100%);
  transform: scale(calc(1 + var(--p, 1) * 0.1));
}

.fx-garage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 63px, rgba(143, 176, 255, 0.07) 63px, rgba(143, 176, 255, 0.07) 64px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.fx-garage__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--header-h) + 5vh);
  text-align: center;
  transform: translate3d(0, calc(40px - var(--p, 1) * 56px), 0);
  opacity: calc(0.4 + var(--p, 1) * 0.6);
}

.fx-garage__copy .eyebrow { color: rgba(255, 255, 255, 0.7); }

.fx-garage__copy .line {
  display: block;
  font-size: clamp(36px, 5.2vw, 80px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.fx-garage__copy .line + .line { transform: translate3d(0, calc(var(--p, 1) * 16px), 0); }

.fx-garage__door {
  position: absolute;
  left: clamp(0px, 1.6vw, 24px);
  right: clamp(0px, 1.6vw, 24px);
  bottom: 0;
  height: min(57%, 600px);
  padding: 14px clamp(20px, 4vw, 56px) 32px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f7 100%);
  color: var(--ink);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  transform: translate3d(0, calc((1 - var(--p, 1)) * 101%), 0);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.fx-garage__door .bar {
  width: 44px;
  height: 4px;
  margin: 0 auto clamp(18px, 3vh, 32px);
  border-radius: 2px;
  background: #d4d6dc;
}

.door-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3.5vh, 40px);
}
.door-head h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 560px; }
.door-head p { max-width: 380px; font-size: 15px; color: var(--muted); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.step b { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.step strong { font-size: 19px; letter-spacing: -0.02em; }
.step span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; min-height: 0; }

.tier {
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 20px;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tier b { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.tier strong { display: block; margin: 8px 0 8px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.tier p { font-size: 14px; color: var(--muted); }
.tier .mini { height: 100%; aspect-ratio: auto; min-height: 140px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .step { padding: 14px 12px; }
  .step span { display: none; }
  .tier { grid-template-columns: 1fr; }
  .tier .mini { display: none; }
}

@media (max-width: 720px) {
  .fx-garage__door { height: 62%; padding-bottom: 20px; }
  .door-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .door-head p { font-size: 14px; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .step { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; }
  .step strong { font-size: 16px; }
  .tiers { grid-template-columns: 1fr; gap: 10px; }
  .tier strong { font-size: 18px; margin: 4px 0; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .step span { display: none; }
}

/* ==========================================================================
   Marquee — JS scroll loop, speeds up with scroll velocity and follows
   scroll direction
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: clamp(20px, 3vw, 32px);
  border-block: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}

/* ==========================================================================
   Native CSS scroll-driven reveals (JS adds .no-sda fallback)
   ========================================================================== */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }

  .drift-l,
  .drift-r {
    animation: drift-l linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  .drift-r { animation-name: drift-r; }

  .footer__big {
    animation: big-word linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translate3d(0, 48px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes drift-l {
  from { transform: translate3d(6%, 0, 0); }
  to { transform: translate3d(-14%, 0, 0); }
}

@keyframes drift-r {
  from { transform: translate3d(-18%, 0, 0); }
  to { transform: translate3d(2%, 0, 0); }
}

@keyframes big-word {
  from { opacity: 0; transform: translate3d(0, 30%, 0) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.no-sda .reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.no-sda .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Sections
   ========================================================================== */

.intro { padding-top: clamp(96px, 12vw, 176px); }

.statement {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 1080px;
}
.statement em { font-style: normal; color: var(--slate); }

.intro__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.intro__meta strong { display: block; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.intro__meta p { font-size: 15px; color: var(--muted); }

@media (max-width: 760px) { .intro__meta { grid-template-columns: 1fr; } }

/* Why us */

.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.why__head { position: sticky; top: calc(var(--header-h) + 48px); }
.why__head .lead { margin-top: 22px; }
.why__head .btn-row { margin-top: 32px; }

.why__list { display: grid; gap: 16px; }

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
}
.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__head { position: static; }
}

/* Tech stack rows (native scroll-driven drift) */

.stack { overflow: hidden; }
.stack__rows { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.stack__row { display: flex; gap: 14px; width: max-content; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }

/* CTA band */

.cta__card {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) clamp(28px, 6vw, 96px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(0, 184, 217, 0.45), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(124, 77, 255, 0.6), transparent 70%),
    linear-gradient(135deg, #1d3fd8 0%, #2d5bff 50%, #5a3df0 100%);
  isolation: isolate;
}

.cta__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}

.cta__card .h2 { max-width: 820px; }
.cta__card .lead { margin-top: 22px; color: rgba(255, 255, 255, 0.8); }
.cta__card .btn-row { margin-top: 40px; }

/* Service detail rows (services page) */

.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail--flip > :first-child { order: 2; }

.svc-detail__copy .icon-tile { margin-bottom: 24px; }
.svc-detail__copy h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.svc-detail__copy > p { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 520px; }

.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 28px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; font-weight: 500; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--muted); }

.svc-detail__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--soft);
}
.svc-detail__visual .mini { aspect-ratio: 5 / 4; border-radius: 0; }

@media (max-width: 860px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail--flip > :first-child { order: 0; }
  .ticks { grid-template-columns: 1fr; }
}

/* FAQ */

.faq { max-width: 900px; margin-inline: auto; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 26px; max-width: 720px; color: var(--muted); }

/* About */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.split p + p { margin-top: 18px; }
.split p { color: var(--muted); font-size: 18px; }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value {
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
}
.value b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 28px; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }
.value h3 { margin-bottom: 10px; }
.value p { font-size: 15px; color: var(--muted); }

@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.parent-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(45, 91, 255, 0.35), transparent 70%),
    var(--ink);
  color: var(--white);
}
.parent-card .lead { margin-top: 20px; }
.parent-card .btn-row { margin-top: 32px; }

.parent-tree { display: grid; gap: 12px; justify-items: center; }
.parent-tree .node {
  width: 100%;
  max-width: 340px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.parent-tree .node small { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.parent-tree .node strong { display: block; margin-top: 4px; font-size: 19px; letter-spacing: -0.02em; }
.parent-tree .node--self { background: var(--white); color: var(--ink); border-color: var(--white); }
.parent-tree .node--self small { color: var(--muted); }
.parent-tree .wire { width: 2px; height: 32px; background: linear-gradient(var(--accent), var(--accent-2)); }

@media (max-width: 860px) { .parent-card { grid-template-columns: 1fr; } }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.field legend { float: left; width: 100%; }
.field label span,
.field legend span { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.14);
}

fieldset.field { border: 0; min-width: 0; }

.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__foot p { font-size: 13px; color: var(--muted); max-width: 420px; }
.form__status { font-size: 15px; font-weight: 600; color: #19a974; }

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--soft);
}
.aside-card h3 { font-size: 18px; margin-bottom: 16px; }
.aside-card ol { list-style: none; display: grid; gap: 16px; counter-reset: n; }
.aside-card li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; color: var(--muted); counter-increment: n; }
.aside-card li::before {
  content: counter(n);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.aside-card li strong { display: block; color: var(--ink); }

.aside-card--dark { background: var(--ink); color: var(--white); }
.aside-card--dark p { font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.aside-card--dark a { display: inline-block; margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mini product mockups (pure CSS)
   ========================================================================== */

.mini {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mini-bg, linear-gradient(160deg, #e9eeff 0%, #f4f1ff 100%));
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-scale:not(.fx-scale--light) .mini { --mini-bg: linear-gradient(160deg, #1a2440 0%, #18142e 100%); }

/* Phone */
.mini--phone { align-items: flex-start; }
.mini-phone {
  width: 34%;
  margin-top: 9%;
  padding: 4px;
  border-radius: 18px;
  background: #0b0f17;
  box-shadow: 0 20px 40px rgba(11, 15, 23, 0.25);
}
.mini-phone > div {
  aspect-ratio: 9 / 18;
  border-radius: 14px;
  background: #f6f7fb;
  padding: 14% 9% 9%;
  display: flex;
  flex-direction: column;
  gap: 6%;
}
.mini-phone i { display: block; border-radius: 6px; background: #fff; height: 11%; }
.mini-phone i:first-child { height: 26%; background: var(--grad); border-radius: 9px; }
.mini-phone i:nth-child(3) { background: #e7ecff; }

/* POS / ordering */
.mini--pos { padding: 9%; gap: 6%; align-items: stretch; }
.mini-menu { flex: 1.4; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8%; }
.mini-menu i { border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(11, 15, 23, 0.06); position: relative; }
.mini-menu i::after { content: ""; position: absolute; left: 14%; right: 14%; top: 16%; height: 46%; border-radius: 6px; background: var(--t, #ffe2c7); }
.mini-menu i:nth-child(2) { --t: #d9f6e8; }
.mini-menu i:nth-child(3) { --t: #e4e9ff; }
.mini-menu i:nth-child(4) { --t: #ffd9df; }
.mini-menu i:nth-child(5) { --t: #efe3ff; }
.mini-menu i:nth-child(6) { --t: #d7f3fb; }
.mini-ticket {
  flex: 1;
  border-radius: 10px;
  background: #0b0f17;
  padding: 10%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}
.mini-ticket i { height: 6%; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.mini-ticket i:nth-child(2) { width: 70%; }
.mini-ticket i:nth-child(3) { width: 85%; }
.mini-ticket b { margin-top: auto; height: 16%; border-radius: 6px; background: var(--accent); }

/* Dashboard */
.mini--dash { padding: 9%; flex-direction: column; align-items: stretch; gap: 7%; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; height: 24%; }
.mini-kpis i { border-radius: 8px; background: #fff; position: relative; }
.mini-kpis i::after { content: ""; position: absolute; left: 14%; bottom: 22%; width: 50%; height: 22%; border-radius: 3px; background: var(--k, var(--accent)); }
.mini-kpis i:nth-child(2) { --k: var(--accent-2); }
.mini-kpis i:nth-child(3) { --k: var(--accent-3); }
.mini-bars { flex: 1; display: flex; align-items: flex-end; gap: 5%; padding: 6%; border-radius: 10px; background: #fff; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: var(--grad); }
.mini-bars i:nth-child(3n) { background: var(--accent-3); }

/* AI chat */
.mini--ai { padding: 9% 12%; flex-direction: column; align-items: stretch; justify-content: center; gap: 7%; }
.mini-msg { height: 15%; border-radius: 12px; background: #fff; width: 72%; box-shadow: 0 2px 8px rgba(11, 15, 23, 0.06); }
.mini-msg--me { align-self: flex-end; width: 56%; background: var(--accent); border-bottom-right-radius: 4px; }
.mini-msg--bot { border-bottom-left-radius: 4px; }
.mini-msg--long { height: 24%; width: 82%; }
.mini-dots { display: flex; gap: 5px; padding: 10px 14px; border-radius: 12px; background: #fff; align-self: flex-start; }
.mini-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: dot 1.2s var(--ease) infinite; }
.mini-dots i:nth-child(2) { animation-delay: 0.15s; }
.mini-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* HR / people */
.mini--hr { padding: 9%; flex-direction: column; align-items: stretch; gap: 6%; }
.mini-person { flex: 1; display: flex; align-items: center; gap: 6%; padding: 0 6%; border-radius: 10px; background: #fff; }
.mini-person::before { content: ""; height: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--av, #ffd6b8); flex: none; }
.mini-person:nth-child(2) { --av: #c8d6ff; --st: #ffe7b3; }
.mini-person:nth-child(3) { --av: #d6f5e6; --st: #ffd3d9; }
.mini-person i { flex: 1; height: 14%; border-radius: 3px; background: #e9ebf0; }
.mini-person b { width: 20%; height: 32%; border-radius: 999px; background: var(--st, #c9f2df); }

/* Shop / portal */
.mini--shop { padding: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; align-items: stretch; }
.mini-product { border-radius: 10px; background: #fff; padding: 10%; display: flex; flex-direction: column; gap: 8%; }
.mini-product::before { content: ""; flex: 1; border-radius: 6px; background: var(--pc, linear-gradient(135deg, #dfe6ff, #efe6ff)); }
.mini-product:nth-child(2) { --pc: linear-gradient(135deg, #d6f5ef, #e2f1ff); }
.mini-product:nth-child(3) { --pc: linear-gradient(135deg, #ffe6d6, #ffe0ea); }
.mini-product i { height: 8%; border-radius: 3px; background: #e9ebf0; }
.mini-product b { height: 12%; width: 55%; border-radius: 999px; background: var(--ink); }

/* Training / vision */
.mini--vision { background: linear-gradient(160deg, #0d1426, #1a1038); }
.mini-frame {
  position: absolute;
  border: 2px solid #3ddc97;
  border-radius: 6px;
}
.mini-frame::before {
  content: attr(data-label);
  position: absolute;
  left: -2px;
  top: -20px;
  padding: 2px 6px;
  border-radius: 4px 4px 4px 0;
  background: #3ddc97;
  color: #05261a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mini-frame--b { border-color: #8fb0ff; }
.mini-frame--b::before { background: #8fb0ff; color: #0b1640; }
.mini-blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  --brand-c: #ffffff;
  --brand-sub: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
}

.footer__brand p { margin-top: 20px; max-width: 340px; font-size: 15px; }
.footer__parent { font-size: 13px !important; color: rgba(255, 255, 255, 0.45); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.footer__cols a { display: block; padding: 5px 0; font-size: 15px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--white); }

.footer__big {
  margin-top: clamp(56px, 8vw, 112px);
  font-family: var(--font-brand);
  font-size: min(19vw, 250px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Reduced motion: settle every effect at its final frame
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__inner,
  .hero__bg,
  [data-speed],
  [data-fx="rise"],
  [data-fx="stagger"] > * { transform: none !important; opacity: 1 !important; }
  .hero__veil { opacity: 0 !important; }

  .fx-scale { height: auto; }
  .fx-scale__sticky { position: relative; height: auto; overflow: visible; padding-block: 120px; }
  .fx-scale__head,
  .fx-scale__grid { transform: none; opacity: 1; }

  .fx-garage { height: auto; }
  .fx-garage__sticky { position: relative; height: auto; min-height: 0; padding-top: 120px; }
  .fx-garage__bg { transform: none; }
  .fx-garage__copy { position: relative; inset: auto; padding-inline: var(--gutter); transform: none; opacity: 1; }
  .fx-garage__copy .line + .line { transform: none; }
  .fx-garage__door { position: relative; height: auto; margin-top: 64px; transform: none; }

  .reveal, .drift-l, .drift-r, .footer__big, .scroll-progress { animation: none !important; opacity: 1; transform: none; }
  .mini-dots i { animation: none; }
}
