/* ============================================================
   MINI-LABS — Design System v2
   Bubblehouse spec: pure white / pure black / lime CTA only.
   Grotesque sans typography. Framer-grade motion.
   ============================================================ */

:root {
  /* Light (default) — Bubblehouse monochrome */
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2e2e2c;
  --muted: #6d6d68;
  --border: #e8e8e4;
  --lime: #c9f94e;
  --lime-hover: #b8ef35;
  --on-lime: #0a0a0a;
  --shadow: 0 24px 70px -30px rgba(10, 10, 10, .22);
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #131311;
  --surface: #161614;
  --ink: #ffffff;
  --ink-soft: #d9d9d4;
  --muted: #9a9a92;
  --border: #262622;
  --lime: #c9f94e;
  --lime-hover: #d8ff6a;
  --on-lime: #0a0a0a;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, .75);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--on-lime); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography — tight grotesque, Bubblehouse-style ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h1 { font-size: clamp(2.7rem, 5.8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
}

.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 20px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons — lime is THE color ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 0 0 rgba(201, 249, 78, 0);
}
.btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px -12px rgba(160, 220, 30, .55);
}
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.btn-lg { padding: 18px 38px; font-size: 1rem; }

/* Arrow micro-interaction on buttons */
.btn::after { content: "→"; display: inline-block; transition: transform .3s var(--ease-spring); }
.btn:hover::after { transform: translateX(5px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 11px 20px;
  font-size: .84rem;
  letter-spacing: .01em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--lime); }
[data-theme="dark"] .announce { background: #161614; color: #fff; border-bottom: 1px solid var(--border); }

/* ---------- Header — hides on scroll down, returns on scroll up ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: transform .45s var(--ease-spring), background .4s ease;
}
.header.hidden { transform: translateY(-110%); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: invert(1);
  transition: transform .35s var(--ease-spring);
}
[data-theme="dark"] .logo-img { filter: none; }
.logo:hover .logo-img { transform: scale(1.04); }

.logo-swap { position: relative; display: block; height: 26px; width: 132px; }
.logo-swap .logo-img {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity .3s ease, transform .35s var(--ease-spring);
}
.logo-img--outline { opacity: 0; }
.logo-img--filled { opacity: 1; }
.logo:hover .logo-img--outline { opacity: 1; }
.logo:hover .logo-img--filled { opacity: 0; }
.logo:hover .logo-swap .logo-img { transform: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-spring);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 12px 24px; font-size: .88rem; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform .35s var(--ease-spring), border-color .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); border-color: var(--ink); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { padding: 100px 0 0; overflow: hidden; }
.hero-v2-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-v2-inner .eyebrow { margin-bottom: 22px; }

.hero-rating { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: block;
}
.hero-avatars img:first-child { margin-left: 0; }
.hero-rating-text { text-align: left; }
.hero-rating-stars { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 650; color: var(--ink); }
.hero-rating-stars .star { color: var(--lime); -webkit-text-stroke: 1px var(--ink); }
.hero-rating-sub { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }

.hero h1 { margin: 0 0 24px; }
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.hero .lede { margin: 0 auto 36px; max-width: 560px; }
.hero-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Hero entrance choreography */
.hero .eyebrow, .hero .hero-rating, .hero h1, .hero .lede, .hero .hero-ctas {
  opacity: 0;
  transform: translateY(34px);
  animation: rise .9s var(--ease-spring) forwards;
}
.hero .hero-rating { animation-delay: .08s; }
.hero h1 { animation-delay: .16s; }
.hero .lede { animation-delay: .24s; }
.hero .hero-ctas { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Fanned photo gallery */
.hero-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 56px;
  padding: 0 4px 30px;
}
.hero-fan figure {
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 -16px;
  opacity: 0;
  animation: fan-in .8s ease forwards;
}
.hero-fan img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-spring); }
.hero-fan figure:hover img { transform: scale(1.08); }
@keyframes fan-in { to { opacity: 1; } }

