/* ============================================================
   BKS — Influence, engineered.
   Design system & global styles
   ============================================================ */

/* ---------- Fonts are loaded in <head> (Space Grotesk + Inter) ---------- */

:root {
  /* Color tokens */
  --bg: #05070d;
  --bg-2: #090d17;
  --surface: #0c1220;
  --surface-2: #101a2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f5fa;
  --ink-2: #c6cfdd;
  --muted: #98a5bb;
  --faint: #6b7893;

  --blue: #3e6ff6;
  --blue-bright: #5b8cff;
  --violet: #8b5cf6;
  --cyan: #38bdf8;
  --success: #34d399;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--violet) 100%);
  --grad-text: linear-gradient(95deg, #6f9aff 0%, #a78bfa 55%, #67d5fd 100%);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;

  --header-h: 76px;

  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(94, 130, 255, 0.25), 0 18px 60px -18px rgba(62, 111, 246, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(62, 111, 246, 0.4);
  color: #fff;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1b2740;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #27375c;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  letter-spacing: -0.03em;
}

.display-2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

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

.section {
  padding-block: clamp(76px, 10vw, 130px);
  position: relative;
}

.section--tint {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

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

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head .lead {
  margin-top: 18px;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head--split > div {
  max-width: 640px;
}

/* Soft radial glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow--blue {
  background: rgba(62, 111, 246, 0.16);
}

.glow--violet {
  background: rgba(139, 92, 246, 0.13);
}

.glow--cyan {
  background: rgba(56, 189, 248, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(62, 111, 246, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(62, 111, 246, 0.7);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(122, 156, 255, 0.6);
  background: rgba(62, 111, 246, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.86rem;
}

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--blue-bright);
  transition: gap 0.25s ease, color 0.2s ease;
}

.arrow-link:hover {
  gap: 13px;
  color: #8fb0ff;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 64px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — replace this wordmark with the final logo image when ready */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  margin-left: 5px;
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
  position: relative;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  z-index: 130;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 7, 13, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--gutter) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.mobile-menu.is-open nav a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu nav a:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu nav a[aria-current="page"] {
  color: var(--blue-bright);
}

.mobile-menu .mobile-menu-cta {
  margin-top: 34px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(12, 18, 32, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 30px;
}

.hero-badge .pulse {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  display: grid;
  place-items: center;
}

.hero-badge .pulse::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  max-width: 830px;
  margin-bottom: 26px;
}

.hero .lead {
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(52px, 7vw, 84px);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 940px;
}

.hero-stats > div {
  background: rgba(9, 13, 23, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 26px 28px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num .unit {
  font-size: 0.62em;
  color: var(--blue-bright);
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint::after {
  content: "";
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue-bright);
  animation: scrollhint 2s infinite;
}

@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding-block: 40px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  user-select: none;
}

.marquee + .marquee {
  margin-top: 18px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
  animation: marquee 36s linear infinite;
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- Narrative / problem statement ---------- */
.narrative {
  max-width: 900px;
}

.narrative p {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.42;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: -0.01em;
}

.narrative p .hl {
  color: var(--ink);
}

.narrative .grad-text {
  font-weight: 600;
}

/* ---------- Cards grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 154, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 130, 255, 0.35);
  box-shadow: var(--shadow-card);
  background: var(--surface-2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(62, 111, 246, 0.12);
  border: 1px solid rgba(94, 130, 255, 0.25);
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-bright);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.card .card-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.card .arrow-link {
  margin-top: 22px;
}

/* Numbered card variant (process on services page etc.) */
.card .card-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-bright);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

/* ---------- Feature split (why us) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-visual {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 20% 10%, rgba(62, 111, 246, 0.18), transparent 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(139, 92, 246, 0.16), transparent 55%),
    var(--surface);
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.split-visual .orbit-figure {
  width: 100%;
  height: auto;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 34px;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 0;
}

.why-item .why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(62, 111, 246, 0.1);
  border: 1px solid rgba(94, 130, 255, 0.22);
}

.why-item .why-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-bright);
}

.why-item h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 130, 255, 0.35);
  background: var(--surface-2);
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.93rem;
  color: var(--muted);
}

.process-step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 130, 255, 0.5), transparent);
}

.process-step:last-child::after {
  display: none;
}

/* ---------- Case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 130, 255, 0.4);
  box-shadow: var(--shadow-card);
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.case-media .case-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

.case-media--a { background: radial-gradient(130% 140% at 15% 15%, rgba(62, 111, 246, 0.5), transparent 60%), radial-gradient(120% 130% at 90% 85%, rgba(139, 92, 246, 0.45), transparent 60%), #0b1020; }
.case-media--b { background: radial-gradient(130% 140% at 80% 10%, rgba(56, 189, 248, 0.42), transparent 60%), radial-gradient(130% 130% at 10% 90%, rgba(62, 111, 246, 0.45), transparent 60%), #0b1020; }
.case-media--c { background: radial-gradient(130% 140% at 20% 85%, rgba(139, 92, 246, 0.5), transparent 62%), radial-gradient(120% 120% at 85% 15%, rgba(52, 211, 153, 0.3), transparent 55%), #0b1020; }
.case-media--d { background: radial-gradient(140% 130% at 85% 80%, rgba(245, 184, 75, 0.32), transparent 60%), radial-gradient(120% 130% at 15% 15%, rgba(62, 111, 246, 0.42), transparent 58%), #0b1020; }
.case-media--e { background: radial-gradient(130% 140% at 50% 0%, rgba(236, 72, 153, 0.35), transparent 60%), radial-gradient(130% 120% at 50% 100%, rgba(139, 92, 246, 0.42), transparent 60%), #0b1020; }
.case-media--f { background: radial-gradient(140% 130% at 10% 50%, rgba(52, 211, 153, 0.35), transparent 58%), radial-gradient(120% 140% at 90% 40%, rgba(56, 189, 248, 0.4), transparent 60%), #0b1020; }

.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
}

.case-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.case-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.case-body > p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.case-metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case-metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.case-metrics span {
  font-size: 0.74rem;
  color: var(--faint);
  line-height: 1.35;
  display: block;
  margin-top: 3px;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-btn.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.case-card.is-hidden {
  display: none;
}

/* ---------- Testimonials ---------- */
.testimonial-wrap {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.testimonial {
  flex: 0 0 100%;
  text-align: center;
  padding: 10px 24px;
}

.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 26px;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 46ch;
  margin: 0 auto 28px;
}

.testimonial cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial cite b {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
}

.testimonial cite span {
  font-size: 0.86rem;
  color: var(--faint);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 38px;
}

.t-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.t-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
}

.t-arrow:hover {
  border-color: var(--blue-bright);
  background: rgba(62, 111, 246, 0.1);
}

.t-dots {
  display: flex;
  gap: 9px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.t-dot.is-active {
  background: var(--blue-bright);
  transform: scale(1.3);
}

/* ---------- Insights ---------- */
.insight-card {
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.insight-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(62, 111, 246, 0.1);
  border: 1px solid rgba(94, 130, 255, 0.25);
}

.insight-date {
  font-size: 0.8rem;
  color: var(--faint);
}

.insight-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.insight-card p {
  font-size: 0.94rem;
}

.insight-card .read-hint {
  margin-top: auto;
  padding-top: 22px;
}

/* Modal reader */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 48px);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-panel .insight-tag {
  margin-bottom: 18px;
  display: inline-block;
}

.modal-panel h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}

.modal-meta {
  font-size: 0.84rem;
  color: var(--faint);
  margin-bottom: 24px;
}

.modal-body p {
  margin-bottom: 16px;
  color: var(--ink-2);
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(94, 130, 255, 0.3);
  background: radial-gradient(130% 160% at 12% 0%, rgba(62, 111, 246, 0.28), transparent 55%),
    radial-gradient(130% 160% at 88% 100%, rgba(139, 92, 246, 0.26), transparent 55%),
    var(--surface);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.3;
  pointer-events: none;
}

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

.cta-band h2 {
  margin-bottom: 18px;
}

.cta-band .lead {
  margin: 0 auto 36px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: clamp(56px, 7vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
  margin-top: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-2);
  transition: fill 0.25s ease;
}

.footer-social a:hover {
  border-color: var(--blue-bright);
  background: rgba(62, 111, 246, 0.12);
  transform: translateY(-3px);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-bottom .made {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-bottom .made .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 9vw, 110px));
  padding-bottom: clamp(50px, 7vw, 90px);
  overflow: hidden;
}

.page-hero .glow--blue {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -120px;
}

.page-hero .glow--violet {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -160px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
}

.page-hero .lead {
  max-width: 640px;
}

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: 0;
}

