/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050508;
  --bg-2: #0a0a10;
  --surface: #0f0f18;
  --surface-2: #141420;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(100, 200, 255, 0.25);
  --text: #ffffff;
  --text-dim: #ffffff;
  --text-faint: rgba(255, 255, 255, 0.85);
  --text-glow: 0 0 1px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
  --accent: #5bc8f5;
  --accent-2: #38a8e8;
  --accent-glow: rgba(91, 200, 245, 0.18);
  --accent-glow-strong: rgba(91, 200, 245, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --nav-h: 64px;
}

html {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
  /* Removed snapping for a more fluid feel */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-shadow: var(--text-glow);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* pan-x pan-y: allows both directions — critical so child carousels can scroll horizontally */
  touch-action: pan-x pan-y;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

input,
textarea,
select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.gradient-text,
.gradient-text-2 {
  background-size: 200% auto;
  background-image: linear-gradient(120deg,
      #ffffff 10%,
      #a8e6ff 25%,
      var(--accent) 45%,
      #ffffff 65%,
      var(--accent) 80%,
      #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquidShine 5s linear infinite;
  text-shadow: none !important;
  display: inline-block;
  padding-right: 0.1em;
  padding-bottom: 0.1em;
  margin-right: -0.1em;
  margin-bottom: -0.1em;
  /* Helps prevent clipping on certain browsers */
}

@keyframes liquidShine {
  0% {
    background-position: 100% center;
  }

  50% {
    background-position: 0% center;
  }

  100% {
    background-position: 100% center;
  }
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  /* Optimized for Performance: Lower blur radius on fixed navbar */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(5, 5, 8, 0.75);
  will-change: transform;
  background: rgba(5, 5, 8, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.2s var(--ease),
    visibility 1.2s;
  overflow: hidden;
}

/* Instant-Hide logic for persistent sessions to kill stutter */
.hide-preloader-immediately #preloader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}


body.preloader-hidden #preloader {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.diamond-confetti {
  position: fixed;
  background: var(--color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  pointer-events: none;
  z-index: 99999;
  animation: diamondBurst 1s ease-out forwards;
}

@keyframes diamondBurst {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0);
    opacity: 0;
  }
}

/* ── New logo preloader ─────────────────────────────────── */
.preloader-logo-group {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-bottom: 20px;
}

.preloader-gem-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  isolation: isolate;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  animation: preloaderGemIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes preloaderGemIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-gem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 10px rgba(91, 200, 245, 0.55)) drop-shadow(0 0 4px rgba(91, 200, 245, 0.35));
}

/* Vignette to blend white image bg into dark preloader bg */
.preloader-gem-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(ellipse at center,
      transparent 42%,
      rgba(0, 0, 0, 0.55) 65%,
      rgba(0, 0, 0, 0.95) 82%,
      #000 100%);
  pointer-events: none;
  z-index: 2;
}

/* Shine sweep */
.preloader-gem-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
      transparent 20%,
      rgba(255, 255, 255, 0.75) 50%,
      transparent 80%);
  transform: translateX(-120%);
  animation: preloaderShine 0.7s ease-out 0.9s forwards;
  border-radius: 4px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes preloaderShine {
  to {
    transform: translateX(160%);
  }
}

/* Sparkle on gem */
.preloader-gem-sparkle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: white;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0;
  z-index: 3;
  animation: preloaderSparkle 2.5s ease-in-out 1.2s infinite;
}

@keyframes preloaderSparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.3) rotate(45deg);
  }
}

/* "GEMS." text slides out from behind the gem */
.preloader-gem-text {
  display: inline-block;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transform: translateX(-40px);
  text-shadow: 0 0 40px rgba(91, 200, 245, 0.5);
  animation: preloaderTextReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
}

.preloader-gem-text .accent {
  color: var(--accent);
}

@keyframes preloaderTextReveal {
  to {
    width: clamp(160px, 27vw, 260px);
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   LIQUID PAGE TRANSITION
   ============================================================ */
.liquid-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 5000;
  background: #050508;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* State-driven visibility - very fast */
.nav-loading .liquid-overlay {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20001 !important;
}

.liquid-logo {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  letter-spacing: -0.04em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure Logo is actually visible when overlay is active */
.nav-loading .liquid-overlay .liquid-logo {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.liquid-overlay.in {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.liquid-overlay.in .liquid-logo {
  opacity: 1;
  transform: scale(1);
}

.liquid-overlay.out {
  opacity: 0;
  visibility: hidden;
}

#preloader-video,
#preloader-video-2,
#preloader-video-2-alt {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(circle at center, #1a2a44 0%, #000 70%);
  /* Cinematic Backdrop Fallback */
  z-index: 3;
  /* Unified depth for seamless cross-fading */
}

#preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Subtle Vignette Stage Over Video */
  z-index: 4;
  /* Above video, below content (5) */
  pointer-events: none;
}

@keyframes ambientVignette {
  from {
    opacity: 0.8;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.preloader-content {
  position: relative;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  width: 100%;
  padding: 0 20px;
}

.preloader-logo {
  font-size: clamp(50px, 18vw, 160px);
  font-weight: 950;
  letter-spacing: -0.06em;
  margin: 0;
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  will-change: transform, opacity;

  background: linear-gradient(120deg, #fff 10%, #a8e6ff 25%, var(--accent) 45%, #fff 65%, var(--accent) 80%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: preloaderLogoIn 1.5s cubic-bezier(0.2, 0, 0, 1) 0.3s forwards,
    preloaderLogoPulse 3s ease-in-out infinite alternate 1.8s,
    liquidShine 4s linear infinite;

  text-shadow: 0 0 80px rgba(91, 200, 245, 0.4);
}

.preloader-sub {
  font-size: clamp(11px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0;
  opacity: 0;
  transform: translateY(10px);
  color: rgba(255, 255, 255, 0.55);
  animation: preloaderSubIn 0.8s ease-out 1.3s forwards;
}

@keyframes preloaderSubIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .preloader-logo {
    letter-spacing: -0.08em;
  }
}

.preloader-logo .accent {
  color: var(--accent);
}

.preloader-enter-btn {
  margin-top: 50px;
  background: rgba(91, 200, 245, 0.08);
  /* Sapphire glass as requested */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 200, 245, 0.3);
  padding: 18px 48px;
  border-radius: 100px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  animation: preloaderBtnIn 1s ease-out 5s forwards;
  pointer-events: all;
  /* Make sure it can be clicked */
  box-shadow: 0 0 20px rgba(91, 200, 245, 0.1);
}

.preloader-enter-btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 40px rgba(91, 200, 245, 0.4);
  transform: translateY(-2px) scale(1.05);
}

@keyframes preloaderBtnIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.preloader-hidden #preloader {
  opacity: 0;
  transform: scale(1.1);
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloaderLogoIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes preloaderLogoPulse {
  from {
    transform: scale(1);
    text-shadow: 0 0 80px rgba(91, 200, 245, 0.4);
  }

  to {
    transform: scale(1.05);
    text-shadow: 0 0 120px rgba(91, 200, 245, 0.7);
  }
}

@keyframes liquidShine {
  to {
    background-position: 200% center;
  }
}

body.preloader-active {
  overflow: hidden !important;
}

body.preloader-active #navbar {
  opacity: 0;
}

#navbar.scrolled {
  background: rgba(5, 5, 8, 0.92);
  box-shadow: 0 1px 40px rgba(91, 200, 245, 0.06);
}

.nav-inner {
  max-width: 100%;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  padding: 0 32px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  /* Flush against text */
  cursor: pointer;
  position: relative;
}

.logo-gem-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.logo-gem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(91, 200, 245, 0.4));
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: var(--text-glow);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transform: translateX(-35px);
  /* Start deep inside gem */
  margin-left: 2px;
  animation: logoTextReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

.logo-text .accent {
  color: var(--accent);
}

/* Interactive glimmer sparkle */
.logo-sparkle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: white;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0;
  z-index: 4;
  animation: logoSparkleFlicker 3s ease-in-out infinite 1.5s;
}

@keyframes logoSparkleFlicker {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }
}

@keyframes logoTextReveal {
  to {
    width: 75px;
    opacity: 1;
    transform: translateX(0);
  }
}

.falling-gem {
  position: fixed;
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  pointer-events: none;
  z-index: 9999;
  animation: gemFall var(--dur) ease-in forwards;
}

@keyframes gemFall {
  0% {
    transform: scale(0.5) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(400px) translateX(var(--drift)) rotate(var(--rot)) scale(1.2);
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 8px 14px !important;
    font-size: 11px !important;
  }

  /* Hide less critical links on mobile to save space */
  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }
}

.nav-links a {
  position: relative;
  color: #ffffff;
  text-shadow: var(--text-glow);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  /* Bolder as requested */
  letter-spacing: -0.01em;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(91, 200, 245, 0.08);
  border: 1px solid rgba(91, 200, 245, 0.3);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  z-index: 0;
}

/* Rotating light sweep — replicates the Framer button's spinning light */
.nav-links a::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(91, 200, 245, 0.35) 20deg,
      transparent 60deg);
  animation: navBtnSweep 3s linear infinite;
  z-index: -1;
  border-radius: 100px;
}

/* Inner background so text stays readable over spinning gradient */
.nav-links a::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 100px;
  background: rgba(8, 12, 20, 0.92);
  z-index: -1;
}

.nav-links a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  display: none;
}

/* Pricing page link — matches other nav links exactly */
.nav-pricing-link {
  font-weight: 800 !important;
}

@keyframes navBtnSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: calc(var(--nav-h) + 10px) 0 60px;
  scroll-snap-align: start;
}

