/* Sebenza Online — Lynx dark design system */

/* ─── Shimmer @property ─────────────────────────────────────────────────── */
@property --sb-shimmer-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes sebenza-btn-shimmer-lap {
  0%   { --sb-shimmer-angle: 0deg;   opacity: 0; }
  5%   { opacity: 1; }
  62%  { --sb-shimmer-angle: 233deg; opacity: 1; }
  90%  { --sb-shimmer-angle: 360deg; opacity: 0; }
  100% { --sb-shimmer-angle: 360deg; opacity: 0; }
}

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --color-bg:          #0a0a0a;
  --color-surface:     #111114;
  --color-surface-2:   #18181c;
  --color-border:      rgba(255, 255, 255, 0.10);
  --color-border-soft: rgba(255, 255, 255, 0.06);

  --color-text:   #ffffff;
  --color-text-2: rgba(255, 255, 255, 0.60);
  --color-text-3: rgba(255, 255, 255, 0.40);

  /* Brand accent palette */
  --brand-indigo: #7500F9;
  --brand-orange: #F18F01;
  --brand-green:  #00FF48;

  /* Electric indigo ramp */
  --sb-300: #b985ff;
  --sb-400: #9b4dff;
  --sb-500: var(--brand-indigo);
  --sb-600: #5b00c2;

  /* Layout */
  --max-width:     1600px;
  --header-height: 68px;
  --radius:        0.5rem;
  --radius-lg:     0.875rem;
  --radius-full:   9999px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Fixed mobile menu button clearance (height + offset + gap) */
  --mobile-menu-clearance: calc(3.25rem + max(1rem, env(safe-area-inset-bottom, 0px)) + 1rem);

  --font:        "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 16px rgba(0, 0, 0, 0.32);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sb-400); text-decoration: none; }
a:hover { color: var(--sb-300); }

main { flex: 1; }

/* ─── Aurora mesh — 7 blurred ellipses, bottom-left ────────────────────── */

@keyframes aurora-drift-a {
  0%   { transform: translate(-38%, 52%) scale(1);    }
  35%  { transform: translate(-35%, 49%) scale(1.05); }
  70%  { transform: translate(-41%, 54%) scale(0.98); }
  100% { transform: translate(-38%, 52%) scale(1);    }
}
@keyframes aurora-drift-b {
  0%   { transform: translate(-4%, 62%) scale(1);    }
  45%  { transform: translate(1%, 58%)  scale(1.06); }
  100% { transform: translate(-4%, 62%) scale(1);    }
}
@keyframes aurora-drift-c {
  0%   { transform: translate(-48%, 12%) scale(1);    }
  50%  { transform: translate(-44%, 9%)  scale(1.04); }
  100% { transform: translate(-48%, 12%) scale(1);    }
}
@keyframes aurora-drift-d {
  0%   { transform: translate(-28%, 48%) scale(1);    }
  40%  { transform: translate(-24%, 44%) scale(1.07); }
  100% { transform: translate(-28%, 48%) scale(1);    }
}
@keyframes aurora-drift-e {
  0%   { transform: translate(-36%, 12%) scale(1);    }
  35%  { transform: translate(-32%, 15%) scale(1.05); }
  70%  { transform: translate(-39%, 10%) scale(0.97); }
  100% { transform: translate(-36%, 12%) scale(1);    }
}
@keyframes aurora-drift-f {
  0%   { transform: translate(-2%, 56%) scale(1);    }
  55%  { transform: translate(2%, 52%)  scale(1.05); }
  100% { transform: translate(-2%, 56%) scale(1);    }
}
@keyframes aurora-drift-g {
  0%   { transform: translate(-34%, 48%) scale(1);    }
  40%  { transform: translate(-30%, 44%) scale(1.08); }
  80%  { transform: translate(-37%, 51%) scale(0.96); }
  100% { transform: translate(-34%, 48%) scale(1);    }
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora__layer {
  position: absolute;
  transform-origin: 0% 100%;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .aurora__layer { will-change: transform; }
}

.aurora__l1 {
  bottom: 0; left: 0;
  width: clamp(560px, 62vw, 960px); height: clamp(300px, 38vh, 580px);
  transform: translate(-38%, 52%);
  background: radial-gradient(ellipse at center,
    rgba(30, 64, 255, 1.00) 0%, rgba(30, 64, 255, 0.90) 26%,
    rgba(37, 99, 235, 0.52) 42%, rgba(37, 99, 235, 0) 58%);
  filter: blur(38px);
  animation: aurora-drift-a 21s ease-in-out infinite;
}
.aurora__l2 {
  bottom: 0; left: clamp(100px, 11vw, 210px);
  width: clamp(560px, 60vw, 940px); height: clamp(110px, 12vh, 170px);
  transform: translate(-4%, 62%);
  background: radial-gradient(ellipse at center,
    rgba(0, 163, 255, 0.86) 0%, rgba(0, 118, 255, 0.70) 28%,
    rgba(0, 118, 255, 0.34) 42%, rgba(0, 118, 255, 0) 56%);
  filter: blur(34px);
  animation: aurora-drift-b 25s ease-in-out infinite;
  animation-delay: -6s;
}
.aurora__l3 {
  bottom: clamp(0px, 1vh, 24px); left: 0;
  width: clamp(150px, 16vw, 250px); height: clamp(460px, 58vh, 780px);
  transform: translate(-48%, 12%);
  background: radial-gradient(ellipse at center,
    rgba(0, 118, 255, 0.96) 0%, rgba(37, 99, 235, 0.82) 30%,
    rgba(59, 130, 246, 0.44) 48%, rgba(59, 130, 246, 0) 64%);
  filter: blur(34px);
  animation: aurora-drift-c 28s ease-in-out infinite;
  animation-delay: -11s;
}
.aurora__l4 {
  bottom: 0; left: 0;
  width: clamp(360px, 42vw, 680px); height: clamp(170px, 24vh, 360px);
  transform: translate(-28%, 48%);
  background: radial-gradient(ellipse at center,
    rgba(255, 38, 170, 0.98) 0%, rgba(236, 72, 153, 0.88) 28%,
    rgba(217, 70, 239, 0.46) 40%, rgba(217, 70, 239, 0) 54%);
  filter: blur(28px);
  animation: aurora-drift-d 23s ease-in-out infinite;
  animation-delay: -4s;
}
.aurora__l5 {
  bottom: clamp(0px, 1vh, 28px); left: 0;
  width: clamp(150px, 18vw, 270px); height: clamp(220px, 30vh, 420px);
  transform: translate(-36%, 12%);
  background: radial-gradient(ellipse at center,
    rgba(244, 63, 94, 0.92) 0%, rgba(236, 72, 153, 0.78) 30%,
    rgba(236, 72, 153, 0.34) 42%, rgba(236, 72, 153, 0) 54%);
  filter: blur(26px);
  animation: aurora-drift-e 27s ease-in-out infinite;
  animation-delay: -8s;
}
.aurora__l6 {
  bottom: 0; left: clamp(16px, 3vw, 72px);
  width: clamp(480px, 54vw, 860px); height: clamp(130px, 17vh, 250px);
  transform: translate(-2%, 56%);
  background: radial-gradient(ellipse at center,
    rgba(0, 183, 255, 0.88) 0%, rgba(37, 99, 235, 0.72) 34%,
    rgba(124, 58, 237, 0.34) 48%, rgba(124, 58, 237, 0) 62%);
  filter: blur(32px);
  animation: aurora-drift-f 22s ease-in-out infinite;
  animation-delay: -14s;
}
.aurora__l7 {
  bottom: 0; left: 0;
  width: clamp(220px, 26vw, 390px); height: clamp(220px, 26vw, 390px);
  transform: translate(-34%, 48%);
  background: radial-gradient(circle at center,
    rgba(255, 0, 153, 1.00) 0%, rgba(236, 72, 153, 0.94) 30%,
    rgba(168, 85, 247, 0.48) 40%, rgba(168, 85, 247, 0) 52%);
  filter: blur(24px);
  animation: aurora-drift-g 19s ease-in-out infinite;
  animation-delay: -2s;
}

@media (prefers-reduced-motion: reduce) {
  .aurora__layer { animation: none; }
}

/* Shooting stars (all pages) */
.aurora__stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.aurora__shooting-star {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0% 50%;
  transform: rotate(var(--star-angle, -32deg)) translateX(0) scaleX(0.35);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(185, 133, 255, 0.35) 52%,
    rgba(255, 255, 255, 0.92) 100%
  );
  box-shadow:
    0 0 12px 1px rgba(155, 77, 255, 0.32),
    0 0 28px 4px rgba(155, 77, 255, 0.1);
  animation: aurora-shooting-star var(--star-duration, 1200ms) cubic-bezier(0.16, 0.64, 0.22, 1) forwards;
}