.hero-fan figure:nth-child(1) { transform: rotate(-14deg) translateY(30px); width: 140px; animation-delay: .05s; }
.hero-fan figure:nth-child(2) { transform: rotate(-8deg) translateY(10px); width: 158px; animation-delay: .12s; }
.hero-fan figure:nth-child(3) { transform: rotate(-3deg); width: 174px; animation-delay: .19s; }
.hero-fan figure:nth-child(4) { transform: none; width: 196px; z-index: 2; animation-delay: .26s; }
.hero-fan figure:nth-child(5) { transform: rotate(3deg); width: 174px; animation-delay: .33s; }
.hero-fan figure:nth-child(6) { transform: rotate(8deg) translateY(10px); width: 158px; animation-delay: .4s; }
.hero-fan figure:nth-child(7) { transform: rotate(14deg) translateY(30px); width: 140px; animation-delay: .47s; }

/* Parallax layers (JS sets --py) */
.parallax { transform: translateY(calc(var(--py, 0) * 1px)); will-change: transform; }

/* ---------- Logo marquee ---------- */
.marquee-section { padding: 46px 0 60px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-label { text-align: center; margin-bottom: 30px; }
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s ease;
}
.marquee-item:hover { color: var(--ink); }
@keyframes scroll { to { transform: translateX(-50%); } }

.marquee-caption { text-align: center; font-size: .92rem; color: var(--muted); margin-bottom: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }
.marquee-section + .marquee-section { border-top: none; }
.logo-marquee .marquee-track { gap: 52px; align-items: center; }
.marquee-logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  flex-shrink: 0;
}
[data-theme="dark"] .marquee-logo[src*="goldsmiths"] { filter: invert(1); }

/* ---------- Case study carousel — Bubblehouse photo cards ---------- */
.cs-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 28px;
  cursor: grab;
  scrollbar-width: none;
}
.cs-carousel::-webkit-scrollbar { display: none; }
.cs-carousel:active { cursor: grabbing; }

.cs-card {
  position: relative;
  min-width: 330px;
  max-width: 330px;
  aspect-ratio: 330 / 462;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  background: #0d0d0d;
  transform: translateZ(0);
}
.cs-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.52) saturate(.92);
  transition: filter .6s ease, transform .8s var(--ease-spring);
}
.cs-card:hover .cs-bg, .cs-card.active .cs-bg { filter: brightness(.78) saturate(1); transform: scale(1.05); }
.cs-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.02) 40%, rgba(0,0,0,.5) 100%);
}
.cs-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity .45s ease, transform .5s var(--ease-spring);
}
.cs-tag {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 650;
  margin-top: 5px;
  transition: opacity .45s ease;
}
/* Stats hidden until hover / tap */
.cs-stats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 30px;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .5s ease;
}
.cs-card:hover .cs-stats, .cs-card.active .cs-stats { opacity: 1; }
.cs-card:hover .cs-brand, .cs-card.active .cs-brand,
.cs-card:hover .cs-tag, .cs-card.active .cs-tag { opacity: 0; }
.cs-stat { color: #fff; transform: translateY(14px); transition: transform .55s var(--ease-spring); }
.cs-card:hover .cs-stat, .cs-card.active .cs-stat { transform: none; }
.cs-card:hover .cs-stat:nth-child(2), .cs-card.active .cs-stat:nth-child(2) { transition-delay: .06s; }
.cs-card:hover .cs-stat:nth-child(3), .cs-card.active .cs-stat:nth-child(3) { transition-delay: .12s; }
.cs-stat-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cs-stat-label {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
}
.cs-see {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 650;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.7);
  padding-bottom: 3px;
  margin-top: 8px;
}
.cs-link { font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.cs-link::after { content: "→"; transition: transform .3s var(--ease-spring); }
.service-card:hover .cs-link::after { transform: translateX(5px); }

/* Carousel arrows */
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease, transform .3s var(--ease-spring), border-color .25s ease;
}
.carousel-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.06); }

