/* PEARLBLUE Car Wash — Futuristic theme */
:root {
  --bg: #000000;
  --cyan: #00d9ff;
  --magenta: #db1545;
  --cyan-dim: rgba(0, 217, 255, 0.35);
  --magenta-dim: rgba(219, 21, 69, 0.35);
  --text: #e8f4f8;
  --muted: rgba(232, 244, 248, 0.65);
  --glass: rgba(0, 217, 255, 0.06);
  --glass-border: rgba(0, 217, 255, 0.22);
  --shadow-deep: 0 25px 80px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(0, 217, 255, 0.08),
    inset 0 1px 0 rgba(0, 217, 255, 0.15);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --nav-h: 200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --reveal-dur: 0.7s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) #0a0a0a;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(219, 21, 69, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(0, 217, 255, 0.06), transparent),
    linear-gradient(rgba(0, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  background-attachment: scroll;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #050505, #0a0a0a 50%, #050505);
  border-left: 1px solid rgba(0, 217, 255, 0.1);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  border-radius: 20px;
  box-shadow: 0 0 12px var(--cyan-dim), inset 0 0 4px rgba(255, 255, 255, 0.3);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #33e3ff, #ff2d5f);
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

body.lightbox-open {
  overflow: hidden;
}

a,
button,
input,
textarea,
select,
[role="button"],
.visual-shot {
  cursor: pointer;
}

/* ============================================================
   Reveal-on-scroll system (GPU compositor only)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 50px, 0) rotateX(-8deg);
  transform-origin: center top;
  will-change: opacity, transform;
  transition:
    opacity var(--reveal-dur) var(--ease-out-expo),
    transform var(--reveal-dur) var(--ease-out-expo);
}

.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

.reveal[data-reveal="fade"] {
  transform: translate3d(0, 24px, 0);
}
.reveal[data-reveal="fade"].in-view {
  transform: translate3d(0, 0, 0);
}

.reveal[data-reveal="left"] {
  transform: translate3d(-60px, 0, 0) rotateY(-12deg);
}
.reveal[data-reveal="left"].in-view {
  transform: translate3d(0, 0, 0) rotateY(0);
}

.reveal[data-reveal="right"] {
  transform: translate3d(60px, 0, 0) rotateY(12deg);
}
.reveal[data-reveal="right"].in-view {
  transform: translate3d(0, 0, 0) rotateY(0);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.88) translate3d(0, 24px, 0);
}
.reveal[data-reveal="zoom"].in-view {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Stagger child reveals via --i index set in JS */
.stagger > * {
  opacity: 0;
  transform: translate3d(0, 40px, 0) rotateX(-10deg);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}

.stagger.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

/* ============================================================
   Site images
   ============================================================ */
.site-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: none;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.45s var(--ease-out-expo), filter 0.45s ease;
}

.visual-shot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  font: inherit;
  color: inherit;
  vertical-align: middle;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo);
}

.visual-shot:hover .site-img {
  transform: scale(1.04) translateZ(20px);
  filter: drop-shadow(0 12px 32px rgba(0, 217, 255, 0.35));
}

.visual-shot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ============================================================
   Hero collage — overlapping photo composition behind the headline
   ============================================================ */
.hero-media-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  isolation: isolate;
  perspective: 1600px;
  transform-style: preserve-3d;
}

/* Dark vignette so headline stays readable above the collage */
.hero-media-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 50% at 50% 50%,
      rgba(0, 0, 0, 0.86) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
}

/* Cyan/magenta tint wash */
.hero-media-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(0, 217, 255, 0.18), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(219, 21, 69, 0.16), transparent 45%);
  mix-blend-mode: screen;
}

.hero-media-grid .visual-shot {
  position: absolute;
  pointer-events: auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  background: #050505;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(0, 217, 255, 0.08),
    inset 0 1px 0 rgba(0, 217, 255, 0.18);
  animation: collageDrift 16s ease-in-out infinite;
  will-change: transform;
}

.hero-media-grid .visual-shot .site-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* Image 1 — large centerpiece, slightly tilted right */
.hero-media-grid .visual-shot:nth-child(1) {
  top: 8%;
  right: 8%;
  width: min(38vw, 420px);
  height: min(48vh, 360px);
  transform: rotate(-3deg);
  z-index: 2;
  animation-duration: 19s;
}

/* Image 2 — top-left smaller card */
.hero-media-grid .visual-shot:nth-child(2) {
  top: 4%;
  left: 6%;
  width: min(24vw, 270px);
  height: min(30vh, 220px);
  transform: rotate(4deg);
  z-index: 1;
  animation-delay: -3s;
  animation-duration: 17s;
}

