/* ==========================================================================
   Aurel Digital — Design System
   Zero dependencies. Dark-first with a light theme. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --brand-violet: #7c5cff;
  --brand-cyan: #22d3ee;
  --brand-pink: #ff4d8d;
  --brand-lime: #a3e635;

  --gradient-brand: linear-gradient(135deg, var(--brand-violet), var(--brand-cyan));
  --gradient-warm: linear-gradient(135deg, var(--brand-pink), var(--brand-violet));
  --gradient-text: linear-gradient(100deg, #fff 0%, #cdb9ff 38%, #7ae7ff 72%, #fff 100%);

  /* Surfaces (dark theme is the default) */
  --bg: #07070c;
  --bg-elevated: #0c0c14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-solid: #111119;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eceef6;
  --text-muted: #9ea3bb;
  --text-faint: #6b7090;
  --text-on-accent: #0a0a12;

  /* Effects */
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.28), 0 18px 60px -24px rgba(124, 92, 255, 0.55);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 80px -32px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(124, 92, 255, 0.45);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Fluid type scale — min at 360px viewport, max at 1280px */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.16rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.33rem + 1.35vw, 2.4rem);
  --step-4: clamp(1.95rem, 1.47rem + 2.4vw, 3.3rem);
  --step-5: clamp(2.35rem, 1.5rem + 4.2vw, 4.6rem);

  /* Space */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(3.5rem, 2.25rem + 4.5vw, 6rem);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.5rem);
  --header-h: 4.5rem;

  /* Radii */
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 620ms;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-elevated: #ffffff;
  --surface: rgba(12, 12, 25, 0.035);
  --surface-hover: rgba(12, 12, 25, 0.06);
  --surface-solid: #ffffff;
  --border: rgba(12, 12, 30, 0.1);
  --border-strong: rgba(12, 12, 30, 0.2);

  --text: #10101b;
  --text-muted: #565b78;
  --text-faint: #797f9c;
  --text-on-accent: #ffffff;

  --gradient-text: linear-gradient(100deg, #1a1030 0%, #5b32d6 40%, #0e7c99 75%, #1a1030 100%);
  --shadow-md: 0 12px 32px -14px rgba(20, 20, 60, 0.22);
  --shadow-lg: 0 32px 70px -30px rgba(20, 20, 60, 0.28);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-violet);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.stack > * + * {
  margin-top: var(--flow, 1rem);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-violet);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  translate: -50% 0;
}

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

/* Ambient background glow */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%);
}

.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  top: 18vh;
  right: -12vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
}

.aurora span:nth-child(3) {
  width: 40vw;
  height: 40vw;
  bottom: -12vw;
  left: 25vw;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.28), transparent 70%);
}

[data-theme="light"] .aurora span {
  opacity: 0.12;
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gradient-brand);
}

.display {
  font-size: var(--step-5);
  font-weight: 600;
}

.h2 {
  font-size: var(--step-4);
}

.h3 {
  font-size: var(--step-2);
}

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
}

.muted {
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(90deg, #a996ff, #5fd8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(90deg, #5b32d6, #0e7c99);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.section-head {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: 62ch;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  transition: transform var(--dur) var(--ease-out);
}

.btn--primary {
  --btn-fg: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 10px 34px -12px rgba(124, 92, 255, 0.75);
}

.btn--primary:hover {
  box-shadow: 0 18px 46px -14px rgba(124, 92, 255, 0.9);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text-faint);
}

.btn--lg {
  min-height: 3.4rem;
  padding-inline: 1.9rem;
  font-size: var(--step-1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Pill / tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--step--1);
  color: var(--text-muted);
  backdrop-filter: blur(12px);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem rgba(163, 230, 53, 0);
  }
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.card::after {
  /* cursor-tracked spotlight, driven by --mx/--my in main.js */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    22rem circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 92, 255, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   7. Header + navigation
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--header-h);
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.header.is-stuck .header__progress {
  opacity: 1;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex: none;
}

.logo__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.logo__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -2px;
}

/* Desktop nav */
.nav {
  display: none;
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--border);
}

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

.header__cta {
  display: none;
}

/* Icon button */
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(14px);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: scale(0.94);
}

[data-theme="light"] .icon-btn {
  background: #fff;
  border-color: rgba(12, 12, 30, 0.12);
  box-shadow: 0 1px 2px rgba(16, 16, 40, 0.06);
}

.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Theme toggle icon swap */
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

/* Hamburger */
.burger__box {
  position: relative;
  width: 1.15rem;
  height: 0.7rem;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.burger__box span:nth-child(1) {
  top: 0;
}

.burger__box span:nth-child(2) {
  top: 50%;
  translate: 0 -50%;
}

.burger__box span:nth-child(3) {
  bottom: 0;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem) var(--gutter)
    calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur) var(--ease-out);
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.drawer__list {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  opacity: 0;
  translate: 0 0.75rem;
}

.drawer.is-open .drawer__link {
  animation: drawer-in var(--dur-slow) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}

@keyframes drawer-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.drawer__link span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-violet);
}

.drawer__link[aria-current="page"] {
  color: var(--brand-cyan);
}

.drawer__foot {
  display: grid;
  gap: 0.75rem;
}

.drawer__foot .btn {
  width: 100%;
}

.drawer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 8vw, 5.5rem));
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

.hero__title {
  font-size: var(--step-5);
}

.hero__title em {
  font-style: normal;
  display: block;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  padding-top: var(--space-xs);
  width: 100%;
}

