/* =====================================================================
   MSA Technosoft — design system
   No build step. Tokens → base → layout → components → pages → utilities
   ===================================================================== */

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #0b1220;
  --ink-2: #344055;
  --muted: #667085;
  --line: #e5e8f0;
  --line-2: #d6dbe7;

  --brand: #2f5bff;
  --brand-ink: #1f43d8;
  --brand-soft: #e8edff;
  --accent: #0fb5a0;
  --accent-soft: #dcf7f2;
  --warm: #ff7a45;
  --warm-soft: #fff0e9;
  --danger: #d92d20;
  --ok: #079455;

  --grad: linear-gradient(135deg, #2f5bff 0%, #6b4bff 55%, #0fb5a0 130%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 60px -12px rgba(16, 24, 40, .22);
  --ring: 0 0 0 4px rgba(47, 91, 255, .22);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c17; --bg-soft: #0d1324; --bg-tint: #121a33; --surface: #0f1628; --surface-2: #131b30;
    --ink: #edf1fa; --ink-2: #c3cbdd; --muted: #8f9ab3; --line: #1d2742; --line-2: #2a3656;
    --brand: #6d8bff; --brand-ink: #9db0ff; --brand-soft: #18224a; --accent: #2fd4bd; --accent-soft: #0e2f2c;
    --warm: #ff9466; --warm-soft: #33190f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -8px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -10px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080c17; --bg-soft: #0d1324; --bg-tint: #121a33; --surface: #0f1628; --surface-2: #131b30;
  --ink: #edf1fa; --ink-2: #c3cbdd; --muted: #8f9ab3; --line: #1d2742; --line-2: #2a3656;
  --brand: #6d8bff; --brand-ink: #9db0ff; --brand-soft: #18224a; --accent: #2fd4bd; --accent-soft: #0e2f2c;
  --warm: #ff9466; --warm-soft: #33190f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -8px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -10px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink-2);
  background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.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; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.1rem; color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit;
  font-weight: 700; font-size: .975rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--b); color: #fff; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 55%, transparent); }