/* Image 3 — bottom-left overlapping */
.hero-media-grid .visual-shot:nth-child(3) {
  bottom: 6%;
  left: 4%;
  width: min(28vw, 310px);
  height: min(34vh, 250px);
  transform: rotate(-5deg);
  z-index: 2;
  animation-delay: -7s;
  animation-duration: 21s;
}

/* Image 4 — bottom-right tilted */
.hero-media-grid .visual-shot:nth-child(4) {
  bottom: 8%;
  right: 12%;
  width: min(26vw, 300px);
  height: min(32vh, 240px);
  transform: rotate(6deg);
  z-index: 1;
  animation-delay: -10s;
  animation-duration: 18s;
}

/* Image 5 — middle-left, behind, accent */
.hero-media-grid .visual-shot:nth-child(5) {
  top: 35%;
  left: 22%;
  width: min(22vw, 240px);
  height: min(28vh, 190px);
  transform: rotate(-2deg);
  z-index: 1;
  animation-delay: -13s;
  animation-duration: 20s;
}

.hero-media-grid .visual-shot:hover {
  z-index: 10;
  border-color: var(--cyan);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(0, 217, 255, 0.35),
    inset 0 1px 0 rgba(0, 217, 255, 0.3);
}

@keyframes collageDrift {
  0%, 100% {
    transform: rotate(var(--col-rot, 0deg)) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(var(--col-rot, 0deg)) translate3d(0, -10px, 22px);
  }
}

/* Individual rotation tokens (collageDrift composes with them) */
.hero-media-grid .visual-shot:nth-child(1) { --col-rot: -3deg; }
.hero-media-grid .visual-shot:nth-child(2) { --col-rot: 4deg; }
.hero-media-grid .visual-shot:nth-child(3) { --col-rot: -5deg; }
.hero-media-grid .visual-shot:nth-child(4) { --col-rot: 6deg; }
.hero-media-grid .visual-shot:nth-child(5) { --col-rot: -2deg; }

/* ============================================================
   Section photos
   ============================================================ */
.section-media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 2.5rem;
  padding: 0 0.5rem;
  min-height: 200px;
  isolation: isolate;
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

.section-media .visual-shot .site-img {
  max-width: min(260px, 38vw);
  max-height: 200px;
}

.section-media .visual-shot--feature .site-img {
  max-width: min(340px, 52vw);
  max-height: 260px;
}

.section-media--vision {
  justify-content: space-around;
}

.section-media--clients {
  gap: 0.25rem 0.75rem;
}

.section-media--contact {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  /* Compact collage for phones */
  .hero-media-grid .visual-shot:nth-child(1) {
    top: 3%;
    right: 4%;
    width: 58vw;
    height: 30vh;
  }
  .hero-media-grid .visual-shot:nth-child(2) {
    top: 2%;
    left: 3%;
    width: 40vw;
    height: 22vh;
  }
  .hero-media-grid .visual-shot:nth-child(3) {
    bottom: 3%;
    left: 2%;
    width: 50vw;
    height: 26vh;
  }
  .hero-media-grid .visual-shot:nth-child(4) {
    bottom: 4%;
    right: 5%;
    width: 44vw;
    height: 24vh;
  }
  .hero-media-grid .visual-shot:nth-child(5) {
    display: none;
  }
  .section-media .visual-shot .site-img {
    max-width: min(46vw, 200px);
    max-height: 150px;
  }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 75%, transparent);
  transition: padding 0.4s var(--ease-out-expo), background 0.4s ease, transform 0.5s var(--ease-out-expo);
  transform: translate3d(0, 0, 0);
  will-change: transform, padding;
}

.site-header.is-compact {
  padding: 0.65rem 1rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.92) 100%);
  border-bottom: 1px solid rgba(0, 217, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.site-header.is-hidden {
  transform: translate3d(0, -100%, 0);
}

.logo-wrap {
  perspective: 800px;
  margin-bottom: 0.75rem;
  transition: margin 0.4s var(--ease-out-expo);
}

.site-header.is-compact .logo-wrap {
  margin-bottom: 0.4rem;
}

.logo-link {
  display: block;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.2s ease;
  transform-style: preserve-3d;
}

.logo-link:hover {
  transform: rotateY(-8deg) translateZ(8px);
  opacity: 0.95;
}

.logo-img {
  display: block;
  max-height: 72px;
  width: auto;
  max-width: min(280px, 85vw);
  filter: drop-shadow(0 0 20px var(--cyan-dim)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
  object-fit: contain;
  transition: max-height 0.4s var(--ease-out-expo);
}

.site-header.is-compact .logo-img {
  max-height: 48px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  max-width: 1100px;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s var(--ease-out-back);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
  box-shadow: 0 0 10px var(--cyan);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
  text-shadow: 0 0 12px var(--cyan);
  transform: translateY(-2px);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 70%;
  left: 15%;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.3s ease;
}

/* ============================================================
   Layout
   ============================================================ */
main {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 5rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  isolation: isolate;
  z-index: 1;
  perspective: 1400px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-dim);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 2rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 4rem;
  perspective: 1400px;
}

.hero-stage {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  animation: heroFloat 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(2deg); }
  50%      { transform: translate3d(0, -10px, 30px) rotateX(-1deg); }
}