.stat {
  display: grid;
  gap: 0.15rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Hero visual — a stylised, animated product mock built in CSS */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero__orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    rgba(124, 92, 255, 0.55),
    rgba(34, 211, 238, 0.4),
    rgba(255, 77, 141, 0.42),
    rgba(124, 92, 255, 0.55)
  );
  filter: blur(46px);
  opacity: 0.75;
  animation: spin 22s linear infinite;
  z-index: -1;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.mock {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.mock__bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock__bar i:first-child {
  background: var(--brand-pink);
}

.mock__bar i:nth-child(2) {
  background: #f5c451;
}

.mock__bar i:nth-child(3) {
  background: var(--brand-lime);
}

.mock__url {
  margin-left: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}

.mock__body {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
}

.mock__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mock__tile {
  height: 3.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.mock__tile--accent {
  background: var(--gradient-brand);
  border-color: transparent;
}

.mock__line {
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-hover);
}

.mock__line--w70 {
  width: 70%;
}

.mock__line--w45 {
  width: 45%;
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 4.5rem;
  padding-top: 0.4rem;
}

.mock__chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--gradient-brand);
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow 2.6s var(--ease-out) infinite alternate;
}

@keyframes grow {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

/* Floating chips around the mock */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.hero__chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--brand-cyan);
}

.hero__chip--1 {
  top: 6%;
  left: -4%;
  animation-delay: -1.5s;
}

.hero__chip--2 {
  bottom: 12%;
  right: -3%;
  animation-delay: -3.5s;
}

@media (max-width: 39.99rem) {
  .hero__chip {
    display: none;
  }

  .hero__visual {
    margin-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   9. Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  padding-block: var(--space-md);
  border-block: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease-out);
}

.marquee__item:hover {
  color: var(--text);
}

.marquee__item::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--brand-violet);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */

.grid-auto {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.service {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: var(--space-md);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-cyan);
  transition: transform var(--dur) var(--ease-spring), color var(--dur) var(--ease-out);
}

.service__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service:hover .service__icon {
  transform: translateY(-3px) rotate(-6deg);
  color: var(--brand-violet);
}

.service h3 {
  font-size: var(--step-1);
}

.service p {
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   11. Work / projects
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
  padding-bottom: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: none;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter[aria-pressed="true"] {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.work-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.work-card[hidden] {
  display: none;
}

.work-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--thumb, var(--gradient-brand));
  overflow: hidden;
}

.work-card__thumb svg {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  transition: transform var(--dur-slow) var(--ease-out);
}

.work-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.work-card:hover .work-card__thumb svg,
.work-card:hover .work-card__thumb img {
  transform: scale(1.06) translateY(-4px);
}

.work-card__cat {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 12, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.work-card__body {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.work-card__body h2,
.work-card__body h3 {
  font-size: var(--step-1);
}

.work-card__body p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brand-cyan);
}

.work-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.15rem;
}

.work-card__stat {
  display: grid;
  gap: 0.1rem;
}

.work-card__stat b {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--text);
}

.work-card__stat span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-card__more {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-cyan);
}

.case__shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.case__layout {
  max-width: 44rem;
  margin-top: var(--space-lg);
}

.case__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: var(--space-lg);
}

.case__stats div {
  display: grid;
  gap: 0.15rem;
}

.case__stats b {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

.case__stats span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prose blockquote footer {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.work-empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   12. Process
   -------------------------------------------------------------------------- */

.process {
  display: grid;
  gap: var(--space-sm);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: var(--space-md);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand-violet);
}

.step h3 {
  font-size: var(--step-1);
}

.step p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.step::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(var(--p, 0.18));
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.step:hover::before {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   13. About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.checklist {
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--step-0);
}

.checklist svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  flex: none;
  color: var(--brand-lime);
}

.checklist strong {
  font-weight: 600;
}

.checklist span {
  color: var(--text-muted);
}

.about__panel {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, 1fr);
}

.about__panel .card {
  display: grid;
  gap: 0.3rem;
  align-content: center;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.about__panel .card:first-child {
  grid-column: 1 / -1;
  text-align: left;
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */

.quotes {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.quote {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  padding: var(--space-md);
}

.quote blockquote {
  font-size: var(--step-1);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
  font-weight: 500;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: #f5c451;
}

.stars svg {
  width: 1rem;
  height: 1rem;
}

.stars svg.is-half {
  opacity: 0.45;
}

.person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.person__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--gradient-warm);
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.person__name {
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.3;
}

.person__role {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Tech stack
   -------------------------------------------------------------------------- */

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 500;
  transition: transform var(--dur) var(--ease-spring), border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.stack-pill:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.stack-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--dot, var(--brand-violet));
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  display: grid;
  gap: var(--space-md);
  justify-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, 0.22), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, 0.14), transparent 45%);
  animation: spin 16s linear infinite;
  z-index: 0;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.faq__item:hover {
  border-color: var(--border-strong);
}

.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 1.05rem var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

.faq__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.faq__btn[aria-expanded="true"] svg {
  transform: rotate(45deg);
  color: var(--brand-violet);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}

.faq__panel.is-open {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__panel p {
  padding: 0 var(--space-md) 1.15rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.form {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.field label .req {
  color: var(--brand-pink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ea3bb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.05rem;
  padding-right: 2.6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: var(--ring);
}

.field__error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  color: var(--brand-pink);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--brand-pink);
}

.field.has-error .field__error {
  display: flex;
}

.field__row {
  display: grid;
  gap: var(--space-sm);
}

.form__note {
  font-size: var(--step--1);
  color: var(--text-faint);
}

.form__status {
  display: none;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.1);
  font-size: var(--step--1);
}

.form__status.is-visible {
  display: flex;
}

.form__status svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  color: var(--brand-lime);
}

/* Direct contact channels */
.channels {
  display: grid;
  gap: 0.6rem;
}

.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

.channel__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  color: var(--brand-cyan);
}

.channel__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.channel__label {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.channel__value {
  font-weight: 600;
  font-size: var(--step-0);
  word-break: break-word;
}

.channel__arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-faint);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.channel:hover .channel__arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  max-width: 34ch;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.footer__cols {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.footer h4 {
  font-size: var(--step--1);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
}

.footer__links a {
  font-size: var(--step--1);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.footer__brand a[href^="mailto"] {
  color: var(--brand-cyan);
  font-size: var(--step--1);
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 0.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem var(--space-md);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   20. Mobile sticky action bar
   -------------------------------------------------------------------------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  translate: 0 120%;
  transition: translate var(--dur) var(--ease-out);
}

.mobile-bar.is-visible {
  translate: 0 0;
}

@media (max-width: 63.99rem) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }
}