@keyframes aurora-shooting-star {
  0% {
    opacity: 0;
    transform: rotate(var(--star-angle, -32deg)) translateX(0) scaleX(0.35);
  }
  10% { opacity: 0; }
  32% { opacity: var(--star-peak, 0.75); }
  100% {
    opacity: 0;
    transform: rotate(var(--star-angle, -32deg))
      translateX(var(--star-distance, 420px))
      scaleX(1);
  }
}

[data-theme="light"] .aurora__shooting-star {
  background: linear-gradient(
    90deg,
    rgba(117, 0, 249, 0) 0%,
    rgba(117, 0, 249, 0.32) 44%,
    rgba(91, 0, 194, 0.72) 100%
  );
  box-shadow: 0 0 8px 1px rgba(117, 0, 249, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .aurora__shooting-star {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ─── Site header — glass morphism ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible; /* allow notch to drop below header edge */
  isolation: isolate;
}

/* Frosted layer — one consistent fade from top to bottom */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 44px);
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 10, 0.52) 0%,
    rgba(6, 6, 10, 0) 100%
  );
  backdrop-filter: blur(28px) saturate(1.8) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.06);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

/*
  iPhone notch — shared mobile + desktop (identical SVG wings & pill styling)
*/
.site-logo-notch {
  --notch-bg: #ffffff;
  --notch-curve: 18px;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--notch-bg);
  text-decoration: none;
  padding: 0.35rem 1.25rem 0.55rem;
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.50),
    0 2px 8px  rgba(0, 0, 0, 0.30);
  transition: box-shadow 0.2s ease;
}

.site-logo-notch:hover {
  text-decoration: none;
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.60),
    0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-logo-notch__wing {
  position: absolute;
  top: 0;
  width: var(--notch-curve);
  height: var(--notch-curve);
  pointer-events: none;
  color: var(--notch-bg);
  display: block;
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform-origin: center;
  -webkit-transform-origin: center;
}

.site-logo-notch__wing--left  { right: 100%; }
.site-logo-notch__wing--right { left: 100%; }

.site-logo-notch__img {
  height: 32px;
  width: auto;
  display: block;
}

[data-theme="light"] .site-logo-notch {
  --notch-bg: #111114;
}

[data-theme="light"] .site-logo-notch__img {
  filter: brightness(0) invert(1);
}

/* ── Mobile header layout ── */
@media (max-width: 767px) {
  .site-header {
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
}

.site-header__mobile {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: visible;
}

/* Mobile logo notch — mirrors the desktop iPhone-style notch */
.site-logo-notch-wrap--mobile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}

.site-header__mobile .site-logo-notch {
  pointer-events: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.site-header__mobile .site-logo-notch__img {
  position: relative;
  z-index: 1;
}

/* ── Legacy text logo (unused, kept for reference) */
.site-logo-text {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
}
.site-logo-text:hover { color: #fff; text-decoration: none; }
.site-logo-text .logo-dot { color: var(--sb-500); font-style: normal; }

/* Hamburger */
.nav-toggle {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: auto;
  min-width: 8.25rem;
  height: 3.25rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    radial-gradient(ellipse at 0% 100%, rgba(255, 0, 153, 0.34) 0%, rgba(236, 72, 153, 0.20) 32%, transparent 56%),
    radial-gradient(ellipse at 28% 100%, rgba(0, 183, 255, 0.24) 0%, rgba(37, 99, 235, 0.18) 38%, transparent 64%),
    rgba(9, 9, 12, 0.38);
  backdrop-filter: blur(24px) saturate(1.75) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.75) brightness(1.08);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px -30px rgba(0, 0, 0, 0.95),
    0 0 34px -18px rgba(255, 79, 216, 0.94),
    0 0 44px -24px rgba(0, 170, 255, 0.72);
  cursor: pointer;
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    radial-gradient(ellipse at 0% 100%, rgba(255, 0, 153, 0.42) 0%, rgba(236, 72, 153, 0.26) 32%, transparent 56%),
    radial-gradient(ellipse at 28% 100%, rgba(0, 183, 255, 0.30) 0%, rgba(37, 99, 235, 0.22) 38%, transparent 64%),
    rgba(12, 12, 16, 0.46);
  outline: none;
}
.nav-toggle:active {
  transform: translateX(-50%) scale(0.97);
}
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 79, 216, 0.48);
  z-index: 201;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 30px -12px rgba(255, 79, 216, 0.95),
    0 0 42px -24px rgba(0, 170, 255, 0.82);
}
.nav-toggle::before {
  content: "Menu";
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.nav-toggle[aria-expanded="true"]::before {
  content: "Close";
}
.nav-toggle__bar {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition:
    transform 0.24s ease,
    top 0.24s ease,
    width 0.24s ease;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top:  6px; width: 72%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate( 45deg); width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); width: 100%; }

/* Home page — hide bottom menu until the user scrolls (mobile only) */
@media (max-width: 767px) {
  body.page-home .nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(calc(100% + 1.25rem));
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease;
  }

  body.page-home .nav-toggle.is-scroll-visible,
  body.page-home .nav-toggle[aria-expanded="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  body.page-home .nav-toggle.is-scroll-visible:active,
  body.page-home .nav-toggle[aria-expanded="true"]:active {
    transform: translateX(-50%) translateY(0) scale(0.97);
  }

  body.page-home .hero__content {
    min-height: calc(
      100svh
      - var(--header-height)
      - var(--space-sm)
      - var(--mobile-menu-clearance)
    );
  }
}

