/* ============================================================
   INFINITY CAR WASH — CINEMATIC SCROLL NARRATIVE
   Design System & Styles
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  /* Core palette */
  --electric-blue: #00aaff;
  --electric-blue-glow: rgba(0, 170, 255, 0.45);
  --electric-blue-subtle: rgba(0, 170, 255, 0.08);
  --surface: #131313;
  --surface-raised: #1b1b1b;
  --surface-card: rgba(26, 26, 26, 0.4);
  --surface-card-border: #2d2d2d;
  --surface-card-border-hover: rgba(0, 170, 255, 0.5);
  --graphite: #1a1a1a;
  --gunmetal: #2d2d2d;
  --chrome: #e0e0e0;
  --text-primary: #e2e2e2;
  --text-secondary: #bec7d3;
  --text-muted: rgba(255, 255, 255, 0.35);
  --black: #000000;
  --white: #ffffff;

  /* Typography scale */
  --font-display: 'Clash Display', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist', 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1440px;
  --gutter: 2rem;
  --margin-desktop: 5rem;
  --margin-mobile: 1.5rem;
  --section-gap: 7.5rem;
  --nav-height: 5rem;

  /* Radii */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Kill sideways pan on mobile. `clip` (where supported) blocks
     scrolling without turning html into a scroll container, which
     keeps GSAP pinning happy; `hidden` is the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  overflow-x: hidden;
  overflow-x: clip;
}