.mobile-bar .btn {
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  font-size: 0.8125rem;
  padding: 0.5rem 0.35rem;
  gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   20b. Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.4rem, 1rem + 6vw, 4.75rem));
  padding-bottom: var(--space-md);
}

.page-hero__inner {
  display: grid;
  gap: var(--space-sm);
  max-width: 46rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--text-faint);
}

.crumbs a {
  color: var(--text-muted);
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs__sep {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: var(--step-4);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

.service a.stretched {
  color: var(--brand-cyan);
  font-size: var(--step--1);
  font-weight: 600;
}

.insights-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.insight-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.insight-card__kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
}

/* --------------------------------------------------------------------------
   21. Article (blog)
   -------------------------------------------------------------------------- */

.article {
  padding-top: calc(var(--header-h) + var(--space-lg));
}

.article__head {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-faint);
}

.prose {
  display: grid;
  gap: var(--space-md);
  font-size: var(--step-0);
  line-height: 1.75;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-md);
}

.prose h3 {
  font-size: var(--step-1);
}

.prose p {
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-muted);
}

.prose blockquote {
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--brand-violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
}

.article__toc {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.article__toc ol {
  display: grid;
  gap: 0.5rem;
  counter-reset: toc;
  margin-top: 0.75rem;
}

.article__toc li {
  counter-increment: toc;
  font-size: var(--step--1);
}

.article__toc li::before {
  content: counter(toc) ".";
  color: var(--brand-violet);
  font-family: var(--font-mono);
  margin-right: 0.5rem;
}

.article__toc a {
  color: var(--text-muted);
}

.article__toc a:hover {
  color: var(--text);
}

.article__layout {
  display: grid;
  gap: var(--space-lg);
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.article__back:hover {
  color: var(--text);
}

@media (min-width: 64rem) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    align-items: start;
  }

  .article__toc {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

/* Mobile/tablet: show "On this page" before the article body (desktop sidebar unchanged) */
@media (max-width: 63.99rem) {
  .article__toc {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   22. 404
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 78vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--space-md);
  padding-top: var(--header-h);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 18vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 40rem) {
  .field__row {
    grid-template-columns: 1fr 1fr;
  }

  .form {
    padding: var(--space-lg);
  }

  .mobile-bar {
    gap: 0.6rem;
  }

  .mobile-bar .btn {
    font-size: var(--step--1);
    padding-inline: 0.75rem;
  }
}

@media (min-width: 52rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .about {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-xl);
  }

  .footer__grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .quote blockquote {
    font-size: var(--step-1);
  }
}

@media (min-width: 64rem) {
  :root {
    --header-h: 5rem;
  }

  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }

  .mobile-bar {
    display: none;
  }

  .article {
    padding-top: calc(var(--header-h) + var(--space-xl));
  }
}

/* --------------------------------------------------------------------------
   25. Accessibility & print
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

@media (forced-colors: active) {
  .card,
  .btn,
  .nav__list,
  .faq__item {
    border: 1px solid CanvasText;
  }
}

@media print {
  .header,
  .drawer,
  .mobile-bar,
  .aurora,
  .marquee,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   26. v2 — hero showcase, browser frames, client strip, case studies
   -------------------------------------------------------------------------- */

.hero--v2 {
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.hero--v2 .hero__title {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);
  letter-spacing: -0.035em;
}

.hero--v2 .hero__title em {
  display: inline;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero__trust .stars svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero__trust b {
  color: var(--text);
  font-weight: 600;
}

.hero__trust-sep {
  width: 1px;
  height: 1rem;
  background: var(--border-strong);
}

/* Browser frame used for real project screenshots */
.frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
  padding-inline: 0.8rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 92%, var(--text) 8%);
}