/* Modern mobile menu overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 1rem) clamp(1rem, 4vw, 1.5rem) calc(3.75rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 92vw 54vh at -18% 104%, rgba(30, 64, 255, 0.68) 0%, rgba(37, 99, 235, 0.38) 38%, transparent 66%),
    radial-gradient(ellipse 78vw 18vh at 22% 104%, rgba(0, 183, 255, 0.58) 0%, rgba(37, 99, 235, 0.38) 44%, transparent 70%),
    radial-gradient(ellipse 48vw 30vh at -8% 100%, rgba(255, 38, 170, 0.72) 0%, rgba(236, 72, 153, 0.42) 36%, transparent 62%),
    radial-gradient(circle at 0% 94%, rgba(255, 0, 153, 0.78) 0%, rgba(168, 85, 247, 0.34) 34%, transparent 58%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.78), rgba(5, 5, 7, 0.96));
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav__viewport {
  position: relative;
  width: min(100%, 28rem);
  min-height: 18.7rem;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    radial-gradient(ellipse 85% 46% at 0% 100%, rgba(30, 64, 255, 0.42) 0%, rgba(37, 99, 235, 0.26) 42%, transparent 70%),
    radial-gradient(ellipse 74% 22% at 28% 100%, rgba(0, 183, 255, 0.34) 0%, rgba(37, 99, 235, 0.22) 44%, transparent 72%),
    radial-gradient(ellipse 54% 42% at 0% 100%, rgba(255, 38, 170, 0.42) 0%, rgba(236, 72, 153, 0.24) 38%, transparent 64%),
    linear-gradient(135deg, rgba(117, 0, 249, 0.12), rgba(10, 10, 14, 0.64) 48%, rgba(37, 99, 235, 0.08)),
    rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 80px -48px rgba(0, 0, 0, 0.95),
    0 0 54px -36px rgba(255, 79, 216, 0.86),
    0 0 64px -42px rgba(0, 170, 255, 0.68);
  transition: min-height 0.32s ease;
}
.mobile-nav.is-services .mobile-nav__viewport {
  min-height: 25.6rem;
}
.mobile-menu-panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-panel--main {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-panel--services {
  position: absolute;
  inset: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(112%);
}
.mobile-nav.is-services .mobile-menu-panel--main {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22%);
}
.mobile-nav.is-services .mobile-menu-panel--services {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-nav a,
.mobile-services-toggle,
.mobile-menu-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  width: 100%;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}
.mobile-nav a::after,
.mobile-services-toggle::after {
  content: "→";
  color: rgba(255, 255, 255, 0.28);
  transform: translateX(-0.25rem);
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}
.mobile-menu-back {
  justify-content: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.64);
}
.mobile-menu-back::before {
  content: "←";
  color: rgba(255, 255, 255, 0.42);
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav a[aria-current="page"],
.mobile-services-toggle:hover,
.mobile-services-toggle:focus-visible,
.mobile-services-toggle[aria-current="page"],
.mobile-menu-back:hover,
.mobile-menu-back:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #fff;
  outline: none;
  transform: translateX(2px);
}
.mobile-nav a:hover::after,
.mobile-nav a:focus-visible::after,
.mobile-nav a[aria-current="page"]::after,
.mobile-services-toggle:hover::after,
.mobile-services-toggle:focus-visible::after,
.mobile-services-toggle[aria-current="page"]::after {
  color: rgba(255, 255, 255, 0.62);
  transform: translateX(0);
}
.mobile-menu-panel--services a {
  min-height: 3.35rem;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
}
.mobile-menu-panel--main li:last-child a {
  margin-top: 0.35rem;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    radial-gradient(120% 160% at 50% 100%, rgba(232, 121, 249, 0.14), transparent 54%),
    rgba(10, 8, 14, 0.88);
  border-color: rgba(232, 121, 249, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 26px -16px rgba(232, 121, 249, 0.92);
  color: #fff;
}
.mobile-menu-panel--main li:last-child a::after {
  display: none;
}

body.is-mobile-menu-open {
  overflow: hidden;
}

[data-theme="light"] .nav-toggle {
  border-color: rgba(10, 10, 14, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(ellipse at 0% 100%, rgba(255, 0, 153, 0.22) 0%, rgba(236, 72, 153, 0.14) 32%, transparent 56%),
    radial-gradient(ellipse at 28% 100%, rgba(0, 183, 255, 0.20) 0%, rgba(37, 99, 235, 0.13) 38%, transparent 64%),
    rgba(255, 255, 255, 0.46);
  color: #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(10, 10, 14, 0.04),
    0 18px 54px -30px rgba(10, 10, 14, 0.25),
    0 0 34px -20px rgba(255, 79, 216, 0.56),
    0 0 44px -26px rgba(0, 170, 255, 0.46);
}

[data-theme="light"] .nav-toggle::before {
  color: #0a0a0a;
}

[data-theme="light"] .nav-toggle__bar,
[data-theme="light"] .nav-toggle__bar::before,
[data-theme="light"] .nav-toggle__bar::after {
  background: #0a0a0a;
}

[data-theme="light"] .mobile-nav {
  background:
    radial-gradient(ellipse 92vw 54vh at -18% 104%, rgba(30, 64, 255, 0.24) 0%, rgba(37, 99, 235, 0.16) 38%, transparent 66%),
    radial-gradient(ellipse 78vw 18vh at 22% 104%, rgba(0, 183, 255, 0.24) 0%, rgba(37, 99, 235, 0.14) 44%, transparent 70%),
    radial-gradient(ellipse 48vw 30vh at -8% 100%, rgba(255, 38, 170, 0.26) 0%, rgba(236, 72, 153, 0.16) 36%, transparent 62%),
    radial-gradient(circle at 0% 94%, rgba(255, 0, 153, 0.28) 0%, rgba(168, 85, 247, 0.14) 34%, transparent 58%),
    linear-gradient(180deg, rgba(247, 247, 250, 0.82), rgba(255, 255, 255, 0.96));
}

[data-theme="light"] .mobile-nav__viewport {
  border-color: rgba(10, 10, 14, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    radial-gradient(ellipse 85% 46% at 0% 100%, rgba(30, 64, 255, 0.18) 0%, rgba(37, 99, 235, 0.12) 42%, transparent 70%),
    radial-gradient(ellipse 74% 22% at 28% 100%, rgba(0, 183, 255, 0.17) 0%, rgba(37, 99, 235, 0.10) 44%, transparent 72%),
    radial-gradient(ellipse 54% 42% at 0% 100%, rgba(255, 38, 170, 0.18) 0%, rgba(236, 72, 153, 0.11) 38%, transparent 64%),
    linear-gradient(135deg, rgba(117, 0, 249, 0.06), rgba(255, 255, 255, 0.56) 48%, rgba(37, 99, 235, 0.05)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 28px 80px -48px rgba(10, 10, 14, 0.28),
    0 0 54px -36px rgba(255, 79, 216, 0.44),
    0 0 64px -42px rgba(0, 170, 255, 0.38);
}

[data-theme="light"] .mobile-nav a {
  color: rgba(10, 10, 14, 0.74);
}

[data-theme="light"] .mobile-services-toggle,
[data-theme="light"] .mobile-menu-back {
  color: rgba(10, 10, 14, 0.74);
}

[data-theme="light"] .mobile-nav a:hover,
[data-theme="light"] .mobile-nav a:focus-visible,
[data-theme="light"] .mobile-nav a[aria-current="page"],
[data-theme="light"] .mobile-services-toggle:hover,
[data-theme="light"] .mobile-services-toggle:focus-visible,
[data-theme="light"] .mobile-services-toggle[aria-current="page"],
[data-theme="light"] .mobile-menu-back:hover,
[data-theme="light"] .mobile-menu-back:focus-visible {
  background: rgba(10, 10, 14, 0.055);
  border-color: rgba(10, 10, 14, 0.08);
  color: #0a0a0a;
}

[data-theme="light"] .mobile-services-toggle::after,
[data-theme="light"] .mobile-menu-back::before {
  color: rgba(10, 10, 14, 0.42);
}

/* ── Desktop header layout ── */
.site-header__desktop {
  display: none;
}

@media (min-width: 768px) {
  .site-header__mobile { display: none; }
  .mobile-nav { display: none; }

  .site-header__desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    height: 100%;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    overflow: visible; /* allow notch curves to bleed outside grid cell */
  }

  /* Left nav */
  .site-nav--left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-lg);
  }

  /* Right nav */
  .site-nav--right {
    display: flex;
    align-items: center;
    padding-left: var(--space-lg);
  }

  .site-nav--left ul,
  .site-nav--right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-nav--left a,
  .site-nav--right a {
    color: var(--color-text-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
  }
  .site-nav--left a:hover,
  .site-nav--right a:hover,
  .site-nav--left a[aria-current="page"],
  .site-nav--right a[aria-current="page"] { color: #fff; }

  .site-nav__item--mega {
    position: relative;
  }

  .site-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-2);
    cursor: pointer;
    transition: color 0.15s ease;
  }

  .site-nav__trigger:hover,
  .site-nav__item--mega.is-open .site-nav__trigger,
  .site-nav__item--mega:focus-within .site-nav__trigger,
  .site-nav__trigger[aria-current="page"] {
    color: #fff;
  }

  .site-nav__chevron {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.2s ease;
  }

  .site-nav__item--mega.is-open .site-nav__chevron,
  .site-nav__item--mega:focus-within .site-nav__chevron {
    transform: rotate(180deg);
  }

  .site-nav__mega {
    position: absolute;
    top: calc(100% + 0.875rem);
    left: 50%;
    z-index: 120;
    width: min(34rem, calc(100vw - 2rem));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.375rem);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .site-nav__item--mega.is-open .site-nav__mega,
  .site-nav__item--mega:focus-within .site-nav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .site-nav__mega-panel {
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
      rgba(12, 10, 16, 0.94);
    box-shadow:
      0 0 28px -10px rgba(0, 255, 72, 0.16),
      0 24px 48px -16px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
  }

  .site-nav__mega-feature,
  .site-nav__mega-link {
    position: relative;
    z-index: 0;
    display: block;
    padding: 0.75rem 0.875rem;
    border-radius: calc(var(--radius-lg) - 4px);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition:
      border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav__mega-feature::before,
  .site-nav__mega-link::before {
    content: "";
    position: absolute;
    width: 175%;
    aspect-ratio: 1;
    left: var(--mega-x, 50%);
    top: var(--mega-y, 50%);
    border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
    background:
      radial-gradient(
        circle,
        rgba(0, 255, 72, 0.44) 0%,
        rgba(0, 255, 72, 0.18) 34%,
        rgba(0, 255, 72, 0.05) 58%,
        transparent 72%
      );
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    pointer-events: none;
  }

  .site-nav__mega-feature::after,
  .site-nav__mega-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 72, 0);
    transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    pointer-events: none;
  }

  .site-nav__mega-feature:hover,
  .site-nav__mega-link:hover,
  .site-nav__mega-feature:focus-visible,
  .site-nav__mega-link:focus-visible {
    outline: none;
    border-color: rgba(0, 255, 72, 0.38);
    box-shadow:
      0 0 30px -10px rgba(0, 255, 72, 0.55),
      inset 0 0 22px -12px rgba(0, 255, 72, 0.24);
    transform: translateY(-1px);
  }

  .site-nav__mega-feature:hover::before,
  .site-nav__mega-link:hover::before,
  .site-nav__mega-feature:focus-visible::before,
  .site-nav__mega-link:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 38% 62% 58% 42% / 42% 48% 52% 58%;
  }

  .site-nav__mega-feature:hover::after,
  .site-nav__mega-link:hover::after,
  .site-nav__mega-feature:focus-visible::after,
  .site-nav__mega-link:focus-visible::after {
    box-shadow: inset 0 0 0 1px rgba(0, 255, 72, 0.42);
  }

  .site-nav__mega-feature {
    margin-bottom: 0.5rem;
  }

  .site-nav__mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
  }

  .site-nav__mega-label,
  .site-nav__mega-desc {
    position: relative;
    z-index: 1;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav__mega-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
  }

  .site-nav__mega-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--color-text-3);
  }

  .site-nav__mega-feature:hover .site-nav__mega-label,
  .site-nav__mega-link:hover .site-nav__mega-label,
  .site-nav__mega-feature:focus-visible .site-nav__mega-label,
  .site-nav__mega-link:focus-visible .site-nav__mega-label {
    color: #eafff0;
  }

  .site-nav__mega-feature:hover .site-nav__mega-desc,
  .site-nav__mega-link:hover .site-nav__mega-desc,
  .site-nav__mega-feature:focus-visible .site-nav__mega-desc,
  .site-nav__mega-link:focus-visible .site-nav__mega-desc {
    color: rgba(204, 255, 224, 0.82);
  }

  .site-nav__mega-link[aria-current="page"] {
    border-color: rgba(0, 255, 72, 0.24);
    background: rgba(0, 255, 72, 0.06);
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav__mega-feature,
    .site-nav__mega-link,
    .site-nav__mega-feature::before,
    .site-nav__mega-link::before {
      transition: none;
    }

    .site-nav__mega-feature:hover,
    .site-nav__mega-link:hover,
    .site-nav__mega-feature:focus-visible,
    .site-nav__mega-link:focus-visible {
      transform: none;
    }
  }

  /* ── The notch ── */
  .site-logo-notch-wrap {
    display: flex;
    justify-content: center;
    /* align-items: flex-start lets the notch hang from the top without
       stretching to the full header height */
    align-items: flex-start;
    overflow: visible;
  }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  border: none;
  border-radius: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* Purple/pink neon ring rectangle — primary CTA */