.service-block.is-flipped .service-text {
  order: 2;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.service-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.service-text > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.deliverables li::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(62, 111, 246, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 1px solid rgba(94, 130, 255, 0.3);
}

.service-visual {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 130% at 20% 10%, rgba(62, 111, 246, 0.14), transparent 55%),
    radial-gradient(120% 130% at 85% 90%, rgba(139, 92, 246, 0.12), transparent 55%);
}

.service-visual > * {
  position: relative;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-stat {
  background: rgba(9, 13, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.mini-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.mini-stat span {
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- About page ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--blue), var(--violet), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31.5px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--blue-bright);
  box-shadow: 0 0 0 5px rgba(62, 111, 246, 0.14);
}

.timeline-item .t-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 58ch;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.is-open {
  border-color: rgba(94, 130, 255, 0.35);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.35s ease, background 0.3s ease;
}

.faq-q .faq-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--ink);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(62, 111, 246, 0.15);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 68ch;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.contact-info-card {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-line:hover {
  border-color: rgba(94, 130, 255, 0.35);
  transform: translateX(4px);
}

.contact-line .c-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(62, 111, 246, 0.1);
  border: 1px solid rgba(94, 130, 255, 0.22);
}

.contact-line .c-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--blue-bright);
}

.contact-line b {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.97rem;
}