/* ---------- Process — stacked cards (Maxlab layout, Mini-Labs neon/mono colors) ---------- */
.proc-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}
.proc-heading { max-width: 460px; margin-bottom: 0; }
.proc-nav { margin-top: 36px; }

.proc-carousel-wrap { min-width: 0; margin: -16px -16px -16px 0; }
.proc-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 16px 20px;
  cursor: grab;
  scrollbar-width: none;
}
.proc-carousel::-webkit-scrollbar { display: none; }
.proc-carousel:active { cursor: grabbing; }

.proc-card {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  padding: 32px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.proc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 14px 32px -10px rgba(201, 249, 78, .5);
  margin-bottom: 56px;
  flex-shrink: 0;
}
.proc-icon svg { width: 28px; height: 28px; }
.proc-content { flex-grow: 1; margin-bottom: 48px; }
.proc-content h3 {
  position: relative;
  font-size: 1.1rem;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.proc-content h3::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.proc-content p { color: var(--muted); font-size: .89rem; }
.proc-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.proc-dur {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.proc-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 600;
}
.proc-num .cur { font-size: 2.5rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.proc-num .tot { font-size: 1.15rem; color: var(--muted); opacity: .55; }

@media (max-width: 980px) {
  .proc-split { grid-template-columns: 1fr; gap: 8px; }
  .proc-heading { max-width: none; margin-bottom: 8px; }
  .proc-carousel-wrap { margin: -16px; }
}
@media (max-width: 600px) {
  .proc-card { min-width: calc(100vw - 48px); max-width: calc(100vw - 48px); padding: 22px; border-radius: 24px; }
  .proc-icon { width: 56px; height: 56px; margin-bottom: 36px; }
  .proc-icon svg { width: 24px; height: 24px; }
  .proc-content { margin-bottom: 36px; }
  .proc-num .cur { font-size: 2rem; }
}

/* ---------- Certifications / credentials grid ---------- */
.cred-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; margin-right: 8px; vertical-align: middle; }

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

.credential-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-spring), border-color .3s ease, box-shadow .3s ease;
}
.credential-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: var(--shadow); }

.credential-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.credential-num { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); opacity: .55; font-variant-numeric: tabular-nums; }
.credential-badge {
  font-size: .62rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px; line-height: 1.6;
}