.btn--ring {
  position: relative;
  padding: 1rem 2.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    radial-gradient(120% 160% at 50% 100%, rgba(232, 121, 249, 0.14), transparent 54%),
    rgba(10, 8, 14, 0.88);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 38px rgba(232, 121, 249, 0.08),
    0 0 22px -8px rgba(232, 121, 249, 0.86),
    0 0 48px -20px rgba(117, 0, 249, 0.9);
  transform: scale(1);
  isolation: isolate;
}
.btn--ring:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-indigo) 70%, #fff);
  outline-offset: 3px;
}
/* Gradient ring — mask technique */
.btn--ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #ff4fd8 0%,
    #b985ff 38%,
    var(--brand-indigo) 62%,
    #ff4fd8 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
/* Outer halo */
.btn--ring::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: inherit;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(255, 79, 216, 0.42) 0%,
    rgba(117, 0, 249, 0.28) 45%,
    transparent 75%
  );
  filter: blur(8px);
  opacity: 0.9;
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn--ring:hover              { transform: scale(1.02); color: #fff; text-decoration: none; }
.btn--ring:hover::after       { opacity: 1; }
.btn--ring:active             { transform: scale(0.99); }

/* Comet shimmer */
.btn--ring .btn__shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.btn--ring:hover .btn__shimmer,
.btn--ring:focus-visible .btn__shimmer {
  background: conic-gradient(
    from var(--sb-shimmer-angle) at 50% 50%,
    transparent 0deg, transparent 285deg,
    rgba(255,255,255,0.15) 310deg, rgba(255,255,255,0.55) 330deg,
    rgba(255,255,255,0.85) 350deg, rgba(255,255,255,0.55) 355deg,
    rgba(255,255,255,0.15) 358deg, transparent 360deg
  );
  animation: sebenza-btn-shimmer-lap 3s linear forwards;
}

/* Ghost secondary */
.btn--ghost {
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--color-text-2);
  border: 1px solid var(--color-border);
  font-size: 1rem;
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.30); color: #fff; text-decoration: none; }
.btn--ghost:focus-visible { outline: 2px solid rgba(232,121,249,0.6); outline-offset: 2px; }

/* Small ghost for forms */
.btn--sm { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  .btn--ring .btn__shimmer { display: none; }
  .btn--ring,
  .btn--ghost { transition: none; }
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-lg); } }

/* ─── Hero (home page) ───────────────────────────────────────────────────── */

/*
  Sticky-scroll pattern:
  .hero        = tall outer container that creates the scroll distance
  .hero__pin   = position:sticky inner that stays in view while .hero scrolls
  GSAP scrubs  = only animates values, zero layout involvement
*/
.hero {
  position: relative;
  isolation: isolate;
}

@media (min-width: 768px) {
  /* 350vh = 250vh of real scroll distance (hero.height - 100vh).
     Snap point 0.3 hits at ~75vh → video revealed quickly.
     Snap point 1 hits at ~250vh → user must intentionally scroll out. */
  .hero { height: 350vh; }
}

.hero__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding:
    calc(var(--header-height) + var(--space-md))
    var(--space-md)
    calc(var(--space-xl) + var(--space-lg));
}

@media (max-width: 767px) {
  .hero__pin {
    justify-content: flex-start;
    min-height: auto;
    padding:
      calc(var(--header-height) + var(--space-sm))
      var(--space-md)
      0;
  }
}

@media (min-width: 768px) {
  .hero__pin {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: unset;
  }
}

/* Content layer — always on top */
.hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transform: translateY(-5vh);
}

@media (min-width: 768px) {
  .hero__content {
    padding: 0 var(--space-lg);
    gap: var(--space-lg);
  }

  .hero__heading-row {
    padding-block: clamp(1.75rem, 5vh, 3.25rem);
  }
}

.hero__heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 2vw, 2rem);
  width: 100%;
}

.hero__icon {
  width: clamp(34px, 5.4vw, 78px);
  height: auto;
  flex-shrink: 0;
  display: block;
}
.hero__icon--right { transform: scaleX(-1); }