.hero-ring {
  position: absolute;
  inset: -40%;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: ringSpin 28s linear infinite;
  pointer-events: none;
  will-change: transform;
}

.hero-ring:nth-child(2) {
  inset: -25%;
  border-color: rgba(219, 21, 69, 0.25);
  animation-duration: 22s;
  animation-direction: reverse;
}

@keyframes ringSpin {
  from { transform: rotateZ(0deg) rotateX(70deg); }
  to   { transform: rotateZ(360deg) rotateX(70deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 60px var(--cyan-dim), 0 4px 0 rgba(0, 0, 0, 0.8);
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0%   { text-shadow: 0 0 40px var(--cyan-dim), 0 4px 0 rgba(0, 0, 0, 0.8); }
  100% { text-shadow: 0 0 70px var(--cyan), 0 0 25px var(--magenta-dim), 0 4px 0 rgba(0, 0, 0, 0.8); }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--magenta);
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-back), box-shadow 0.4s ease, color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease-out-expo);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 217, 255, 0.05));
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: var(--shadow-deep), 0 0 30px var(--cyan-dim);
}

.btn-primary:hover {
  transform: translate3d(0, -4px, 18px) rotateX(8deg);
  color: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 55px var(--cyan-dim), 0 0 15px rgba(0, 217, 255, 0.8);
}

.btn-accent {
  background: linear-gradient(135deg, rgba(219, 21, 69, 0.25), rgba(219, 21, 69, 0.08));
  color: #fff;
  border: 1px solid var(--magenta);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--magenta-dim);
}

.btn-accent:hover {
  transform: translate3d(0, -4px, 18px) rotateX(8deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px var(--magenta-dim), 0 0 15px rgba(219, 21, 69, 0.8);
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
  transform: none;
}

/* ============================================================
   3D Cards with pointer-driven tilt
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.holo-card {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.08), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.5s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateZ(0);
  will-change: transform;
}

.holo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.holo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 217, 255, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.holo-card:hover {
  border-color: var(--cyan);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 217, 255, 0.18),
    inset 0 1px 0 rgba(0, 217, 255, 0.3);
}

.holo-card:hover::before {
  transform: scaleX(1);
}

.holo-card:hover::after {
  opacity: 1;
}

.holo-card > * {
  transform: translateZ(20px);
}

.holo-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  transform: translateZ(30px);
}

.holo-card p,
.holo-card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.holo-card ul {
  list-style: none;
  padding-left: 0;
}

.holo-card li {
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.holo-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--magenta);
}

/* Interactive stat boxes */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
  perspective: 1200px;
}

.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out-back), border-color 0.3s ease, box-shadow 0.4s ease;
  cursor: default;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateZ(0);
}

.stat-box:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 30px var(--cyan-dim);
  transform: translateZ(15px) scale(1.04);
}

.stat-box .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
  text-shadow: 0 0 20px var(--cyan-dim);
  transform: translateZ(30px);
}

.stat-box .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ============================================================
   Services tabs / panels
   ============================================================ */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-tab {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  transition: all 0.35s var(--ease-out-expo);
}

.service-tab.is-active,
.service-tab:hover {
  background: rgba(0, 217, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
  transform: translateY(-2px);
}

.service-panel {
  display: none;
}

.service-panel.is-active {
  display: block;
  animation: panelIn 0.6s var(--ease-out-expo);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) rotateX(-8deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* ============================================================
   Client marquee
   ============================================================ */
.client-marquee {
  overflow: hidden;
  margin: 2rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.client-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.client-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.client-pill {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out-back), box-shadow 0.4s ease, border-color 0.3s ease, color 0.3s ease;
}

.client-pill:hover {
  transform: scale(1.08) translateZ(12px);
  box-shadow: 0 0 25px var(--cyan-dim);
  border-color: var(--magenta);
  color: #fff;
}

/* ============================================================
   Gallery
   ============================================================ */
.gallery-section {
  max-width: 1600px;
}

/* Horizontal auto-scrolling slider */
.gallery-slider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 1.25rem;
  isolation: isolate;
  perspective: 1600px;
  scroll-behavior: auto;
  scrollbar-color: var(--cyan) rgba(0, 217, 255, 0.06);
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.gallery-slider:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar {
  height: 10px;
}

.gallery-slider::-webkit-scrollbar-track {
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.08) 8%, rgba(0, 217, 255, 0.08) 92%, transparent);
  border-radius: 6px;
}