.frame__bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame__bar i:nth-child(1) { background: #ff5f57; }
.frame__bar i:nth-child(2) { background: #febc2e; }
.frame__bar i:nth-child(3) { background: #28c840; }

.frame__url {
  flex: 1;
  max-width: 16rem;
  margin-inline: auto;
  padding: 0.12rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Scrollable full-page screenshot */
.frame__scroll {
  max-height: min(78vh, 760px);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

/* Hero stack of real client sites */
.showcase {
  position: relative;
  min-height: 27rem;
  isolation: isolate;
}

.showcase .frame {
  position: absolute;
  width: 90%;
}

@media (min-width: 52rem) {
  .hero--v2 .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase__a {
  top: 0;
  right: 0;
  z-index: 2;
  animation: float 8s ease-in-out infinite;
}

.showcase__b {
  left: -2%;
  bottom: 0;
  width: 64% !important;
  z-index: 3;
  animation: float 8s ease-in-out -4s infinite;
}

.showcase__glow {
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
  filter: blur(40px);
}

.showcase__chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.showcase__chip .badge__dot {
  flex: none;
}

.showcase__chip--1 {
  top: 58%;
  right: -2%;
}

@media (max-width: 51.99rem) {
  .showcase {
    min-height: 0;
    aspect-ratio: 16 / 12;
    margin-top: var(--space-sm);
  }
}

@media (max-width: 39.99rem) {
  .showcase__chip { display: none; }
}

/* Client strip */
.clients {
  border-block: 1px solid var(--border);
  padding-block: var(--space-md);
}

.clients__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
}

.clients__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1.25rem, 3vw, 2.75rem);
}

.clients__list a {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  transition: color var(--dur) var(--ease-out);
}

.clients__list a:hover {
  color: var(--text);
}

/* Section head with side action */
.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
}

.section-head--row > div {
  display: grid;
  gap: var(--space-sm);
  max-width: 62ch;
}

/* Featured project rows */
.feature-list {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.feature {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.feature__media {
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.feature__media:hover {
  transform: translateY(-6px);
}

.feature__media .frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.feature__body {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
}

.feature__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature__body h3 {
  font-size: var(--step-3);
}

.feature__body p {
  color: var(--text-muted);
  max-width: 48ch;
}

.feature__list {
  display: grid;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.feature__list li {
  display: flex;
  gap: 0.6rem;
}

.feature__list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--brand-cyan);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.link-row .muted-link {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.link-row .muted-link:hover {
  color: var(--text);
}

@media (min-width: 56rem) {
  .feature {
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-xl);
  }

  .feature:nth-child(even) .feature__media {
    order: 2;
  }
}

/* Numbers band */
.numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.numbers > div {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-md);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers b {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.numbers span {
  font-size: var(--step--1);
  color: var(--text-muted);
}

@media (min-width: 52rem) {
  .numbers {
    grid-template-columns: repeat(4, 1fr);
  }

  .numbers > div {
    border-bottom: 0;
  }

  .numbers > div:last-child {
    border-right: 0;
  }
}

/* Why-us split */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.split__sticky {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
}

@media (min-width: 56rem) {
  .split__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.reasons {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 40rem) {
  .reasons {
    grid-template-columns: 1fr 1fr;
  }
}

.reason {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.reason h3 {
  font-size: var(--step-1);
}

.reason p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Live chat CTA card */
.chat-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.chat-cta__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 14rem;
}

.chat-cta__who strong {
  display: block;
  font-family: var(--font-display);
}

.chat-cta__who span {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.chat-cta__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.chat-cta__avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg);
}

.cta-band .btn-row {
  justify-content: center;
}

/* Case study page */
.case-hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 5vw, 4rem));
  padding-bottom: var(--space-lg);
}

.case-hero__grid {
  display: grid;
  gap: var(--space-lg);
}

.case-hero__copy {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  max-width: 44rem;
}

.case-hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.035em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: end;
}

.facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.facts > div:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: var(--step--1);
}

@media (min-width: 60rem) {
  .case-hero__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.case-body {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 60rem) {
  .case-body {
    grid-template-columns: 1fr 1fr;
  }
}

.case-block {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.case-block h2 {
  font-size: var(--step-2);
}

.case-block p {
  color: var(--text-muted);
}

.case-hint {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--text-faint);
  text-align: center;
}

.next-case {
  display: grid;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
}

.next-case .frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.next-case__copy {
  display: grid;
  gap: 0.5rem;
}

.next-case__copy h2 {
  font-size: var(--step-3);
}

@media (min-width: 52rem) {
  .next-case {
    grid-template-columns: 1fr 1.2fr;
    padding: var(--space-lg);
  }
}

/* Work index cards */
.work-card--v2 .work-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-solid);
}

.work-card--v2 .work-card__thumb img {
  object-position: top center;
}

.work-card__site {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.work-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   27. v3 — registered-company badge, footer contact, video review
   -------------------------------------------------------------------------- */

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #22c55e 35%, var(--border));
  background: color-mix(in srgb, #22c55e 8%, transparent);
  line-height: 1.3;
}

.legal-badge svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  color: #22c55e;
}

.legal-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}

.legal-badge span span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer .legal-badge {
  margin-top: 0.25rem;
}

.footer__cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer__contact {
  grid-column: 1 / -1;
}

.footer__contact address {
  font-style: normal;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.55;
}

.footer__links .tel-label {
  display: inline-block;
  min-width: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

@media (min-width: 40rem) {
  .footer__cols {
    grid-template-columns: 0.7fr 0.7fr 1.3fr;
  }

  .footer__contact {
    grid-column: auto;
  }
}

.hero__trust .verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__trust .verified svg {
  width: 1rem;
  height: 1rem;
  color: #22c55e;
}

/* Video review */
.review-split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 52rem) {
  .review-split {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.video-review {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.75rem;
  border: 1px solid var(--border-strong);
  background: #05060a;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.video-review video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-review__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
  color: #fff;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease-out);
}

.video-review__play span {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease-spring);
}

.video-review__play:hover span {
  transform: scale(1.08);
}

.video-review__play svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.2rem;
}

.video-review__play em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  text-align: center;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
}

.video-review.is-playing .video-review__play {
  opacity: 0;
  pointer-events: none;
}

.review-split__copy {
  display: grid;
  gap: var(--space-md);
}

.review-split__copy .quotes {
  grid-template-columns: 1fr;
}

@media (min-width: 72rem) {
  .review-split__copy .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact page company card */
.company-card {
  display: grid;
  gap: 0.75rem;
  padding: var(--space-md);
}

.company-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* v6: footer layout, 4 even link columns */
.footer h4 { margin-top: 0; }
.footer__links li { line-height: 1.4; }
.footer__cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  align-items: start;
}
.footer__contact { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--space-xl); }
  .footer__cols { grid-template-columns: 0.8fr 1.1fr 0.7fr 1.4fr; }
  .footer__contact { grid-column: auto; }
}

/* ==========================================================
   v7 QA fixes (Oct 2026)
   - --text-faint raised to meet WCAG AA 4.5:1 on both themes
   - footer column titles are now h2.footer__h (heading order);
     styled exactly like the old .footer h4
   ========================================================== */