/* Clip the vortex canvas to the hero without clipping text */
#vortex-canvas {
  overflow: hidden;
}

/* ---- Vortex Canvas ---- */
#vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Floating cursor badges ─────────────────────────────── */
.hero-cursor-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.preloader-hidden .hero-cursor-badge,
.hide-preloader-immediately .hero-cursor-badge {
  animation: hcbFadeIn 0.7s var(--ease-out) forwards;
}

.hero-cursor-badge--green {
  left: 5%;
  top: 28%;
  animation-delay: 0.4s;
}

.hero-cursor-badge--red {
  right: 5%;
  top: 52%;
  animation-delay: 0.65s;
}

@keyframes hcbFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hcb-cursor {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px currentColor);
}

.hcb-label {
  display: block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Green */
.hero-cursor-badge--green .hcb-cursor {
  color: #3ecf6e;
}

.hero-cursor-badge--green .hcb-label {
  color: #3ecf6e;
  background: rgba(62, 207, 110, 0.10);
  border: 1px solid rgba(62, 207, 110, 0.30);
  box-shadow: 0 4px 16px rgba(62, 207, 110, 0.12);
}

/* Red */
.hero-cursor-badge--red .hcb-cursor {
  color: #ef4444;
}

.hero-cursor-badge--red .hcb-label {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
}

/* Subtle float animation after entrance */
.preloader-hidden .hero-cursor-badge--green,
.hide-preloader-immediately .hero-cursor-badge--green {
  animation: hcbFadeIn 0.7s var(--ease-out) 0.4s forwards, hcbFloat 4s ease-in-out 1.2s infinite;
}

.preloader-hidden .hero-cursor-badge--red,
.hide-preloader-immediately .hero-cursor-badge--red {
  animation: hcbFadeIn 0.7s var(--ease-out) 0.65s forwards, hcbFloat 4.5s ease-in-out 1.5s infinite;
}

@keyframes hcbFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Hide on viewports too narrow to show them outside the text */
@media (max-width: 1100px) {
  .hero-cursor-badge {
    display: none;
  }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero-title {
  font-size: clamp(60px, 9vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.25s forwards;
  max-width: 1400px;
}

@keyframes strikeThrough {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }

  40% {
    transform: scaleX(1);
    opacity: 1;
  }

  65% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* ✨ sparkle on "Free" */
.free-sparkle {
  display: inline-block;
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  -webkit-text-fill-color: initial;
  -webkit-background-clip: unset;
  background-clip: unset;
  background-image: none;
  font-size: 0.8em;
  vertical-align: middle;
  margin-left: 0.08em;
  pointer-events: none;
  user-select: none;
}

.preloader-hidden .free-sparkle,
.hide-preloader-immediately .free-sparkle {
  animation: sparklePop 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 5.3s forwards;
}

@keyframes sparklePop {
  0% {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }

  18% {
    transform: scale(1.6) rotate(12deg);
    opacity: 1;
  }

  35% {
    transform: scale(0.85) rotate(-6deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(4deg);
    opacity: 1;
  }

  65% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  80% {
    transform: scale(1.05) rotate(-2deg);
    opacity: 0.9;
  }

  100% {
    transform: scale(0) rotate(20deg);
    opacity: 0;
  }
}

.find-word {
  position: relative;
  display: inline-block;
  background-size: 200% auto;
  background-image: linear-gradient(120deg,
      #ffffff 10%,
      #a8e6ff 25%,
      var(--accent) 45%,
      #ffffff 65%,
      var(--accent) 80%,
      #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquidShine 5s linear infinite;
}

.hero-eyeglass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 1em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  /* Reset gradient-text inheritance */
  -webkit-text-fill-color: initial;
  -webkit-background-clip: unset;
  background-clip: unset;
  background-image: none;
  animation: none;
}

.preloader-hidden .hero-eyeglass,
.hide-preloader-immediately .hero-eyeglass {
  animation: eyeglassScan 2.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

@keyframes eyeglassScan {

  /* Zoom in on "Find" */
  0% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }

  12% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 1;
  }

  25% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }

  /* Scan right across line 1 */
  52% {
    transform: translate(calc(-50% + 38vw), -50%) scale(1.1);
    opacity: 1;
  }

  /* Sweep down-right to "Free" on line 3 */
  78% {
    transform: translate(calc(-50% + 28vw), calc(-50% + 16vw)) scale(1.1);
    opacity: 1;
  }

  /* Tuck behind "Free" */
  100% {
    transform: translate(calc(-50% + 28vw), calc(-50% + 16vw)) scale(0);
    opacity: 0;
  }
}

.hero-sub {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), var(--text-glow);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: rgba(91, 200, 245, 0.06);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

.hero-cta:hover {
  background: rgba(91, 200, 245, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(91, 200, 245, 0.2);
  transform: translateY(-2px);
}

.hero-cta .arrow {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.hero-scroll-hint {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.scroll-finger {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(91, 200, 245, 0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  position: relative;
}

.finger-tap {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-swipe 2s infinite ease-in-out;
}

@keyframes scroll-swipe {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
#stats {
  padding: 60px 24px 60px;
  position: relative;
  overflow: hidden;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--surface);
  padding: 52px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.stat-card:hover {
  background: var(--surface-2);
}

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

.stat-number {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-unit,
.stat-unit-pre {
  font-size: 0.6em;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   WORK / PROJECTS
   ============================================================ */
#work {
  padding: 40px 0;
  position: relative;
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 40px;
  background-size: 200% auto;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0.40) 0%,
      #ffffff 30%,
      #a8e6ff 55%,
      var(--accent) 75%,
      var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquidShine 5s ease-in-out infinite;
  display: inline-block;
}

/* ---- TABS ---- */
.tabs-wrapper {
  position: relative;
  margin-bottom: 48px;
}

.tabs-track {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px;
  gap: 2px;
  position: relative;
}

.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background: linear-gradient(135deg, rgba(91, 200, 245, 0.2), rgba(91, 200, 245, 0.08));
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.tab-btn {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
  letter-spacing: 0.01em;
}

.tab-btn.active {
  color: var(--text);
}

.tab-btn:hover:not(.active) {
  color: rgba(240, 240, 245, 0.75);
}

/* ---- PROJECT SLIDES ---- */
.projects-scroll {
  position: relative;
  min-height: 520px;
  transition: height 0.3s ease;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}

.project-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 80px rgba(91, 200, 245, 0.06);
}

/* ---- BROWSER PREVIEW ---- */
.project-preview {
  flex: 1;
}

.preview-browser {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.designer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 200, 245, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.designer-badge span {
  background: linear-gradient(120deg, #fff 10%, #a8e6ff 25%, var(--accent) 45%, #fff 65%, var(--accent) 80%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquidShine 4s linear infinite;
}

@media (max-width: 768px) {
  .project-header {
    margin-bottom: 12px;
  }

  .designer-badge {
    font-size: 8px;
    padding: 3px 8px;
  }
}

.browser-bar {
  background: var(--surface-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.browser-url {
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}

.preview-browser iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
  transform-origin: top left;
  pointer-events: all;
  background: #fff;
}

/* ---- PROJECT INFO ---- */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px 0;
}

.project-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-name {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.project-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
}

.project-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
}

.project-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.project-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.project-open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 200, 245, 0.12), rgba(56, 168, 232, 0.06));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.project-open-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(91, 200, 245, 0.2);
  transform: translateY(-2px);
}

.project-open-btn:hover::before {
  opacity: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

#contact-title-main {
  font-size: clamp(48px, 12vw, 120px) !important;
  line-height: 1.4 !important; 
  letter-spacing: -0.02em !important; 
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  #contact-title-main {
    font-size: clamp(36px, 10vw, 48px) !important;
    line-height: 1.8 !important; /* Exaggerated for mobile clearance */
    letter-spacing: -0.01em !important;
  }
  #contact-title-main span {
    display: block !important;
    margin-top: 10px;
  }
}

.contact-sub {
  font-size: 17px;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(91, 200, 245, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, rgba(91, 200, 245, 0.15), rgba(56, 168, 232, 0.08));
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.cta-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(91, 200, 245, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.cta-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(91, 200, 245, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.cta-pill:hover::after {
  transform: translateX(100%);
}

/* ============================================================
   MODAL
   ============================================================ */
/* Blur page content when any modal is open */
body.modal-blur-active {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Blur page content when any modal is open */
body.modal-blur-active>*:not(.modal-overlay):not(.calendly-overlay) {
  /* filter: blur(20px); -- DISABLED TO PREVENT STUCK BLUR */
  opacity: 1; /* Keep it visible */
  pointer-events: none;
}

body:not(.modal-blur-active)>*:not(.modal-overlay) {
  filter: none;
  transition: filter 0.35s ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(32px) saturate(0.6);
  -webkit-backdrop-filter: blur(32px) saturate(0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}

.modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(91, 200, 245, 0.1);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.modal-ext-btn:hover {
  background: rgba(91, 200, 245, 0.18);
  box-shadow: 0 0 20px rgba(91, 200, 245, 0.15);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 0;
}

#modal-iframe {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: none;
  display: block;
  background: #fff;
}

/* ============================================================
   HERO COUNTDOWN  (inline, below the eyebrow)
   ============================================================ */
.hero-countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}

.hero-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* Each number + label column */
.hcd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
}

/* Vertical separator line between units */
.hcd-sep {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  align-self: center;
  margin-top: -10px;
  /* slightly above center to sit with numerals */
}

/* ── The big number ── */
.hcd-num {
  font-size: 72px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  position: relative;
  background-size: 200% auto;
  /* Base fill: bright white fading into site blue */
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0.40) 0%,
      #ffffff 30%,
      #a8e6ff 55%,
      var(--accent) 75%,
      var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Animate the gradient as the "light sweep" */
  animation: hcdShimmer 4s ease-in-out infinite;
  animation-delay: var(--hcd-delay, 0s);
}

@keyframes hcdShimmer {
  0% {
    background-position: 100% center;
  }

  50% {
    background-position: 0% center;
  }

  100% {
    background-position: 100% center;
  }
}

/* ── Label beneath ── */
.hcd-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 240, 245, 0.30);
  display: block;
}