.credential-logo-wrap { height: 44px; display: flex; align-items: center; margin-bottom: 18px; }
.credential-logo-wrap img { height: 28px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.credential-logo-wrap img.logo-xl { height: 34px; }

.credential-divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 16px; }
.credential-name { font-size: .92rem; font-weight: 650; color: var(--ink); line-height: 1.45; margin-bottom: 8px; flex: 1; }
.credential-category { font-size: .78rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 980px) {
  .credentials-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .credential-card { padding: 18px 16px 16px; border-radius: 16px; }
  .credential-name { font-size: .84rem; }
  .credential-logo-wrap img { height: 22px; }
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  transition: transform .45s var(--ease-spring), box-shadow .45s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--ink); }
.service-num {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.service-card .cs-link { margin-top: 22px; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.flip > .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.4;
  transition: transform .9s var(--ease-spring);
}
.split-media:hover img { transform: scale(1.045); }
.split h2 { margin-bottom: 20px; }
.split .lede { margin-bottom: 28px; font-size: 1.02rem; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
  background: var(--lime);
  width: 19px; height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  top: 3px;
}
.split .btn { margin-top: 30px; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform .45s var(--ease-spring), box-shadow .45s ease, border-color .3s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
}
.process-step .num::after {
  content: "";
  display: block;
  width: 34px; height: 4px;
  border-radius: 2px;
  background: var(--lime);
  margin-top: 10px;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .89rem; }
.process-step .dur { display: inline-block; margin-top: 16px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 700; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-spring), box-shadow .45s ease;
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
  flex: 1;
}
.quote-card blockquote::before { content: "“ "; color: var(--ink); font-weight: 700; }
.quote-who { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-who strong { display: block; font-size: .92rem; letter-spacing: -0.01em; }
.quote-who span { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 28px 44px 28px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--muted); }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  transition: transform .4s var(--ease-spring);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-spring);
  color: var(--muted);
  font-size: .96rem;
}
.faq-a p { padding-bottom: 28px; max-width: 700px; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(52px, 7vw, 92px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-band { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.cta-band::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 249, 78, .22), transparent 65%);
  top: -240px; right: -140px;
  pointer-events: none;
}
.cta-band h2 { max-width: 680px; margin: 0 auto 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 36px; opacity: .75; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-info-item { margin-bottom: 28px; }
.contact-info-item .label { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.contact-info-item a, .contact-info-item p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contact-info-item a { position: relative; }
.contact-info-item a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--lime); }
.contact-form { display: grid; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 17px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(201, 249, 78, .35);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 76px 0 36px; background: var(--bg-alt); position: relative; overflow: hidden; }
.footer .container { position: relative; z-index: 1; }
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1100px, 80vw);
  height: auto;
  transform: translate(-50%, 32%);
  opacity: 0;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 1.2s var(--ease-spring), transform 1.2s var(--ease-spring);
}
.footer-watermark.visible { opacity: .07; transform: translate(-50%, 8%); }
[data-theme="dark"] .footer-watermark { filter: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
  margin-bottom: 56px;
}
.footer-brand p { color: var(--muted); font-size: .89rem; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 650; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: .91rem; color: var(--ink-soft); transition: color .2s ease, padding-left .25s var(--ease-spring); }
.footer-col a:hover { color: var(--ink); padding-left: 5px; }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: var(--muted);
}
.footer-legal a { margin-left: 22px; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 92px 0 68px; }
.page-hero .eyebrow, .page-hero h1, .page-hero .lede, .page-hero .breadcrumb {
  opacity: 0;
  transform: translateY(30px);
  animation: rise .85s var(--ease-spring) forwards;
}
.page-hero h1 { animation-delay: .08s; }
.page-hero .lede { animation-delay: .16s; }
.breadcrumb { font-size: .83rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Service detail blocks ---------- */
.service-block { padding: 92px 0; border-top: 1px solid var(--border); }
.service-block .chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.chip {
  font-size: .79rem;
  font-weight: 550;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease-spring);
}
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.service-outcome {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 4px solid var(--lime);
  background: var(--bg-alt);
  border-radius: 0 14px 14px 0;
  font-size: .92rem;
}
[data-theme="dark"] .service-outcome { background: var(--surface); }
.service-outcome strong { color: var(--ink); }

/* ---------- Scroll reveal + stagger ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s var(--ease-spring), transform .85s var(--ease-spring);
  transition-delay: var(--stagger, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--lime);
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > .split-media { order: 0; }
  .services-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-fan figure:nth-child(1), .hero-fan figure:nth-child(7) { display: none; }
  .hero-fan figure:nth-child(2) { width: 130px; }
  .hero-fan figure:nth-child(3) { width: 148px; }
  .hero-fan figure:nth-child(4) { width: 168px; }
  .hero-fan figure:nth-child(5) { width: 148px; }
  .hero-fan figure:nth-child(6) { width: 130px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .services-grid, .quote-grid, .process-grid { grid-template-columns: 1fr; }
  .cs-card { min-width: 285px; }
  .hero-fan figure:nth-child(2), .hero-fan figure:nth-child(6) { display: none; }
  .hero-fan figure:nth-child(3) { width: 118px; }
  .hero-fan figure:nth-child(4) { width: 138px; }
  .hero-fan figure:nth-child(5) { width: 118px; }
  .hero-rating { flex-direction: column; gap: 8px; }
  .hero-rating-text { text-align: center; }
}

/* ============================================================
   v3 COMPONENTS — slideshow, services stack, verticals
   ============================================================ */