::selection {
  background: var(--electric-blue);
  color: var(--black);
}

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

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --- Typography -------------------------------------------- */
.text-display-hero {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* Chrome sheen — display headlines read like brushed metal */
.text-display-hero,
.hero__title,
.cta__title,
.tech__title {
  background-image: linear-gradient(180deg, #ffffff 0%, #f0f5f9 52%, #a9bccb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Electric accent words get a liquid-blue gradient instead */
.hero__title span,
.text-display-hero span:not(.tech__title-outline),
.tech__title-electric {
  background-image: linear-gradient(180deg, #7dd6ff 0%, var(--electric-blue) 55%, #0080cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-headline-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-headline-md {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.text-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-data {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.text-electric {
  color: var(--electric-blue);
}

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

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--margin-desktop);
  }
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-primary {
  background-color: var(--electric-blue);
  color: var(--black);
}

.btn-primary::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.btn-primary:hover {
  box-shadow:
    0 0 30px var(--electric-blue-glow),
    0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  opacity: 1;
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--chrome);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-icon {
  font-size: 1rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

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

/* --- Glass Panel ------------------------------------------- */
.glass-panel {
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-card-border);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.glass-panel:hover {
  border-color: var(--surface-card-border-hover);
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.05);
}

/* --- Badge ------------------------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  background: var(--graphite);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* ============================================================
   SCENE-BASED LAYOUT (GSAP Pinned Sections)
   ============================================================ */
.scene {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Narrative text — centered overlay for scroll-driven text reveals */
.narrative-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  opacity: 0;
  z-index: 20;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .narrative-text {
    padding-inline: var(--margin-desktop);
  }
}

/* Content layer — fades in after narrative finishes */
.content-layer {
  opacity: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* On mobile, allow content layers to scroll so nothing gets clipped */
@media (max-width: 767px) {
  .content-layer {
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 2rem;
  }

  /* Short content layers stay perfectly centered while pinned:
     hero headline, services card spotlight, final CTA.
     Symmetric nav-height padding keeps the focal point at true
     viewport center while still clearing the fixed nav. */
  #hero-content,
  #services-content,
  #cta-content {
    justify-content: center;
    padding-top: var(--nav-height);
    padding-bottom: var(--nav-height);
  }
}

/* Clip-path reveal utility for GSAP animations */
.clip-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

/* Scroll-reactive foam & water overlay (assets/wash-fx.js).
   Sits above scene content, below nav (100) and mobile menu (99). */
.wash-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .wash-fx-canvas {
    display: none;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(19, 19, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(19, 19, 19, 0.95);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

.nav__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav__inner {
    padding-inline: var(--margin-desktop);
  }
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand-logo {
  height: 2rem;
  width: auto;
  filter: invert(1) brightness(2);
  mix-blend-mode: screen;
  transition: filter var(--duration-normal) var(--ease-out);
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--electric-blue);
  text-transform: uppercase;
}

.nav__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

@media (max-width: 767px) {
  .nav {
    height: 3.5rem;
  }

  .nav__brand-logo {
    height: 1.5rem;
  }

  .nav__brand-name {
    font-size: 1rem;
  }

  .nav__brand-sub {
    font-size: 0.4rem;
  }
}

@media (max-width: 374px) {
  .nav__brand-sub {
    display: none;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition:
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--electric-blue);
}

.nav__link--active {
  border-bottom-color: var(--electric-blue);
  font-weight: 700;
}

.nav__cta {
  display: none;
}

@media (min-width: 768px) {
  .nav__cta {
    display: inline-flex;
  }
}

.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-blue);
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.mobile-menu__link:hover {
  color: var(--electric-blue);
}

/* ============================================================
   SCENE 1: HERO
   ============================================================ */
.hero-scene {
  background: var(--black);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero__video-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft edge-feathering — blends canvas edges into the black scene bg */
.hero__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to right, var(--black) 0%, transparent 4%, transparent 96%, var(--black) 100%),
    linear-gradient(to bottom, var(--black) 0%, transparent 3%, transparent 97%, var(--black) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    to top,
    var(--black) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

/* Subtle grain texture */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.hero__content {
  text-align: center;
  max-width: 60rem;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .hero__content {
    padding-inline: 0;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--electric-blue);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* ============================================================
   SCENE 2: JOURNEY (Pinned stages)
   ============================================================ */
.journey-scene {
  background: var(--surface-raised);
}

.journey__header {
  text-align: center;
  position: absolute;
  top: calc(var(--nav-height) + 1rem);
  left: 0;
  right: 0;
  z-index: 30;
  padding-inline: var(--margin-mobile);
}

.journey__header h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.journey__stage-area {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  height: 60vh;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  padding-inline: var(--margin-mobile);
}

@media (max-width: 767px) {
  .journey__stage-area {
    height: auto;
    min-height: 60vh;
    flex-direction: column;
    margin-top: calc(var(--nav-height) + 3rem);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .journey__stage-area {
    padding-inline: var(--margin-desktop);
  }
}

/* Image container — left half on desktop, top on mobile */
.journey__image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

@media (max-width: 767px) {
  .journey__image-container {
    position: relative;
    width: 100%;
    height: 40vw;
    min-height: 10rem;
    max-height: 14rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 768px) {
  .journey__image-container {
    width: 50%;
  }
}

.journey__image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey__image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  z-index: 5;
}

@media (max-width: 767px) {
  .journey__image-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  }
}

/* Text container — right half on desktop, below image on mobile */
.journey__text-container {
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  z-index: 20;
}

@media (max-width: 767px) {
  .journey__text-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 10rem;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 768px) {
  .journey__text-container {
    width: 50%;
    padding-left: 4rem;
  }
}

.journey__stage-text {
  position: absolute;
  width: calc(100% - 4rem);
  opacity: 0;
  transform: translateY(2.5rem);
}

@media (max-width: 767px) {
  .journey__stage-text {
    width: 100%;
  }
}

.journey__stage-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  padding: 0.35em 0.9em;
  border: 1px solid rgba(0, 170, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 170, 255, 0.08);
  margin-bottom: 0.75rem;
}

.journey__stage-heading {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.journey__stage-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   SCENE 3: SERVICES
   ============================================================ */
.services-scene {
  background: var(--black);
}

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

@media (max-width: 767px) {
  .services__content {
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {
  .services__content {
    padding-inline: var(--margin-desktop);
  }
}

.services__title {
  color: var(--white);
  margin-bottom: 2rem;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .services__title {
    margin-bottom: 4rem;
  }
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Service Card */
.service-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    border-color var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

@media (max-width: 767px) {
  .service-card {
    padding: 1.25rem;
  }
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-card-border-hover) !important;
}

.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-card__icon {
  font-size: 2.25rem;
  color: var(--electric-blue);
  line-height: 1;
}

.service-card__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.service-card__desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition:
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-card__link {
  color: var(--electric-blue);
  border-bottom-color: var(--electric-blue);
}

.service-card__link-icon {
  font-size: 0.875rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-card__link-icon {
  transform: translateX(4px);
}

/* ============================================================
   SCENE 4: TECHNICAL / ENGINEERED
   ============================================================ */
.tech-scene {
  background: #353535;
  position: relative;
}

.tech__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 80% 20%, rgba(0, 170, 255, 0.05), transparent 50%);
}

.tech__content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  align-items: center;
}

@media (max-width: 767px) {
  .tech__content {
    padding-top: 1rem;
    gap: 1.5rem;
  }

  .tech__content .tech__image-wrap {
    display: none;
  }
}

@media (min-width: 768px) {
  .tech__content {
    padding-inline: var(--margin-desktop);
    grid-template-columns: 5fr 7fr;
  }
}

.tech__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.tech__title-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--gunmetal);
}

/* In content layer, the outline becomes electric blue */
.tech__title-electric {
  color: var(--electric-blue);
}

.tech__desc {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Stats list */
.stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--gunmetal);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--gunmetal);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--electric-blue);
  min-width: 4.5rem;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Blueprint image area */