/* Subtext */
.hcd-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  font-weight: 300;
}

.hcd-cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
  transition: opacity 0.2s;
}

.hcd-cta:hover {
  opacity: 0.8;
}


/* ============================================================
   SOCIAL PROOF POPUP
   ============================================================ */
#social-proof-popup {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(91, 200, 245, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(91, 200, 245, 0.05) inset;
  max-width: 320px;
  min-width: 260px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
}

#social-proof-popup.spp-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.spp-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(91, 200, 245, 0.09);
  border: 1px solid rgba(91, 200, 245, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spp-body {
  flex: 1;
  min-width: 0;
}

.spp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 4px;
}

.spp-sub {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

.spp-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  align-self: flex-start;
}

.spp-close:hover {
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 32px 24px 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-accent {
  color: var(--accent);
  font-weight: 400;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.spin-once {
  display: inline-block;
  vertical-align: bottom;
  transform-style: preserve-3d;
  animation: liquidShine 5s linear infinite;
}

.spin-once.animate-spin {
  animation: spin3D 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    liquidShine 5s linear infinite;
}

/* Vertical flip (rotateX) ensures the text stays more visible throughout the turn */
@keyframes spin3D {
  0% {
    transform: translateY(0) rotateX(0deg) scale(1);
  }

  50% {
    transform: translateY(-8px) rotateX(180deg) scale(1.1);
    box-shadow: 0 20px 40px rgba(91, 200, 245, 0.15);
  }

  100% {
    transform: translateY(0) rotateX(360deg) scale(1);
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: 20px 0;
  position: relative;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

/* ---- Left: Placeholder ---- */
/* ---- Designer Panel ---- */
.designer-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transition: all 0.35s var(--ease);
}

.designer-panel:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(91, 200, 245, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.about-left {
  display: flex;
  flex-direction: column;
}

.panel-portrait {
  position: relative;
  width: 100%;
  height: 240px;
  /* Constrain height to match right column total height perfectly */
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Keeps the head visible, stops it being cut off */
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease;
}

.designer-panel:hover .panel-portrait img {
  filter: grayscale(0) contrast(1.1);
}

.panel-intro {
  padding: 24px 24px 0 24px;
}

.panel-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.panel-role {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 20px 0;
}

.panel-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s var(--ease-out);
}

.social-btn:hover {
  background: var(--surface-2);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-actions {
  display: flex;
  gap: 12px;
}

.panel-connect-btn,
.panel-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.panel-connect-btn:hover,
.panel-more-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.expanded-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  position: relative;
}

.expanded-bio.open {
  max-height: 500px;
  /* Adjust as needed for content */
}

.bio-content {
  padding-top: 24px;
}

.bio-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.bio-content strong {
  color: #fff;
}

.panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 24px 0 24px;
}

.panel-experience {
  padding: 16px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.exp-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.exp-role {
  color: var(--text-faint);
}

.exp-company {
  color: var(--text);
  font-weight: 500;
}

.exp-year {
  color: var(--text-faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.availability-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pulse-container {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot-avail {
  position: relative;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent);
}

.pulse-ring-avail {
  position: absolute;
  inset: -4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: availPulse 2s ease-out infinite;
}

@keyframes availPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ---- Right column ---- */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ---- Map card ---- */
.map-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  flex: 1.5;
  /* Grow to fill space proportionally */
  min-height: 280px;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.map-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(91, 200, 245, 0.15);
}

#location-map {
  width: 100%;
  flex: 1;
  /* Stretch to fill card height */
  min-height: 100%;
  z-index: 1;
}

/* Override Leaflet defaults for dark theme */
.leaflet-container {
  background: #0a0a10 !important;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

/* Pulse dot marker */
.pulse-center {
  position: relative;
  width: 44px;
  height: 44px;
}

.pulse-dot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #5bc8f5;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(91, 200, 245, 0.3), 0 0 18px rgba(91, 200, 245, 0.7);
  z-index: 2;
}

.pulse-ring-a,
.pulse-ring-b {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(91, 200, 245, 0.55);
  border-radius: 50%;
  animation: mapPulseRing 2.5s ease-out infinite;
}

.pulse-ring-b {
  animation-delay: 1.25s;
}

@keyframes mapPulseRing {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Map location badge */
.map-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.map-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 4px var(--accent);
  }

  50% {
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(91, 200, 245, 0.4);
  }
}

/* ---- Worldwide row ---- */
.worldwide-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
  flex: 1;
  /* Stretch to reach the bottom */
}

.worldwide-row:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(91, 200, 245, 0.12);
}

#globe-canvas {
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}

.worldwide-text-wrap {
  flex: 1;
}

.worldwide-heading {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.4;
}

.worldwide-clients {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .preview-browser iframe {
    height: 280px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 650px) {
  #navbar {
    background: transparent;
    border-bottom: none;
    height: auto;
    top: 20px;
    transition: transform 0.4s var(--ease);
  }

  #navbar.scrolled {
    background: transparent;
    box-shadow: none;
    transform: translateY(-8px);
  }

  .nav-inner {
    justify-content: center;
    padding: 0;
  }

  .nav-logo {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 6px;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(91, 200, 245, 0.08) inset;
  }

  .nav-links a {
    padding: 10px 18px;
    font-size: 13px;
    background: transparent;
    border: none;
    transition: all 0.25s var(--ease);
  }

  .nav-links a::before,
  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

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

  .stat-card {
    padding: 36px 20px;
  }
}

.cdb-inner {
  gap: 10px;
  font-size: 12px;
}

.cdb-eyebrow,
.cdb-label,
.cdb-cta {
  display: none;
}

#modal-iframe {
  min-height: 60vh;
}

#location-map {
  height: 240px;
}

.worldwide-row {
  flex-direction: column;
  align-items: flex-start;
}

/* --- Inquiry Modal & Form --- */
.inquiry-container {
  max-width: 680px;
}

.inquiry-body {
  padding: 32px;
  flex: 1;
  overflow-y: auto;
}

.inquiry-intro {
  color: #fff;
  opacity: 0.6;
  font-size: 14px;
  margin-bottom: 32px;
}

#project-form .form-group {
  margin-bottom: 24px;
}

#project-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  color: var(--accent);
}

#project-form input,
#project-form select,
#project-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
}

#project-form input:focus,
#project-form select:focus,
#project-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 20px rgba(91, 200, 245, 0.2);
}

#project-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(91, 200, 245, 0.4);
}

.work-footer {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}

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

  .inquiry-body {
    padding: 20px 20px 40px;
    overflow-y: visible !important;
    flex: none !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Form modal: bottom sheet on mobile — no spring, fills screen from bottom */
  #project-modal {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    backdrop-filter: blur(24px) saturate(0.6) !important;
    -webkit-backdrop-filter: blur(24px) saturate(0.6) !important;
    background: rgba(0, 0, 0, 0.55) !important;
  }

  #project-modal .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    /* Allow to grow with content */
    max-height: none !important;
    border-radius: 22px 22px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: visible !important;
    /* Wrapper handles scroll */
    margin-top: 10vh !important;
    /* Provide some gap at top to see background */
  }

  #project-modal.open .modal-container {
    transform: translateY(0) !important;
  }

  /* Hide all floating widgets when project modal is open */
  body.project-modal-open #ai-chat-widget,
  body.project-modal-open #social-proof-popup,
  body.project-modal-open #back-to-top,
  body.project-modal-open #navbar {
    display: none !important;
    pointer-events: none !important;
  }

  /* Full-screen modal when open — no gap at top, no rounded corners */
  body.project-modal-open #project-modal .modal-container {
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  /* Site preview modal: also remove heavy blur, keep centered */
  #site-modal {
    backdrop-filter: blur(24px) saturate(0.6) !important;
    -webkit-backdrop-filter: blur(24px) saturate(0.6) !important;
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 12px !important;
  }

  #site-modal .modal-container {
    max-height: 88dvh !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform: scale(0.97) translateY(12px) !important;
  }

  #site-modal.open .modal-container {
    transform: scale(1) translateY(0) !important;
  }

  #modal-iframe {
    min-height: 60vh !important;
  }

}

/* ============================================================
   AI CHAT WIDGET (iMessage Style)
   ============================================================ */
#ai-chat-widget {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#chat-trigger {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;

  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chat-trigger.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#chat-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#chat-trigger:hover {
  transform: scale(1.05);
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #050510;
}

#chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 360px;
  height: 580px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom left;
}

#chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
}

.chat-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 12px;
}

.status-icons {
  display: flex;
  gap: 4px;
}

.chat-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 2px;
}

.chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.chat-subtitle {
  font-size: 10px;
  color: #8e8e93;
}

#chat-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  font-size: 18px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #000;
}