@media (max-width: 767px) {
  .hero__content {
    padding-inline: clamp(0.5rem, 2.5vw, 0.875rem);
    transform: none;
    margin-top: 0;
    gap: var(--space-md);
    min-height: calc(
      100svh
      - var(--header-height)
      - var(--space-sm)
      - calc(3.25rem + max(1rem, env(safe-area-inset-bottom, 0px)) + 0.75rem)
    );
    padding-top: var(--space-xl);
    padding-bottom: var(--space-sm);
  }

  .hero__heading-row {
    margin-block: var(--space-xl);
  }

  .hero__heading-row .hero__icon {
    display: none;
  }

  .hero h1 {
    text-wrap: normal;
    font-size: clamp(2.45rem, 8.5vw + 0.45rem, 3.5rem);
  }

  .hero__video-stage {
    margin-top: var(--space-md);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw + 0.9rem, 4.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
  flex: 1 1 auto;
  min-width: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Video stage — mobile: below content in normal flow */
.hero__video-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.hero__video-frame {
  width: 100%;
  max-width: clamp(280px, 88vw, 720px);
}

/* Desktop: absolutely centred, hidden until GSAP animates it in */
@media (min-width: 768px) {
  .hero__video-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    width: calc(100% - var(--space-xl));
    max-width: clamp(680px, 80vw, 1060px);
    /* GSAP sets xPercent/yPercent/scale/autoAlpha from JS */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .hero__video-stage .hero__video-frame {
    max-width: 100%;
  }
  /* Once video is visible, restore pointer events so it can be clicked */
  .hero__video-stage.is-visible {
    pointer-events: auto;
    z-index: 20;
  }
}

/* Reduced motion — skip everything, show statically */
@media (prefers-reduced-motion: reduce) {
  .hero       { height: auto; }
  .hero__pin  { position: relative; height: auto; min-height: auto; padding-bottom: var(--space-xl); }
  .hero__video-stage {
    position: relative !important;
    top: auto !important; left: auto !important;
    transform: none !important;
    opacity: 1 !important; visibility: visible !important;
    pointer-events: auto !important;
    max-width: clamp(640px, 88vw, 900px);
    margin-top: var(--space-xl);
  }
}

/* ─── Custom play / pause button ─────────────────────────────────────────── */
.hero__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease;
}

.hero__play-overlay:hover {
  background: rgba(0, 0, 0, 0.18);
}

.hero__play-overlay:focus-visible {
  outline: 2px solid rgba(232, 121, 249, 0.7);
  outline-offset: -3px;
}

.hero__play-button {
  width:  clamp(64px, 7.5vw, 92px);
  height: clamp(64px, 7.5vw, 92px);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(255, 255, 255, 0.10);
  transition:
    transform 0.25s ease,
    opacity   0.3s  ease,
    box-shadow 0.3s ease;
}

.hero__play-overlay:hover .hero__play-button {
  transform: scale(1.06);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 0 10px rgba(255, 255, 255, 0.15);
}

.hero__play-button svg {
  width: 38%;
  height: 38%;
  display: block;
}
.hero__play-icon  { margin-left: 8%; }   /* visually centre the triangle */
.hero__pause-icon { display: none; }

/* Playing state — button auto-hides, returns on hover for pausing */
.hero__play-overlay.is-playing .hero__play-icon  { display: none; }
.hero__play-overlay.is-playing .hero__pause-icon { display: block; }

.hero__play-overlay.is-playing .hero__play-button {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
.hero__play-overlay.is-playing:hover .hero__play-button,
.hero__play-overlay.is-playing:focus-visible .hero__play-button,
.hero__video-frame.is-controls-visible .hero__play-overlay.is-playing .hero__play-button {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero__mute-button {
  position: absolute;
  top: calc(50% + clamp(48px, 5.8vw, 68px));
  left: 50%;
  z-index: 6;
  transform: translate(-50%, 0.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-full);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.hero__video-frame.is-controls-visible .hero__play-overlay.is-playing + .hero__mute-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.hero__mute-button:hover,
.hero__mute-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
}

.hero__mute-button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
}

@media (max-width: 767px) {
  /* Let taps reach the mute control while the full-screen overlay is up */
  .hero__play-overlay.is-playing {
    pointer-events: none;
  }

  .hero__play-overlay.is-playing .hero__play-button,
  .hero__video-frame.is-controls-visible .hero__play-overlay.is-playing {
    pointer-events: auto;
  }

  .hero__play-overlay.is-playing + .hero__mute-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    z-index: 7;
  }
}

.hero__lightbox-close {
  display: none !important;
}

/* Card / value icons */
.card__icon,
.value-card__icon {
  width: clamp(44px, 5vw, 56px);
  height: auto;
  display: block;
  margin-bottom: var(--space-sm);
}

/* ─── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  z-index: 10;
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border-soft);
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(2rem, 3.5vw + 0.75rem, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.page-hero p:not(.page-hero__kinsta-stat):not(.page-hero__badge) {
  margin: 0 auto;
  color: var(--color-text-2);
  max-width: 72ch;
  font-size: 1.0625rem;
}
.page-hero .page-hero__kinsta-stat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: var(--space-lg) auto 0;
  padding: 0.55rem 0.95rem;
  max-width: 36rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.06);
  color: var(--color-text-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.page-hero .page-hero__kinsta-stat-value {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #86efac;
}
.page-hero .page-hero__kinsta-stat-label {
  color: var(--color-text-2);
}

@media (max-width: 767px) {
  .page-hero .page-hero__kinsta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    max-width: none;
    margin-top: var(--space-md);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .page-hero .page-hero__kinsta-stat-value {
    font-size: clamp(1.625rem, 7vw, 2rem);
    line-height: 1;
  }

  .page-hero .page-hero__kinsta-stat-label {
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 22rem;
    text-wrap: balance;
  }
}

/* ─── Video frame (Vimeo / YouTube embeds) ──────────────────────────────── */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.45) 0%,
    rgba(168,  85, 247, 0.30) 28%,
    rgba(236,  72, 153, 0.30) 60%,
    rgba(244,  63,  94, 0.45) 100%
  );
  box-shadow:
    0 0 36px  -6px rgba(217,  70, 239, 0.30),
    0 0 64px -16px rgba(124,  58, 237, 0.30),
    0 18px 50px -20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.video-frame__inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 10;
  padding: var(--space-xl) 0;
}
.section__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-400);
  margin: 0 0 var(--space-sm);
}
.section__title {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.section__intro {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-2);
  max-width: 52ch;
  font-size: 1rem;
}

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

/* ─── Client logos ──────────────────────────────────────────────────────── */
.client-logos {
  position: relative;
  z-index: 10;
  padding: 0 0 var(--space-xl);
}

.hero .client-logos {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: var(--space-xs);
  padding: 0;
  z-index: 1;
  pointer-events: auto;
}

.hero .client-logos .container {
  max-width: none;
  padding: 0;
}

.client-logos .section__label {
  text-align: center;
  margin-bottom: var(--space-md);
}

.hero .client-logos .section__label {
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  opacity: 0.72;
}

.hero .client-logos .client-logo {
  min-width: clamp(16rem, 26vw, 22rem);
  min-height: clamp(8.5rem, 14vw, 12rem);
  padding: 0.5rem 0;
}

.hero .client-logos .client-logo__img {
  max-width: min(22rem, 100%);
  max-height: clamp(8rem, 12vw, 10rem);
}

@media (max-width: 767px) {
  .hero .client-logos {
    margin-top: auto;
    margin-bottom: 0;
  }

  .hero .client-logos .client-logo {
    min-width: clamp(11rem, 38vw, 17rem);
    min-height: clamp(7rem, 22vw, 10rem);
  }

  .hero .client-logos .client-logo__img {
    max-width: clamp(11rem, 36vw, 17rem);
    max-height: clamp(6rem, 18vw, 8.5rem);
  }

  .hero .client-logos__set {
    gap: clamp(0.35rem, 2vw, 0.85rem);
  }
}

.client-logos__marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  .client-logos__marquee {
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
}

.client-logos__rail {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: client-logo-marquee var(--marquee-duration, 28s) linear infinite;
  -webkit-animation: client-logo-marquee var(--marquee-duration, 28s) linear infinite;
}

.client-logos__rail.js-marquee {
  animation: none;
  -webkit-animation: none;
  will-change: transform;
}

.client-logos__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(0.25rem, 0.85vw, 0.85rem);
  padding-right: clamp(0.25rem, 0.85vw, 0.85rem);
}

@keyframes client-logo-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes client-logo-marquee {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to   { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}


.client-logo {
  flex: 0 0 auto;
  min-width: clamp(15rem, 24vw, 20rem);
  min-height: clamp(8rem, 13vw, 11rem);
  display: grid;
  place-items: center;
  padding: 0.5rem 0;
  opacity: 0.68;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease;
}

.client-logo:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.18));
}

.client-logo__img {
  display: block;
  max-width: min(22rem, 100%);
  max-height: 9rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo__img--dark { display: none; }

[data-theme="light"] .client-logo__img--light { display: none; }
[data-theme="light"] .client-logo__img--dark  { display: block; }


@media (max-width: 640px) {
  .client-logos__marquee {
    padding: 0.35rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-logos__rail {
    animation: none;
    -webkit-animation: none;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .client-logos__rail::-webkit-scrollbar {
    display: none;
  }
}

/* ─── Homepage service cards ────────────────────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  perspective: 1200px;
}

@media (min-width: 960px) {
  .service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.service-card {
  --card-accent: var(--sb-500);
  --card-accent-2: var(--brand-orange);

  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  padding: clamp(1.15rem, 2vw, 1.55rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028) 46%, rgba(255, 255, 255, 0.05)),
    rgba(7, 7, 11, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 54px -34px rgba(0, 0, 0, 0.86);
  transform-style: preserve-3d;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--card-accent) 72%, transparent) 42%, color-mix(in srgb, var(--card-accent-2) 70%, transparent) 72%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 46%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--card-accent) 24%, transparent) 0%, transparent 70%);
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 26px 70px -36px color-mix(in srgb, var(--card-accent) 34%, #000);
}

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

.service-card--web {
  --card-accent: var(--brand-indigo);
  --card-accent-2: var(--brand-indigo);
}

.service-card--paid {
  --card-accent: var(--brand-orange);
  --card-accent-2: var(--brand-orange);
}

.service-card--social {
  --card-accent: var(--brand-green);
  --card-accent-2: var(--brand-green);
}

.service-card__media,
.service-card__body,
.service-card__cta {
  position: relative;
  z-index: 1;
}

.service-card__media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.service-card__index {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.11);
}

.service-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  opacity: 0;
  transform: translateY(0.35rem) scale(0.82);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--card-accent) 34%, transparent));
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    filter 0.24s ease;
}

.service-card:hover .service-card__icon,
.service-card:focus-within .service-card__icon {
  opacity: 0.95;
  transform: translateY(0) scale(1);
}

.service-card__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-accent) 68%, #fff);
}

.service-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.3vw + 0.9rem, 1.75rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.service-card__hook {
  margin: 1rem 0 1.15rem;
  color: var(--color-text-2);
  font-size: 0.96rem;
  line-height: 1.58;
}

.service-card__list {
  display: grid;
  gap: 0.62rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
  color: var(--color-text-3);
  font-size: 0.9rem;
  line-height: 1.35;
}

.service-card__list li {
  position: relative;
  padding-left: 1.2rem;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--card-accent), var(--card-accent-2));
  box-shadow: 0 0 14px color-mix(in srgb, var(--card-accent) 44%, transparent);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.service-card__cta::after {
  content: "➜";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--card-accent), var(--card-accent-2));
  color: #fff;
  font-size: 0.78rem;
  line-height: 0;
  text-indent: 0.02em;
  transition: transform 0.2s ease;
}

.service-card__cta:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.service-card__cta:hover::after {
  transform: translateX(2px);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .card-grid           { gap: var(--space-lg); }
  .card-grid--3        { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--color-border); }

.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.card p {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-2);
  flex-grow: 1;
}
.card ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  color: var(--color-text-3);
}
.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sb-400);
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}
.card__link::after { content: " →"; }
.card__link:hover  { color: var(--sb-300); }

/* Tags */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 0.25rem;
  color: var(--sb-400);
}

/* ─── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  z-index: 10;
  margin: var(--space-lg) 0 0;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 120px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.cta-banner p {
  position: relative;
  margin: 0 0 var(--space-md);
  color: var(--color-text-2);
  font-size: 0.9375rem;
}
.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* ─── Services section ───────────────────────────────────────────────────── */
/* ─── Services filter tabs ──────────────────────────────────────────────── */
.services-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-md);
  /* Fade right edge on mobile so "more tabs" is hinted */
  mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
}
.services-tabs::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .services-tabs {
    mask-image: none;
    -webkit-mask-image: none;
    text-align: center;
  }
}