:root { --text-faint: #7d82a0; }
[data-theme="light"] { --text-faint: #646a86; }
.footer h2.footer__h {
  font-size: var(--step--1);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* ==========================================================================
   v12 professional layer (Oct 2026), appended to the v7 component styles.
   Rollback: point pages back at assets/css/styles.css.
   ========================================================================== */


:root, [data-theme="light"] {
  /* Brand */
  --navy-950: #081226;
  --navy-900: #0c1a36;
  --navy-800: #13264a;
  --navy-700: #1d3561;
  --blue-600: #2453ef;
  --blue-500: #3a68ff;
  --blue-400: #6d8fff;
  --blue-50: #eef3ff;
  --gold: #f5b100;
  --green: #12a150;
  --green-soft: #e7f7ee;

  /* Surfaces (light) */
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --line: #e3e8f0;
  --line-strong: #cfd7e4;

  /* Text */
  --text: #0e1a2f;
  --text-2: #364257;
  --muted: #5c677a;
  --on-dark: #ffffff;
  --on-dark-2: #c3cde0;
  --on-dark-muted: #95a3bd;

  --primary: var(--blue-600);
  --primary-hover: #1b43cf;
  --on-primary: #ffffff;
  --focus: #2453ef;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --p-step--1: 0.875rem;
  --p-step-0: 1rem;
  --p-step-1: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --p-step-2: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --p-step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --p-step-4: clamp(2rem, 1.5rem + 2vw, 3rem);
  --p-step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --p-space-2xs: 0.25rem;
  --p-space-xs: 0.5rem;
  --p-space-sm: 0.75rem;
  --p-space-md: 1rem;
  --p-space-lg: 1.5rem;
  --p-space-xl: 2.5rem;
  --p-space-2xl: 4rem;
  --p-space-3xl: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --header-h: 76px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 26, 54, 0.06), 0 1px 1px rgba(12, 26, 54, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(12, 26, 54, 0.18), 0 2px 6px rgba(12, 26, 54, 0.05);
  --shadow-lg: 0 30px 70px -24px rgba(8, 18, 38, 0.45);
  --shadow-blue: 0 10px 24px -10px rgba(36, 83, 239, 0.65);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #08111f;
  --bg-soft: #0d1829;
  --surface: #111e33;
  --line: #1f2d45;
  --line-strong: #2b3c59;
  --text: #eef2f9;
  --text-2: #c6cfde;
  --muted: #94a1b8;
  --blue-50: #13234a;
  --green-soft: #0f2a1d;
  --primary: var(--blue-500);
  --primary-hover: #5279ff;
  --focus: #7e9bff;
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--p-step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-600); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section--tight { padding-block: var(--p-space-2xl); }

.skip-link { position: absolute; left: 50%; top: 0; z-index: 300; padding: 0.75rem 1.25rem; background: var(--primary); color: #fff; font-weight: 700; border-radius: 0 0 var(--r-sm) var(--r-sm); transform: translate(-50%, -150%); transition: transform var(--dur) var(--ease); }
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- Type helpers ---------- */

.eyebrow { display: inline-flex; align-items: center; gap: var(--p-space-xs); width: fit-content; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: var(--blue-50); color: var(--primary); font-size: var(--p-step--1); font-weight: 700; letter-spacing: 0; }
.h2 { font-size: var(--p-step-4); color: var(--text); }
.lead { font-size: var(--p-step-1); line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.gradient-text { color: var(--blue-400); font-style: normal; }

.section-head { display: grid; gap: var(--p-space-md); max-width: 720px; margin-bottom: var(--p-space-2xl); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--p-space-lg); }
.section-head--row > div { display: grid; gap: var(--p-space-md); max-width: 720px; }

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

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: 0.975rem; line-height: 1; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--p-space-sm); }

.badge { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--on-dark-2); font-size: var(--p-step--1); font-weight: 600; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd47a; box-shadow: 0 0 0 4px rgba(47, 212, 122, 0.18); flex-shrink: 0; }

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

.header { position: sticky; top: 0; z-index: 120; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: var(--p-space-lg); height: var(--header-h); }
.header__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(var(--progress, 0)); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo__mark { width: 38px; height: 38px; }
.logo__text { display: grid; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); }
.logo__text small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 0.15rem; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.95rem; color: var(--text-2); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.nav__link:hover { color: var(--text); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: var(--p-space-sm); }
.header__phone { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font-weight: 700; font-size: 0.95rem; color: var(--text); white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--primary); }
.header__phone:hover { color: var(--primary); }
.header__cta { min-height: 44px; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text); background: var(--surface); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; }
.burger__box { position: relative; width: 18px; height: 12px; }
.burger__box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 5px; }
.burger__box span:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); background: var(--bg); visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__list { display: grid; align-content: start; }
.drawer__link { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.drawer__link span { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.drawer__link[aria-current="page"] { color: var(--primary); }
.drawer__foot { display: grid; gap: var(--p-space-md); }
.drawer__foot .btn { width: 100%; }
.drawer__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-weight: 600; color: var(--text-2); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) clamp(3.5rem, 2rem + 4vw, 5.5rem); background:
  radial-gradient(60% 70% at 85% 10%, rgba(58, 104, 255, 0.35), transparent 60%),
  radial-gradient(40% 50% at 0% 100%, rgba(36, 83, 239, 0.22), transparent 70%),
  var(--navy-950); color: var(--on-dark); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__copy { display: grid; gap: var(--p-space-lg); justify-items: start; }
.hero__title { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--on-dark); max-width: 17ch; }
.hero__title em { display: block; }
.hero .lead { color: var(--on-dark-2); }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--on-dark); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.hero .btn--primary { background: var(--blue-500); }
.hero .btn--primary:hover { background: var(--blue-600); }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: var(--p-space-md); border-top: 1px solid rgba(255, 255, 255, 0.12); width: 100%; font-size: var(--p-step--1); color: var(--on-dark-2); }
.hero__trust b { color: var(--on-dark); font-weight: 800; }
.hero__trust-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.18); }
.hero__trust > span { white-space: nowrap; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.verified { display: inline-flex; align-items: center; gap: 0.4rem; }
.verified svg { width: 18px; height: 18px; color: #2fd47a; }

.showcase { position: relative; min-height: 470px; }
.showcase__glow { display: none; }
.showcase .frame { position: absolute; width: 88%; box-shadow: var(--shadow-lg); transition: transform 400ms var(--ease); }
.showcase__a { top: 0; right: 0; z-index: 2; }
.showcase__b { left: 0; bottom: 0; width: 60% !important; z-index: 3; }
.showcase .frame:hover { transform: translateY(-4px); }
.showcase__chip { position: absolute; z-index: 4; top: -14px; left: 14%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border-radius: var(--r-pill); background: #fff; color: var(--navy-900); font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow-md); }
.float-card { position: absolute; z-index: 4; display: grid; gap: 0.15rem; padding: 0.85rem 1.05rem; border-radius: var(--r-md); background: #fff; color: var(--navy-900); box-shadow: var(--shadow-lg); font-size: 0.82rem; font-weight: 600; }
.float-card b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy-900); }
.float-card > span:not(.stars) { color: #4b5870; }
.float-card--a { right: -12px; bottom: 26%; }
.float-card--b { right: 8%; bottom: -18px; display: flex; align-items: center; gap: 0.6rem; }
.float-card--b b { font-size: 1rem; }

/* ---------- Browser frame for client screenshots ---------- */

.frame { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-md); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; background: #eef1f6; border-bottom: 1px solid #dfe4ec; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e2; }
.frame__bar i:nth-child(1) { background: #ff6159; }
.frame__bar i:nth-child(2) { background: #ffbd2e; }
.frame__bar i:nth-child(3) { background: #28c941; }
.frame__url { flex: 1; max-width: 260px; margin-inline: auto; padding: 0.15rem 0.75rem; border-radius: var(--r-pill); background: #fff; color: #5c677a; font-size: 0.7rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .frame__bar { background: #18263f; border-bottom-color: #22324f; }
[data-theme="dark"] .frame__url { background: #0d1829; color: #94a1b8; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ---------- Client strip ---------- */

.clients { border-bottom: 1px solid var(--line); background: var(--bg); }
.clients__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--p-space-md) var(--p-space-xl); padding-block: var(--p-space-lg); }
.clients__label { font-size: var(--p-step--1); font-weight: 700; color: var(--muted); white-space: nowrap; }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--p-space-sm) clamp(1.25rem, 3vw, 2.75rem); flex: 1; justify-content: space-between; }
.clients__list a { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: #7a8599; transition: color var(--dur) var(--ease); }
.clients__list a:hover { color: var(--text); }

/* ---------- Work ---------- */

.feature-list { display: grid; gap: var(--p-space-2xl); }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; padding: clamp(1.25rem, 0.5rem + 2vw, 2.25rem); border-radius: var(--r-xl); background: var(--bg-soft); border: 1px solid var(--line); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { display: block; transition: transform 400ms var(--ease); }
.feature__media:hover { transform: translateY(-4px); }
.feature__media .frame { border-color: var(--line); }
.feature__body { display: grid; gap: var(--p-space-md); justify-items: start; }
.feature__kicker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; color: var(--text-2); }
.feature__body h3 { font-size: var(--p-step-3); }
.feature__body p { color: var(--text-2); }
.feature__list { display: grid; gap: 0.55rem; }
.feature__list li { position: relative; padding-left: 1.75rem; color: var(--text-2); font-size: 0.97rem; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232453ef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--p-space-sm) var(--p-space-lg); padding-top: var(--p-space-xs); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 800; color: var(--primary); }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.muted-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--muted); }
.muted-link:hover { color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-space-lg); margin-top: var(--p-space-xl) !important; }
.work-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.work-card[hidden] { display: none; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 500ms var(--ease); }
.work-card:hover .work-card__thumb img { transform: scale(1.03); }
.work-card__cat { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(8, 18, 38, 0.78); color: #fff; font-size: 0.74rem; font-weight: 700; }
.work-card__body { display: grid; gap: 0.45rem; align-content: start; padding: var(--p-space-lg); }
.work-card__site { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.work-card__body h3 { font-size: var(--p-step-2); }
.work-card__body p { color: var(--text-2); font-size: 0.95rem; }
.work-card__more { margin-top: 0.35rem; font-weight: 800; font-size: 0.95rem; color: var(--text); }

/* ---------- Services & insights cards ---------- */

.grid-auto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-space-lg); }
.grid-auto:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto:has(> :nth-child(4):last-child) .service { padding: var(--p-space-lg); }
.grid-auto:has(> :nth-child(4):last-child) .service h3 { font-size: 1.15rem; }
.card { position: relative; }
.service { display: grid; gap: var(--p-space-sm); align-content: start; padding: var(--p-space-xl) var(--p-space-lg); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--p-space-xs); border-radius: var(--r-md); background: var(--blue-50); color: var(--primary); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: var(--p-step-2); }
.service p { color: var(--text-2); font-size: 0.97rem; }
.service a.stretched { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-top: auto; font-weight: 800; font-size: 0.95rem; color: var(--primary); white-space: nowrap; }
.service a.stretched svg { flex-shrink: 0; }
.service a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.section .muted[data-reveal] { margin-top: var(--p-space-xl); padding: var(--p-space-lg) var(--p-space-xl); border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); }
.muted a { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
.muted a:hover { text-decoration-color: currentColor; }
.section-cta { display: flex; flex-wrap: wrap; gap: var(--p-space-sm); margin-top: var(--p-space-xl); }

/* ---------- Numbers band ---------- */

.section--tight .numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: var(--r-xl); background: radial-gradient(70% 120% at 100% 0%, rgba(58, 104, 255, 0.35), transparent 60%), var(--navy-900); color: var(--on-dark); }
.numbers > div { display: grid; gap: 0.25rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-right: 1px solid rgba(255, 255, 255, 0.1); }
.numbers > div:last-child { border-right: 0; }
.numbers b { font-size: var(--p-step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--on-dark-2); font-weight: 600; font-size: 0.95rem; }