.message {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.message.received {
  align-self: flex-start;
}

.message.sent {
  align-self: flex-end;
}

.bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.received .bubble {
  background: #262629;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.sent .bubble {
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 12px 14px 28px;
  background: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-actions .action-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid #3a3a3c;
  border-radius: 20px;
  padding: 0 6px 0 14px;
}

#chat-input {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 0;
  color: #fff;
  font-size: 15px;
  outline: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #007aff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 4px 0;
  filter: grayscale(1);
  opacity: 0.5;
  transition: all 0.2s;
}

#chat-send.active {
  filter: grayscale(0);
  opacity: 1;
}

/* Hide scrollbar but allow scrolling */
.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-messages {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 480px) {
  #chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
    bottom: 80px;
    left: -8px;
  }
}

/* Typing Indicator Animation */
.typing-indicator .bubble {
  display: flex;
  gap: 3px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #8e8e93;
  border-radius: 50%;
  animation: typingBounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ============================================================
   WHY ME / COMPARISON SECTION
   ============================================================ */
#why-me {
  padding: 40px 0;
}

.section-header.center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-top: -10px;
}

.comparison-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid !important;
  /* Force grid mode */
  grid-template-columns: repeat(4, 1fr) !important;
  /* Explicit 4 columns on all desktop */
  gap: 24px;
  padding: 0 40px;
  perspective: 2000px;
}

/* Global Flip Card Architecture */
.flip-card {
  background-color: transparent;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Desktop Hover + Mobile .flipped sync */
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute !important;
  /* Force stacking */
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 20px;
  padding: 32px 24px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-sizing: border-box;
  transform-style: preserve-3d !important;
}

.flip-card-front {
  background: var(--surface);
  color: var(--text);
  z-index: 2 !important;
  transform: translateZ(1px);
}

.flip-card-back {
  background: rgba(255, 50, 50, 0.05);
  color: #ff8080;
  transform: rotateY(180deg) translateZ(1px);
  border-color: rgba(255, 50, 50, 0.2);
  z-index: 1 !important;
}

.comp-icon {
  width: 32px;
  height: 32px;
  background: rgba(91, 200, 245, 0.15);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(91, 200, 245, 0.2);
}

.con .comp-icon {
  background: rgba(255, 255, 255, 0.05);
  color: #8e8e93;
  border-color: rgba(255, 255, 255, 0.1);
}

.flip-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.25;
}

.flip-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  opacity: 0.8;
}

.flip-hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: auto;
  opacity: 0.5;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   PROCESS SECTION (3D Carousel)
   ============================================================ */
#process {
  padding: 40px 0;
  overflow: hidden;
}

.carousel-3d-wrapper {
  margin: 32px auto;
  max-width: 1200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-3d-scene {
  width: 100%;
  height: 520px;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.carousel-3d-container {
  width: 440px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

.carousel-item.side {
  opacity: 0.4;
  filter: blur(4px) brightness(0.6);
  pointer-events: all;
  cursor: pointer;
}

.step-card {
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 56px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s var(--ease);
}

.active .step-card {
  border-color: var(--border-hover);
  background: var(--surface);
}

.step-num {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-faint);
}

.step-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-card p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}

.step-footer {
  margin-top: auto;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  color: var(--text-faint);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  z-index: 20;
}

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-btn:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease);
}

.dot-btn.active {
  background: var(--accent);
  width: 32px;
  border-radius: 10px;
}

.process-bottom-cta {
  margin-top: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.process-cta-inner {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta-text span {
  font-size: 32px;
}

.cta-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.cta-text strong {
  color: var(--text);
  font-size: 18px;
  display: block;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.secondary-btn {
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn {
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: black;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 200, 245, 0.3);
}

@media (max-width: 960px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .carousel-3d-scene {
    height: 480px;
  }

  .carousel-3d-container {
    width: 320px;
    height: 420px;
  }

  .step-card {
    padding: 40px 32px;
  }

  .process-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .cta-text {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================================
   REVIEWS (Orbit 3D)
   ============================================================ */
.reviews-wrapper {
  margin-top: 40px;
  position: relative;
  width: 100%;
}

.reviews-header {
  text-align: center;
  margin-bottom: 60px;
}

.satisfaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.reviews-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 0.95;
}

.reviews-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

.reviews-3d-scene {
  height: 500px;
  width: 100%;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.reviews-orbit {
  width: 400px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 22, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  backface-visibility: hidden;
  transform: rotateY(calc(var(--i) * 90deg)) translateZ(450px);
  transition: all 0.6s var(--ease);
}

/* Depth feel */
.review-card:not(.active) {
  filter: blur(2px) grayscale(0.4);
  opacity: 0.4;
  scale: 0.85;
}

.review-card.active {
  box-shadow: 0 0 80px rgba(91, 200, 245, 0.15), 0 40px 100px rgba(0, 0, 0, 0.8);
  border-color: rgba(91, 200, 245, 0.3);
}

.rev-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.rev-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.rev-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.rev-role {
  font-size: 14px;
  color: var(--text-dim);
}

.rev-stars {
  font-size: 14px;
  color: #ffb800;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.rev-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 300;
  margin: 0;
}

@media (max-width: 960px) {
  .reviews-3d-scene {
    height: auto;
    perspective: none;
    display: block;
    padding: 0 24px;
  }

  .reviews-orbit {
    transform: none !important;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .review-card {
    position: relative;
    transform: none !important;
    width: 100%;
    opacity: 1 !important;
    filter: none !important;
    scale: 1 !important;
  }
}

/* BACK TO TOP */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(20px);
  z-index: 1000;
  width: 48px;
  height: 48px;
  background: rgba(91, 200, 245, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 20px rgba(91, 200, 245, 0.15);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#back-to-top:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 30px rgba(91, 200, 245, 0.4);
  transform: translateX(-50%) translateY(-5px);
}

#back-to-top svg {
  transition: transform 0.3s var(--ease);
}

#back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER (SAPPHIRE GLASSMORPHIC)
   ============================================================ */
#main-footer {
  background: linear-gradient(180deg, rgba(5, 5, 10, 0.5) 0%, rgba(2, 2, 5, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168, 230, 255, 0.08);
  padding: 100px 5% 40px;
  margin-top: 120px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto 80px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.footer-slogan {
  color: #a0a0a0;
  max-width: 320px;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 30px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(168, 230, 255, 0.15);
}

.footer-grid h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 30px;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a,
.footer-legal a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #666;
  font-size: 13px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 213, 115, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(46, 213, 115, 0.15);
  color: #2ed573;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #2ed573;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
  }

  70% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-slogan {
    max-width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links,
  .footer-legal {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ============================================================
   MOBILE PERFECTION (768px and below)
   ============================================================ */
@media (max-width: 768px) {

  /* --- Global Reset for Mobile (Spacious Wave 9) --- */
  section {
    padding: 40px 20px !important;
    /* Aggressively reduced for high-density mobile flow */
  }

  .audit-form-header {
    margin-bottom: 24px !important;
  }

  .section-header {
    margin-bottom: 24px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 24px !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    /* Must allow BOTH directions so horizontal carousel swipe works */
    touch-action: pan-x pan-y !important;
  }

  /* Ancestors of the carousels must NOT restrict to pan-y only */
  section,
  .process-inner,
  .why-me-inner,
  .carousel-3d-wrapper,
  .reviews-wrapper {
    touch-action: pan-x pan-y !important;
    overflow: visible !important;
  }

  /* MUST override process overflow:hidden so carousel can extend beyond bounds */
  #process {
    overflow: visible !important;
  }

  /* about section also needs to allow reviews to overflow horizontally */
  #about {
    overflow: visible !important;
  }

  /* reviews-wrapper also needs overflow override */
  .reviews-wrapper {
    overflow: visible !important;
    overflow-x: visible !important;
  }


  /* --- Attached Header (Wave 7) --- */
  #navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(5, 5, 8, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    margin: 0 !important;
    z-index: 10001 !important;
  }

  .nav-inner {
    padding: 0 16px !important;
    height: 60px !important;
    justify-content: space-between !important;
  }

  .nav-links {
    gap: 12px !important;
  }

  .nav-links a {
    padding: 8px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none !important;
  }

  /* --- Project Cards (Spacious Mobile Layout) --- */
  .project-card {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 20px !important;
    border-radius: 20px !important;
    margin-bottom: 0 !important;
  }

  .project-slide {
    margin-bottom: 0 !important;
  }

  .project-info {
    padding: 0 4px !important;
    gap: 14px !important;
  }

  .project-name {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  .project-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  /* Mobile: hide iframes, show static screenshot instead */
  .preview-browser {
    height: 240px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .preview-browser .desktop-iframe {
    display: none !important;
  }

  .mobile-screenshot {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center top !important;
    background-color: var(--surface-2) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: transform 0.4s ease !important;
  }

  .mobile-screenshot:active {
    transform: scale(0.98) !important;
  }

  .project-cta-row {
    justify-content: center !important;
    margin-top: 24px !important;
  }

  .project-open-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
  }

  /* Work section extra breathing room */
  #work {
    padding: 80px 0 60px !important;
  }

  .work-inner {
    padding: 0 16px !important;
  }

  .tabs-wrapper {
    margin-bottom: 24px !important;
  }

  .work-footer {
    margin-top: 40px !important;
    padding-bottom: 20px !important;
  }

  /* Optimized Flip Grid Overrides */
  .comparison-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }

  .flip-card {
    height: 230px !important;
  }

  .flip-card h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .flip-card p {
    font-size: 12px !important;
  }

  /* --- Hero & Spacing Consolidation --- */
  #hero {
    padding: calc(var(--nav-h) + 0px) 16px 40px !important;
    /* Reduced clearance for tighter flow */
    min-height: auto !important;
    text-align: center !important;
  }

  .hero-eyebrow {
    display: block !important;
    position: relative !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 16px !important;
    color: var(--accent) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-title {
    font-size: 64px !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
    margin-bottom: 40px !important;
    word-break: break-word !important;
    padding-right: 10px;
  }

  .hero-sub {
    font-size: 18px !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .primary-btn,
  .secondary-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* --- Finger Scroll Icon (Wave 9 Gestural) --- */
  .scroll-mouse {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(91, 200, 245, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    animation: fingerTap 2s infinite !important;
  }

  .scroll-dot {
    width: 4px !important;
    height: 4px !important;
    background: #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    box-shadow: 0 0 10px #fff !important;
    animation: fingerSwipeMove 2s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  @keyframes fingerTap {

    0%,
    20% {
      transform: scale(1);
      opacity: 0.8;
    }

    30% {
      transform: scale(0.9);
      opacity: 1;
    }

    40% {
      transform: scale(1);
      opacity: 0.8;
    }
  }

  @keyframes fingerSwipeMove {
    0% {
      transform: translateY(10px);
      opacity: 0;
    }

    40% {
      transform: translateY(10px);
      opacity: 1;
    }

    90% {
      transform: translateY(-25px);
      opacity: 0;
    }

    100% {
      opacity: 0;
    }
  }

  .scroll-mouse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: touchRipple 2s infinite !important;
  }

  @keyframes touchRipple {

    0%,
    25% {
      transform: scale(0.5);
      opacity: 0;
    }

    30% {
      opacity: 0.5;
    }

    60% {
      transform: scale(1.5);
      opacity: 0;
    }

    100% {
      opacity: 0;
    }
  }

  /* --- Deck-of-Cards Carousels (mobile) --- */
  .carousel-3d-scene {
    overflow: visible !important;
    display: block !important;
    perspective: none !important;
    transform-style: flat !important;
    padding: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    background: transparent !important;
    touch-action: pan-y !important;
    cursor: default !important;
    height: 500px !important;
    position: relative !important;
    z-index: 1 !important;
    align-items: unset !important;
  }

  .reviews-3d-scene {
    overflow: visible !important;
    display: block !important;
    perspective: none !important;
    transform-style: flat !important;
    padding: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    background: transparent !important;
    touch-action: pan-y !important;
    cursor: default !important;
    height: 400px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .carousel-3d-wrapper,
  .reviews-wrapper {
    overflow: visible !important;
    overflow-x: visible !important;
  }

  .carousel-3d-container,
  .reviews-orbit {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    transform-style: flat !important;
    padding: 0 !important;
    gap: 0 !important;
    flex-wrap: unset !important;
    flex-direction: unset !important;
  }

  .carousel-item,
  .review-card {
    position: absolute !important;
    width: calc(100% - 48px) !important;
    min-width: unset !important;
    left: 24px !important;
    right: 24px !important;
    top: 0 !important;
    scroll-snap-align: none !important;
    height: auto !important;
    align-self: unset !important;
    flex-shrink: unset !important;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.38s ease !important;
    transform-origin: center top !important;
    pointer-events: none !important;
    filter: none !important;
    opacity: 0 !important;
    scale: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
  }

  /* Deck position states */
  .deck-active {
    transform: translateX(0) translateY(0) scale(1) rotate(0deg) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    filter: none !important;
  }

  /* Ensure active review card is fully opaque so behind cards don't bleed through */
  .review-card.deck-active {
    background: rgba(10, 10, 18, 0.97) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    backdrop-filter: blur(24px) !important;
  }

  .deck-behind-1 {
    transform: translateX(8px) translateY(8px) scale(0.96) rotate(1.5deg) !important;
    opacity: 0.65 !important;
    z-index: 9 !important;
    pointer-events: none !important;
    filter: none !important;
  }

  .deck-behind-2 {
    transform: translateX(16px) translateY(16px) scale(0.92) rotate(3deg) !important;
    opacity: 0.35 !important;
    z-index: 8 !important;
    pointer-events: none !important;
    filter: none !important;
  }

  .deck-hidden {
    transform: translateX(22px) translateY(22px) scale(0.88) rotate(4.5deg) !important;
    opacity: 0 !important;
    z-index: 7 !important;
    pointer-events: none !important;
    filter: none !important;
  }

  .deck-exit-left {
    transform: translateX(-110%) rotate(-12deg) !important;
    opacity: 0 !important;
    z-index: 11 !important;
    pointer-events: none !important;
  }

  .deck-exit-right {
    transform: translateX(110%) rotate(12deg) !important;
    opacity: 0 !important;
    z-index: 11 !important;
    pointer-events: none !important;
  }

  /* Cards inside should use 100% height to expand to the stretched wrapper */
  .step-card {
    height: 100% !important;
    min-height: 380px !important;
    padding: 36px 28px 48px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .step-footer {
    margin-top: auto !important;
    position: static !important;
    transform: none !important;
    width: fit-content !important;
    padding: 8px 16px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    font-size: 11px !important;
  }

  /* Nav buttons hidden on mobile — swipe is the gesture */
  .carousel-nav {
    display: flex !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }

  /* "Get My Design" button — must be tappable */
  .process-bottom-cta {
    margin-top: 40px !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .primary-btn.contact-trigger {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 20 !important;
    display: inline-flex !important;
    -webkit-tap-highlight-color: rgba(91, 200, 245, 0.2) !important;
  }

  .cta-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .cta-btns .secondary-btn,
  .cta-btns .primary-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
  }

  /* --- Other Mobile Adjustments --- */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 24px 16px !important;
  }

  .hero-countdown {
    gap: 0 !important;
  }

  .hcd-num {
    font-size: 38px !important;
  }

  .tabs-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: calc(100vw - 32px) !important;
    padding: 6px !important;
    gap: 4px !important;
    margin: 32px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-sizing: border-box !important;
  }

  .tab-btn {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    font-size: 10px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Safety for very long names */
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
  }

  .tab-btn.active {
    background: rgba(91, 200, 245, 0.15) !important;
    color: var(--accent) !important;
    box-shadow: inset 0 0 10px rgba(91, 200, 245, 0.1) !important;
  }

  #tab-indicator {
    display: none !important;
  }

  .tabs-track::-webkit-scrollbar {
    display: none !important;
  }

  .bg-outline-text,
  .background-text {
    font-size: 14vw !important;
    max-width: 100vw !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}

.mobile-screenshot {
  display: none;
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 32px !important;
  }
}

/* ============================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Stop heavy GPU/CPU work on mobile to prevent lag/heating
   ============================================================ */
@media (max-width: 768px) and (pointer: coarse) {

  /* Pause the liquidShine scroll gradient animation — biggest CPU win */
  .gradient-text,
  .gradient-text-2,
  .section-title,
  .preloader-logo {
    animation: none !important;
    background-position: 0% center !important;
  }

  /* Stop spinning nav button conic gradient — runs 60fps */
  .nav-links a::before {
    display: none !important;
  }

  /* Reduce or disable blur effects that cause GPU overdraw */
  .preview-browser,
  .stat-card,
  .step-card,
  .review-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Force compositing only on key animated elements */
  #vortex-canvas,
  #globe-canvas {
    will-change: auto !important;
    /* Let browser decide — avoids VRAM pressure */
  }

  /* Disable the preloader logo pulse animation on mobile */
  .preloader-logo {
    animation: preloaderLogoIn 1.5s cubic-bezier(0.2, 0, 0, 1) 0.3s forwards !important;
  }

  /* Reduce hero animation complexity */
  .hero-title,
  .hero-sub,
  .hero-eyebrow,
  .hero-cta {
    animation-duration: 0.4s !important;
    /* Faster so GPU is freed sooner */
  }

  /* Remove hover transforms that can trigger costly repaints */
  .project-open-btn:hover,
  .hero-cta:hover,
  .cta-pill:hover,
  .submit-btn:hover {
    transform: none !important;
  }

  /* Disable section scroll hint on mobile (not needed) */
  .hero-scroll-hint {
    display: none !important;
  }

  /* Ensure the About section doesn't show 2-column layout */
  .about-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 4px !important;
  }

  /* exp-row (project links in About) — tap-friendly */
  .exp-row {
    padding: 16px 12px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  /* Portrait fills its container properly on mobile */
  .panel-portrait {
    height: 300px !important;
  }

  .panel-portrait img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center 10% !important;
  }

  /* Social proof popup — keep it but reduce animation */
  #social-proof-popup {
    bottom: 80px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }
}


/* ============================================================
   HERO — CTA GROUP (updated)
   ============================================================ */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 32px rgba(91, 200, 245, 0.35);
  border: none;
}

.hero-cta-primary:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 60px rgba(91, 200, 245, 0.55);
  transform: translateY(-2px) scale(1.02);
}

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: rgba(91, 200, 245, 0.06);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}

.hero-cta-ghost:hover {
  background: rgba(91, 200, 245, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(91, 200, 245, 0.15);
  transform: translateY(-2px);
}

.hero-cta-ghost .arrow {
  display: inline-block;
  animation: bounce 2s infinite;
}

/* ============================================================
   AUDIT FORM SECTION
   ============================================================ */
#audit-section {
  position: relative;
  padding: 0 24px 100px;
  background: var(--bg);
}

.audit-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(91, 200, 245, 0.25) 30%,
      rgba(91, 200, 245, 0.5) 50%,
      rgba(91, 200, 245, 0.25) 70%,
      transparent 100%);
  margin-bottom: 72px;
}

.audit-form-inner {
  max-width: 780px;
  margin: 0 auto;
}

.audit-form-header {
  text-align: center;
  margin-bottom: 48px;
}