.tech__image-wrap {
  position: relative;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .tech__image-wrap {
    margin-top: 0;
  }
}

.tech__image-panel {
  position: relative;
  z-index: 1;
  padding: 0.5rem;
  aspect-ratio: 16 / 9;
}

.tech__image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tech__image-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(0, 170, 255, 0.1);
  filter: blur(48px);
  border-radius: 50%;
  z-index: -1;
}

/* ============================================================
   SCENE 5: FINAL CTA
   ============================================================ */
.cta-scene {
  background: var(--black);
}

.cta__content {
  text-align: center;
  padding-inline: var(--margin-mobile);
  width: 100%;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2.5rem;
  max-width: 50rem;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta__actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* ============================================================
   BOOKING
   ============================================================ */
.booking {
  padding-block: var(--section-gap);
  background: var(--surface-raised);
  position: relative;
  overflow: hidden;
}

.booking__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, var(--electric-blue-subtle), transparent 55%);
  pointer-events: none;
}

.booking__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .booking__inner {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
  }
}

.booking__eyebrow {
  display: inline-block;
  color: var(--electric-blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border: 1px solid rgba(0, 170, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 170, 255, 0.08);
  margin-bottom: 1rem;
}

.booking__title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.booking__desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.booking__points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking__points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.booking__points .material-symbols-outlined {
  color: var(--electric-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.booking__form-wrap {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition:
    filter 600ms var(--ease-out),
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}

html[data-booking-mode='opening-soon'] .booking-form {
  filter: blur(5px);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  transform: scale(0.985);
}

.booking-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 170, 255, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(8, 13, 20, 0.52), rgba(5, 9, 15, 0.72));
  opacity: 1;
  visibility: visible;
  transition:
    opacity 400ms var(--ease-out),
    visibility 400ms var(--ease-out),
    transform 400ms var(--ease-out);
}

.booking-coming-soon::before,
.booking-coming-soon::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.booking-coming-soon::before {
  width: min(30rem, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 170, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(0, 170, 255, 0.025),
    0 0 0 7rem rgba(0, 170, 255, 0.018);
}

.booking-coming-soon::after {
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: calc(var(--radius-lg) - 0.25rem);
}

html[data-booking-mode='live'] .booking-coming-soon {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem);
}

.booking-coming-soon:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: -0.5rem;
}

.booking-coming-soon__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 34rem;
}

.booking-coming-soon__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 170, 255, 0.42);
  border-radius: 50%;
  color: var(--electric-blue);
  background: rgba(0, 170, 255, 0.1);
  box-shadow: 0 0 2.5rem rgba(0, 170, 255, 0.18);
  font-size: 1.4rem;
}

.booking-coming-soon__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--electric-blue);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.booking-coming-soon__pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.4);
  animation: booking-pulse 2s ease-out infinite;
}

.booking-coming-soon__title {
  margin-bottom: 1.15rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-transform: uppercase;
}

.booking-coming-soon__title span {
  color: var(--electric-blue);
}