/* ---------- Process ---------- */

.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--p-space-lg); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: var(--p-space-sm); align-content: start; padding: var(--p-space-xl) var(--p-space-lg) var(--p-space-lg); border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--p-space-xs); border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; box-shadow: var(--shadow-blue); }
.step__num { font-size: 0.8rem; font-weight: 800; color: var(--primary); }
.step h3 { font-size: var(--p-step-2); }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Why us ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: var(--p-space-md); justify-items: start; }
.chat-cta { display: grid; gap: var(--p-space-md); width: 100%; margin-top: var(--p-space-md); padding: var(--p-space-lg); border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-dark); }
.chat-cta__who { display: flex; align-items: center; gap: 0.85rem; }
.chat-cta__who strong { display: block; font-weight: 800; }
.chat-cta__who span { font-size: 0.9rem; color: var(--on-dark-2); }
.chat-cta__avatar { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--blue-500); color: #fff !important; font-weight: 800; font-size: 1.1rem !important; }
.chat-cta__avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2fd47a; border: 2px solid var(--navy-900); }
.chat-cta .btn { justify-self: start; background: var(--blue-500); }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--p-space-md); }
.reason { display: grid; gap: var(--p-space-xs); align-content: start; padding: var(--p-space-lg); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.reason__icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.25rem; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.reason__icon svg { width: 18px; height: 18px; }
.reason h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.reason p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Reviews ---------- */

.review-split { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.video-review { position: relative; width: 100%; max-width: 20rem; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-xl); background: var(--navy-950); box-shadow: var(--shadow-lg); }
.video-review video { width: 100%; height: 100%; object-fit: cover; }
.video-review__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(8, 18, 38, 0.8), transparent 55%); color: #fff; transition: opacity var(--dur) var(--ease); }
.video-review__play > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 10px rgba(58, 104, 255, 0.25); transition: transform var(--dur) var(--ease); }
.video-review__play:hover > span { transform: scale(1.06); }
.video-review__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-review__play em { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; font-style: normal; font-weight: 700; font-size: 0.9rem; }
.video-review.is-playing .video-review__play { opacity: 0; pointer-events: none; }
.review-split__copy { display: grid; gap: var(--p-space-lg); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--p-space-lg); }
.quote { display: grid; gap: var(--p-space-md); align-content: start; padding: var(--p-space-xl) var(--p-space-lg); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote blockquote { font-size: 1.2rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.015em; }
.person { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.person__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--blue-50); color: var(--primary); font-weight: 800; }
.person__name { font-weight: 800; line-height: 1.3; }
.person__role { font-size: 0.88rem; color: var(--muted); }
.legal-badge { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--r-md); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); line-height: 1.35; }
.legal-badge svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--green); }
.legal-badge strong { display: block; font-weight: 800; font-size: 0.95rem; }
.legal-badge span span { display: block; font-size: 0.82rem; color: var(--text-2); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: var(--p-space-sm); }
.faq__item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq__item:has(.faq__btn[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-md); }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--p-space-md); width: 100%; min-height: 64px; padding: 1rem 1.4rem; text-align: left; font-weight: 700; font-size: 1.05rem; }
.faq__btn svg { width: 22px; height: 22px; flex-shrink: 0; padding: 3px; border-radius: 50%; background: var(--blue-50); color: var(--primary); transition: transform var(--dur) var(--ease); }
.faq__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; min-height: 0; }
.faq__panel p { padding: 0 1.4rem 1.25rem; color: var(--text-2); }