/* ---------- Ghost / outline buttons (Bubblehouse "DISCOVER") ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-spring), border-color .3s ease;
}
.on-dark .btn-outline, .btn-outline.light { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline:hover { background: #fff; color: #0a0a0a; border-color: #fff; transform: translateY(-2px); }
[data-theme="light"] .section:not(.on-dark) .btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Dark full-bleed sections ---------- */
.on-dark {
  background: #0a0a0a;
  color: #fff;
}
.on-dark .eyebrow { color: rgba(255,255,255,.6); }
.on-dark .lede { color: rgba(255,255,255,.62); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* ---------- Statistic band ---------- */
.stat-band { overflow: hidden; }
.stat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.stat-slider { max-width: 520px; }
.stat-quote { font-size: 1.15rem; line-height: 1.65; color: rgba(255,255,255,.7); min-height: 4.6em; }
.stat-progress-row { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.stat-progress-bar { flex: 1; height: 2px; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; overflow: visible; }
.stat-progress-bar .fill { position: absolute; inset: 0; width: 0%; background: var(--lime); box-shadow: 0 0 12px rgba(201,249,78,.55); }
.stat-progress-bar .fill.animating { animation: dotfill var(--stat-slide-dur, 4.5s) linear forwards; }
.stat-nav .carousel-btn { width: 40px; height: 40px; border-color: rgba(255,255,255,.22); background: transparent; color: #fff; }
.stat-nav .carousel-btn:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

.stat-slides { position: relative; min-height: 230px; margin-top: 40px; }
.stat-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s var(--ease-spring), visibility 0s .5s;
}
.stat-slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s var(--ease-spring), visibility 0s; }
.stat-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.stat-value { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-value .n { font-size: 8.5rem; color: #fff; line-height: 1; }
.stat-value .suffix { font-size: 5.2rem; color: var(--lime); line-height: 1; margin-left: 6px; }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-slider { max-width: none; }
  .stat-quote { min-height: 0; }
  .stat-slides { min-height: 160px; margin-top: 32px; }
  .stat-value .n { font-size: 5.5rem; }
  .stat-value .suffix { font-size: 3.4rem; }
}
@media (max-width: 600px) {
  .stat-slides { min-height: 120px; }
  .stat-value .n { font-size: 3.6rem; }
  .stat-value .suffix { font-size: 2.2rem; }
  .stat-progress-row { gap: 16px; }
}

/* ---------- Flagship slideshow ---------- */
.flagship { position: relative; overflow: hidden; }
.flagship .slides { position: relative; display: grid; }
.flagship .slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease-spring), visibility 0s .7s;
  pointer-events: none;
}
.flagship .slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease .1s, transform .7s var(--ease-spring) .1s, visibility 0s;
  pointer-events: auto;
}
.flagship .slide-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.flagship .slide-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.5; }
.flagship .check-list li { color: rgba(255,255,255,.82); }
.flagship .check-list li::before { color: #0a0a0a; }
.flagship .slide-count {
  font-size: .72rem;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  font-weight: 650;
  margin-left: 12px;
}
.flagship .btn-primary { margin-top: 30px; }

/* dots + progress */
.slide-dots { display: flex; gap: 10px; margin-top: 52px; justify-content: center; }
.slide-dot {
  width: 44px; height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,.22);
  position: relative;
  overflow: hidden;
  transition: background .3s ease;
}
.slide-dot .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--lime);
}
.slide-dot.active .fill { animation: dotfill var(--slide-dur, 6.5s) linear forwards; }
@keyframes dotfill { from { width: 0%; } to { width: 100%; } }