.btn--primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); }
:root[data-theme="dark"] .btn--primary:hover { background: #8aa1ff; color: #071033; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--wa { background: #25d366; color: #05391b; }
.btn--wa:hover { background: #1fbd5a; color: #05391b; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: 0; box-shadow: 0 6px 16px -6px rgba(47,91,255,.6); }
.logo small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }
.logo span { line-height: 1.1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; border: 0; background: none;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { color: var(--ink); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.header__phone { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); width: min(980px, 94vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 18px; opacity: 0; visibility: hidden; transition: .18s ease;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.mega__col h4 .icon { width: 16px; height: 16px; color: var(--brand); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.mega__col a:hover { background: var(--bg-soft); color: var(--brand); }
.mega__promo { background: var(--grad); color: #fff; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mega__promo strong { font-size: 1.1rem; line-height: 1.3; }
.mega__promo p { font-size: .88rem; opacity: .9; margin: 0; }
.mega__promo .btn { background: #fff; color: #1b2a6b; margin-top: auto; }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 120px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; margin: 0;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: none; }
  .nav__link, .nav__btn { padding: 16px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
  .nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { background: none; }
  .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 8px 0 16px; grid-template-columns: 1fr; border-radius: 0; }
  .has-mega.is-open .mega { display: grid; transform: none; }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
  body.nav-open { overflow: hidden; }
}
.nav__mobile-cta { display: none !important; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink-2); display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 75% 30%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
              radial-gradient(40% 40% at 15% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.pill b { white-space: nowrap; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { width: 18px; height: 18px; color: var(--accent); }

/* Hero illustration (pure CSS) */
.mock { position: relative; aspect-ratio: 5 / 4.2; }
.mock__win { position: absolute; inset: 0 6% 8% 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock__bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__bar i:nth-child(1) { background: #ff5f57; } .mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: var(--bg-soft); font-size: .68rem; color: var(--muted); display: flex; align-items: center; padding-left: 10px; font-family: var(--mono); }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.sk { border-radius: 6px; background: var(--bg-soft); height: 12px; }
.sk--title { height: 26px; width: 72%; background: linear-gradient(90deg, var(--brand-soft), var(--bg-soft)); }
.sk--btn { height: 32px; width: 120px; border-radius: 999px; background: var(--brand); opacity: .9; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.mock__cards div { height: 74px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 600; color: var(--ink); animation: bob 6s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.float__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.float__ico .icon { width: 18px; height: 18px; }
.float--a { right: 0; top: 18%; } .float--a .float__ico { background: var(--accent-soft); color: var(--accent); }
.float--b { left: -4%; bottom: 0; animation-delay: -2s; } .float--b .float__ico { background: var(--brand-soft); color: var(--brand); }
.float--c { right: 2%; bottom: 22%; animation-delay: -4s; } .float--c .float__ico { background: var(--warm-soft); color: var(--warm); }
.gauge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--ok);
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--ok) 97%, var(--line) 0); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mock { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) { .float--b { left: 0; } .float { font-size: .78rem; padding: 9px 11px; } .float__ico { width: 30px; height: 30px; } }

/* Tech strip */
.strip { border-block: 1px solid var(--line); padding-block: 22px; background: var(--surface); }
.strip__inner { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; justify-content: center; }
.strip__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.strip__item { font-weight: 700; color: var(--ink-2); opacity: .75; font-size: 1rem; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.5vw, 28px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .link-arrow { margin-top: auto; }
.ico-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.ico-tile .icon { width: 24px; height: 24px; }
.ico-tile--accent { background: var(--accent-soft); color: var(--accent); }
.ico-tile--warm { background: var(--warm-soft); color: var(--warm); }

.svc-card h3 { font-size: 1.15rem; }
.group-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.group-card li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.group-card li a:hover { background: var(--bg-soft); color: var(--brand); }
.group-card li .icon { width: 16px; height: 16px; opacity: .5; }

/* Value props */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.value h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; font-size: .85rem; color: var(--brand); margin-bottom: 10px; letter-spacing: .04em; }
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Engagement models */
.models .card { gap: 6px; }
.models ul { padding: 0; list-style: none; margin: 10px 0 18px; display: grid; gap: 8px; font-size: .93rem; }
.models li { display: flex; gap: 8px; align-items: flex-start; }
.models li .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .05em; width: fit-content; }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--warm { background: var(--warm-soft); color: var(--warm); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__a { padding: 0 22px 18px; color: var(--ink-2); }
.faq .faq__a p:last-child { margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #0b1430; color: #dfe6ff; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(47,91,255,.55), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(15,181,160,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c4e8; }
.cta-band .ticks { color: #dfe6ff; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form--card { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .86rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: center; }
.form__note .icon { width: 16px; height: 16px; color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .94rem; border: 1px solid; }
.alert--error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--ink); }
.alert--ok { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ink); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* Choice chips (checkbox / radio) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--surface); transition: .15s; }
.choice input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.choice input:focus-visible + span { box-shadow: var(--ring); }

/* Multi-step quote form */
.quote { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.stepper { display: flex; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; }
.stepper li { flex: 1; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s; }
.stepper li.is-done { background: var(--brand); }
.qstep { display: none; }
.qstep.is-active { display: grid; gap: 18px; animation: fade .25s ease; }
.qstep__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.qstep h2 { font-size: 1.4rem; margin: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.no-js .qstep { display: grid; gap: 18px; margin-bottom: 28px; }
.no-js .qstep__nav [data-next], .no-js .qstep__nav [data-prev], .no-js .stepper { display: none; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card h3 { font-size: 1.05rem; margin: 0; }
.contact-line { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; }
.contact-line small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.contact-line .ico-tile { margin: 0; width: 42px; height: 42px; }

/* ---------- Service page ---------- */
.svc-hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.svc-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .svc-hero__grid { grid-template-columns: 1fr; } }
.svc-hero .hero__lead { margin-bottom: 24px; }
.svc-hero__sub { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 650; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.tldr { border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin: 0 0 28px; color: var(--ink); }
.tldr strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; }
.tldr p { margin: 0; }
.prose-lg { font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.chip:hover, .chip.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip small { margin-left: 6px; color: var(--muted); font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-head { padding-block: clamp(36px, 5vw, 64px) 28px; }
.blog-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.searchbar { position: relative; max-width: 520px; }
.searchbar .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchbar .input { padding-left: 46px; border-radius: 999px; }
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; margin-top: 22px; }
.cat-bar .chip { white-space: nowrap; }

.post-card { padding: 0; overflow: hidden; }
.post-card__img { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__ph { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; text-align: center; line-height: 1.3; letter-spacing: -.01em; }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.post-card p { font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 14px; height: 14px; }
.post-card .meta { margin-top: auto; padding-top: 8px; }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; overflow: hidden; margin-bottom: 28px; }
.post-feature .post-card__img { aspect-ratio: auto; min-height: 280px; border: 0; border-right: 1px solid var(--line); }
.post-feature .post-card__body { padding: clamp(22px, 3vw, 40px); justify-content: center; }
.post-feature h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature .post-card__img { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16/9; } }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 700; background: var(--surface); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; background: none; }

/* Article */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
.article-head { padding-block: clamp(28px, 4vw, 48px) 28px; }
.article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 22ch; }
.article-head .meta { font-size: .9rem; gap: 8px 18px; }
.article-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 65ch; }
.byline { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.byline strong { color: var(--ink); display: block; font-size: .92rem; }
.article-hero { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 36px; background: var(--bg-soft); }
.article-hero img { width: 100%; max-height: 520px; object-fit: contain; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; scrollbar-width: none; }
.toc { font-size: .9rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.toc h2 .icon { width: 16px; height: 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc .lvl-3 a { padding-left: 28px; font-size: .86rem; }
.toc-mobile { display: none; margin-bottom: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); }
.toc-mobile summary { padding: 14px 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.toc-mobile .toc { padding: 0 18px 14px; }
@media (max-width: 1024px) { .toc-mobile { display: block; } }
.side-cta { background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.side-cta h3 { color: #fff; font-size: 1.1rem; }
.side-cta p { font-size: .9rem; opacity: .92; }
.side-cta .btn { background: #fff; color: #1b2a6b; }

.prose { font-size: 1.075rem; line-height: 1.78; color: var(--ink-2); max-width: 72ch; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); margin: 2em 0 .6em; padding-top: .2em; }
.prose h3 { font-size: 1.28rem; margin: 1.7em 0 .5em; }
.prose h4 { font-size: 1.08rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--r); margin-inline: auto; border: 1px solid var(--line); background: #fff; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink); font-size: 1.1rem; font-style: italic; }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
.prose pre { font-family: var(--mono); font-size: .88rem; line-height: 1.6; background: #0d1426; color: #e3e8f6; border-radius: var(--r); padding: 18px 20px; overflow-x: auto; position: relative; border: 1px solid #1d2742; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 .74rem var(--font); padding: 5px 10px; border-radius: 8px; border: 1px solid #2a3656; background: #131b30; color: #c3cbdd; cursor: pointer; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.inline-cta { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); margin: 2em 0 !important; }
.inline-cta p { margin: 0 !important; font-size: .98rem; line-height: 1.5; }
.inline-cta strong { display: block; color: var(--ink); font-size: 1.05rem; }
.inline-cta .btn { margin-left: auto; }
@media (max-width: 640px) { .inline-cta { flex-direction: column; align-items: flex-start; } .inline-cta .btn { margin-left: 0; } }

.ad { margin: 2em 0 !important; min-height: 280px; display: block; }
.ad--sidebar { min-height: 250px; margin: 0 !important; }
.ad__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; margin-bottom: 6px; }

.post-foot { display: grid; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 72ch; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share > span { font-weight: 700; color: var(--ink); font-size: .9rem; margin-right: 6px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.share .icon { width: 18px; height: 18px; }
.end-cta { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); padding: clamp(22px, 3vw, 32px); }
.end-cta h2 { font-size: 1.35rem; }
.end-cta__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 16px 0 20px; }
.end-cta__links a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .94rem; }
.end-cta__links a:hover { border-color: var(--brand); }
.end-cta__links .ico-tile { margin: 0; width: 38px; height: 38px; border-radius: 10px; }

/* ---------- Footer ---------- */
.footer { background: #070b16; color: #a9b3cc; padding-top: clamp(48px, 6vw, 80px); margin-top: 0; font-size: .94rem; }
.footer a { color: #cfd6e8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo small { color: #8b96b2; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #111a30; border: 1px solid #1d2742; }
.social a:hover { background: #18234a; }
.social .icon { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid #141d33; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #7d88a5; }
.footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .contact-line { color: #fff; }
.footer .contact-line small { color: #8b96b2; }
.footer .contact-line .ico-tile { background: #111a30; color: #9db0ff; }

/* Floating WhatsApp + mobile action bar */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.mbar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mbar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 46px; padding: 10px; font-size: .9rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Misc pages ---------- */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-head p { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.notfound { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.notfound .big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--muted); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
.center { text-align: center; } .muted { color: var(--muted); }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* Media inserted from the library */
.prose figure.media { margin: 1.8em 0; }
.prose figure.media img { margin-inline: auto; }
.prose figure.align-none img { width: 100%; }
.prose figure.align-left, .prose figure.align-right { max-width: 50%; margin-top: .3em; margin-bottom: 1em; }
.prose figure.align-left { float: left; margin-right: 1.6em; }
.prose figure.align-right { float: right; margin-left: 1.6em; }
.prose h2, .prose h3, .prose hr, .prose .inline-cta, .prose .ad { clear: both; }
@media (max-width: 640px) { .prose figure.align-left, .prose figure.align-right { float: none; max-width: 100%; margin-inline: 0; } }

/* =====================================================================
   V2 — "Studio" design layer: display type, dark stages, scroll motion
   ===================================================================== */
:root {
  --display: "Bricolage Grotesque", var(--font);
  --night: #05070f; --night-2: #0a0f1f; --night-3: #111833;
  --lime: #d4ff3f; --lime-ink: #121a00; --violet: #8b5cf6;
  --on-dark: #e9edfb; --on-dark-2: #9aa5c4; --dark-line: rgba(255,255,255,.1);
}
h1, h2, .display { font-family: var(--display); font-weight: 750; letter-spacing: -.04em; font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.5rem); line-height: 1.04; }
h1 { line-height: 1.02; }
.section__head h2 { text-wrap: balance; }
.kicker--lime { color: var(--lime); }

/* Dark stages */
.is-dark { position: relative; background: var(--night); color: var(--on-dark-2); isolation: isolate; }
.is-dark h1, .is-dark h2, .is-dark h3 { color: #fff; }
.is-dark .kicker { color: var(--lime); }
.is-dark a:not(.btn) { color: #c9d4ff; }
.is-dark .crumbs, .is-dark .crumbs a { color: var(--on-dark-2); }
.is-dark .crumbs [aria-current] { color: #fff; }
.is-dark .crumbs li:not(:last-child)::after { color: rgba(255,255,255,.25); }

/* Header sits over dark heroes */
body.dark-top main > :first-child { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px)); }
body.dark-top .header:not(.is-light) { background: color-mix(in srgb, var(--night) 55%, transparent); border-bottom-color: var(--dark-line); }
body.dark-top .header:not(.is-light) .logo, body.dark-top .header:not(.is-light) .header__phone { color: #fff; }
body.dark-top .header:not(.is-light) .logo small { color: var(--on-dark-2); }
body.dark-top .header:not(.is-light) .nav__link, body.dark-top .header:not(.is-light) .nav__btn { color: #d5dcf2; }
body.dark-top .header:not(.is-light) .nav__link:hover, body.dark-top .header:not(.is-light) .nav__btn:hover, body.dark-top .header:not(.is-light) .nav__btn[aria-expanded="true"] { background: rgba(255,255,255,.08); color: #fff; }
body.dark-top .header:not(.is-light) .nav__link[aria-current="page"] { color: var(--lime); }
body.dark-top .header:not(.is-light) .icon-btn { background: rgba(255,255,255,.06); border-color: var(--dark-line); color: #fff; }
body.dark-top .header:not(.is-light) .header__cta { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
@media (max-width: 960px) { body.dark-top .header:not(.is-light) .nav.is-open .nav__link, body.dark-top .header:not(.is-light) .nav.is-open .nav__btn { color: var(--ink); } }
.header { transition: background .3s, border-color .3s; }

/* Buttons */
.btn--lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px -10px rgba(212,255,63,.55); }
.btn--lime:hover { background: #e4ff7a; color: var(--lime-ink); transform: translateY(-1px); }
.btn--glass { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.14); color: #fff; }
.magnetic { will-change: transform; }

/* Aurora + grid backgrounds */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: #2f5bff; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 5vw; background: #8b5cf6; animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -20vw; background: #0fb5a0; opacity: .4; animation-duration: 25s; animation-delay: -12s; }
.aurora--soft i { opacity: .35; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vw,4vw,0) scale(1.15); } 100% { transform: translate3d(-4vw,2vw,0) scale(.95); } }
.gridlines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }

/* ---------- HERO ---------- */
.x-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 96px; overflow: hidden; }
.x-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.x-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: #d5dcf2; font-size: .85rem; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212,255,63,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(212,255,63,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,63,0); } }
.x-hero__title { font-size: clamp(2.6rem, 1rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -.05em; margin-bottom: 26px; color: #fff; }
.x-hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.x-hero__title .line > .intro { display: block; }
.x-hero__title em { font-style: normal; background: linear-gradient(90deg, var(--lime), #7dffcf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator { position: relative; height: 1.03em; }
.rotator__word { position: absolute; left: 0; top: 0; white-space: nowrap; background: linear-gradient(90deg, #7f9cff, #b28bff 55%, #5ef0d6); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(105%); opacity: 0; transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .5s; }
.rotator__word.is-on { transform: none; opacity: 1; }
.rotator__word.is-out { transform: translateY(-105%); opacity: 0; }
.no-js .rotator__word:first-child, .rotator__word:first-child.is-on { transform: none; opacity: 1; }
.x-hero__lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--on-dark-2); max-width: 54ch; margin-bottom: 30px; }
.x-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.x-hero__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: #cfd7ef; }
.x-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.x-hero__ticks .icon { width: 18px; height: 18px; color: var(--lime); }

/* CSS intro (no JS needed → protects LCP) */
.motion .intro { animation: introUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.motion .line > .intro { animation-name: lineUp; animation-duration: 1s; }
.motion .rotator { animation: lineUp 1s cubic-bezier(.2,.8,.2,1) .2s both; }
.motion .intro-pop { animation: pop 1.2s cubic-bezier(.2,.8,.2,1) .35s both; }
@keyframes introUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }

/* Hero visual: 3D stack */
.stack { position: relative; aspect-ratio: 1 / .92; perspective: 1400px; --rx: 0deg; --ry: 0deg; }
.stack > * { position: absolute; transition: transform .25s ease-out; }
.stack__layer { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
.stack__code { left: 0; top: 4%; width: 74%; background: rgba(12,18,38,.88); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-4deg) translate3d(0,var(--py,0),0); }
.stack__site { right: 0; bottom: 6%; width: 76%; background: #fff; border: 1px solid rgba(255,255,255,.25);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(2.5deg) translate3d(0,var(--py,0),0); }
.win-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 .7rem var(--mono); color: #7f8aa8; }
.stack__site .win-bar { background: #f3f5fa; border-color: #e5e8f0; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; }
.stack__code pre { margin: 0; padding: 18px 20px 22px; font: .8rem/1.75 var(--mono); color: #c7d0ea; white-space: pre; overflow: hidden; }
.stack__code b { color: #b28bff; font-weight: 600; } .stack__code u { color: var(--lime); text-decoration: none; } .stack__code i { color: #5ef0d6; font-style: normal; } .stack__code s { color: #5d6886; text-decoration: none; }
.site-mock { padding: 14px; display: grid; gap: 12px; }
.sm-nav { display: flex; align-items: center; gap: 8px; } .sm-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); } .sm-nav span { height: 7px; width: 34px; border-radius: 4px; background: #e3e7f0; } .sm-nav em { margin-left: auto; width: 58px; height: 20px; border-radius: 99px; background: #2f5bff; }
.sm-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #f6f0ff); }
.sm-hero b { display: block; height: 12px; border-radius: 4px; background: #1b2550; margin-bottom: 7px; } .sm-hero b + b { width: 70%; }
.sm-hero span { display: block; height: 6px; width: 85%; border-radius: 3px; background: #c9cfe0; margin: 10px 0; } .sm-hero em { display: block; height: 20px; width: 70px; border-radius: 99px; background: #2f5bff; }
.sm-img { aspect-ratio: 4/3; border-radius: 10px; background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 60%), radial-gradient(circle at 70% 70%, #0fb5a0, transparent 60%), #2f5bff; }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sm-cards i { height: 46px; border-radius: 8px; background: #f3f5fa; border: 1px solid #e8ebf3; }
.chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.95); color: #0b1220; font-size: .86rem; font-weight: 700; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  transform: translate3d(calc(var(--ry) * -1.2), calc(var(--rx) * 1.2 + var(--py, 0px)), 0); }
.chip small { display: block; font-weight: 500; color: #667085; font-size: .74rem; }
.chip--a { right: -2%; top: 0; } .chip--b { left: 4%; bottom: 0; } .chip--c { right: 6%; bottom: -6%; }
.chip__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e8edff; color: #2f5bff; } .chip__ico .icon { width: 18px; height: 18px; }
.chip__ico--lime { background: #eaffb0; color: #3b5200; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--on-dark-2) !important; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 960px) {
  .x-hero { min-height: auto; padding-bottom: 72px; }
  .x-hero__grid { grid-template-columns: 1fr; }
  .stack { max-width: 520px; width: 100%; margin: 12px auto 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) { .chip { padding: 9px 11px; font-size: .76rem; gap: 8px; } .chip--a { right: 0; } .stack__code pre { font-size: .66rem; } }

/* ---------- MARQUEE ---------- */
.marquee-wrap { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.marquee { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); animation: marquee 38s linear infinite; will-change: transform; }
.marquee[data-marquee="-1"] .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee__track span { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); letter-spacing: -.045em; color: var(--ink); line-height: 1.1; }
.marquee__track span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee__track i { font-style: normal; color: var(--brand); font-size: clamp(1.4rem, 3vw, 2.6rem); }
.marquee--tech { margin-top: 18px; }
.marquee--tech .marquee__track span { font-family: var(--font); font-size: clamp(1rem, .9rem + .5vw, 1.35rem); font-weight: 700; letter-spacing: 0; color: var(--muted); padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MANIFESTO ---------- */
.manifesto { padding-block: clamp(72px, 10vw, 150px) clamp(24px, 4vw, 48px); }
.manifesto__text { font-family: var(--display); font-weight: 650; font-size: clamp(1.9rem, 1rem + 3.6vw, 4.2rem); line-height: 1.1; letter-spacing: -.035em; color: var(--ink); max-width: 20ch; margin: 0; }
.manifesto__text .w { opacity: .14; }

/* ---------- STACKING SERVICE CARDS ---------- */
.sstack { display: grid; gap: clamp(20px, 3vw, 36px); }
.scard { position: sticky; top: calc(var(--header-h) + 20px); min-height: clamp(340px, 46vh, 460px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch;
  border-radius: 32px; padding: clamp(26px, 4vw, 56px); overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -10px 40px -20px rgba(16,24,40,.35); will-change: transform; }
.scard:nth-child(2) { top: calc(var(--header-h) + 34px); } .scard:nth-child(3) { top: calc(var(--header-h) + 48px); } .scard:nth-child(4) { top: calc(var(--header-h) + 62px); }
.scard:nth-child(5) { top: calc(var(--header-h) + 76px); } .scard:nth-child(6) { top: calc(var(--header-h) + 90px); }
.scard--0 { background: var(--night-2); color: var(--on-dark-2); }
.scard--1 { background: linear-gradient(135deg, #2f5bff, #6b4bff); color: #dfe5ff; }
.scard--2 { background: #eef3ff; color: #344055; border: 1px solid #dfe5f5; }
.scard--0 h3 a, .scard--1 h3 a { color: #fff; }
.scard--2 h3 a { color: #0b1220; }
.scard h3 { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 16px; }
.scard h3 a { text-decoration: none; }
.scard p { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 46ch; }
.scard__body { display: flex; flex-direction: column; }
.scard__num { font: 700 .9rem var(--mono); opacity: .7; }
.scard__tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.scard__tags li { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.scard--2 .scard__tags li { background: #fff; border-color: #dfe5f5; color: #344055; }
.scard .link-arrow { margin-top: auto; color: inherit; }
.scard--0 .link-arrow { color: var(--lime); } .scard--1 .link-arrow { color: #fff; } .scard--2 .link-arrow { color: #2f5bff; }
.scard__art { position: relative; display: grid; place-items: center; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.scard--2 .scard__art { background: #fff; border-color: #dfe5f5; }
.scard__orb { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--lime), transparent 65%); opacity: .35; filter: blur(10px); }
.scard--1 .scard__orb { background: radial-gradient(circle, #fff, transparent 65%); }
.scard--2 .scard__orb { background: radial-gradient(circle, #8b5cf6, transparent 65%); opacity: .25; }
.scard__icon { position: relative; width: 42%; height: auto; stroke-width: 1.1; color: #fff; }
.scard--2 .scard__icon { color: #2f5bff; }
@media (max-width: 760px) { .scard { grid-template-columns: 1fr; min-height: 0; } .scard__art { display: none; } }

/* ---------- BENTO + spotlight ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento__item { border-radius: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.bento__item p { color: var(--muted); margin: 0; }
.bento__item--web-development, .bento__item--ecommerce { grid-column: span 2; }
.bento__links a.more { border-style: dashed; color: var(--brand); }
.bento__links { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bento__links a { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--surface); transition: .2s; }
.bento__links a:hover { border-color: var(--brand); color: var(--brand); }
.bento__cta { background: var(--night); color: var(--on-dark-2); text-decoration: none; justify-content: flex-end; border-color: var(--night); }
.bento__cta:hover { color: var(--on-dark-2); }
.bento__big { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; letter-spacing: -.06em; background: linear-gradient(135deg, var(--lime), #5ef0d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__cta .link-arrow { color: var(--lime); margin-top: 6px; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento__item--web-development, .bento__item--ecommerce { grid-column: auto; } }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 45%); }
.spot:hover::before { opacity: 1; }

/* ---------- HORIZONTAL PROCESS ---------- */
.hprocess { padding-block: clamp(72px, 9vw, 120px); overflow: hidden; }
.hprocess__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hprocess__head h2 { max-width: 16ch; }
.hprocess__bar { height: 3px; border-radius: 3px; background: var(--dark-line); margin-top: 28px; overflow: hidden; max-width: 420px; }
.hprocess__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), #5ef0d6); }
.hprocess__track { list-style: none; margin: 44px 0 0; padding: 0 var(--gutter); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hprocess__track::-webkit-scrollbar { display: none; }
.hprocess.is-pinned .hprocess__track { overflow: visible; width: max-content; scroll-snap-type: none; }
.hpanel { flex: none; width: min(400px, 82vw); min-height: 320px; scroll-snap-align: start; padding: 32px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--dark-line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hpanel__n { position: absolute; right: 18px; top: -6px; font-family: var(--display); font-weight: 800; font-size: 7.5rem; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); }
.hpanel__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(212,255,63,.1); color: var(--lime); margin-bottom: auto; }
.hpanel__ico .icon { width: 26px; height: 26px; }
.hpanel h3 { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.035em; margin: 40px 0 10px; }
.hpanel p { margin: 0; font-size: 1.02rem; }
.hpanel--end { justify-content: center; align-items: flex-start; gap: 18px; background: linear-gradient(135deg, rgba(47,91,255,.35), rgba(139,92,246,.25)); }
.hpanel--end h3 { margin: 0; font-size: 2.4rem; }

/* ---------- WHY ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__item { padding: 30px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.why__item h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.why__item p { color: var(--muted); margin: 0; font-size: .96rem; }
.why__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--night); color: var(--lime); }
.why__ico .icon { width: 26px; height: 26px; }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Models */
.model { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .2s; }
.model--featured { background: var(--night); border-color: var(--night); color: var(--on-dark-2); }
.model--featured h3 { color: #fff; } .model--featured p { color: var(--on-dark-2); } .model--featured .link-arrow { color: var(--lime); }
.badge--lime { background: rgba(212,255,63,.15); color: #a8d400; }
.model--featured .badge--lime { color: var(--lime); }

/* ---------- CIRCLE REVEAL CTA ---------- */
.reveal-cta { padding-block: clamp(80px, 11vw, 150px); overflow: hidden; clip-path: circle(var(--r, 150%) at 50% 50%); }
.reveal-cta__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.reveal-cta__title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem); line-height: .98; letter-spacing: -.05em; }
.reveal-cta__title em { font-style: normal; background: linear-gradient(90deg, var(--lime), #5ef0d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal-cta p { font-size: 1.15rem; max-width: 46ch; }
.reveal-cta .form--card { box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
@media (max-width: 860px) { .reveal-cta__grid { grid-template-columns: 1fr; } }

/* ---------- Dark page heads (inner pages) ---------- */
.page-head, .svc-hero, .blog-head { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark-2); border-bottom: 0; }
.page-head::before, .svc-hero::before, .blog-head::before { content: ""; position: absolute; inset: -30% -10% auto; height: 160%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 15% 20%, rgba(47,91,255,.55), transparent 70%), radial-gradient(35% 45% at 85% 10%, rgba(139,92,246,.45), transparent 70%), radial-gradient(30% 40% at 60% 90%, rgba(15,181,160,.3), transparent 70%); filter: blur(10px); }
.page-head::after, .svc-hero::after, .blog-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.page-head, .blog-head { padding-bottom: clamp(48px, 6vw, 88px); }
.page-head h1, .svc-hero h1, .blog-head h1 { color: #fff; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5rem); letter-spacing: -.05em; max-width: 18ch; }
.page-head p, .blog-head .hero__lead, .svc-hero .hero__lead { color: var(--on-dark-2); }
.svc-hero__sub { color: #fff; }
.svc-hero .ticks, .page-head .ticks { color: #cfd7ef; } .svc-hero .ticks .icon { color: var(--lime); }
.svc-hero .btn--primary, .page-head .btn--primary { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.svc-hero .btn--ghost, .page-head .btn--ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.18); }
.page-head a:not(.btn), .svc-hero a:not(.btn) { color: #c9d4ff; }
.svc-hero .form--card a { color: var(--brand); }
.blog-head .searchbar .input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.blog-head .searchbar .input::placeholder { color: var(--on-dark-2); }
.blog-head .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #d5dcf2; }
.blog-head .chip small { color: var(--on-dark-2); }
.blog-head a.chip:hover, .blog-head .chip.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.blog-head .chip.is-active small { color: var(--lime-ink); }
.blog-head + .section { padding-top: clamp(36px, 5vw, 56px) !important; }

/* ---------- Footer mega wordmark ---------- */
.footer__mega { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 9.4vw, 8.6rem); line-height: .9; letter-spacing: -.055em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); margin: 8px 0 28px; user-select: none; overflow: hidden; }
.footer { background: var(--night); }

/* ---------- Motion helpers (JS sets initial states; CSS only for safety) ---------- */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Reduced motion / no JS: everything static and visible */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .aurora i, .dot, .scroll-cue span { animation: none !important; }
  .scard { position: relative; top: auto !important; }
  .rotator__word { transition: none; }
}
/* SplitText fixes words into lines; balancing would re-wrap them inside the line masks */
.motion h2.reveal-lines { text-wrap: wrap; }
/* Narrow bento cards: compact link list instead of pills */
.bento__item:not(.bento__item--web-development):not(.bento__item--ecommerce):not(.bento__cta) .bento__links { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.bento__item:not(.bento__item--web-development):not(.bento__item--ecommerce):not(.bento__cta) .bento__links a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 9px 0; background: none; display: flex; justify-content: space-between; }
.bento__item:not(.bento__item--web-development):not(.bento__item--ecommerce):not(.bento__cta) .bento__links a::after { content: "→"; color: var(--muted); }
.bento__item:not(.bento__item--web-development):not(.bento__item--ecommerce):not(.bento__cta) .bento__links li:last-child a { border-bottom: 0; }
.bento__links a.more { border-style: dashed !important; }

/* =====================================================================
   Case studies / work
   ===================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink-2); border-radius: 28px; padding: 14px 14px 26px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.work-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink-2); }
.work-card[hidden] { display: none; }
.work-card > :not(.browser) { margin-inline: 12px; }
.work-card h3 { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); letter-spacing: -.03em; margin: 2px 12px 0; color: var(--ink); }
.work-card p { margin-bottom: 0; color: var(--muted); }
.work-card__meta { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-top: 8px; }
.work-card__metrics { display: flex; gap: 22px; flex-wrap: wrap; }
.work-card__metrics span { display: grid; font-size: .82rem; color: var(--muted); }
.work-card__metrics b { font-family: var(--display); font-size: 1.6rem; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.work-card .link-arrow { margin-top: 6px; }
/* Browser frame */
.browser { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.04); }
.browser__bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f1f3f8; border-bottom: 1px solid #e5e8f0; font: 600 .7rem var(--mono); color: #7a849c; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #f6f7fb; }
.browser__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.6s cubic-bezier(.2,.8,.2,1), object-position 3s ease; }
.work-card:hover .browser__shot img { object-position: bottom; }
.browser__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.6rem; padding: 20px; text-align: center; }
/* Case study page */
.cs-hero { padding-bottom: clamp(120px, 14vw, 200px) !important; }
.cs-hero p { font-size: 1.2rem; max-width: 60ch; }
.cs-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; }
.cs-facts div { display: grid; gap: 2px; }
.cs-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.cs-facts dd { margin: 0; color: #fff; font-weight: 600; }
.cs-cover-wrap { margin-top: clamp(-160px, -11vw, -90px); position: relative; z-index: 2; }
.browser--lg { border-radius: 24px; box-shadow: var(--shadow-lg); }
.browser--lg .browser__bar { height: 40px; }
.browser--lg .browser__shot { aspect-ratio: 16 / 9; }
.cs-metrics { padding-block: clamp(40px, 6vw, 72px) 0; }
.cs-metrics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cs-metric { padding: 26px; border-radius: 22px; background: var(--night); color: var(--on-dark-2); }
.cs-metric b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); letter-spacing: -.04em; line-height: 1; color: var(--lime); margin-bottom: 8px; }
.cs-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .cs-body { grid-template-columns: 1fr; } }
.cs-block + .cs-block { margin-top: 48px; }
.cs-block .kicker { margin-bottom: 10px; }
.cs-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.cs-card { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.cs-card h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.cs-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cs-links a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.cs-links a:hover { background: var(--bg-soft); color: var(--brand); }
.cs-links .icon { width: 18px; height: 18px; color: var(--brand); }
.cs-quote { margin: 56px 0 0; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--night); color: var(--on-dark-2); }
.cs-quote blockquote { margin: 0 0 18px; font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.cs-quote figcaption strong { color: #fff; display: block; } .cs-quote figcaption span { font-size: .9rem; }
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cs-gallery a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.cs-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.cs-gallery a:hover img { transform: scale(1.04); }
.cs-next { display: block; text-decoration: none; padding-block: clamp(48px, 7vw, 96px); }
.cs-next .kicker { margin-bottom: 8px; }
.cs-next__title { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); letter-spacing: -.045em; color: #fff; line-height: 1; }
.cs-next__title .icon { width: .8em; height: .8em; color: var(--lime); transition: transform .3s; }
.cs-next:hover .cs-next__title .icon { transform: translateX(10px); }
.work-filter .chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; }

/* Portfolio wall + proof */
.work-stats { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 30px; }
.work-stats div { display: grid; }
.work-stats b { font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); letter-spacing: -.04em; line-height: 1; color: var(--lime); }
.work-stats span { color: var(--on-dark-2); font-size: .9rem; }
.site-filters { display: grid; gap: 4px; margin-bottom: 26px; }
.site-filters .cat-bar { margin-top: 0; }
.site-filters .chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .86rem; }
.site-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.site-tile { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.site-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.site-tile[hidden] { display: none; }
.site-tile__shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.site-tile__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 2.5s ease; }
.site-tile:hover .site-tile__shot img { object-position: bottom; }
.site-tile__shot span { width: 100%; height: 100%; display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--display); font-weight: 750; font-size: 1.2rem; color: #fff; background: var(--grad); }
.site-tile__body { padding: 14px 16px 16px; display: grid; gap: 3px; }
.site-tile__body strong { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.site-tile__body small { color: var(--muted); font-size: .8rem; }
.site-tile__body a { font-size: .82rem; font-weight: 700; margin-top: 4px; text-decoration: none; }
.site-empty { color: var(--muted); text-align: center; margin-top: 24px; }
.proof { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin-bottom: 36px; }
.proof__stat { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--line); }
.proof__stat b { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); letter-spacing: -.05em; line-height: .95; color: var(--ink); }
.proof__stat span { color: var(--muted); font-weight: 600; }
.marquee--clients .marquee__track span { font-family: var(--font); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; color: var(--muted); padding-right: 12px; }
.marquee--clients .marquee__track span::after { content: "✦"; margin-left: clamp(20px, 3vw, 44px); color: var(--brand); font-size: .8em; }

/* ---------- Brand logo (image) ---------- */
.logo { gap: 0; }
.logo__img, .logo__img img { display: block; height: 46px; width: auto; }
.logo--footer .logo__img, .logo--footer .logo__img img { height: 84px; }
.logo--footer { margin-bottom: 18px; }
@media (max-width: 560px) { .logo__img, .logo__img img { height: 40px; } }
/* Light-theme logo by default; dark logo on dark surfaces */
.header .lg-dark { display: none; }
:root[data-theme="dark"] .header .lg-light { display: none; }
:root[data-theme="dark"] .header .lg-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header .lg-light { display: none; }
  :root:not([data-theme="light"]) .header .lg-dark { display: block; }
}
body.dark-top .header:not(.is-light) .lg-light { display: none; }
body.dark-top .header:not(.is-light) .lg-dark { display: block; }



/* ---------- Frosted-glass sticky header that follows the theme ---------- */
/* Light theme, over light content */
.header {
  background: rgba(255, 255, 255, .62);
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
}
.header.is-scrolled { background: rgba(255, 255, 255, .74); box-shadow: 0 8px 28px -14px rgba(16, 24, 40, .25); border-bottom-color: rgba(16, 24, 40, .08); }
/* Over dark hero sections (light theme): light-tinted dark glass */
body.dark-top .header:not(.is-light) {
  background: rgba(12, 18, 40, .32);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
/* Dark theme: dark glass everywhere */
:root[data-theme="dark"] .header, :root[data-theme="dark"] body.dark-top .header:not(.is-light) { background: rgba(8, 12, 23, .55); border-bottom-color: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .header.is-scrolled { background: rgba(8, 12, 23, .7); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header, :root:not([data-theme="light"]) body.dark-top .header:not(.is-light) { background: rgba(8, 12, 23, .55); border-bottom-color: rgba(255, 255, 255, .07); }
  :root:not([data-theme="light"]) .header.is-scrolled { background: rgba(8, 12, 23, .7); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
}
.header .header__phone .icon { color: #25d366; }