/* ---------- Closing band ---------- */

.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--p-space-md); justify-items: center; text-align: center; padding: clamp(3rem, 2rem + 4vw, 5rem) var(--p-space-lg); border-radius: var(--r-xl); background: radial-gradient(60% 90% at 50% 0%, rgba(58, 104, 255, 0.45), transparent 70%), var(--navy-950); color: var(--on-dark); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent); }
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band .h2 { color: #fff; font-size: var(--p-step-5); }
.cta-band .lead { color: var(--on-dark-2); }
.cta-band .btn-row { justify-content: center; margin-top: var(--p-space-sm); }
.cta-band .btn--primary { background: var(--blue-500); }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.cta-band .btn--ghost:hover { border-color: #fff; }
.cta-band__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin-top: var(--p-space-sm); font-weight: 700; font-size: 0.95rem; }
.cta-band__contacts a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; color: var(--on-dark-2); }
.cta-band__contacts a:hover { color: #fff; }
.cta-band__contacts svg { width: 18px; height: 18px; color: var(--blue-400); }

/* ---------- Footer ---------- */

.footer { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-block: var(--p-space-2xl) var(--p-space-lg); background: var(--navy-950); color: var(--on-dark-2); }
.footer .logo__text { color: #fff; }
.footer .logo__text small { color: var(--on-dark-muted); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: var(--p-space-2xl); padding-bottom: var(--p-space-xl); }
.footer__brand { display: grid; gap: var(--p-space-md); align-content: start; justify-items: start; }
.footer__brand > p:not(.legal-badge) { font-size: 0.95rem; max-width: 34ch; }
.footer .legal-badge { background: rgba(47, 212, 122, 0.08); border-color: rgba(47, 212, 122, 0.25); color: #fff; }
.footer .legal-badge svg { color: #2fd47a; }
.footer .legal-badge span span { color: var(--on-dark-muted); }
.footer__cols { display: grid; grid-template-columns: 0.8fr 1.2fr 0.8fr 1.4fr; gap: var(--p-space-lg); }
.footer h2.footer__h { margin-bottom: 0.9rem; font-size: 0.95rem; font-weight: 800; letter-spacing: 0; color: #fff; }
.footer__links { display: grid; gap: 0.35rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.95rem; color: var(--on-dark-2); transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__links a[aria-current="page"] { color: #fff; }
.footer__links address { font-style: normal; font-size: 0.92rem; line-height: 1.55; color: var(--on-dark-muted); }
.tel-label { display: inline-block; min-width: 2.1rem; font-size: 0.75rem; font-weight: 800; color: var(--blue-400); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem var(--p-space-lg); padding-top: var(--p-space-lg); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; color: var(--on-dark-muted); }
.footer__bottom a { color: var(--on-dark-2); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--dur) var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 46px; padding: 0 0.5rem; font-size: 0.92rem; box-shadow: none; }


/* ---------- Responsive ---------- */

@media (max-width: 75rem) {
  .header__phone { display: none; }
  .nav__link { padding: 0 0.6rem; }
}

@media (max-width: 64rem) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .mobile-bar { display: grid; }
  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 18ch; }
  .showcase { min-height: 0; aspect-ratio: 16 / 12; max-width: 640px; width: 100%; }
  .grid-auto, .work-grid, .grid-auto:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__sticky { position: static; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature__media { order: 0; }
  .review-split { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .review-split__copy { width: 100%; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .section--tight .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div:nth-child(2) { border-right: 0; }
  .numbers > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .hero__trust-sep { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .grid-auto, .work-grid, .process, .reasons, .grid-auto:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); }
  .float-card--a { right: 0; bottom: 30%; }
  .float-card--b { right: 4%; bottom: -10px; }
  .showcase__chip { display: none; }
  .clients__inner { flex-direction: column; align-items: flex-start; gap: var(--p-space-sm); }
  .clients__list { justify-content: flex-start; gap: 0.35rem 1.25rem; }
  .clients__list a { font-size: 1.02rem; }
  .showcase { aspect-ratio: 16 / 13; }
  .float-card--a { display: none; }
  .section .muted[data-reveal] { padding: var(--p-space-lg); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .header, .drawer, .mobile-bar { display: none !important; }
}

/* ---------- Compatibility with the v7 component layer ---------- */
:root, [data-theme="light"] {
  --brand-violet: var(--primary); --brand-cyan: var(--primary); --brand-pink: #d93a45; --brand-lime: var(--green);
  --gradient-brand: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  --gradient-warm: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  --gradient-text: none;
  --bg-elevated: var(--surface); --surface-hover: var(--bg-soft); --surface-solid: var(--surface);
  --border: var(--line); --border-strong: var(--line-strong);
  --text-muted: var(--text-2); --text-faint: var(--muted); --text-on-accent: #ffffff;
  --ring: 0 0 0 3px rgba(36, 83, 239, 0.28); --glow: none;
  --font-display: var(--font); --font-body: var(--font); --font-mono: var(--font);
  --header-h: 76px;
}
[data-theme="dark"] {
  --surface-hover: var(--bg-soft); --surface-solid: var(--surface); --border: var(--line); --border-strong: var(--line-strong);
  --text-muted: var(--text-2); --text-faint: var(--muted); --brand-pink: #ff6b74;
}
.aurora { display: none; }
.card::after { display: none; }
.card { backdrop-filter: none; }
.eyebrow::before { content: none; }
.eyebrow { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.gradient-text, [data-theme="light"] .gradient-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.hero--v2 .hero__title { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem); letter-spacing: -0.035em; }
.hero--v2 .hero__title em { display: block; }
.showcase__a, .showcase__b { animation: none; }
.badge__dot { animation: none; }
.cta-band::before { inset: 0; animation: none; }
.step::before { position: static; inset: auto; height: 44px; transform: none; transition: none; }
.step:hover::before { transform: none; }
.video-review__play > span { border: 0; backdrop-filter: none; }
.video-review { border: 0; }
.logo__text small { text-transform: none; letter-spacing: 0; font-family: var(--font); margin-top: 0; }
.footer h2.footer__h { text-transform: none; font-family: var(--font); }
.footer__links .tel-label { font-family: var(--font); color: var(--blue-400); }
.clients__label, .work-card__cat, .work-card__site, .work-card__more, .tag, .step__num, .frame__url, .drawer__link span, .insight-card__kicker, .article__meta, .facts dt, .case__stats span, .work-card__stat span, .work-card__meta { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.header { position: sticky; inset: auto; top: 0; padding-top: 0; }
.header__progress { opacity: 1; }
.page-hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); padding-bottom: var(--p-space-lg); }
.page-hero h1 { font-size: var(--p-step-5); letter-spacing: -0.035em; max-width: 22ch; }
.case-hero { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.case-hero h1 { font-size: var(--p-step-5); }
.article { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 64rem) { .article { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); } }
.notfound { padding-top: 0; min-height: 70vh; }
.notfound__code { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary); }
.crumbs { font-weight: 600; }
.crumbs a { color: var(--primary); }
.prose a { color: var(--primary); font-weight: 600; }
.prose blockquote { border-left-color: var(--primary); background: var(--bg-soft); font-weight: 600; }
.article__toc { background: var(--bg-soft); border-radius: var(--r-lg); }
.article__toc li::before { color: var(--primary); font-weight: 800; }
.insight-card__kicker { color: var(--primary); font-weight: 800; font-size: 0.8rem; }
.facts { border-radius: var(--r-lg); background: var(--surface); }
.facts dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.case-hint { color: var(--muted); }
.next-case { border-radius: var(--r-xl); background: var(--bg-soft); }
.checklist svg { color: var(--green); }
.form { border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); backdrop-filter: none; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select { border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.form__status { border-radius: var(--r-md); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: var(--green-soft); }
.channel { border-radius: var(--r-lg); background: var(--surface); }
.channel__icon { background: var(--blue-50); color: var(--primary); border-radius: var(--r-md); }
.company-card { border-radius: var(--r-lg); }
.filter { font-weight: 700; }
.filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.stack-pill { font-weight: 600; background: var(--surface); }
.stat__value { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary); }
.work-empty { border-radius: var(--r-lg); }
@media (max-width: 63.99rem) { .page-hero, .case-hero, .article { padding-top: var(--p-space-xl); } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; translate: none; } }
.nav__list { border: 0; background: transparent; padding: 0; backdrop-filter: none; }
.footer__brand > p:not(.legal-badge) { color: var(--on-dark-2); }
.footer .legal-badge strong { color: #ffffff; }
.footer { border-top: 0; }
.channel > span:not([class]) { display: grid; gap: 0.1rem; min-width: 0; }
.channel__label { font-weight: 600; color: var(--muted); }
.frame__scroll img{aspect-ratio:auto;height:auto;object-fit:fill}
.burger__box span:nth-child(2){translate:none}
.burger__box span:nth-child(3){bottom:auto}
.burger[aria-expanded="true"] .burger__box span:nth-child(1){top:0}
.burger[aria-expanded="true"] .burger__box span:nth-child(3){top:10px}

/* Fix: CTA band ghost button hover (legacy .btn--ghost:hover set a light --surface-hover bg under white text) */
.cta-band .btn--ghost:hover,
.cta-band .btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.cta-band .btn--ghost:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }