/* ============================================
   WEBISTRY STUDIOS — CINEMATIC EXPERIENCE
   Scene-Based Immersive Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #121212;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --text-primary: #E5E5E5;
  --text-secondary: #BFBFBF;
  --text-muted: #808080;
  --text-dim: #4A4A4A;
  --accent: #3A7BD5;
  --accent-glow: rgba(58, 123, 213, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --transition-cinematic: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scene Container ── */
#scene-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* ── Individual Scene ── */
.scene {
  position: absolute;
  inset: 0;
  width: 100vw !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transform: translateZ(0); 
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-cinematic),
    transform var(--transition-cinematic);
}

.scene.active {
  pointer-events: auto;
  opacity: 1;
}

/* ── Scroll Progress Bar (Gold) ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3A7BD5 40%, #3A7BD5);
  z-index: 1000;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}



/* ── Floating Navigation Panel ── */
#floating-nav {
  position: fixed;
  right: 40px;
  top: 40px;
  z-index: 999;
  display: flex;
  flex-direction: row;
  gap: 16px;
  opacity: 0;
  animation: navReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.floating-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid var(--border-subtle);
  transform: translateZ(0);
  will-change: transform;
}

.nav-item-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.floating-nav-item:hover {
  transform: translateY(-2px);
  background: rgba(60, 60, 60, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.floating-nav-item:hover .nav-item-text {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.floating-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
}

.floating-nav-item.active .nav-item-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Scroll Hint ── */
#scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

#scroll-hint span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50% { opacity: 0.8; transform: rotate(45deg) translateY(6px); }
}

/* ── Persistent Global Logo ── */
#persistent-logo {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  max-width: 85vw;
  height: auto;
  opacity: 0;
  pointer-events: none;
  animation: logoReveal 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), 
              clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  clip-path: inset(0 0 0% 0);
  transform: translate(-50%, -50%) translateZ(0);
  will-change: transform, opacity, clip-path;
}

body:not([data-active-scene="1"]) #persistent-logo {
  top: 0px;
  left: 40px;
  transform: translateY(4px);
  width: 140px;
  opacity: 0.9;
  clip-path: inset(0 0 35% 0);
  pointer-events: auto !important;
  cursor: pointer !important;
}

@keyframes logoReveal {
  to { opacity: 1; }
}

/* ============================================
   CINEMATIC BACKGROUND SYSTEM
   ============================================ */

.cine-layer-deep {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transition: transform var(--transition-cinematic);
}

.scene.active .cine-layer-deep {
  transform: translate(0, 0) scale(1.02);
}

.scene:not(.active) .cine-layer-deep {
  transform: translate(0, 0) scale(1.1);
}

.cine-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  opacity: 0.5;
  transition: opacity 1s ease;
}

.cine-overlay-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,15,15,0.5) 0%, #0f0f0f 100%);
}