.audit-form-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.audit-form-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: none;
}

#audit-modal .audit-card {
  padding-top: 14px !important;
}

#audit-modal .modal-container {
  max-height: 95vh;
}

.audit-card {
  background: rgba(15, 15, 24, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Clean modern outline, no more harsh black borders */
  border-radius: 32px;
  /* more rounded */
  padding: 48px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(91, 200, 245, 0.04);
  position: relative;
  overflow: hidden;
}

.audit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  /* intense light bar */
  box-shadow: 0 0 30px 4px rgba(255, 255, 255, 0.2);
  /* top light spill */
  border-radius: 50%;
}

.audit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.audit-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-card .form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: none;
}

.audit-card .form-group .req {
  color: var(--accent);
}

.audit-card .form-group input,
.audit-card .form-group select,
.audit-card .form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  /* Glassy inputs */
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Clean border */
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  /* Shining text */
}

.audit-card .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  text-shadow: none !important;
}

.audit-card .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235bc8f5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  text-shadow: none !important;
}

.audit-card .form-group select option {
  background: #0f0f18;
  color: #fff;
}

.audit-card .form-group input:focus,
.audit-card .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 200, 245, 0.1);
}

.contact-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 6px;
  width: fit-content;
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  /* Extra thick for max brightness */
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  user-select: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
  text-transform: none;
}

.toggle-option input[type="radio"] {
  display: none;
}

.toggle-option:active {
  transform: scale(0.95);
}

.toggle-option.active {
  background: var(--accent);
  color: #000000;
  text-shadow: none;
  box-shadow: 0 0 24px rgba(91, 200, 245, 0.4);
}

.breathing-emoji {
  display: inline-block;
  animation: breatheY 2.5s ease-in-out infinite;
}

@keyframes breatheY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.audit-submit-btn {
  width: 100%;
  padding: 18px 32px;
  border-radius: 12px;
  /* Light hover effect tracking --x and --y */
  background: radial-gradient(circle 100px at var(--x, 50%) var(--y, -100px), rgba(255, 255, 255, 0.6), transparent), var(--accent);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: 8px;
  box-shadow: 0 0 32px rgba(91, 200, 245, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.2);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  transform: scale(1);
}

.audit-submit-btn:hover {
  background: radial-gradient(circle 140px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.9), transparent), var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 200, 245, 0.6), inset 0 0 16px rgba(255, 255, 255, 0.4);
}

.audit-submit-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 10px rgba(91, 200, 245, 0.3);
}

.audit-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.audit-micro-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  text-shadow: none;
  letter-spacing: 0;
}

.audit-success {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.audit-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(91, 200, 245, 0.12);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(91, 200, 245, 0.25);
  animation: successPing 0.5s var(--ease-out) forwards;
}

@keyframes successPing {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.audit-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--text-glow);
}

.audit-success p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: none;
}

@media (max-width: 640px) {
  .audit-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

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

  .contact-toggle {
    width: 100%;
  }

  .toggle-option {
    flex: 1;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-primary,
  .hero-cta-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .audit-form-title {
    font-size: 26px;
  }
}

/* ============================================================
   GEMS VIDEO SECTION
   ============================================================ */
#gems-video-section {
  position: relative;
  padding: 40px 24px 80px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.gems-video-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Big hero-style title */
.gems-video-title {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-align: center;
  color: #fff;
  overflow: visible;
}

/* Falling gem emoji — inline sibling after GEMS. */
.gems-video-gem {
  display: inline-block;
  vertical-align: top;
  font-size: 0.7em;
  margin-left: -0.1em;
  pointer-events: none;
  opacity: 0;
  animation: videoGemDrop 2s ease-in 0.9s forwards;
}

@keyframes videoGemDrop {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }

  14% {
    opacity: 1;
    transform: translateY(-14px) rotate(-18deg) scale(1.1);
  }

  30% {
    opacity: 1;
    transform: translateY(18px) rotate(22deg) scale(0.95);
  }

  48% {
    opacity: 1;
    transform: translateY(55px) rotate(-12deg) scale(0.9);
  }

  65% {
    opacity: 1;
    transform: translateY(100px) rotate(8deg) scale(0.85);
  }

  80% {
    opacity: 0.4;
    transform: translateY(150px) rotate(-5deg) scale(0.75);
  }

  100% {
    opacity: 0;
    transform: translateY(220px) rotate(0deg) scale(0.6);
  }
}

/* Artistic background GEMS. text — covers full section */
.gems-video-bg-text {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  padding: 8px 4px;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%);
}

.gems-video-bg-text span {
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.07;
  padding: 3px 6px;
  user-select: none;
  animation: gemsBgFlash 4s ease-in-out infinite;
  white-space: nowrap;
}

/* Stagger via nth-child modulo patterns — applies to all dynamically added spans */
.gems-video-bg-text span:nth-child(4n+1) {
  animation-delay: 0s;
  color: var(--accent);
}

.gems-video-bg-text span:nth-child(4n+2) {
  animation-delay: 1.1s;
  color: #fff;
}

.gems-video-bg-text span:nth-child(4n+3) {
  animation-delay: 2.3s;
  color: var(--accent);
}

.gems-video-bg-text span:nth-child(4n+4) {
  animation-delay: 3.4s;
  color: #fff;
}

.gems-video-bg-text span:nth-child(7n+1) {
  animation-duration: 3.8s;
}

.gems-video-bg-text span:nth-child(7n+3) {
  animation-duration: 4.5s;
}

.gems-video-bg-text span:nth-child(7n+5) {
  animation-duration: 5.1s;
}

@keyframes gemsBgFlash {

  0%,
  100% {
    opacity: 0.09;
  }

  40%,
  60% {
    opacity: 0.75;
  }
}

/* Player card */
.gems-video-player-wrap {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(91, 200, 245, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(91, 200, 245, 0.04);
  background: #0e0e1a;
  width: fit-content;
  max-width: 100%;
}

/* Video frame — shrinks to the video's natural size */
.gems-video-frame {
  position: relative;
  display: block;
  line-height: 0;
}

#gems-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(520px, 100vw - 48px);
  max-height: 65vh;
  border-radius: 20px 20px 0 0;
}

/* Click-to-pause overlay */
.gems-video-click-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

/* Controls bar */
.gems-video-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #0e0e1a;
}

.gems-video-playpause {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.gems-video-playpause:hover {
  transform: scale(1.1);
}

.gems-video-playpause:active {
  transform: scale(0.92);
}

.gems-video-playpause svg {
  width: 16px;
  height: 16px;
}

/* Scrubber */
.gems-video-scrubber-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.gems-video-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.gems-video-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(91, 200, 245, 0.5);
  transition: transform 0.15s ease;
}

.gems-video-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.35);
}

.gems-video-scrubber::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.gems-video-time {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 30px;
  text-align: right;
}

@media (max-width: 600px) {
  #gems-video-section {
    padding: 48px 16px 56px;
  }

  .gems-video-title {
    font-size: clamp(32px, 9vw, 56px);
  }

  #gems-video {
    max-width: calc(100vw - 48px);
    max-height: 55vh;
  }
}

/* ============================================================
   THREE PILLARS SECTION
   ============================================================ */
#pillars {
  position: relative;
  padding: 100px 24px 80px;
  background: var(--bg);
  overflow: hidden;
}

#pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 200, 245, 0.3), transparent);
}

.pillars-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pillars-title {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  color: #fff;
}

.pillars-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: pillarFloat 6s ease-in-out infinite;
}

.pillar-card:nth-child(2) {
  animation-delay: -2s;
}

.pillar-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes pillarFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.pillar-card:hover {
  transform: translateY(-12px) !important;
  border-color: rgba(255, 255, 255, 0.18);
}

.pillar-card--blue:hover {
  box-shadow: 0 20px 60px rgba(91, 200, 245, 0.18);
}

.pillar-card--teal:hover {
  box-shadow: 0 20px 60px rgba(32, 210, 190, 0.18);
}

.pillar-card--coral:hover {
  box-shadow: 0 20px 60px rgba(255, 120, 80, 0.18);
}

.pillar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon-wrap--blue {
  background: rgba(91, 200, 245, 0.12);
  color: #5bc8f5;
}

.pillar-icon-wrap--teal {
  background: rgba(32, 210, 190, 0.12);
  color: #20d2be;
}

.pillar-icon-wrap--coral {
  background: rgba(255, 120, 80, 0.12);
  color: #ff7850;
}

.pillar-svg {
  width: 36px;
  height: 36px;
}

.pillar-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.pillar-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

.pillar-card--blue .pillar-tag {
  background: rgba(91, 200, 245, 0.1);
  color: #5bc8f5;
}

.pillar-card--teal .pillar-tag {
  background: rgba(32, 210, 190, 0.1);
  color: #20d2be;
}

.pillar-card--coral .pillar-tag {
  background: rgba(255, 120, 80, 0.1);
  color: #ff7850;
}

.pillars-cta {
  display: flex;
  justify-content: center;
}

.pillars-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  background: rgba(91, 200, 245, 0.08);
  border: 1px solid rgba(91, 200, 245, 0.3);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.pillars-learn-btn:hover {
  background: rgba(91, 200, 245, 0.15);
  border-color: rgba(91, 200, 245, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 200, 245, 0.2);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
#pricing {
  position: relative;
  padding: 100px 24px 100px;
  background: var(--bg);
  overflow: hidden;
}

#pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 200, 245, 0.3), transparent);
}

.pricing-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero */
.pricing-hero {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.pricing-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main Package card */
.pkg-card-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.pkg-card {
  position: relative;
  background: rgba(15, 15, 24, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(91, 200, 245, 0.25);
  border-radius: 32px;
  padding: 56px 48px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(91, 200, 245, 0.04), 0 40px 100px rgba(0, 0, 0, 0.5);
}

.pkg-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(91, 200, 245, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pkg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 200, 245, 0.8), transparent);
  box-shadow: 0 0 20px 2px rgba(91, 200, 245, 0.3);
}

.pkg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(91, 200, 245, 0.1);
  border: 1px solid rgba(91, 200, 245, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pkg-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pkg-dollar {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.pkg-amount {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1;
}

.pkg-cycle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  padding: 0;
}

.pkg-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.pkg-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(91, 200, 245, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pkg-cta {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 40px rgba(91, 200, 245, 0.35);
}

.pkg-cta:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(91, 200, 245, 0.4);
}

/* What's Included */
.included-section {
  text-align: center;
  margin-bottom: 80px;
}

.included-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 40px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.included-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px 28px;
  transition: border-color 0.3s var(--ease);
}

.included-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.included-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 14px;
}

.included-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.included-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.included-card p em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  font-weight: 600;
}

/* Monthly Add-ons */
.addons-section {
  text-align: center;
  margin-bottom: 80px;
}

.addons-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}

.addons-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 40px;
}

.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.addon-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.addon-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.addon-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.addon-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.addon-what {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.addon-price {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.addon-price span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
}

.addon-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.addon-features li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.addon-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 2px;
}

.addon-explain {
  background: rgba(91, 200, 245, 0.04);
  border: 1px solid rgba(91, 200, 245, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
}

.addon-explain-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.addon-explain p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  font-style: italic;
}

/* Bottom CTA */
.pricing-cta-block {
  text-align: center;
  padding: 80px 24px;
  background: rgba(91, 200, 245, 0.03);
  border: 1px solid rgba(91, 200, 245, 0.1);
  border-radius: 32px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.pricing-cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 200, 245, 0.5), transparent);
}

.pricing-cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 12px;
}

.pricing-cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
}

.pricing-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 32px rgba(91, 200, 245, 0.3);
}

.pricing-btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(91, 200, 245, 0.4);
}

.pricing-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.pricing-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* FAQ */
.faq-section {
  text-align: center;
}

.faq-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item[open] {
  border-color: rgba(91, 200, 245, 0.2);
}

.faq-item summary {
  padding: 22px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 28px 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* Responsive: Pillars + Pricing */
@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pillar-card {
    animation: none;
  }

  .included-grid,
  .addons-grid {
    grid-template-columns: 1fr;
  }

  .pkg-card {
    padding: 40px 28px;
  }

  .addon-header {
    flex-direction: column;
    gap: 8px;
  }

  .pricing-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  #main-footer {
    padding: 60px 5% 30px;
    margin-top: 40px;
  }

  .footer-grid {
    gap: 40px;
    margin-bottom: 40px;
  }
}

/* ============================================================
   CONTACT SECTION — COUNTDOWN URGENCY BLOCK
   ============================================================ */
.contact-countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto 44px;
  padding: 32px 40px;
  max-width: 680px;
  background: rgba(91, 200, 245, 0.04);
  border: 1px solid rgba(91, 200, 245, 0.12);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.contact-countdown-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 200, 245, 0.35), transparent);
}

.contact-countdown-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(91, 200, 245, 0.5);
}

/* Resize countdown numbers for the contact section context */
.contact-countdown-block .hcd-num {
  font-size: clamp(40px, 6vw, 64px);
}

.contact-countdown-block .hcd-sep {
  height: 44px;
}

.contact-countdown-block .hcd-unit {
  padding: 0 18px;
}

.contact-countdown-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  text-shadow: none;
  max-width: 360px;
  text-align: center;
  line-height: 1.5;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .contact-countdown-block {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .contact-countdown-block .hcd-unit {
    padding: 0 10px;
  }

  .contact-countdown-block .hcd-num {
    font-size: 36px;
  }

  .contact-countdown-block .hcd-sep {
    height: 32px;
  }
}

/* ============================================================
   AUDIT FORM — ERROR MESSAGE
   ============================================================ */
.audit-error-msg {
  font-size: 13px;
  color: #ff6b6b;
  text-shadow: none;
  text-align: center;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 8px;
  margin-top: -4px;
}

/* ============================================================
   TACTILE BUTTON DEPTH SYSTEM
   Physical weight: gradient surface + thick hard edge + deep
   ambient shadow + snap-press active state.
   ============================================================ */

/* ── Shared transitions ─────────────────────────────────
   Hover: smooth ease-in-out 0.3s
   Active: fast snap 0.08s
   Release: smooth ease-out 0.3s
   ──────────────────────────────────────────────────────── */
.hero-cta-ghost,
.hero-cta-primary,
.project-open-btn,
.secondary-btn,
.panel-more-btn,
.pillars-learn-btn,
.cta-pill,
.preloader-enter-btn,
.submit-btn,
.primary-btn,
.audit-submit-btn,
.nav-btn,
.modal-close-btn,
#back-to-top {
  transition:
    transform 0.3s ease-out,
    box-shadow 0.3s ease-out,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Active press — fast snap down */
.hero-cta-ghost:active,
.hero-cta-primary:active,
.project-open-btn:active,
.secondary-btn:active,
.panel-more-btn:active,
.pillars-learn-btn:active,
.cta-pill:active,
.preloader-enter-btn:active,
.submit-btn:active,
.primary-btn:active,
.audit-submit-btn:active,
.nav-btn:active,
.modal-close-btn:active,
#back-to-top:active {
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

/* ── Ghost / outline buttons ────────────────────────────── */
.hero-cta-ghost,
.project-open-btn,
.secondary-btn,
.panel-more-btn,
.pillars-learn-btn,
.preloader-enter-btn {
  background:
    linear-gradient(170deg,
      rgba(91, 200, 245, 0.13) 0%,
      rgba(4, 8, 18, 0.94) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(91, 200, 245, 0.10),
    0 6px 0 rgba(0, 0, 0, 0.88),
    0 12px 24px rgba(0, 0, 0, 0.65),
    0 24px 48px rgba(0, 0, 0, 0.28);
}

.hero-cta-ghost:hover,
.project-open-btn:hover,
.secondary-btn:hover,
.panel-more-btn:hover,
.pillars-learn-btn:hover,
.preloader-enter-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(91, 200, 245, 0.15),
    0 9px 0 rgba(0, 0, 0, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.65),
    0 32px 56px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(91, 200, 245, 0.18) !important;
}

.hero-cta-ghost:active,
.project-open-btn:active,
.secondary-btn:active,
.panel-more-btn:active,
.pillars-learn-btn:active,
.preloader-enter-btn:active {
  transform: translateY(5px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 3px 8px rgba(0, 0, 0, 0.5),
    0 1px 0 transparent,
    0 1px 0 transparent,
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

/* cta-pill gets same treatment but can't override background due to ::after shimmer */
.cta-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 6px 0 rgba(0, 0, 0, 0.88),
    0 12px 24px rgba(0, 0, 0, 0.60),
    0 24px 48px rgba(0, 0, 0, 0.25) !important;
}

.cta-pill:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 9px 0 rgba(0, 0, 0, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.60),
    0 32px 56px rgba(0, 0, 0, 0.22),
    0 0 60px rgba(91, 200, 245, 0.25) !important;
}

.cta-pill:active {
  transform: translateY(5px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 3px 8px rgba(0, 0, 0, 0.45),
    0 1px 0 transparent,
    0 4px 8px rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.22) !important;
}

/* ── Accent / filled buttons ────────────────────────────── */
.hero-cta-primary,
.submit-btn,
.primary-btn {
  background:
    linear-gradient(170deg,
      rgba(255, 255, 255, 0.22) 0%,
      var(--accent) 30%,
      #1f7fb5 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 0 rgba(0, 45, 80, 0.55),
    0 6px 0 rgba(0, 25, 55, 0.95),
    0 12px 24px rgba(0, 0, 0, 0.60),
    0 8px 40px rgba(91, 200, 245, 0.38) !important;
}

.hero-cta-primary:hover,
.submit-btn:hover,
.primary-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 45, 80, 0.45),
    0 9px 0 rgba(0, 25, 55, 0.90),
    0 18px 32px rgba(0, 0, 0, 0.55),
    0 12px 60px rgba(91, 200, 245, 0.55) !important;
}

.hero-cta-primary:active,
.submit-btn:active,
.primary-btn:active {
  transform: translateY(5px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 3px 8px rgba(0, 45, 80, 0.45),
    0 1px 0 transparent,
    0 4px 8px rgba(0, 0, 0, 0.45),
    0 4px 20px rgba(91, 200, 245, 0.22) !important;
}

/* Audit CTA — radial mouse-track gradient stays, just layer depth on top */
.audit-submit-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 45, 80, 0.50),
    0 6px 0 rgba(0, 25, 55, 0.95),
    0 12px 24px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(91, 200, 245, 0.40) !important;
}

.audit-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 45, 80, 0.40),
    0 9px 0 rgba(0, 25, 55, 0.90),
    0 18px 32px rgba(0, 0, 0, 0.50),
    0 12px 60px rgba(91, 200, 245, 0.60) !important;
}

.audit-submit-btn:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 3px 8px rgba(0, 45, 80, 0.40),
    0 1px 0 transparent,
    0 4px 8px rgba(0, 0, 0, 0.45),
    0 4px 20px rgba(91, 200, 245, 0.25) !important;
}

