
/* =========================================================================
   CINEMATIC DESIGN SYSTEM - LOCALFLOW PRO
   ========================================================================= */

:root {
  /* === BACKGROUNDS === */
  --bg-primary: #0D0D0F;           /* The original near-black. Deep, rich. */
  --bg-elevated: #141416;          /* Cards, elevated surfaces */
  --bg-surface: rgba(255,255,255,0.04);  /* Glassmorphism card fills */
  --bg-footer: #0A0A0C;           /* Footer — slightly darker */
  
  /* === BRAND COLORS === */
  --accent-warm: #D4A853;          /* THE signature warm amber/gold */
  --accent-cool: #4A90D9;          /* Soft electric blue */
  --accent-teal: #00C2CB;          /* Bright teal */
  --accent-coral: #E8604C;         /* Warm coral */
  
  /* === SIGNATURE GRADIENTS === */
  --gradient-hero: radial-gradient(ellipse at 50% 80%, rgba(74,144,217,0.12) 0%, rgba(212,168,83,0.06) 40%, transparent 70%);
  --gradient-glow: radial-gradient(ellipse at 50% 50%, rgba(74,144,217,0.15) 0%, rgba(0,194,203,0.08) 50%, transparent 80%);
  --gradient-warm: linear-gradient(135deg, #D4A853 0%, #E8604C 100%);
  --gradient-cool: linear-gradient(135deg, #4A90D9 0%, #00C2CB 100%);
  --gradient-divider: linear-gradient(90deg, transparent, var(--accent-warm), var(--accent-cool), transparent);
  
  /* === TEXT === */
  --text-primary: #F5F5F0;         /* Original warm off-white */
  --text-heading: #FFFFFF;         /* Pure white for headings */
  --text-secondary: rgba(245,245,240,0.6);
  --text-muted: rgba(245,245,240,0.35);
  
  /* === GLASS & CARDS === */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,255,255,0.15);
  
  /* === SPACING === */
  --section-gap: 80px;            /* Consistent gap between ALL sections */
  --section-gap-mobile: 48px;
  --card-gap: 24px;
  --max-width: 1200px;
  --nav-height: 72px;
  
  /* === RADII === */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 48px;
  --radius-xl: 48px;              /* Large containers get generous rounding */
  --radius-pill: 100px;
  
  /* === TYPOGRAPHY === */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-drama: 'Cormorant Garamond', serif;   /* Italic drama font */
  --font-mono: 'IBM Plex Mono', monospace;      /* Data, stats, badges */
  
  /* === TRANSITIONS === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-magnetic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease-in-out);
  --transition-slow: 0.6s var(--ease-out);
}

/* =========================================================================
   BASE RESETS & VISUAL TEXTURE
   ========================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
}

/* GRAIN OVERLAY */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (hover: none) { 
  body { cursor: auto; }
}

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

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

ul {
  list-style: none;
}

/* ACCESSIBILITY: SKIP LINK */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-warm);
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: none;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.expanded {
  width: 52px; height: 52px;
  border-color: var(--accent-warm);
}

/* =========================================================================
   LOADING SCREEN
   ========================================================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.loader.done {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}
.loader-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 24px;
}
.loader-accent { color: var(--accent-warm); }
.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-warm);
  border-radius: 2px;
  animation: loaderFill 1.2s var(--ease-out) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 0.5em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.25;
}

p {
  color: var(--text-primary);
  margin-bottom: 1em;
}

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

.section-label, .badge {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  display: inline-block;
  margin-bottom: 16px;
}

.badge {
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.drama-text {
  font-family: var(--font-drama);
  font-style: italic;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* =========================================================================
   LAYOUT & CONTAINERS
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: var(--section-gap-mobile) 0;
  }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.4s var(--ease-magnetic), box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn:hover {
  transform: scale(1.03) translateY(-1px);
}
.btn-primary {
  background: var(--accent-coral);
  color: white;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(232,96,76,0.3), 0 8px 32px rgba(0,0,0,0.2);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--accent-warm);
  color: white;
}

a.interactive, button.interactive {
  transition: transform 0.3s var(--ease-magnetic), color 0.3s ease;
}
a.interactive:hover:not(.btn) {
  transform: translateY(-1px);
}

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 2px;
}

/* =========================================================================
   NAVIGATION (FLOATING ISLAND)
   ========================================================================= */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
  border: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13,13,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* Reset container padding inside nav */
}