.cine-overlay-dark.opacity-heavy {
  background: radial-gradient(ellipse at center, rgba(15,15,15,0.7) 0%, #0f0f0f 100%);
}

.cine-layer-mid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foreground-content {
  position: relative;
  z-index: 3;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  will-change: transform, opacity;
  transition: opacity var(--transition-cinematic), transform var(--transition-cinematic);
}

.scene.active .foreground-content.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Stagger Children for Performance & Elegance */
.foreground-content > * {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.foreground-content.visible > * {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.foreground-content.visible > *:nth-child(1) { transition-delay: 0.1s; }
.foreground-content.visible > *:nth-child(2) { transition-delay: 0.25s; }
.foreground-content.visible > *:nth-child(3) { transition-delay: 0.4s; }
.foreground-content.visible > *:nth-child(4) { transition-delay: 0.55s; }
.foreground-content.visible > *:nth-child(5) { transition-delay: 0.7s; }

/* ============================================
   SCENE 1 — HERO
   ============================================ */

.cinematic-collage-system {
  position: absolute;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; 
  max-width: none !important;
  height: 100vh !important;
  display: flex; align-items: center; justify-content: center;
  perspective: 2500px;
  overflow: hidden;
}

.collage-grid {
  position: absolute;
  width: 120vw; height: 120vh;
  transform-style: preserve-3d;
  display: flex;
}

.framer-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  will-change: transform;
}

.framer-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.fc-head { height: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 12px; background: rgba(0,0,0,0.4); z-index: 2; position:relative; }
.fc-dots { width: 8px; height: 8px; border-radius: 50%; background: #444; box-shadow: 12px 0 0 #444, 24px 0 0 #444; }
.fc-body { flex: 1; background-size: cover; background-position: top center; background-repeat: no-repeat; position: relative; z-index:1; }

/* ═══ HERO COMPOSITION — Structured Precision Layout ═══
   Strict, intentional placement with clear hierarchy:
   RIGHT:  Dominant panel — 680×460, Z:200, sharp
   LEFT:   Medium panel   — 440×340, Z:100, sharp
   BG:     3 small panels — 280-320px, Z:-80 to -150, light blur
   ATMO:   4 depth fills  — 300-360px, Z:-280 to -400, soft blur
   Center kept clean for logo. Controlled, slow motion only. */

/* ── Motion Profile: Primary (Sharp foreground panels) ── */
@keyframes float-primary {
  0% { transform: translateZ(var(--z, 0px)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(0); }
  100% { transform: translateZ(calc(var(--z, 0px) + 10px)) rotateY(calc(var(--ry, 0deg) + 2deg)) rotateX(calc(var(--rx, 0deg) - 2deg)) translateY(-15px); }
}

/* ── Motion Profile: Secondary (Midground panels) ── */
@keyframes float-secondary {
  0% { transform: translateZ(var(--z, -100px)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(0); }
  100% { transform: translateZ(calc(var(--z, -100px) - 5px)) rotateY(calc(var(--ry, 0deg) - 1deg)) rotateX(calc(var(--rx, 0deg) + 1deg)) translateY(10px); }
}

/* ── Motion Profile: Atmospheric (Deep background, subtle) ── */
@keyframes float-atmospheric {
  0% { transform: translateZ(var(--z, -300px)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(0); opacity: 0.4; }
  100% { transform: translateZ(calc(var(--z, -300px) - 2px)) rotateY(calc(var(--ry, 0deg) + 0.5deg)) rotateX(calc(var(--rx, 0deg) - 0.5deg)) translateY(5px); opacity: 0.6; }
}

/* ── RIGHT — Dominant panel ── */
.c-fore-1 {
  width: 600px; height: 420px;
  left: 54vw; top: 14vh;
  opacity: 1; filter: blur(0px);
  --z: 200px; --ry: -4deg; --rx: 2deg;
  transform: translateZ(var(--z)) rotateY(var(--ry)) rotateX(var(--rx));
  animation: float-primary 22s ease-in-out infinite alternate;
  z-index: 5;
}

/* ── LEFT — Medium panel ── */
.c-fore-2 {
  width: 420px; height: 320px;
  left: 4vw; top: 20vh;
  opacity: 0.95; filter: blur(0px);
  --z: 100px; --ry: 3deg; --rx: 1deg;
  transform: translateZ(var(--z)) rotateY(var(--ry)) rotateX(var(--rx));
  animation: float-primary 25s ease-in-out infinite alternate -5s;
  z-index: 4;
}

/* ── BACKGROUND — Shared secondary motion ── */
.c-fore-3 {
  width: 300px; height: 210px; left: 4vw; top: -2vh; opacity: 0.75; filter: blur(0.5px);
  --z: -80px; --ry: 2deg; --rx: 1deg;
  transform: translateZ(var(--z)) rotateY(var(--ry)) rotateX(var(--rx));
  animation: float-secondary 28s ease-in-out infinite alternate -10s;
  z-index: 2;
}
.c-mid-1 {
  width: 280px; height: 185px; left: 60vw; top: 60vh; opacity: 0.72; filter: blur(0.5px);
  --z: -120px; --ry: -2deg; --rx: -1deg;
  transform: translateZ(var(--z)) rotateY(var(--ry)) rotateX(var(--rx));
  animation: float-secondary 30s ease-in-out infinite alternate -15s;
  z-index: 2;
}
.c-mid-2 {
  width: 260px; height: 178px; left: 14vw; top: 66vh; opacity: 0.7; filter: blur(0.8px);
  --z: -150px; --ry: 1deg; --rx: -1deg;
  transform: translateZ(var(--z)) rotateY(var(--ry)) rotateX(var(--rx));
  animation: float-secondary 32s ease-in-out infinite alternate -20s;
  z-index: 2;
}

/* ── CORNERS & FILLS — Shared Atmospheric (Heavy Blur = Less unique motion) ── */
.c-corner-bl, .c-corner-br, .c-corner-tr {
  animation: float-atmospheric 35s ease-in-out infinite alternate;
}
.c-corner-bl { width: 360px; height: 245px; left: -3vw; top: 80vh; --z: -100px; --ry: 3deg; --rx: -2deg; }
.c-corner-br { width: 400px; height: 268px; left: 72vw; top: 72vh; --z: -140px; --ry: -3deg; --rx: -1deg; animation-delay: -12s; }
.c-corner-tr { width: 370px; height: 310px; left: 77vw; top: 28vh; --z: -160px; --ry: -4deg; --rx: 1deg; animation-delay: -18s; }

/* DENSE CLOUDS — Static (No Animation to save CPU) */
.c-mid-3, .c-mid-4, .c-back-1, .c-back-2, .c-corner-bc, .c-fill-rm, .c-fill-brf, .c-fill-bs {
  animation: none !important;
  opacity: 0.35;
  filter: blur(2px);
}
.c-mid-3 { width: 320px; height: 220px; left: 66vw; top: 4vh; transform: translateZ(-280px) rotateY(-3deg) rotateX(1deg); }
.c-mid-4 { width: 280px; height: 195px; left: -3vw; top: 46vh; transform: translateZ(-300px) rotateY(2deg) rotateX(-1deg); }
.c-back-1 { width: 330px; height: 225px; left: 36vw; top: -4vh; transform: translateZ(-360px) rotateY(-1deg) rotateX(1deg); }
.c-back-2 { width: 300px; height: 200px; left: 24vw; top: 74vh; transform: translateZ(-400px) rotateY(1deg) rotateX(-1deg); }
.c-corner-bc { width: 310px; height: 208px; left: 46vw; top: 82vh; transform: translateZ(-300px) rotateY(1deg) rotateX(-2deg); }
.c-fill-rm { width: 295px; height: 220px; left: 86vw; top: 8vh; transform: translateZ(-260px) rotateY(-2deg) rotateX(2deg); }
.c-fill-brf { width: 320px; height: 215px; left: 84vw; top: 62vh; transform: translateZ(-280px) rotateY(-1deg) rotateX(-2deg); }
.c-fill-bs { width: 360px; height: 185px; left: 60vw; top: 88vh; transform: translateZ(-380px) rotateY(1deg) rotateX(-1deg); }


/* Living Loop Animations for internal templates */
.scrolling-anim {
  animation: liveScroll 20s linear infinite alternate;
}
.scrolling-anim-fast {
  animation: liveScroll 16s linear infinite alternate-reverse;
}
@keyframes liveScroll {
  0% { background-position: center 0%; }
  100% { background-position: center 100%; }
}

.dashboard-anim {
  display: flex; gap: 8px; padding: 24px; align-items: flex-end; background: #0a0a0a;
}
.dash-bar {
  flex: 1; background: linear-gradient(to top, rgba(255,255,255,0.05), rgba(255,255,255,0.4));
  border-radius: 4px; height: var(--h);
  animation: dashPulse 2s ease-in-out infinite alternate;
}
.dash-bar:nth-child(2) { animation-delay: 0.3s; }
.dash-bar:nth-child(3) { animation-delay: 0.6s; }
.dash-bar:nth-child(4) { animation-delay: 0.9s; }
.dash-bar:nth-child(5) { animation-delay: 1.2s; }
.dash-bar:nth-child(6) { animation-delay: 1.5s; }
@keyframes dashPulse {
  0% { transform: scaleY(0.7); opacity: 0.6; transform-origin: bottom; }
  100% { transform: scaleY(1.1); opacity: 1; transform-origin: bottom; }
}

/* Vignette overlay: soft center for logo readability,
   edges clear so left/right panels show through cleanly */
.cine-overlay-dark.opacity-hero-core {
  background: radial-gradient(
    ellipse 58% 52% at 50% 50%,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.6) 30%,
    rgba(10,10,10,0.18) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* ============================================
   SCENE 2 — INTRO
   ============================================ */
.s2-collage .framer-card {
  opacity: 0.5; /* Default dimmer for background execution */
}

/* Frag mappings (Edges & Top/Bottom) */
.s2-frag-1 { width: 450px; height: 350px; left: -5vw; top: -10vh; filter: blur(3px); transform: translateZ(-300px) rotateY(15deg) rotateX(10deg); animation: s2Float1 25s ease-in-out infinite alternate; }
.s2-frag-2 { width: 600px; height: 400px; right: -10vw; top: 10vh; filter: blur(2px); transform: translateZ(-200px) rotateY(-18deg) rotateX(5deg); animation: s2Float2 30s ease-in-out infinite alternate; opacity: 0.6 !important; }
.s2-frag-3 { width: 500px; height: 320px; left: 10vw; bottom: -5vh; filter: blur(2.5px); transform: translateZ(-400px) rotateY(10deg) rotateX(-8deg); animation: s2Float3 22s ease-in-out infinite alternate; opacity: 0.4 !important;}
.s2-frag-4 { width: 350px; height: 280px; right: 15vw; bottom: 5vh; filter: blur(1.5px); transform: translateZ(-150px) rotateY(-12deg) rotateX(-5deg); animation: s2Float4 28s ease-in-out infinite alternate; opacity: 0.7 !important; }
.s2-frag-5 { width: 550px; height: 220px; left: 30vw; top: 8vh; filter: blur(4px); transform: translateZ(-500px) rotateY(-5deg) rotateX(12deg); animation: s2Float5 35s ease-in-out infinite alternate; opacity: 0.3 !important;}

@keyframes s2Float1 { 100% { transform: translateZ(-250px) rotateY(10deg) rotateX(5deg) translateY(30px); } }
@keyframes s2Float2 { 100% { transform: translateZ(-150px) rotateY(-12deg) rotateX(2deg) translateY(-25px); } }
@keyframes s2Float3 { 100% { transform: translateZ(-350px) rotateY(5deg) rotateX(-4deg) translateY(20px); } }
@keyframes s2Float4 { 100% { transform: translateZ(-100px) rotateY(-8deg) rotateX(-2deg) translateY(-30px); } }
@keyframes s2Float5 { 100% { transform: translateZ(-450px) rotateY(-2deg) rotateX(8deg) translateY(35px); } }

.opacity-s2-core {
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.3) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Scene 2 Midground Support UI */
.s2-midground-support {
  position: absolute; width: 100vw; height: 100vh;
  perspective: 1500px; transform-style: preserve-3d;
  pointer-events: none;
}

.su-panel {
  position: absolute;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}

.img-panel {
  background-size: cover; background-position: center top;
}

.su-panel-head { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.su-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.15); border-radius: 50%; }
.su-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1;}
.su-line { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }

.su-panel-3 { flex-direction: row; align-items: center; justify-content: center; padding: 20px; gap: 20px; }
.su-data-circle { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.1); border-top-color: rgba(255,255,255,0.4); }
.su-data-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.su-dbar { width: 6px; background: rgba(255,255,255,0.2); border-radius: 2px; }

/* Placements */
.su-panel-1 { width: 300px; height: 180px; left: 5vw; top: 25vh; transform: translateZ(-50px) rotateY(12deg); opacity: 0.25; filter: blur(1px); animation: suMove1 18s infinite alternate ease-in-out; }
.su-panel-2 { width: 350px; height: 260px; right: 8vw; top: 15vh; transform: translateZ(50px) rotateY(-10deg); opacity: 0.3; filter: blur(0.8px); animation: suMove2 22s infinite alternate ease-in-out; }
.su-panel-3 { width: 220px; height: 120px; right: 12vw; bottom: 20vh; transform: translateZ(-20px) rotateY(-15deg); opacity: 0.35; filter: blur(1.2px); animation: suMove3 20s infinite alternate ease-in-out; }
.su-panel-4 { width: 320px; height: 200px; left: 10vw; bottom: 15vh; transform: translateZ(30px) rotateY(8deg); opacity: 0.2; filter: blur(1.5px); animation: suMove4 25s infinite alternate ease-in-out; }

@keyframes suMove1 { 100% { transform: translateZ(10px) rotateY(8deg) translateY(-20px); opacity: 0.4; } }
@keyframes suMove2 { 100% { transform: translateZ(80px) rotateY(-5deg) translateY(15px); opacity: 0.45; } }
@keyframes suMove3 { 100% { transform: translateZ(-50px) rotateY(-10deg) translateY(-15px); opacity: 0.4; } }
@keyframes suMove4 { 100% { transform: translateZ(60px) rotateY(5deg) translateY(25px); opacity: 0.3; } }

.intro-benefits {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 32px;
  padding-left: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  list-style: none;
}

.intro-benefits li {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro-benefits li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Scene 2 geometry successfully deployed above. */

#scene-2-content { gap: 32px; max-width: 800px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 700px;
}
.hero-headline em { font-weight: 500; font-style: normal; color: #fff; }
.hero-sub { font-size: 1rem; color: var(--text-muted); letter-spacing: 1px; }

/* ============================================
   SCENE 3 — SERVICES
   ============================================ */
.s3-collage .framer-card { opacity: 0.45; }
.s3-frag-1 { width: 550px; height: 350px; left: 15vw; top: -5vh; filter: blur(3.5px); transform: translateZ(-500px) rotateY(-15deg) rotateX(10deg); animation: s3Float1 35s ease-in-out infinite alternate; opacity: 0.5 !important; }
.s3-frag-2 { width: 650px; height: 420px; right: -5vw; bottom: 5vh; filter: blur(4.5px); transform: translateZ(-600px) rotateY(12deg) rotateX(-5deg); animation: s3Float2 40s ease-in-out infinite alternate; opacity: 0.3 !important; }
.s3-frag-3 { width: 400px; height: 280px; left: -5vw; bottom: 10vh; filter: blur(3px); transform: translateZ(-400px) rotateY(20deg) rotateX(-8deg); animation: s3Float3 28s ease-in-out infinite alternate; opacity: 0.4 !important; }

@keyframes s3Float1 { 100% { transform: translateZ(-400px) rotateY(-5deg) rotateX(2deg) translateY(-40px); } }
@keyframes s3Float2 { 100% { transform: translateZ(-500px) rotateY(6deg) rotateX(-2deg) translateY(-25px); } }
@keyframes s3Float3 { 100% { transform: translateZ(-350px) rotateY(10deg) rotateX(-12deg) translateY(35px); } }

.opacity-s3-core {
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.65) 60%, rgba(10,10,10,0.4) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Scene 3 Midground Floating UIs (sneaking around cards) */
.s3-midground-support {
  position: absolute; width: 100vw; height: 100vh;
  perspective: 1500px; transform-style: preserve-3d;
  pointer-events: none;
}
.s3-panel-1 { width: 280px; height: 200px; left: 18vw; top: 22vh; transform: translateZ(-20px) rotateY(-8deg); filter: blur(1px); opacity: 0.25; animation: s3m1 20s infinite alternate ease-in-out; }
.s3-panel-2 { width: 220px; height: 140px; right: 28vw; top: 18vh; transform: translateZ(40px) rotateY(15deg); filter: blur(0.8px); opacity: 0.3; animation: s3m2 25s infinite alternate ease-in-out; }
.s3-panel-3 { width: 350px; height: 250px; left: 32vw; bottom: 8vh; transform: translateZ(10px) rotateY(6deg); filter: blur(1px); opacity: 0.35; animation: s3m3 32s infinite alternate ease-in-out; }

@keyframes s3m1 { 100% { transform: translateZ(30px) rotateY(2deg) translateY(-15px); opacity: 0.4; } }
@keyframes s3m2 { 100% { transform: translateZ(-10px) rotateY(20deg) translateY(10px); opacity: 0.45; } }
@keyframes s3m3 { 100% { transform: translateZ(60px) rotateY(12deg) translateY(-20px); opacity: 0.3; } }

#scene-3-content { max-width: 1100px; gap: 56px; padding: 0 40px; }
.section-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-dim); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -1px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; perspective: 1200px; transform-style: preserve-3d; }
.service-card {
  background: rgba(25, 25, 25, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: left;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  will-change: transform, box-shadow;
}

/* Individual Resting Tilts & Sustained Floating Motion */
.service-card:nth-child(1) { animation: scF1 12s ease-in-out infinite alternate; }
.service-card:nth-child(2) { animation: scF2 15s ease-in-out infinite alternate; }
.service-card:nth-child(3) { animation: scF3 18s ease-in-out infinite alternate; }

@keyframes scF1 { 
  0% { transform: translateY(0px) rotateX(3deg) rotateY(-3deg); } 
  100% { transform: translateY(-8px) rotateX(2deg) rotateY(-4deg); } 
}
@keyframes scF2 { 
  0% { transform: translateY(-5px) rotateX(2deg) rotateY(0deg); } 
  100% { transform: translateY(6px) rotateX(4deg) rotateY(2deg); } 
}
@keyframes scF3 { 
  0% { transform: translateY(4px) rotateX(2deg) rotateY(4deg); } 
  100% { transform: translateY(-10px) rotateX(4deg) rotateY(1deg); } 
}

/* Elite Hover State: Lift, Glow, and Straighten */
.service-card:hover {
  animation: none;
  background: rgba(35, 35, 35, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 60px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-15px) rotateX(0deg) rotateY(0deg) scale(1.03);
  z-index: 10;
}

.service-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: var(--text-primary); margin-bottom: 28px; transition: transform 0.4s ease; }
.service-card:hover .service-icon { transform: scale(1.08); background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)); }

.service-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: 16px; color: #fff; }
.service-card p { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ============================================
   SCENE 4 — PORTFOLIO
   ============================================ */
#scene-4-content { max-width: 1200px; padding: 0 40px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 32px;
  width: 100%;
  perspective: 1200px;
}

.pricing-card {
  background: rgba(25, 25, 25, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  will-change: transform, opacity;
}

/* Staggered Grid Entry */
.service-card, .pricing-card {
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene.active .foreground-content.visible .service-card,
.scene.active .foreground-content.visible .pricing-card {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.service-card:nth-child(1), .pricing-card:nth-child(1) { transition-delay: 0.4s; }
.service-card:nth-child(2), .pricing-card:nth-child(2) { transition-delay: 0.6s; }
.service-card:nth-child(3), .pricing-card:nth-child(3) { transition-delay: 0.8s; }

.pricing-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.p-featured {
  background: rgba(40, 40, 50, 0.4);
  border-color: rgba(58, 123, 213, 0.3);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(58, 123, 213, 0.1);
}

.p-featured:hover {
  transform: scale(1.05) translateY(-8px);
  background: rgba(45, 45, 60, 0.6);
  border-color: rgba(58, 123, 213, 0.5);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 60px rgba(58, 123, 213, 0.2);
}

.p-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1.8rem;
  vertical-align: super;
  color: var(--text-muted);
}

.pricing-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A7BD5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  transform: translateZ(0);
  will-change: transform;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.pricing-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-primary:hover {
  background: #478ded;
  border-color: #478ded;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 123, 213, 0.3);
}

/* ── Global Pricing CTA (Master Action) ── */
.pricing-global-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.main-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent), #478ded);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 60px;
  box-shadow: 0 15px 35px rgba(58, 123, 213, 0.3), 0 0 40px rgba(58, 123, 213, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  transform: translateZ(0);
  will-change: transform;
}

.main-cta-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px rgba(58, 123, 213, 0.4), 0 0 60px rgba(58, 123, 213, 0.2);
  background: linear-gradient(135deg, #478ded, var(--accent));
}

.main-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-microcopy {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0.8;
}


/* ============================================
   SCENE 5 — CTA
   ============================================ */
.minimal-still-bg { background: var(--bg-primary); }

.cta-motion {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-vector {
  width: 150vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(-15deg);
  position: relative;
}

.cta-vector::after {
  content: '';
  position: absolute;
  top: -150px; left: 50%;
  width: 600px; height: 300px;
  background: #fff;
  filter: blur(150px);
  opacity: 0.05;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: breathePulse 8s ease-in-out infinite alternate;
}

@keyframes breathePulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.03; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.12; }
}

#scene-5-content { max-width: 700px; gap: 40px; padding: 0 20px; }

.cta-headline { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; line-height: 1.2; letter-spacing: -1px; }
.cta-headline em { font-style: normal; font-weight: 500; color: #fff; }
.cta-sub { font-size: 0.95rem; font-weight: 300; color: var(--text-muted); }

.cta-button {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 48px; background: transparent;
  border: 1px solid var(--text-primary); border-radius: 60px; color: var(--text-primary);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; 
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.cta-button::before {
  content: ''; position: absolute; inset: 0; background: var(--text-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); border-radius: 60px;
}
.cta-button:hover { color: var(--bg-primary); }
.cta-button:hover::before { transform: scaleX(1); }
.cta-button span { position: relative; z-index: 2; }
.cta-button .arrow { position: relative; z-index: 2; transition: transform var(--transition-fast); }
.cta-button:hover .arrow { transform: translateX(4px); }
.cta-footer { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 1px; }

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  #scene-3-content { padding: 0 24px; }
  #scene-4-content { padding: 0 24px; }
  .services-grid { gap: 20px; }
  .pricing-grid { gap: 16px; }
}
/* ============================================
   MOBILE OVERLAY NAV
   ============================================ */
#mobile-navbar {
  display: none;
}

#mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hamburger-line {
  width: 16px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}
#mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-menu-links a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.mobile-menu-links a:hover {
  color: var(--text-muted);
}

/* ── Small Tablet / Large Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  /* Floating nav — move below logo area, smaller pills */
  #floating-nav {
    top: auto;
    bottom: 28px;
    right: 50%;
    transform: translateX(50%);
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 32px);
  }

  .floating-nav-item {
    padding: 9px 14px;
  }

  .nav-item-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  /* Persistent logo — smaller on mobile */
  #persistent-logo {
    width: 260px;
    max-width: 72vw;
  }

  body:not([data-active-scene="1"]) #persistent-logo {
    top: 12px;
    left: 16px;
    width: 110px;
  }

  /* Scroll hint — shift up to avoid bottom nav */
  #scroll-hint {
    bottom: 90px;
  }

  /* Services grid — single column */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 16px;
  }

  /* Disable floating 3D resting tilt on cards (looks off on mobile) */
  .service-card { animation: none; }
  .service-card:hover { transform: translateY(-6px); }

  #scene-3-content { max-width: 100%; padding: 0 20px; gap: 36px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* Pricing grid — single column */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 20px;
  }

  .p-featured { transform: scale(1); }
  .p-featured:hover { transform: translateY(-8px); }

  #scene-4-content { padding: 0 20px; }
  #scene-4-content > div { text-align: center; }

  /* Scene 2 content */
  #scene-2-content { padding: 0 20px; gap: 24px; max-width: 100%; }
  .hero-headline { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.5px; }
  .intro-benefits { max-width: 100%; padding-left: 16px; padding-right: 16px; }

  /* Scene 5 content */
  #scene-5-content { padding: 0 20px; gap: 28px; }
  .cta-headline { font-size: clamp(1.8rem, 6vw, 3rem); }
  .cta-button { padding: 16px 32px; font-size: 0.82rem; }

  /* Hero collage: managed by absolute positioning in mobile block */

  /* Midground support panels */
  .su-panel-1, .su-panel-3, .su-panel-4 { display: none; }
  .su-panel-2 { width: min(200px, 40vw); right: 3vw; top: 18vh; }

  /* Scene 3 midground */
  .s3-panel-1, .s3-panel-2, .s3-panel-3 { display: none; }

  /* Activate mobile hamburger and navbar */
  #floating-nav { display: none !important; }
  
  #mobile-navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box !important;
    padding: 12px 24px;
    z-index: 10001;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-logo {
    height: 48px !important;
    width: auto !important;
    max-width: 70vw !important;
    object-fit: contain !important;
    opacity: 0.95;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mobile-menu-toggle { display: flex !important; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  #persistent-logo { width: 200px; max-width: 68vw; }

  body:not([data-active-scene="1"]) #persistent-logo {
    width: 90px;
    top: 10px;
    left: 12px;
  }

  #floating-nav {
    bottom: 20px;
    gap: 6px;
  }

  .floating-nav-item { padding: 8px 12px; }
  .nav-item-text { font-size: 0.65rem; letter-spacing: 0.8px; }

  /* Scene 3: service card padding */
  .service-card { padding: 32px 20px; }

  /* Pricing card padding */
  .pricing-card { padding: 28px 20px; }

  .cta-button { padding: 14px 28px; font-size: 0.78rem; }

  /* Collages managed via floating elements */

  /* Background fragments for scenes 2 & 3 */
  .s2-frag-1, .s2-frag-2, .s2-frag-3, .s2-frag-4, .s2-frag-5 {
    display: none;
  }
  .s3-frag-1, .s3-frag-2, .s3-frag-3 { display: none; }

  /* Metrics */
  .metrics { gap: 28px; flex-wrap: wrap; justify-content: center; }
}

/* ── Landscape mobile (short viewport) ── */
@media (max-height: 500px) and (orientation: landscape) {
  #floating-nav {
    top: 12px;
    bottom: auto;
    right: 16px;
    transform: none;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .floating-nav-item { padding: 7px 12px; }
  .nav-item-text { font-size: 0.65rem; }
  #scroll-hint { display: none; }
  #persistent-logo { width: 160px; }
  body:not([data-active-scene="1"]) #persistent-logo { width: 80px; top: 8px; left: 12px; }
}

.mobile-only-hero { display: none; }

/* ── NATIVE MOBILE LAYOUT (DISABLE SCENE ENGINE) ── */
@media (max-width: 768px) {
  body, html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }
  
  /* ABSOLUTE MOBILE STABILITY RESET + PREMIUM VIBE */
  #scene-container {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #0a0a0a, #030303, #0a0e1a, #040404) !important;
    background-size: 300% 300% !important;
    animation: premiumBgMove 20s ease-in-out infinite alternate !important;
  }

  @keyframes premiumBgMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }
  
  .scene, .scene.active, .scene:not(.active) {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 90px 20px 60px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: hidden !important; 
    z-index: 1 !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  /* Delicate Sub-Layer Cinematic Glow (Animated) */
  .scene::before {
    content: '';
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: 180vw !important; height: 180vw !important;
    background: radial-gradient(circle at center, rgba(58, 123, 213, 0.06), transparent 60%) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: pulseRadial 12s ease-in-out infinite alternate !important;
  }

  @keyframes pulseRadial {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  }

  /* Destroy complex elements */
  .cine-layer-mid, .cine-overlay-dark { display: none !important; }
  
  /* Mobile Floating Background UI Elements */
  .cine-layer-deep {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden !important;
    opacity: 0.6 !important;
  }
  
  .collage-grid {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  /* Hide all cards by default, only show 5 specific floating elements per scene */
  .collage-grid > * { display: none !important; }

  .c-fore-1, .c-fore-2, .c-mid-1, .c-mid-2, .c-back-1,
  .s2-frag-1, .s2-frag-2, .s2-frag-3, .s2-frag-4,
  .s3-frag-1, .s3-frag-2, .s3-frag-3 {
    display: flex !important;
    position: absolute !important;
    border-radius: 16px !important;
    transform: none !important;
    animation: slowMobileFloat 20s infinite alternate ease-in-out !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.15) !important;
    /* Glassmorphism base */
    background: rgba(20,20,20,0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  
  .c-fore-1 .fc-body, .c-fore-2 .fc-body, .c-mid-1 .fc-body, .c-mid-2 .fc-body, .c-back-1 .fc-body,
  .s2-frag-1 .fc-body, .s2-frag-2 .fc-body, .s2-frag-3 .fc-body, .s2-frag-4 .fc-body,
  .s3-frag-1 .fc-body, .s3-frag-2 .fc-body, .s3-frag-3 .fc-body {
    background-size: cover !important;
    background-position: center top !important;
    border-radius: 0 0 15px 15px !important;
    opacity: 0.7 !important;
  }

  .c-fore-1 .fc-head, .c-fore-2 .fc-head, .c-mid-1 .fc-head, .c-mid-2 .fc-head, .c-back-1 .fc-head,
  .s2-frag-1 .fc-head, .s2-frag-2 .fc-head, .s2-frag-3 .fc-head, .s2-frag-4 .fc-head,
  .s3-frag-1 .fc-head, .s3-frag-2 .fc-head, .s3-frag-3 .fc-head {
    background: rgba(0,0,0,0.5) !important;
    border-radius: 15px 15px 0 0 !important;
  }

  /* Scene 1 Positions */
  .c-fore-1 { top: -20px !important; right: -40px !important; left: auto !important; width: 180px !important; height: 260px !important; filter: blur(3px) !important; opacity: 0.4 !important; animation-delay: 0s !important; }
  .c-fore-2 { top: 18vh !important; left: -50px !important; width: 160px !important; height: 220px !important; filter: blur(5px) !important; opacity: 0.35 !important; animation-delay: -5s !important; }
  .c-mid-1 { top: 45vh !important; right: -30px !important; left: auto !important; width: 150px !important; height: 200px !important; filter: blur(2px) !important; opacity: 0.5 !important; animation-delay: -12s !important; }
  .c-mid-2 { bottom: 20vh !important; top: auto !important; left: -30px !important; width: 170px !important; height: 240px !important; filter: blur(4px) !important; opacity: 0.3 !important; animation-delay: -8s !important; }
  .c-back-1 { bottom: -20px !important; top: auto !important; right: 10px !important; left: auto !important; width: 200px !important; height: 180px !important; filter: blur(3.5px) !important; opacity: 0.45 !important; animation-delay: -16s !important; }

  /* Scene 2 Positions */
  .s2-frag-1 { top: -10px !important; left: -20px !important; width: 170px !important; height: 250px !important; filter: blur(3px) !important; opacity: 0.4 !important; animation-delay: 0s !important; }
  .s2-frag-2 { top: 30vh !important; right: -30px !important; left: auto !important; width: 160px !important; height: 230px !important; filter: blur(5px) !important; opacity: 0.35 !important; animation-delay: -6s !important; }
  .s2-frag-3 { bottom: 25vh !important; left: -20px !important; top: auto !important; width: 150px !important; height: 200px !important; filter: blur(2px) !important; opacity: 0.45 !important; animation-delay: -11s !important; }
  .s2-frag-4 { bottom: -10px !important; right: 10px !important; top: auto !important; left: auto !important; width: 190px !important; height: 240px !important; filter: blur(4px) !important; opacity: 0.3 !important; animation-delay: -17s !important; }

  /* Scene 3 Positions */
  .s3-frag-1 { top: -20px !important; right: -30px !important; left: auto !important; width: 180px !important; height: 260px !important; filter: blur(3px) !important; opacity: 0.4 !important; animation-delay: -2s !important; }
  .s3-frag-2 { top: 40vh !important; left: -40px !important; width: 150px !important; height: 210px !important; filter: blur(5px) !important; opacity: 0.35 !important; animation-delay: -8s !important; }
  .s3-frag-3 { bottom: -10px !important; left: 20px !important; top: auto !important; width: 190px !important; height: 250px !important; filter: blur(4px) !important; opacity: 0.45 !important; animation-delay: -14s !important; }

  @keyframes slowMobileFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    100% { transform: translateY(20px) translateX(-10px) rotate(3deg); }
  }
  
  /* Central Content Block */
  .foreground-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  /* Safe Mobile Premium Intersection Animations — Faster & Leaner */
  .scene.mobile-hidden .foreground-content > *,
  .scene.mobile-hidden .services-grid > *,
  .scene.mobile-hidden .pricing-grid > *,
  .scene.mobile-hidden .metrics > * {
    opacity: 0 !important;
    transform: translateY(20px) translateZ(0) !important;
    will-change: transform, opacity;
  }
  
  .scene.mobile-in-view .foreground-content > *,
  .scene.mobile-in-view .services-grid > *,
  .scene.mobile-in-view .pricing-grid > *,
  .scene.mobile-in-view .metrics > * {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  
  /* Faster Mobile Stagger (Instant feel over Desktop cinematic) */
  .scene.mobile-in-view .foreground-content > *:nth-child(1) { transition-delay: 0.05s !important; }
  .scene.mobile-in-view .foreground-content > *:nth-child(2) { transition-delay: 0.15s !important; }
  .scene.mobile-in-view .foreground-content > *:nth-child(3) { transition-delay: 0.25s !important; }
  .scene.mobile-in-view .foreground-content > *:nth-child(4) { transition-delay: 0.35s !important; }
  .scene.mobile-in-view .foreground-content > *:nth-child(5) { transition-delay: 0.45s !important; }
  
  .scene.mobile-in-view .services-grid > *:nth-child(1),
  .scene.mobile-in-view .pricing-grid > *:nth-child(1),
  .scene.mobile-in-view .metrics > *:nth-child(1) { transition-delay: 0.3s !important; }
  .scene.mobile-in-view .services-grid > *:nth-child(2),
  .scene.mobile-in-view .pricing-grid > *:nth-child(2),
  .scene.mobile-in-view .metrics > *:nth-child(2) { transition-delay: 0.4s !important; }
  .scene.mobile-in-view .services-grid > *:nth-child(3),
  .scene.mobile-in-view .pricing-grid > *:nth-child(3),
  .scene.mobile-in-view .metrics > *:nth-child(3) { transition-delay: 0.5s !important; }

  /* KILL BACKGROUND ANIMATIONS ON MOBILE (Save CPU for scrolling) */
  .scrolling-anim, .scrolling-anim-fast, .dashboard-anim, .dash-bar, .su-panel {
    animation: none !important;
  }
  
  /* Remove filters from non-floating framer cards */
  .framer-card:not(.c-fore-1):not(.c-fore-2):not(.c-mid-1):not(.c-mid-2):not(.c-back-1):not(.s2-frag-1):not(.s2-frag-2):not(.s2-frag-3):not(.s2-frag-4):not(.s3-frag-1):not(.s3-frag-2):not(.s3-frag-3) {
    animation: none !important;
    filter: none !important;
  }

  /* Reduce Backdrop Load */
  .floating-nav-item, .service-card, .pricing-card {
    backdrop-filter: none !important;
    background: rgba(20, 20, 20, 0.9) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }

  /* Safe inner boundaries */
  .foreground-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important; 
    word-wrap: break-word !important;
  }

  /* Linear grids */
  .services-grid, .pricing-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 24px !important;
  }
  .service-card, .pricing-card {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Safe Media */
  img, svg, video, canvas {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  #scroll-hint, #progress-bar, #persistent-logo {
    display: none !important;
  }

  /* Remove internal scroll locks */
  #scene-3-content, #scene-4-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
  
  /* Mobile Hero specific styling */
  .mobile-only-hero {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 !important; /* Let .scene padding handle top spacing */
  }
  
  .hero-content-inner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px; /* Tighten gap */
    padding: 0 24px;
  }
  
  .mobile-hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); font-family: var(--font-display); line-height: 1.15; font-weight: 300; letter-spacing: -0.5px; margin: 0; }
  .mobile-hero-sub { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; padding: 0 10px; margin-bottom: 0px;}
  
  /* Premium Micro-Interactions */
  .cta-button, .pricing-cta-make, .pricing-cta, .service-card, .pricing-card, .p-featured {
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease, background 0.25s ease !important;
  }

  @media (hover: hover) {
    .cta-button:hover, .pricing-cta-make:hover, .pricing-cta:hover {
      box-shadow: 0 0 20px rgba(58, 123, 213, 0.4) !important;
    }
  }

  .cta-button:active, .pricing-cta-make:active, .pricing-cta:active { 
    transform: scale(0.95) !important; 
    box-shadow: 0 0 30px rgba(58, 123, 213, 0.6) !important;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.1s ease !important; 
  }

  .service-card:hover, .pricing-card:hover, .p-featured:hover { 
    transform: none !important; /* Block desktop lifting on mobile */
  }

  .service-card:active, .pricing-card:active, .p-featured:active { 
    transform: scale(0.97) !important; 
    box-shadow: 0 5px 30px rgba(58, 123, 213, 0.15), inset 0 0 10px rgba(255,255,255,0.03) !important;
    background: var(--bg-card-hover) !important;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.1s ease !important; 
  }
}