.gallery-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 6px;
  box-shadow: 0 0 12px var(--cyan-dim);
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #33e3ff, #ff2d5f);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 1.5rem;
  width: max-content;
  will-change: transform;
}

.gallery-track .gallery-item.visual-shot {
  position: relative;
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 280px);
  height: clamp(140px, 17vw, 210px);
  padding: 0;
  border: 1px solid rgba(0, 217, 255, 0.18);
  background: linear-gradient(160deg, rgba(0, 217, 255, 0.06), rgba(0, 0, 0, 0.5));
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s ease,
    border-color 0.3s ease;
}

.gallery-track .gallery-item.visual-shot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-track .gallery-item.visual-shot:hover {
  transform: translate3d(0, -8px, 30px) rotateY(-4deg);
  z-index: 5;
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 28px var(--cyan-dim);
}

.gallery-track .gallery-item.visual-shot:hover::after {
  transform: scaleX(1);
}

.gallery-track .gallery-item .site-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-slider.is-paused .gallery-track {
  /* visual hint that auto-scroll is paused — subtle vignette */
}

.gallery-hint {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 244, 248, 0.45);
  margin-top: 0.5rem;
}

.gallery-item.is-hidden {
  display: none;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  contain: strict;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  transform: scale(0.92) rotateX(-6deg);
  transition: transform 0.5s var(--ease-out-expo);
  perspective: 1200px;
}

.lightbox.is-open .lightbox-content {
  transform: scale(1) rotateX(0);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px var(--cyan-dim);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--cyan);
  background: rgba(0, 0, 0, 0.6);
  color: var(--cyan);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  box-shadow: 0 0 25px var(--cyan-dim);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--cyan);
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease, border-color 0.3s ease;
}

.lightbox-nav:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-dim);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(4px); }

/* ============================================================
   Locations
   ============================================================ */
.location-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.location-card {
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(219, 21, 69, 0.08), transparent);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
}

.location-card:hover {
  transform: rotateY(-6deg) translateZ(20px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), 0 0 35px var(--magenta-dim);
}

.location-card h3 {
  font-family: var(--font-display);
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  perspective: 1400px;
}

.contact-info a {
  color: var(--cyan);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

.contact-info a:hover {
  text-shadow: 0 0 12px var(--cyan);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.35s var(--ease-out-back);
}

.social-links a:hover {
  border-color: var(--magenta);
  background: rgba(219, 21, 69, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 18px var(--magenta-dim);
}

.contact-form {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(0, 217, 255, 0.06), rgba(0, 0, 0, 0.5));
  box-shadow: var(--shadow-deep);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo);
  transform: rotateY(var(--form-tilt, 0deg));
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
  transform: translateZ(8px);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
  transition: color 0.3s ease;
}

.form-status.success {
  color: var(--cyan);
}

.form-status.error {
  color: var(--magenta);
}

.form-status.loading::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid var(--cyan);
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   WhatsApp float
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 8000;
  width: 58px;
  height: 58px;
  border-radius: 4px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out-back), box-shadow 0.4s ease;
  text-decoration: none;
  animation: pulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.12) rotateZ(-5deg);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50%      { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
}

.site-footer .brand {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.site-footer .tagline {
  color: var(--magenta);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ============================================================
   Vision split
   ============================================================ */
.split-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.vision-panel {
  padding: 2rem;
  border-left: 3px solid var(--magenta);
  background: linear-gradient(90deg, rgba(219, 21, 69, 0.08), transparent);
}

.mission-panel {
  padding: 2rem;
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.08), transparent);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --nav-h: 180px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-track .gallery-item.visual-shot {
    width: clamp(160px, 35vw, 220px);
    height: clamp(120px, 26vw, 165px);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding-top: 5rem;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .main-nav a {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
  }

  .gallery-track {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .gallery-track .gallery-item.visual-shot {
    width: clamp(150px, 60vw, 220px);
    height: clamp(110px, 42vw, 160px);
  }

  /* No pointer tilts on touch — flatten */
  .holo-card,
  .stat-box,
  .location-card,
  .contact-form {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .gallery-track .gallery-item.visual-shot {
    width: clamp(140px, 70vw, 200px);
    height: clamp(100px, 50vw, 145px);
  }
}

/* ============================================================
   Reduced motion — accessibility & older devices
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Scroll-driven animations (where supported — modern Chromium/Edge)
   Progressively enhances scroll feel further; falls back silently.
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-zoom {
      animation: scrollZoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes scrollZoom {
      from { opacity: 0; transform: translate3d(0, 60px, 0) scale(0.94); }
      to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    }

    .scroll-parallax {
      animation: scrollParallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes scrollParallax {
      from { transform: translate3d(0, 40px, 0); }
      to   { transform: translate3d(0, -40px, 0); }
    }
  }
}