.services-tabs__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* The sliding pill that moves behind the active tab */
.services-tab__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 16px -6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
  /* Springy liquid slide between tabs */
  transition:
    left   0.44s cubic-bezier(0.34, 1.56, 0.64, 1),
    width  0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-tab {
  position: relative;
  z-index: 1;
  padding: 0.45rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.services-tab:focus-visible {
  outline: 2px solid rgba(232, 121, 249, 0.7);
  outline-offset: 2px;
  border-radius: 999px;
}
.services-tab.is-active {
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────── */
.services-section {
  position: relative;
  z-index: 10;
  padding: var(--space-lg) 0 var(--space-xl);
}

.services-hub {
  --services-fade-gutter: clamp(1.75rem, 5vw, 4rem);
  --services-hover-room: 1rem;
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--services-fade-gutter);
  padding: var(--services-hover-room) clamp(2.75rem, 6vw, 5rem) calc(var(--space-sm) + var(--services-hover-room)) var(--services-fade-gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 84%, transparent 100%);
}

.services-hub.is-filtering {
  scroll-snap-type: none;
}

.services-hub--centered {
  justify-content: center;
  scroll-snap-type: none;
}

.services-hub::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .services-hub {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    --services-fade-gutter: var(--space-md);
    scroll-padding-inline: var(--space-md);
    padding:
      var(--services-hover-room)
      var(--space-md)
      calc(var(--space-sm) + var(--services-hover-room))
      var(--space-md);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }

  .service-row-card {
    flex: 0 0 calc(100vw - (2 * var(--space-md)));
    max-width: none;
  }
}

.service-row-card {
  --row-accent: var(--brand-indigo);
  --row-accent-2: var(--brand-indigo);
  --mx: 50%;
  --my: 20%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(78vw, 24rem);
  gap: var(--space-md);
  overflow: hidden;
  scroll-snap-align: start;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 17, 20, 0.72);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.service-row-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--row-accent) 14%, transparent), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.service-row-card:hover,
.service-row-card:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    var(--shadow-card),
    0 20px 64px -44px color-mix(in srgb, var(--row-accent) 42%, #000);
}

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

.service-row-card--indigo {
  --row-accent: var(--brand-indigo);
  --row-accent-2: var(--brand-indigo);
}

.service-row-card--orange {
  --row-accent: var(--brand-orange);
  --row-accent-2: var(--brand-orange);
}

.service-row-card--green {
  --row-accent: var(--brand-green);
  --row-accent-2: var(--brand-green);
}

.service-row-card--violet {
  --row-accent: var(--sb-400);
  --row-accent-2: var(--sb-300);
}

@media (min-width: 900px) {
  .service-row-card {
    flex-basis: clamp(21rem, 33vw, 25rem);
  }
}

@media (min-width: 1100px) {
  .service-row-card {
    flex-basis: max(21rem, calc((100% - (3.35 * var(--space-md))) / 3.35));
  }
}

@media (min-width: 1450px) {
  .service-row-card {
    flex-basis: max(21rem, calc((100% - (4.25 * var(--space-md))) / 4.25));
  }
}

.service-row-card h2,
.service-row-card h3,
.pricing-card h2,
.pricing-card h3 {
  color: #fff;
  letter-spacing: -0.025em;
}

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

.service-row-card > div:first-of-type {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.service-row-card h2 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.3rem, 1.5vw + 1rem, 2rem);
  font-weight: 550;
  line-height: 1.08;
}

.service-row-card p,
.pricing-card p,
.service-detail__intro {
  color: var(--color-text-2);
}

.service-row-card p {
  margin: 0 0 var(--space-md);
  max-width: 68ch;
}

.service-feature-list,
.pricing-feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-feature-list li,
.pricing-feature-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-2);
  font-size: 0.94rem;
}

.service-feature-list li::before,
.pricing-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--row-accent, var(--brand-indigo)), var(--row-accent-2, var(--brand-orange)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--row-accent, var(--brand-indigo)) 36%, transparent);
}

.service-row-card__aside {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.875rem;
  min-height: 9.25rem;
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  align-content: space-between;
}