.logo .nav-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.logo .nav-wordmark span:nth-child(2) {
  color: var(--accent-warm);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13,13,15,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-top: 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 40px);
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.hero-video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(13,13,15,0.6) 0%, rgba(13,13,15,0.95) 100%);
  z-index: -1;
}

.hero-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 100vh;
  background: var(--gradient-hero);
  z-index: -1;
  pointer-events: none;
}

.hero-content h1 span.gradient-text {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  max-width: 640px;
  margin: 1.5rem auto 2.5rem;
  font-size: 1.1rem;
}

.vsl-container {
  max-width: 720px;
  margin: 0 auto 3rem;
  aspect-ratio: 16 / 9;
}

.vsl-placeholder {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 40px rgba(212,168,83,0.05);
}

.vsl-placeholder:hover {
  transform: scale(1.02);
  border-color: var(--accent-warm);
}

.vsl-play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(232,96,76,0.3);
}

.vsl-play-icon svg {
  width: 24px; height: 24px;
  fill: white;
  margin-left: 4px;
}

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

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
  position: relative;
}

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

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-warm);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.8;
}

.process-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent-warm);
  opacity: 0.8;
  display: block;
  margin-bottom: 16px;
}

/* =========================================================================
   MARQUEE
   ========================================================================= */

.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marquee-row {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.marquee-row.left {
  animation: scrollLeft 35s linear infinite;
}

.marquee-row.right {
  animation: scrollRight 35s linear infinite;
}

.marquee-row:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-pill {
  padding: 12px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--glass-bg);
}

/* =========================================================================
   OUR WORK (CASE STUDIES)
   ========================================================================= */

#our-work {
  /* Prevent massive heights */
  height: auto;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
}

.case-card::before {
  content: '';
  position: absolute;
  left: 0; top: 48px; bottom: 48px; width: 3px;
  background: var(--gradient-warm);
  border-radius: 0 4px 4px 0;
}

.case-card.image-left {
  grid-template-columns: 1fr 1fr;
}

.case-card.image-left .case-content {
  order: 2;
}
.case-card.image-left .case-image-wrapper {
  order: 1;
}

@media (max-width: 900px) {
  .case-card {
    grid-template-columns: 1fr !important;
    padding: 32px;
  }
  .case-card.image-left .case-content, .case-card .case-content {
    order: 2 !important;
  }
  .case-card.image-left .case-image-wrapper, .case-card .case-image-wrapper {
    order: 1 !important;
  }
  .case-card::before {
    top: 0; left: 48px; right: 48px; height: 3px; width: auto; bottom: auto;
    border-radius: 0 0 4px 4px;
  }
}

.case-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.case-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* GSAP parallax modifies top/y */
}

.case-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent-warm);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.ghost-link:hover {
  color: var(--accent-warm);
}

.ghost-link svg, .ghost-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.ghost-link:hover span {
  transform: translateX(4px);
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
  text-align: left;
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
  }
  .testimonial-card {
    min-width: 85vw;
    scroll-snap-align: center;
  }
}

.testimonial-card {
  position: relative;
  padding: 40px 32px 32px;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px; left: 20px;
  font-family: var(--font-drama);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-warm);
  opacity: 0.12;
}

.testimonial-quote {
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.social-proof-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 64px;
}

.avatars-stack {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatars-stack img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -12px;
}

.avatars-stack img:first-child {
  margin-left: 0;
}

/* =========================================================================
   ABOUT 
   ========================================================================= */

.about-image {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 3px var(--accent-warm), 0 0 30px rgba(212,168,83,0.15);
}

/* =========================================================================
   FOOTER (4-COLUMN PREMIUM)
   ========================================================================= */