/* ---------- Services stack (Bubblehouse accordion) ---------- */
.svc-stack { position: relative; }
.svc-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6,6,6,.88), rgba(6,6,6,.92)), var(--stack-bg, none);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.svc-stack .container { position: relative; }
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.stack-list { display: flex; flex-direction: column; }
.stack-item { border-bottom: 1px solid rgba(255,255,255,.14); padding: 6px 0; }
.stack-head {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  color: rgba(255,255,255,.34);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color .4s ease;
  display: block;
}
.stack-item:hover .stack-head { color: rgba(255,255,255,.6); }
.stack-item.active .stack-head { color: #fff; }
.stack-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-spring), opacity .4s ease;
}
.stack-item.active .stack-eyebrow { max-height: 24px; opacity: 1; }
.stack-item.active { padding: 14px 0 22px; }
.stack-item.active .stack-head {
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 16px 20px;
}
.stack-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s var(--ease-spring), opacity .5s ease;
}
.stack-item.active .stack-body { max-height: 260px; opacity: 1; }
.stack-body p {
  color: rgba(255,255,255,.66);
  font-size: .95rem;
  line-height: 1.6;
  margin: 16px 4px 22px;
  max-width: 420px;
}

/* ---------- Demo panels (right side mock UI) ---------- */
.stack-panels { position: sticky; top: 120px; display: grid; }
.demo-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(.98);
  transition: opacity .55s ease, transform .6s var(--ease-spring), visibility 0s .55s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-panel.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .55s ease .12s, transform .6s var(--ease-spring) .12s, visibility 0s;
}
.demo-card {
  background: #fff;
  color: #0a0a0a;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.65);
}
.demo-card.compact { padding: 16px 20px; }