.service-row-card .btn--ring {
  width: 100%;
  min-height: 3.35rem;
  padding-inline: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.service-row-card .btn--ring::before,
.service-row-card .btn--ring::after {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-row-card .btn--ring:hover,
.service-row-card .btn--ring:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    radial-gradient(120% 160% at 50% 100%, rgba(232, 121, 249, 0.14), transparent 54%),
    rgba(10, 8, 14, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 38px rgba(232, 121, 249, 0.08),
    0 0 22px -8px rgba(232, 121, 249, 0.86),
    0 0 48px -20px rgba(117, 0, 249, 0.9);
  color: #fff;
}

.service-row-card .btn--ring:hover::before,
.service-row-card .btn--ring:hover::after,
.service-row-card .btn--ring:focus-visible::before,
.service-row-card .btn--ring:focus-visible::after {
  opacity: 1;
}

.service-price {
  margin: 0;
  color: #fff;
  min-height: 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: clamp(1rem, 0.65vw + 0.9rem, 1.25rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-price__note {
  display: block;
  margin-top: 0.28rem;
  color: var(--color-text-3);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

[data-region-content][hidden] { display: none !important; }

.service-detail {
  position: relative;
  z-index: 10;
  padding: var(--space-lg) 0 var(--space-xl);
}

.service-detail__header {
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.service-detail__header .section__title {
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

.service-detail__header .service-detail__intro {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  text-wrap: pretty;
}

.service-detail__intro {
  max-width: 72ch;
  margin: var(--space-lg) auto 0;
  font-size: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.service-detail .pricing-grid {
  margin-top: 0;
}

.service-detail__intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: var(--space-lg);
  align-items: center;
  margin: 0 0 var(--space-lg);
}

.service-detail__intro-row .service-detail__intro {
  margin: 0;
  text-align: left;
}

@media (max-width: 900px) {
  .service-detail__intro-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.tech-logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  .tech-logo-marquee {
    mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  }
}

.tech-logo-rail {
  display: flex;
  width: max-content;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: tech-logo-marquee var(--marquee-duration, 32s) linear infinite;
  -webkit-animation: tech-logo-marquee var(--marquee-duration, 32s) linear infinite;
}

.tech-logo-rail.js-marquee {
  animation: none;
  -webkit-animation: none;
  will-change: transform;
}

.tech-logo-set {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

@keyframes tech-logo-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes tech-logo-marquee {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to   { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

.tech-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  min-height: 3.75rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.52);
  filter: grayscale(1);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}



@media (prefers-reduced-motion: reduce) {
  .tech-logo-rail {
    animation: none;
    -webkit-animation: none;
    overflow-x: auto;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 860px) {
  .pricing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 17, 20, 0.76);
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow:
    var(--shadow-card),
    0 0 44px -24px rgba(139, 92, 246, 0.85);
}

.pricing-card__label {
  margin: 0 0 0.5rem;
  color: var(--sb-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-card h2,
.pricing-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.7rem);
  font-weight: 550;
}

.pricing-card .service-price {
  margin-bottom: var(--space-md);
}

.pricing-feature-list {
  margin-bottom: var(--space-md);
}

.pricing-card__footnote {
  margin: auto 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-3);
  font-size: 0.88rem;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 760px) {
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.approach-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(17, 17, 20, 0.72);
  box-shadow: var(--shadow-card);
}

.approach-card h2,
.approach-card h3 {
  margin: 0 0 var(--space-xs);
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.approach-card p {
  margin: 0;
  color: var(--color-text-2);
  font-size: 0.95rem;
}

/* ─── About page ─────────────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .about-intro { grid-template-columns: 1fr 1fr; align-items: start; }
}
.about-intro__heading {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.about-intro p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-2);
  font-size: 1rem;
}
.about-intro p:last-child { margin-bottom: 0; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.value-card__number {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sb-500);
  margin: 0 0 var(--space-sm);
}
.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.015em;
}
.value-card p {
  font-size: 0.9375rem;
  color: var(--color-text-2);
  margin: 0;
}

/* ─── Contact / booking ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--space-xl);
  }
}

.contact-info h2 {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 var(--space-sm);
}
.contact-info__kicker {
  margin: 0 0 0.5rem;
  color: var(--sb-400);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.contact-info p {
  color: var(--color-text-2);
  font-size: 0.9375rem;
  margin: 0 0 var(--space-md);
}
.contact-points {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}
.contact-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--color-text-2);
  font-size: 0.9375rem;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-green));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.38);
}
.contact-info__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.contact-info__link:hover { color: #fff; }
.contact-info__link:last-child { border-bottom: none; }
.contact-info__link[hidden] { display: none; }
.contact-info__link--region {
  color: #fff;
}
.contact-info__icon {
  width: 1.25rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.booking-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 480px) {
  .booking-panel { padding: var(--space-md); }
}

.booking-panel__intro {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}
.booking-panel__intro .section__label {
  margin-bottom: 0.5rem;
}
.booking-panel__intro h2 {
  margin: 0 0 0.375rem;
  color: #fff;
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.booking-panel__intro p {
  margin: 0;
  color: var(--color-text-2);
  font-size: 0.9375rem;
}

.booking-skeleton {
  min-height: 400px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.035) 8%,
      rgba(255, 255, 255, 0.075) 18%,
      rgba(255, 255, 255, 0.035) 33%
    ),
    rgba(255, 255, 255, 0.025);
  background-size: 220% 100%;
  color: var(--color-text-2);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  animation: calendar-skeleton-shimmer 1.4s linear infinite;
}

.booking-skeleton[hidden] {
  display: none;
}

.booking-skeleton__spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--brand-indigo);
  animation: calendar-spinner 0.8s linear infinite;
}

@keyframes calendar-spinner {
  to { transform: rotate(360deg); }
}

@keyframes calendar-skeleton-shimmer {
  to { background-position-x: -220%; }
}

.booking-panel iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 480px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--space-sm);
}
.field:last-of-type { margin-bottom: var(--space-md); }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-2);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select option { background: #18181c; color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border-soft);
  background: rgba(5, 5, 5, 0.80);
  padding: var(--space-lg) 0 var(--space-md);
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(var(--space-md) + var(--mobile-menu-clearance));
  }
}

.footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .footer__inner {
    padding: 0 var(--space-lg);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-xl);
  }
}

.footer__nav {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

.footer__group-label {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.footer__link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link-list a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-3);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__link-list a:hover {
  color: var(--color-text-2);
}

.footer__location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-md);
}

@media (max-width: 639px) {
  .footer__location-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.footer__location-name {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--color-text-2);
}

.footer__location .footer__link-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.footer__location .footer__link-list a {
  font-size: 0.75rem;
  font-weight: 500;
}

.footer__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .footer__aside {
    align-items: flex-end;
    justify-self: end;
  }
}

/* Region switcher — two pill buttons inside a capsule track */
.footer__region-switcher {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 0.125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-full);
  padding: 0.1875rem;
}

.footer__region-btn {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.footer__region-btn:hover {
  color: var(--color-text-2);
}
.footer__region-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer__meta {
  font-size: 0.8125rem;
  color: var(--color-text-3);
  text-align: center;
}
.footer__meta a { color: var(--color-text-3); }
.footer__meta a:hover { color: var(--color-text-2); }
.footer__meta p { margin: 0 0 0.375rem; }
.footer__meta p:last-child { margin: 0; }

@media (min-width: 768px) {
  .footer__meta {
    text-align: right;
  }
}

/* ─── SEO landing pages ───────────────────────────────────────────────────── */
.landing-page {
  --landing-panel-bg: rgba(255, 255, 255, 0.025);
  --landing-panel-border: rgba(255, 255, 255, 0.07);
}

/* Hero */
.landing-page .page-hero--landing {
  padding-bottom: var(--space-lg);
  border-bottom: none;
  text-align: left;
  overflow: hidden;
}

.landing-page .page-hero--landing::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(117, 0, 249, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.landing-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .landing-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-xl);
  }
}

.landing-hero__copy .landing-hero__stats {
  margin-top: var(--space-lg);
}

.landing-hero__media {
  width: 100%;
}

.landing-hero__video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 2px;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    #c084fc 0%,
    var(--sb-500) 32%,
    #a855f7 68%,
    var(--sb-300) 100%
  );
  box-shadow:
    0 0 20px rgba(117, 0, 249, 0.55),
    0 0 44px rgba(155, 77, 255, 0.32),
    0 18px 50px -20px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-hero__video-trigger:hover,
.landing-hero__video-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 28px rgba(117, 0, 249, 0.72),
    0 0 56px rgba(185, 133, 255, 0.42),
    0 22px 56px -18px rgba(0, 0, 0, 0.72);
  outline: none;
}

.landing-hero__video-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
}

.landing-hero__video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
  z-index: 1;
}

.landing-hero__video-trigger::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 2px);
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease;
  pointer-events: none;
}

.landing-hero__video-trigger:hover::after,
.landing-hero__video-trigger:focus-visible::after {
  background: rgba(0, 0, 0, 0.34);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.video-lightbox[hidden] {
  display: none !important;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.video-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
}

.video-lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.video-lightbox__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  outline: none;
}

html.is-video-lightbox-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .landing-hero__media {
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .video-lightbox {
    padding: var(--space-sm);
  }

  .video-lightbox__close {
    top: -2.25rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}

.landing-hero__copy .page-hero__badge {
  margin: 0 0 0.375rem;
  max-width: none;
}

.page-hero .page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 var(--space-sm);
  padding: 0.125rem 0.4375rem;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sb-300);
  background: rgba(117, 0, 249, 0.12);
  border: 1px solid rgba(117, 0, 249, 0.28);
  border-radius: var(--radius-full);
  max-width: 100%;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .page-hero .page-hero__badge {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
    padding: 0.1rem 0.375rem;
  }
}

.landing-hero__copy h1,
.landing-hero__copy p {
  margin-left: 0;
  margin-right: 0;
}

.landing-hero__copy p {
  max-width: 42ch;
}

.landing-page .page-hero--landing .landing-hero__copy p:not(.page-hero__badge) {
  margin-inline: 0;
  text-align: left;
}

.landing-hero__copy .page-hero__actions {
  justify-content: flex-start;
}

.landing-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 899px) {
  .landing-hero__stats {
    max-width: 28rem;
  }
}

.landing-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 0.875rem 0.75rem;
  border: 1px solid var(--landing-panel-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(17, 17, 20, 0.55);
}

.landing-hero__stat-value {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.landing-hero__stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-3);
  line-height: 1.35;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Section rhythm */
.landing-section {
  position: relative;
  z-index: 10;
}

.landing-section--clients {
  padding: var(--space-md) 0;
  border-block: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.landing-clients__label {
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-3);
}

.landing-section--benefits {
  padding: var(--space-xl) 0;
}

.landing-section--offer {
  padding: var(--space-xl) 0;
  background:
    linear-gradient(180deg, transparent, rgba(117, 0, 249, 0.04) 40%, transparent),
    rgba(255, 255, 255, 0.012);
  border-block: 1px solid var(--color-border-soft);
}

.landing-section--offer.service-detail {
  padding: var(--space-xl) 0;
}

.landing-section--closure {
  padding: var(--space-xl) 0 calc(var(--space-lg) + var(--space-sm));
}