footer {
  background: var(--bg-footer);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 80px 0 32px;
  position: relative;
  margin-top: var(--section-gap);
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: var(--gradient-divider);
}

footer::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 300px;
  background: radial-gradient(ellipse at top, rgba(212,168,83,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 64px;
}

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

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

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-brand .nav-wordmark {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--accent-warm);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(212,168,83,0.4));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================================
   PAGES / FORMS / EMBEDS
   ========================================================================= */

.booking-page main {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: var(--section-gap);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

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

.trust-list {
  margin-top: 24px;
}

.trust-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-list li::before {
  content: '✓';
  color: var(--accent-warm);
  font-weight: bold;
}

.booking-embed-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.form-placeholder-ui {
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
}

/* =========================================================================
   CASE STUDY SUBPAGES
   ========================================================================= */

.case-study-main {
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: var(--section-gap);
}

.case-video-embed {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg-elevated);
}

.case-video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.company-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 64px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-value {
  font-weight: 500;
  color: var(--text-primary);
}

.process-list {
  margin-left: 24px;
  margin-bottom: 64px;
}

.process-list li {
  margin-bottom: 16px;
  position: relative;
  max-width: 900px;
}

.process-list li::before {
  content: '•';
  position: absolute;
  left: -24px;
  color: var(--accent-warm);
}

.case-quote {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  margin: 80px 0;
}

.case-quote blockquote {
  font-family: var(--font-drama);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.quote-author {
  font-weight: 600;
  color: var(--accent-warm);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.result-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.result-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent-warm);
  margin-bottom: 8px;
  line-height: 1;
}

.result-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- V4 PIVOT ADDITIONS --- */

/* Spline Container */
.spline-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7; /* blend with dark background */
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Pulsing Primary Button */
@keyframes pulse-primary {
  0% { box-shadow: 0 0 0 0 rgba(232, 168, 73, 0.6); } 
  70% { box-shadow: 0 0 0 20px rgba(232, 168, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 168, 73, 0); }
}
.btn-primary.pulse {
  animation: pulse-primary 3s infinite;
}

/* Shuffler Process Cards */
.diagnostic-shuffler {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 380px; /* height to hold the cards */
    margin: 0 auto;
}
.shuffle-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, z-index 0.8s ease;
    transform-origin: top center;
}

/* Features/Smart Website Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.feature-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}
@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.pricing-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card.popular {
    transform: scale(1.05); /* Middle card pop */
    border: 1px solid var(--accent-warm);
    background: linear-gradient(180deg, rgba(232, 168, 73, 0.05) 0%, transparent 100%);
}
@media (max-width: 991px) {
    .pricing-card.popular { transform: none; }
}
.price-tag {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.price-tag span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start; /* Ensure icon stays at top if text wraps */
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.pricing-features li svg {
    color: var(--accent-warm);
    flex-shrink: 0;
    margin-top: 2px;
}

.guarantee-banner {
    background: linear-gradient(90deg, var(--bg-elevated) 0%, rgba(232, 168, 73, 0.1) 50%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 24px;
    text-align: center;
}

/* Magnetic Physics */
.btn {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, background 0.4s ease;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg) !important;
}
.btn:hover {
    transform: scale(1.03);
}

/* Sliding background for primary button */
.btn-primary {
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}
.btn-primary:hover::before {
    transform: translateX(0);
}

/* Link lift */
a.interactive:not(.btn):hover {
    transform: translateY(-2px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

/* =========================================================================
   HERO MOBILE FIX - Prevent title/content overlap on small screens
   ========================================================================= */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-content {
    height: auto !important;
    padding-top: 16px;
    padding-bottom: 24px;
    justify-content: flex-start !important;
  }

  h1.hero-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
    padding: 0 8px !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 8px !important;
    margin-bottom: 0 !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 28px !important;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    font-size: 1rem !important;
    padding: 14px 24px !important;
  }

  .holographic-viewport {
    max-width: 100% !important;
    margin-top: 24px !important;
    aspect-ratio: 16/7 !important;
  }
}

@media (max-width: 480px) {
  h1.hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
  }
}