/* ---------- Dashboard-style header (replaces photo) ---------- */
.demo-dash {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  margin: -22px -24px 18px;
  background: #0a0a0a;
  padding: 14px 18px 12px;
}
.demo-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.demo-dash-dots { display: flex; gap: 5px; }
.demo-dash-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
.demo-dash-label {
  display: inline-flex;
  align-items: center;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.demo-dash-chart { display: block; width: 100%; height: auto; }
.demo-dash-chart text { font-family: var(--font-body); }
.demo-dash-chart .accent { fill: var(--lime); }
.demo-dash-chart .accent-line { stroke: var(--lime); }
.demo-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 6px;
  animation: demoPulse 1.6s ease-in-out infinite;
}
@keyframes demoPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.demo-icon { width: 15px; height: 15px; flex: none; }
.demo-big {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.demo-big small { font-size: .62rem; letter-spacing: .14em; font-weight: 650; color: #8a8a84; margin-left: 8px; text-transform: uppercase; }
.demo-bar {
  height: 6px;
  border-radius: 3px;
  background: #ececea;
  margin: 14px 0 6px;
  overflow: hidden;
}
.demo-bar .fill { display: block; height: 100%; border-radius: 3px; background: #0a0a0a; width: 0%; transition: width 1.1s var(--ease-spring); }
.demo-bar .fill.lime { background: var(--lime); }
.demo-note { font-size: .74rem; color: #8a8a84; }
.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f4f4f2;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .82rem;
  font-weight: 550;
  margin-top: 9px;
}
.demo-row span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.demo-row .val { font-weight: 700; white-space: nowrap; }
.demo-row .val.lime-chip { background: var(--lime); border-radius: 6px; padding: 2px 8px; font-size: .74rem; }
.demo-check { display: flex; align-items: center; gap: 10px; font-size: .8rem; padding: 9px 0; border-top: 1px solid #ececea; }
.demo-check:first-of-type { border-top: 0; }
.demo-check .tick {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #0a0a0a;
  color: var(--lime);
  font-size: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.demo-chat { display: flex; flex-direction: column; gap: 10px; }
.demo-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .82rem;
  line-height: 1.45;
  background: #f4f4f2;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.demo-bubble.me {
  background: #0a0a0a;
  color: #fff;
  align-self: flex-end;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.demo-bubble.me b { color: var(--lime); }
.demo-serp { display: flex; align-items: center; gap: 10px; background: #f4f4f2; border-radius: 999px; padding: 10px 16px; font-size: .82rem; color: #6d6d68; margin-bottom: 12px; }
.demo-rank { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: .82rem; margin-top: 8px; background: #f4f4f2; }
.demo-rank.you { background: var(--lime); font-weight: 650; }
.demo-rank .pos { font-weight: 700; margin-right: 10px; }

/* ---------- Demo panel motion: staggered reveal on activate ---------- */
.demo-panel .demo-dash-chart,
.demo-panel .demo-row,
.demo-panel .demo-check,
.demo-panel .demo-rank,
.demo-panel .demo-serp,
.demo-panel .demo-chat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s var(--ease-spring);
}
.demo-panel.in .demo-dash-chart,
.demo-panel.in .demo-row,
.demo-panel.in .demo-check,
.demo-panel.in .demo-rank,
.demo-panel.in .demo-serp,
.demo-panel.in .demo-chat {
  opacity: 1;
  transform: none;
}

/* ---------- Verticals expander (Discover verticals) ---------- */
.vert-row {
  display: flex;
  gap: 14px;
  min-height: 480px;
}
.vert-tile {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex .85s var(--ease-spring);
  transform: translateZ(0);
  background: #0d0d0d;
}
.vert-tile.active { flex: 3.4; }
.vert-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transition: filter .6s ease, transform .9s var(--ease-spring);
}
.vert-tile.active img { filter: brightness(.62); transform: scale(1.03); }
.vert-tile:hover img { filter: brightness(.8); }
.vert-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 28px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease .15s, transform .6s var(--ease-spring) .15s;
  pointer-events: none;
}
.vert-tile.active .vert-caption { opacity: 1; transform: none; pointer-events: auto; }
.vert-caption h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-bottom: 6px; color: #fff; }
.vert-caption p { font-size: .86rem; color: rgba(255,255,255,.78); margin-bottom: 18px; max-width: 380px; }
.vert-label {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%) rotate(0deg);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .35s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.vert-tile.active .vert-label { opacity: 0; }

/* ---------- Case-studies page ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-row .chip { cursor: pointer; }
.filter-row .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-grid .cs-card { min-width: 0; max-width: none; width: 100%; }
.cs-grid .cs-card.hide { display: none; }

.study { padding: 88px 0; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.study-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.study-stats .stat-big { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.study .eyebrow { color: var(--muted); }
.study-quote {
  margin-top: 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--lime);
  background: var(--bg-alt);
  border-radius: 0 14px 14px 0;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
}
[data-theme="dark"] .study-quote { background: var(--surface); }

.mini-study {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
  flex-wrap: wrap;
  transition: padding-left .3s var(--ease-spring);
}
.mini-study:hover { padding-left: 12px; }
.mini-study .b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.mini-study .s { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-top: 3px; }
.mini-study .r { font-size: .95rem; color: var(--ink-soft); max-width: 430px; }

/* ---------- About page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 56px 0; }
.about-photo img { width: 100%; object-fit: cover; max-height: 480px; }

/* ---------- Contact page ---------- */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 80px; }
.option-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform .45s var(--ease-spring), box-shadow .45s ease, border-color .3s ease;
}
.option-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.option-card.featured { border-color: var(--ink); position: relative; }
.option-card .tag {
  display: inline-block;
  background: var(--lime);
  color: #0a0a0a;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.option-card h3 { margin-bottom: 10px; }
.option-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.option-card .check-list { margin-bottom: 26px; }
.option-card .check-list li { font-size: .92rem; }

@media (max-width: 980px) {
  .cs-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-options { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .mini-study .r { max-width: none; }
}

/* ============================================================
   v4 COMPONENTS — stack backgrounds, trust, blog, articles
   ============================================================ */

/* ---------- Services stack: per-service crossfading backgrounds ---------- */
.svc-stack { background: #060606; }
.svc-stack::before { display: none; }
.stack-bgs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stack-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}
.stack-bg.active { opacity: .18; transform: scale(1); }
.stack-bgs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,.5), rgba(6,6,6,.25) 40%, rgba(6,6,6,.72));
}

/* ---------- Trust & credibility section ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.trust-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .3s var(--ease-spring), border-color .25s ease;
}
.trust-badge:hover { transform: translateY(-2px); border-color: var(--ink); }
.trust-badge::before { content: "✓"; font-size: .62rem; font-weight: 800; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); color: #0a0a0a; display: inline-flex; align-items: center; justify-content: center; }
.trust-rating {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.trust-rating .stars { color: var(--ink); font-size: 1.15rem; letter-spacing: 2px; }
.trust-rating .txt { font-size: .9rem; color: var(--muted); }
.trust-rating .txt b { color: var(--ink); }
.uni-marquee .marquee-item { font-size: 1.05rem; font-weight: 550; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease-spring), box-shadow .45s ease, border-color .3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--ink); }
.blog-card-img { overflow: hidden; aspect-ratio: 16/9.5; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-spring); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-cat { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.blog-card h3 { font-size: 1.22rem; line-height: 1.25; margin-bottom: 10px; }
.blog-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: .78rem; color: var(--muted); }
.blog-meta .read { font-weight: 600; color: var(--ink); }
.blog-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.blog-card.featured .blog-card-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.blog-card.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.blog-card.featured .blog-card-body { padding: 40px; justify-content: center; }

/* ---------- Article / blog post ---------- */
.article-hero { padding: 80px 0 46px; max-width: 800px; margin: 0 auto; }
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 24px; }
.article-meta b { color: var(--ink); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto 60px; }
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.04rem; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { margin: 52px 0 18px; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); }
.prose h3 { margin: 36px 0 14px; font-size: 1.2rem; color: var(--ink); }
.prose p { margin-bottom: 20px; }
.prose ul { margin: 0 0 22px 2px; }
.prose ul li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 3px; color: #0a0a0a; background: var(--lime); width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--lime); }
.prose blockquote {
  border-left: 4px solid var(--lime);
  background: var(--bg-alt);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
}
[data-theme="dark"] .prose blockquote { background: var(--surface); }
.prose .inline-cta {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin: 40px 0;
  font-style: normal;
  background: var(--surface);
}
.prose .inline-cta h3 { margin: 0 0 8px; }
.prose .inline-cta p { margin-bottom: 18px; font-size: .95rem; color: var(--muted); }