/* ── Round icon buttons ─────────────────────────────────── */
.nav-btn,
.modal-close-btn {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(4, 8, 18, 0.98) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 5px 0 rgba(0, 0, 0, 0.90),
    0 10px 20px rgba(0, 0, 0, 0.70),
    0 20px 40px rgba(0, 0, 0, 0.30) !important;
}

.nav-btn:hover,
.modal-close-btn:hover {
  transform: scale(1.06) translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 7px 0 rgba(0, 0, 0, 0.85),
    0 14px 28px rgba(0, 0, 0, 0.65),
    0 28px 48px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(91, 200, 245, 0.20) !important;
}

.nav-btn:active,
.modal-close-btn:active {
  transform: translateY(5px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 3px 8px rgba(0, 0, 0, 0.55),
    0 0px 0 transparent,
    0 3px 8px rgba(0, 0, 0, 0.55),
    0 6px 16px rgba(0, 0, 0, 0.28) !important;
}

/* back-to-top — translateX(-50%) must be preserved */
#back-to-top {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.60),
    0 5px 0 rgba(0, 0, 0, 0.88),
    0 10px 20px rgba(0, 0, 0, 0.65),
    0 20px 40px rgba(91, 200, 245, 0.10) !important;
}

#back-to-top:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 45, 80, 0.45),
    0 7px 0 rgba(0, 25, 55, 0.85),
    0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(91, 200, 245, 0.42) !important;
}

#back-to-top:active {
  transform: translateX(-50%) translateY(4px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 3px 8px rgba(0, 0, 0, 0.5),
    0 1px 0 transparent,
    0 3px 8px rgba(0, 0, 0, 0.45),
    0 6px 16px rgba(91, 200, 245, 0.12) !important;
}

/* ============================================================
   MOBILE OVERRIDES — must be last to win all cascade conflicts
   ============================================================ */
/* ============================================================
   FINAL MOBILE OPTIMIZATIONS (Consolidated)
   ============================================================ */
@media (max-width: 1024px) {

  /* Fix Scroll Lock Jump on Mobile */
  body.modal-blur-active {
    overflow: hidden !important;
    /* Avoid position:fixed to prevent jumps, use robust overflow instead */
    touch-action: none !important;
  }

  /* Allow touch only inside the active modal */
  .modal-overlay,
  .calendly-overlay {
    touch-action: pan-y !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* CALENDLY POPUP: Center and clean */
  .calendly-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 2000000000 !important;
  }

  .calendly-overlay .calendly-popup {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 94vw !important;
    max-width: 94vw !important;
    height: 80vh !important;
    max-height: 80vh !important;
    margin: 0 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
    background-image: none !important;
    /* KILL GRADIENT */
  }

  .calendly-overlay .calendly-popup::before,
  .calendly-overlay .calendly-popup::after {
    display: none !important;
    content: none !important;
  }

  /* Fix Calendly iframe background just in case */
  .calendly-overlay .calendly-popup iframe {
    background: #ffffff !important;
    border-radius: 20px !important;
  }

  .calendly-popup-close {
    position: absolute !important;
    top: 45px !important;
    left: 24px !important;
    width: 44px !important;
    height: 44px !important;
    background: #000 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    font-size: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  }

  .calendly-popup-close::before {
    content: "✕" !important;
  }

  /* PROJECT MODAL SCROLLING */
  #project-modal {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #project-modal .modal-container {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 60px !important;
    overflow: visible !important;
  }

  #project-modal .inquiry-body {
    padding-bottom: 200px !important;
  }

  /* BIG DOMINANT HEADERS FOR MOBILE */
  .section-title,
  .pillars-title,
  .gems-video-title {
    font-size: 52px !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
    margin-bottom: 30px !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {

  /* MODAL OVERRIDES: NO GRADIENT / VISIBLE X */
  #audit-modal,
  .modal-overlay {
    z-index: 2000000000 !important;
  }

  /* Push form content below the ::before glow bar */
  #audit-modal .audit-card {
    padding-top: 28px !important;
  }



  .modal-container {
    background: #000 !important;
  }

  .modal-header {
    background: #000 !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .modal-close-btn {
    background: #222 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 22px !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Ensure chatbot / social proof are behind */
  #chat-trigger,
  #social-proof-popup {
    z-index: 1000 !important;
  }
}

@media (max-width: 768px) {

  /* FULL SCREEN MODAL FOR MOBILE */
  .modal-overlay {
    padding: 0 !important;
    background: #000 !important;
    display: flex !important;
    align-items: flex-start !important;
    overflow: hidden !important;
  }

  .modal-container {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: unset !important;
    max-height: none !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 24px) !important;
  }

  .modal-header {
    padding: 14px 16px 14px !important;
    height: auto !important;
    background: #000 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .modal-close-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 24px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

/* --- HERO ANIMATION SYSTEM 12.1 (MOBILE OPTIMIZED) --- */
.hero-title {
  display: block !important;
  text-align: center !important;
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.1;
  overflow: visible !important;
}

.hero-title .gradient-text {
  display: inline !important;
  position: relative;
  z-index: 5;
  letter-spacing: 0.08em !important; /* Prevent T-I overlap */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  background-image: linear-gradient(120deg, #ffffff 10%, #a8e6ff 25%, var(--accent) 45%, #ffffff 65%, var(--accent) 80%, #ffffff 100%);
  background-size: 200% auto;
  animation: liquidShine 5s linear infinite;
}

.word-wrapper-isyour, .word-wrapper-costing, .word-wrapper-jobs {
  position: relative !important;
  display: inline-block !important;
  vertical-align: baseline;
  white-space: nowrap !important; /* Force 'You Jobs' to stay together */
}

.word-question {
  position: relative !important;
  z-index: 20 !important; /* Ensure it's always in front of the money bag */
}

/* Base Emoji Styling */
.emoji-glasses, .emoji-money {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  line-height: 1;
  color: #fff !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* 1. Magnifying Glass (Scan across, slide behind, SPIN & VANISH) */
.emoji-glasses {
  left: -5%;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 0.6em;
  z-index: 10;
}

.preloader-hidden .emoji-glasses {
  animation: magSpinTuck 3.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes magSpinTuck {
  0% { left: -10%; transform: translateY(-50%) scale(0); opacity: 0; }
  15% { left: 0%; transform: translateY(-50%) scale(2.0); opacity: 1; z-index: 10; }
  70% { left: 85%; transform: translateY(-50%) scale(2.0); opacity: 1; z-index: 10; }
  85% { left: 92%; transform: translateY(-80%) scale(0.6); opacity: 0.8; z-index: 1; }
  100% { left: 90%; transform: translateY(-75%) scale(0) rotate(360deg); opacity: 0; z-index: 1; }
}

/* 2. Realistic Pen Strike (Organic drawing flow) */
.red-strike-line {
  display: block !important;
  position: absolute !important;
  left: -3% !important;
  top: 60% !important;
  height: 14px;
  width: 0;
  background: linear-gradient(to right, #ff3b30, #e60000) !important;
  border-radius: 12px 4px 10px 5px;
  transform: rotate(-1.5deg) skewX(-10deg);
  z-index: 15;
  opacity: 0;
}

.preloader-hidden .red-strike-line {
  animation: strikeOrganic 2.8s ease-in-out 3.2s forwards;
}

@keyframes strikeOrganic {
  0% { width: 0; opacity: 0; }
  20% { width: 106%; opacity: 0.95; }
  85% { width: 106%; opacity: 0.95; }
  100% { width: 106%; opacity: 0; transform: rotate(-1.5deg) skewX(-10deg) scaleY(0.4); }
}

/* 3. Bouncing Money Bag (Bounce, tilt, slide behind, SPIN & VANISH) */
.emoji-money {
  right: -0.8em;
  top: 0;
  transform: scale(0) rotate(-15deg);
  font-size: 0.58em;
  z-index: 10;
}

.preloader-hidden .emoji-money {
  animation: moneySpinTuck 3.8s cubic-bezier(0.34, 1.56, 0.64, 1) 5.5s forwards;
}

@keyframes moneySpinTuck {
  0% { right: -1.2em; transform: scale(0) rotate(-15deg); opacity: 0; }
  35% { right: -0.2em; transform: scale(1.8) rotate(15deg); opacity: 1; z-index: 10; }
  75% { right: -0.2em; transform: scale(1.8) rotate(15deg); opacity: 1; z-index: 10; }
  85% { right: 0.1em; transform: translate(-85px, 20px) scale(0.8) rotate(20deg); opacity: 0.7; z-index: 1; }
  100% { right: 0.1em; transform: translate(-85px, 20px) scale(0) rotate(360deg); opacity: 0; z-index: 1; }
}

/* Cleanup */
.word-costing { padding-right: 25px !important; }

@media (max-width: 768px) {
  .emoji-glasses { font-size: 0.85em; }
  .emoji-money { font-size: 0.75em; }
  .red-strike-line { height: 8px !important; top: 58% !important; }
  
  /* Mobile-specific money bag exit (less aggressive translation) */
  @keyframes moneySpinTuck {
    0% { right: -1.2em; transform: scale(0) rotate(-15deg); opacity: 0; }
    30% { right: -0.2em; transform: scale(1.4) rotate(15deg); opacity: 1; z-index: 10; }
    70% { right: -0.2em; transform: scale(1.4) rotate(15deg); opacity: 1; z-index: 10; }
    85% { right: 0.1em; transform: translate(-45px, 15px) scale(0.7) rotate(20deg); opacity: 0.7; z-index: 1; }
    100% { right: 0.1em; transform: translate(-45px, 15px) scale(0) rotate(360deg); opacity: 0; z-index: 1; }
  }
}