.landing-section-header {
  max-width: 44rem;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.landing-section-header--left {
  margin: 0 0 var(--space-md);
  max-width: none;
  text-align: left;
}

.landing-section-header--compact {
  margin-bottom: var(--space-md);
}

.landing-section-header .section__title {
  margin-bottom: var(--space-sm);
}

.landing-section__intro {
  margin: 0;
  color: var(--color-text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 52ch;
  margin-inline: auto;
}

.landing-section__note {
  margin: var(--space-lg) auto 0;
  max-width: 52ch;
  text-align: center;
  color: var(--color-text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.landing-section__note a {
  color: var(--sb-400);
  font-weight: 600;
}

.landing-section__note a:hover {
  color: var(--sb-300);
}

.landing-page .approach-grid {
  margin-top: 0;
}

.landing-page .approach-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 100%;
}

.landing-page .approach-card h3 {
  font-size: 1.05rem;
}

.landing-page .service-detail__intro-row {
  margin-bottom: var(--space-xl);
}

.landing-page .service-detail__intro-row + .landing-section-header--compact {
  margin-top: 0;
}

.landing-page .service-detail__intro-row + .section__title,
.landing-page .service-detail__intro-row + .landing-section-header--compact + .pricing-grid {
  margin-top: 0;
}

.landing-offer-card {
  margin-top: var(--space-md);
}

.landing-page .pricing-grid {
  margin-top: var(--space-md);
}

/* FAQ + areas closure grid */
.landing-closure {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 960px) {
  .landing-closure {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: var(--space-xl);
    align-items: stretch;
  }
}

.landing-closure__main {
  min-width: 0;
}

.landing-closure__aside {
  min-width: 0;
}

.landing-areas-card {
  padding: var(--space-md);
  border: 1px solid var(--landing-panel-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(17, 17, 20, 0.72);
}

@media (min-width: 960px) {
  .landing-areas-card {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    align-self: start;
  }
}

.landing-areas-card__title {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
}

.landing-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.landing-areas__pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-full);
}

.landing-faq {
  display: grid;
  gap: var(--space-sm);
  max-width: none;
  margin: 0;
}

.landing-faq details {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

.landing-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--sb-400);
  font-size: 1.125rem;
  line-height: 1;
}

.landing-faq details[open] summary::after {
  content: "−";
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq p {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.landing-faq a {
  color: var(--sb-400);
  font-weight: 600;
}

.landing-page .cta-banner {
  margin-top: var(--space-xl);
}

.landing-related {
  margin-top: var(--space-lg);
  padding-top: 0;
  border-top: none;
  text-align: center;
  color: var(--color-text-2);
  font-size: 0.9375rem;
}

.landing-page .cta-banner + .landing-related,
.landing-page .cta-actions + .landing-related {
  margin-top: calc(var(--space-lg) + var(--space-sm));
}

.landing-related a {
  color: var(--sb-400);
  font-weight: 600;
}

.landing-related a:hover {
  color: var(--sb-300);
}

@media (max-width: 767px) {
  .landing-page .page-hero--landing {
    text-align: center;
  }

  .landing-hero__copy .page-hero__actions {
    justify-content: center;
  }

  .landing-page .page-hero--landing .landing-hero__copy p:not(.page-hero__badge) {
    margin-inline: 0;
    text-align: left;
  }

  .landing-hero__stats {
    max-width: none;
  }

  .landing-areas-card {
    position: static;
  }
}

/* ─── 404 page ───────────────────────────────────────────────────────────── */
.page-404 {
  position: relative;
  z-index: 10;
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
}

.page-404__shell {
  max-width: 52rem;
}

.page-404__hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-404__code {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  margin: 0 0 var(--space-sm);
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-404__code:hover,
.page-404__code:focus-visible {
  transform: scale(1.03);
  outline: none;
}

.page-404__digit {
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--brand-green) 55%, #b985ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 255, 72, 0.28));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-404__code:hover .page-404__digit--zero {
  transform: translateY(-0.08em) scale(1.08);
}

.page-404__label {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-400);
}

.page-404__quip {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  transition: opacity 0.25s ease;
}

.page-404__lede {
  margin: 0 auto var(--space-md);
  max-width: 40ch;
  color: var(--color-text-2);
  font-size: 1.0625rem;
}

.page-404__path {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-3);
}

.page-404__path code {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sb-300);
  font-size: 0.8125rem;
  word-break: break-all;
}

.page-404__hint {
  margin: 0 auto;
  max-width: 36ch;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: var(--brand-green);
  text-wrap: balance;
}

.page-404__section-title {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
}

.page-404__group + .page-404__group {
  margin-top: var(--space-lg);
}

.page-404__group-label {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.page-404__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

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

@media (min-width: 640px) {
  .page-404__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.page-404__tile {
  position: relative;
  z-index: 0;
  display: block;
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-404__tile::before {
  content: "";
  position: absolute;
  width: 175%;
  aspect-ratio: 1;
  left: var(--tile-x, 50%);
  top: var(--tile-y, 50%);
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  background:
    radial-gradient(
      circle,
      rgba(0, 255, 72, 0.42) 0%,
      rgba(0, 255, 72, 0.16) 34%,
      rgba(0, 255, 72, 0.04) 58%,
      transparent 72%
    );
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

.page-404__tile:hover,
.page-404__tile:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 72, 0.38);
  box-shadow:
    0 0 28px -10px rgba(0, 255, 72, 0.52),
    inset 0 0 20px -12px rgba(0, 255, 72, 0.2);
  transform: translateY(-2px);
}

.page-404__tile:hover::before,
.page-404__tile:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 38% 62% 58% 42% / 42% 48% 52% 58%;
}

.page-404__tile-title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  transition: color 0.35s ease;
}

.page-404__tile-desc {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-text-3);
  transition: color 0.35s ease;
}

.page-404__tile:hover .page-404__tile-title,
.page-404__tile:focus-visible .page-404__tile-title {
  color: #eafff0;
}

.page-404__tile:hover .page-404__tile-desc,
.page-404__tile:focus-visible .page-404__tile-desc {
  color: rgba(204, 255, 224, 0.82);
}

@media (max-width: 639px) {
  .page-404__grid,
  .page-404__grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-404__code,
  .page-404__digit,
  .page-404__tile,
  .page-404__tile::before {
    transition: none;
  }

  .page-404__code:hover,
  .page-404__code:hover .page-404__digit--zero,
  .page-404__tile:hover,
  .page-404__tile:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-skeleton,
  .booking-skeleton__spinner {
    animation: none;
  }
}

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

/* ─── Motion Graphics page ───────────────────────────────────────────────── */

.motion-work {
  position: relative;
  z-index: 10;
  padding: var(--space-lg) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-soft);
  overflow: hidden;
}

.motion-work__carousel {
  --slide-w: clamp(11rem, 36vw, 16rem);
  --slide-gap: 1.5rem;
  position: relative;
  margin-top: var(--space-lg);
  min-height: clamp(22rem, 58vw, 32rem);
}

.motion-work__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  color: var(--color-text-2);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.motion-work__loader-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--sb-400, var(--brand-indigo, #9b4dff));
  animation: motion-work-spinner 0.8s linear infinite;
}

.motion-work__carousel.is-ready .motion-work__loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.motion-work__carousel.is-loading .motion-work__track {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.motion-work__carousel.is-ready .motion-work__track {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

@keyframes motion-work-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-work__loader-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.35);
  }

  .motion-work__loader,
  .motion-work__carousel.is-ready .motion-work__track {
    transition: none;
  }
}

.motion-work__track {
  display: flex;
  align-items: center;
  gap: var(--slide-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Center the active slide in the viewport */
  scroll-padding-inline: calc(50% - (var(--slide-w) / 2));
  padding-block: 1.5rem 1.75rem;
  padding-inline: calc(50% - (var(--slide-w) / 2));
  scrollbar-width: none;
  cursor: grab;
}

.motion-work__track::-webkit-scrollbar {
  display: none;
}

.motion-work__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.motion-work__item {
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  min-width: 0;
  scroll-snap-align: center;
  /* --focus / --scale / --shift are set in JS. Shift packs scaled cards so
     visual edge-to-edge gaps stay even (scale alone leaves empty slot space). */
  opacity: var(--focus, 0.45);
  transform: translate3d(var(--shift, 0px), 0, 0) scale(var(--scale, 0.7));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
  will-change: transform, opacity;
}

.motion-work__item.is-active {
  z-index: 2;
}

.motion-work__item.is-offstage {
  pointer-events: none;
}

.motion-work__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface-2);
  box-shadow: 0 14px 36px -22px rgba(0, 0, 0, 0.75);
}

.motion-work__item--portrait .motion-work__media {
  aspect-ratio: 9 / 16;
}

.motion-work__item--square .motion-work__media {
  aspect-ratio: 1 / 1;
}

.motion-work__poster,
.motion-work__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.motion-work__poster {
  object-fit: cover;
  object-position: center;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.motion-work__item.is-ready .motion-work__poster {
  opacity: 0;
}

.motion-work__unmute {
  position: absolute;
  z-index: 3;
  right: 0.7rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.25rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.motion-work__unmute:hover,
.motion-work__unmute:focus-visible {
  background: rgba(155, 77, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.motion-work__unmute:focus-visible {
  box-shadow: 0 0 0 2px rgba(155, 77, 255, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .motion-work__item.is-active.is-ready:hover .motion-work__unmute,
  .motion-work__unmute:focus-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .motion-work__item.is-active.is-ready .motion-work__unmute {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-work__item.is-unmuted .motion-work__unmute {
  opacity: 1;
  transform: translateY(0);
  background: rgba(155, 77, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .motion-work__item {
    transition: none;
  }

  .motion-work__poster,
  .motion-work__unmute {
    transition: none;
  }
}