.booking-coming-soon__message {
  max-width: 31rem;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.75;
}

@keyframes booking-pulse {
  70% {
    box-shadow: 0 0 0 0.65rem rgba(0, 170, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
  }
}

@media (max-width: 520px) {
  .booking-coming-soon {
    padding: 1.25rem;
  }

  .booking-coming-soon::after {
    inset: 0.65rem;
  }

  .booking-coming-soon__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
  }

  .booking-coming-soon__eyebrow {
    margin-bottom: 0.8rem;
  }

  .booking-coming-soon__title {
    margin-bottom: 0.8rem;
  }

  .booking-coming-soon__message {
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-form,
  .booking-coming-soon {
    transition: none;
  }

  .booking-coming-soon__pulse {
    animation: none;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field__label span {
  color: var(--text-muted);
  font-weight: 400;
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--graphite);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

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

.field__input:focus {
  outline: none;
  border-color: var(--electric-blue);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px var(--electric-blue-subtle);
}

.field__input.is-invalid {
  border-color: #ff5b6e;
}

.field__textarea {
  resize: vertical;
  min-height: 54px;
}

.field__select {
  position: relative;
}

.field__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field__select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 1.25rem;
}

.field__error {
  color: #ff8390;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  min-height: 0;
}

.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form__submit {
  width: 100%;
  margin-top: 0.4rem;
}

.booking-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.booking-form__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-height: 1em;
}

.booking-form__status.is-ok {
  color: #4ad6a0;
}

.booking-form__status.is-err {
  color: #ff8390;
}

.booking-success {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.booking-success .material-symbols-outlined {
  font-size: 3.5rem;
  color: var(--electric-blue);
}

.booking-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.booking-success p {
  color: var(--text-secondary);
  max-width: 28rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem var(--margin-mobile);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--gunmetal);
  background: var(--black);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem var(--margin-desktop);
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.footer__brand-logo {
  height: clamp(2.5rem, 4vw, 3.5rem);
  width: auto;
  filter: invert(1) brightness(2);
  mix-blend-mode: screen;
}

.footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

.footer__link:hover {
  color: var(--electric-blue);
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Standalone footer (in booking section flow, not scene-based) */
.footer--standalone {
  position: relative;
  opacity: 1;
  background: var(--surface);
  padding-block: var(--section-gap);
}

/* ============================================================
   MATERIAL SYMBOLS (Google Fonts)
   ============================================================ */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

/* ============================================================
   FADE-IN ANIMATION (for non-scene content like booking)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */

/* Mobile: general scene adjustments */
@media (max-width: 767px) {
  .scene {
    min-height: 100vh;
  }

  /* CTA scene: center the content properly */
  .cta__content {
    padding-inline: var(--margin-mobile);
  }

  .cta__title {
    font-size: 1.75rem;
  }

  .cta__actions {
    gap: 0.75rem;
  }

  /* Services spotlight: all cards share the same grid cell so only
     one is visible at a time (GSAP swaps them). Cell height locks to
     the tallest card, so the layout never jumps between reveals. */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid .service-card {
    grid-row: 1;
    grid-column: 1;
  }

  /* Booking section: reduce section gap on mobile */
  .booking {
    padding-block: 4rem;
  }

  .booking__title {
    font-size: 1.5rem;
  }

  /* Stats compact on mobile */
  .stat-row {
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  /* Tech title smaller on mobile */
  .tech__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .tech__desc {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  /* Hero title mobile */
  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }

  /* Button mobile */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.7rem;
  }

  /* Footer standalone mobile */
  .footer--standalone {
    padding-block: 3rem;
  }

  .footer__brand {
    margin-bottom: 1.5rem;
    gap: 0.6rem;
  }

  .footer__brand-logo {
    height: 2rem;
  }

  .footer__brand-name {
    font-size: 1.5rem;
  }

  .footer__links {
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

/* Small phones */
@media (max-width: 374px) {
  :root {
    --margin-mobile: 1rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .text-display-hero {
    font-size: 1.5rem;
  }

  .text-headline-lg {
    font-size: 1.25rem;
  }

  .text-headline-md {
    font-size: 1.1rem;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  .hero__title {
    font-size: 5rem;
  }
}