/* ---------- Word-stagger heading reveal ---------- */
.h-word { display: inline-block; overflow: hidden; vertical-align: top; }
.h-word > span { display: inline-block; }

/* ---------- Related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive for v3 ---------- */
@media (max-width: 980px) {
  .flagship .slide { grid-template-columns: 1fr; gap: 40px; }
  .stack-grid { grid-template-columns: 1fr; gap: 48px; }
  .stack-panels { position: static; }
  /* Demo panels are moved inline into their stack item on mobile (see main.js) */
  .stack-panels:empty { display: none; }
  .stack-item.active .stack-body { max-height: 900px; }
  .stack-body .demo-panel { grid-area: auto; margin: 6px 0 20px; }
  .vert-row { flex-direction: column; min-height: 0; }
  .vert-tile { min-height: 86px; flex: none; }
  .vert-tile.active { min-height: 380px; flex: none; }
  .vert-label { left: 24px; bottom: 50%; transform: translate(0, 50%); }
}
@media (max-width: 600px) {
  .cs-card { min-width: 280px; max-width: 280px; }
  .slide-dots { margin-top: 36px; }
  .stack-head { font-size: 1.35rem; }
  .demo-big { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero .hero-rating, .hero h1, .hero .lede, .hero .hero-ctas,
  .hero-fan figure, .page-hero .eyebrow, .page-hero h1, .page-hero .lede,
  .page-hero .breadcrumb, .reveal { opacity: 1; transform: none; }
}