.contact-line span {
  font-size: 0.86rem;
  color: var(--faint);
}

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 44px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.form-field label .req {
  color: var(--blue-bright);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: rgba(5, 8, 14, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.form-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='%2398a5bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-field select option {
  background: var(--surface-2);
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(62, 111, 246, 0.16);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #f0648c;
}

.field-error {
  font-size: 0.8rem;
  color: #f0648c;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.service-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.choice:hover span {
  color: var(--ink);
}

.choice input:checked + span {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.form-footer .privacy-note {
  font-size: 0.8rem;
  color: var(--faint);
  max-width: 40ch;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(30px, 6vw, 60px) 20px;
}

.form-success.is-visible {
  display: block;
}

.form-success .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: grid;
  place-items: center;
}

.form-success .success-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--success);
}

.form-success h3 {
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted);
  max-width: 44ch;
  margin-inline: auto;
}

/* ---------- Reveal animations ----------
   Hidden state only applies when JS is available (html.js),
   so content stays visible with JS disabled. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger helper: children get incremental delays via JS */

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(9, 13, 23, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.to-top svg {
  width: 17px;
  height: 17px;
  stroke: var(--ink);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--blue-bright);
  background: rgba(62, 111, 246, 0.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-step::after {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .split,
  .service-block,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-block.is-flipped .service-text {
    order: 0;
  }

  .contact-info-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .grid-3,
  .grid-2,
  .case-grid,
  .process-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats > div {
    padding: 20px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding-block: 64px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  #hero-canvas {
    display: none;
  }
}
