/* ==========================================================================
   Little Pumpkins Montessori - Component Layout & Directed 5-Scene Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Growing Seedling Page Loader  (enhanced organic seedling)
   -------------------------------------------------------------------------- */

/* Fullscreen overlay with soft sun-warmed gradient */
/* ==========================================================================
   PRELOADER — Soft Playful Montessori Seedling Loader
   ========================================================================== */
#lp-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #FFF9F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-corner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.lp-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(160px, 20vw, 250px);
  height: auto;
}

.lp-corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(140px, 18vw, 220px);
  height: auto;
}

.lp-corner-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(160px, 20vw, 250px);
  height: auto;
}

.lp-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(220px, 26vw, 340px);
  height: auto;
}

.lp-loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.lp-plant-stage {
  position: relative;
  width: 140px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-center-svg {
  width: 100%;
  height: 100%;
}

.lp-sparkle-left {
  position: absolute;
  top: 52px;
  left: 12px;
  width: 18px;
  height: 18px;
  animation: sparklePulse 2s ease-in-out infinite alternate;
}

.lp-sparkle-right {
  position: absolute;
  top: 66px;
  right: 14px;
  width: 14px;
  height: 14px;
  animation: sparklePulse 2.4s ease-in-out infinite alternate 0.5s;
}

@keyframes sparklePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }

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

/* Brand Colorful Letters */
.lp-brand-letters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.lp-row-top,
.lp-row-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 8px);
}

.lp-let {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.12em;
  line-height: 1;
}

.let-pink {
  color: #E88D9E;
}

.let-yellow {
  color: #F5B842;
}

.let-teal {
  color: #5CB8B2;
}

.let-orange {
  color: #F5871F;
}

.let-blue {
  color: #6FA3D8;
}

.let-purple {
  color: #9A7BBA;
}

.let-green {
  color: #69B27F;
}

/* Heart Divider */

  /* Text and Logo reveal animations */
  .lp-loader-content .lp-let {
    opacity: 0;
    transform: translateY(12px);
  }

  .lp-loader-content.reveal .lp-let {
    animation: revealLetter 0.8s ease-out forwards;
    animation-delay: 0.2s;
  }

  .lp-loader-content .lp-loader-tagline {
    opacity: 0;
    transform: translateY(10px);
  }

  .lp-loader-content.reveal .lp-loader-tagline {
    animation: revealTagline 0.8s ease-out forwards;
    animation-delay: 0.9s;
  }

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

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

/* Heart Divider */
.lp-heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.lp-div-line {
  width: 32px;
  height: 1.5px;
  background-color: #F8C28A;
  border-radius: 1px;
}

.lp-div-heart {
  color: #F5871F;
  font-size: 0.75rem;
  line-height: 1;
}

.lp-loader-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: #6E5C4E;
  margin-top: 2px;
}

/* Animated Dots */
.lp-dots-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

  .lp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
  }

  /* Plant growth animation */
  .lp-center-svg.grow .lp-soil {
    animation: soilGrow 0.8s ease-out forwards;
  }

  .lp-center-svg.grow .lp-stem {
    stroke-dasharray: 200; /* will be overridden by JS to actual length */
    stroke-dashoffset: 200;
    animation: drawStem 1s ease-out forwards;
  }

  .lp-center-svg.grow .lp-leaf-left,
  .lp-center-svg.grow .lp-leaf-right {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: drawLeaf 0.8s ease-out forwards;
    animation-delay: 0.8s;
  }

  .lp-center-svg.grow .lp-pumpkin-head {
  opacity: 0;
    opacity: 0;
    animation: fadeInPumpkin 0.6s ease-out forwards;
    animation-delay: 1.6s;
  }

  @keyframes soilGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
  }

  @keyframes drawStem {
    to { stroke-dashoffset: 0; }
  }

  @keyframes drawLeaf {
    to { stroke-dashoffset: 0; }
  }

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

.dot-1 {
  background-color: #F5871F;
  animation-delay: 0s;
}

.dot-2 {
  background-color: #F8C896;
  animation-delay: 0.2s;
}

.dot-3 {
  background-color: #FDE8D0;
  animation-delay: 0.4s;
}

@keyframes dotBounce {

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

  50% {
    transform: translateY(-5px) scale(1.2);
    opacity: 1;
  }
}

#lp-loader.lp-hidden {
  opacity: 0;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Header & Fixed Navigation
   -------------------------------------------------------------------------- */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: 8px 0;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.fixed-header.scrolled {
  padding: 6px 0;
  background: rgba(254, 249, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 36, 32, 0.06);
  box-shadow: 0 4px 24px rgba(42, 36, 32, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  width: min(96%, 1600px);
  margin: 0 auto;
  /* Fluid horizontal padding — scales from 24px at 320px to 72px at 1920px */
  padding: 0 clamp(24px, 3.5vw + 8px, 72px);
  gap: clamp(16px, 2vw, 36px);
}

.brand-logo-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  /* Fluid left nudge — pushes logo away from the hero papercut edge */
  padding-left: clamp(24px, 3vw, 56px);
  margin-left: 0 !important;
}

/* Nav: centered between logo and CTA, never overflows */
.nav-menu {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.brand-logo-img {
  height: clamp(44px, 3.5vw + 12px, 72px) !important;
  max-height: clamp(44px, 3.5vw + 12px, 72px) !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  margin-top: -8px !important;
  margin-bottom: -8px !important;
  transition: transform var(--transition-fast);
}

.brand-logo-group:hover .brand-logo-img {
  transform: scale(1.04);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 28px);
  margin-left: 0;
  margin-right: 0;
}

.fixed-header .nav-link,
.nav-link {
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.45vw + 7px, 16px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-primary);
}

/* Staff Login Icon Button */
.staff-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
  position: relative;
}
.staff-login-btn:hover {
  background: rgba(245,135,31,0.08);
  border-color: var(--amber-primary);
  color: var(--amber-primary);
  transform: scale(1.1);
}
.staff-login-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.staff-login-btn::after {
  content: 'Staff';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.staff-login-btn:hover::after { opacity: 1; }

@media (max-width: 1024px) {
  .staff-login-btn { display: none; }
}

.fixed-header .header-cta-btn,
.header-cta-btn {
  padding: clamp(7px, 0.45vw + 3px, 12px) clamp(14px, 1vw + 6px, 24px) !important;
  font-size: clamp(13px, 0.5vw + 7px, 17px) !important;
  font-weight: 700 !important;
  white-space: nowrap;
  text-decoration: none;
}

/* Pin the CTA wrapper to the far right */
.header-container > div:last-child {
  margin-left: auto;
  flex-shrink: 0;
}

.header-cta-wrapper {
  margin-right: clamp(24px, 3.5vw, 64px) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 clamp(16px, 3vw, 24px);
  }

  .brand-logo-group {
    margin-left: 0 !important;
  }

  .brand-logo-img {
    height: 52px !important;
    max-height: 52px !important;
  }

  .header-cta-wrapper {
    margin-right: 0 !important;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    padding: clamp(16px, 3vw, 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Image Placeholder Droprzones (No AI Images — Strict .webp Specs)
   -------------------------------------------------------------------------- */
.image-placeholder-frame {
  position: relative;
  background: #F4E4D3;
  border: 2px dashed rgba(42, 36, 32, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.image-placeholder-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(251, 238, 224, 0.9);
  border: 1px solid rgba(42, 36, 32, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.placeholder-path {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SCENE 1: Morning Arrival (100vh 45/55 Editorial Hero System)
   -------------------------------------------------------------------------- */
.scene-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(80px, 8vw, 100px);
  padding-bottom: clamp(48px, 6vw, 72px);
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Layer: Organic Fluid Color Blobs & Paper Texture Overlay */
.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-art svg.full-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Paper Grain Texture Overlay */
.hero-paper-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* Dedicated Bottom-Left Anchored Paper-Cut Wave Component (Reduced another 5%) */
.hero-bottom-left-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(525px, 55.4vw, 851px);
  height: auto;
  max-height: 44.7vh;
  pointer-events: none;
  z-index: 1;
}

/* Dedicated Bottom-Right Anchored Paper-Cut Green Landscape Component (Reduced another 5%) */
.hero-bottom-right-land {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(235px, 24.4vw, 379px);
  height: auto;
  max-height: 28vh;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Dedicated Top-Left Anchored Slate-Blue Paper-Cut Wave Component (Reduced another 5%) */
.hero-top-left-art {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(171px, 18vw, 261px);
  height: auto;
  max-height: 23.5vh;
  pointer-events: none;
  z-index: 1;
}

/* Dedicated Top-Right Anchored Blue Paper-Cut Wave Component (Reduced another 5%) */
.hero-right-side-art {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(171px, 18vw, 261px);
  height: auto;
  max-height: 23.5vh;
  pointer-events: none;
  z-index: 1;
}

/* Restrained Decorative Elements */
.decor-leaf-left {
  position: absolute;
  top: 28%;
  left: 0;
  width: 104.5px;
  height: 228px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

.decor-dot-grid {
  position: absolute;
  top: 14%;
  left: 2%;
  width: 70px;
  height: 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.decor-flowing-line {
  position: absolute;
  bottom: 4%;
  left: 15%;
  width: 420px;
  height: 40px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.decor-abstract-shape {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 320px;
  height: 320px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* Layout Grid (Responsive 2-column or stacked 1-column) */
.hero-layout-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  width: 100%;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 18px);
  max-width: 100%;
  margin-left: clamp(40px, 5vw, 96px);
  transform: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.4vw + 0.48rem, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-primary);
  text-shadow: 0 1px 4px rgba(245, 135, 31, 0.20);
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1.5px;
  background: var(--amber-primary);
  border-radius: 2px;
}

.kinetic-headline {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 4vw + 0.4rem, 5.6rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: -2px;
  margin-bottom: clamp(6px, 0.7vw, 10px);
  text-shadow: 0 3px 12px rgba(42, 36, 32, 0.08), 0 1px 3px rgba(42, 36, 32, 0.06);
  white-space: normal;
}

/* Force headline to exactly 2 lines at every viewport width */
.headline-line {
  display: block;
  white-space: nowrap;
}

.text-joy-accent {
  color: var(--amber-primary);
  text-shadow: 0 4px 18px rgba(245, 135, 31, 0.32), 0 1px 3px rgba(245, 135, 31, 0.20);
}

.hero-subtext {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.35vw + 0.55rem, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: clamp(380px, 32vw, 500px);
  text-shadow: 0 1px 4px rgba(42, 36, 32, 0.04);
}

/* Action Buttons Row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex-wrap: wrap;
  margin-top: clamp(4px, 0.5vw, 10px);
  margin-bottom: clamp(4px, 0.5vw, 10px);
}

.hero-cta-row .btn-amber {
  padding: clamp(10px, 0.7vw + 4px, 14px) clamp(20px, 1.6vw + 6px, 32px);
  font-size: clamp(0.88rem, 0.4vw + 0.62rem, 1.05rem);
}

.btn-amber {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.7vw, 10px);
  padding: clamp(10px, 0.7vw + 4px, 14px) clamp(20px, 1.6vw + 6px, 32px);
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 0.4vw + 0.62rem, 1.05rem);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--grad-amber);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(245, 135, 31, 0.28);
  cursor: pointer;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
}

/* Fluid Liquid Wave Sweep Overlay */
.btn-amber::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 100%);
  transform: translateX(-160%) skewX(-22deg);
  opacity: 0;
  pointer-events: none;
}

.btn-amber:hover {
  transform: translateX(6px) translateZ(0);
  box-shadow: 0 10px 28px rgba(245, 135, 31, 0.38);
}

.btn-amber:hover::after {
  animation: btnWaveSweep 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes btnWaveSweep {
  0% {
    transform: translateX(-160%) skewX(-22deg);
    opacity: 0;
  }

  30% {
    opacity: 0.6;
  }

  100% {
    transform: translateX(200%) skewX(-22deg);
    opacity: 0;
  }
}

.btn-amber:active {
  transform: translateY(0px) scale(0.97) translateZ(0);
  box-shadow: 0 4px 14px rgba(245, 135, 31, 0.30);
  transition-duration: 0.06s;
}

/* Secondary Button ("Watch Our Story" - Fast & Clicky Tactile Slide) */
.btn-play-story {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 0.8vw, 14px);
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 0.4vw + 0.65rem, 1.08rem);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  border-radius: var(--radius-full);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, color;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
}

.btn-play-story:hover {
  color: var(--amber-primary);
  transform: translateX(6px) translateZ(0);
}

.play-icon-circle {
  width: clamp(38px, 2.2vw + 6px, 46px);
  height: clamp(38px, 2.2vw + 6px, 46px);
  border-radius: 50%;
  border: 2px solid var(--amber-primary);
  background: linear-gradient(135deg, rgba(245, 135, 31, 0.12) 0%, rgba(252, 176, 64, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-primary);
  box-shadow: 0 4px 12px rgba(245, 135, 31, 0.15);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, background, color, box-shadow;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-play-story:hover .play-icon-circle {
  background: linear-gradient(135deg, #F5871F 0%, #FCB040 100%);
  border-color: #F5871F;
  color: #FFFFFF;
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 6px 18px rgba(245, 135, 31, 0.40);
}

.btn-play-story:active {
  transform: translateX(2px) scale(0.97) translateZ(0);
  transition-duration: 0.06s;
}

.btn-play-story:active .play-icon-circle {
  transform: scale(0.96) translateZ(0);
  box-shadow: 0 2px 8px rgba(245, 135, 31, 0.25);
  transition-duration: 0.06s;
}

/* Four Trust Indicators Row (Monochrome with slight orange hover accent) */
.hero-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 20px);
  width: 100%;
  margin-top: clamp(6px, 0.8vw, 14px);
  padding-top: clamp(12px, 1vw, 20px);
  border-top: 1px solid rgba(42, 36, 32, 0.07);
}

.hero-feature-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 0.5vw, 8px);
  cursor: default;
}

.feature-icon-badge {
  width: clamp(28px, 1.8vw + 4px, 34px);
  height: clamp(28px, 1.8vw + 4px, 34px);
  border-radius: 50%;
  border: 1.6px solid var(--text-main);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-icon-badge svg {
  width: 17px;
  height: 17px;
}

.hero-feature-pill:hover .feature-icon-badge {
  background: linear-gradient(135deg, #086A1E 0%, #0E8527 100%);
  border-color: #086A1E;
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 16px rgba(8, 106, 30, 0.35);
}

.feature-pill-label {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 0.3vw + 0.48rem, 0.82rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.hero-feature-pill:hover .feature-pill-label {
  color: #086A1E;
}

/* Right Visual Column (Shifted slightly right for clean text separation) */
.hero-visual-col {
  position: relative;
  width: 100%;
}

.hero-photo-wrapper {
  position: relative;
  width: 98%;
  max-width: 98%;
  margin-inline: auto;
  margin-top: clamp(14px, 1.6vw, 26px);
}

/* Back Glow behind Hero Section Image (Navy-Teal / Cobalt Counterweight Accent) */
.hero-image-glow {
  position: absolute;
  top: -22px;
  left: -22px;
  right: -22px;
  bottom: -22px;
  background: radial-gradient(ellipse at center,
      rgba(44, 110, 127, 0.45) 0%,
      rgba(0, 71, 171, 0.28) 45%,
      rgba(27, 58, 75, 0.08) 75%,
      transparent 88%);
  filter: blur(34px);
  border-radius: 44px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.88;
  animation: heroGlowPulse 5s ease-in-out infinite alternate;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth), transform var(--transition-smooth);
}

.hero-photo-wrapper:hover .hero-image-glow {
  opacity: 0.98;
  filter: blur(38px);
  transform: scale(1.03);
}

@keyframes heroGlowPulse {
  0% {
    opacity: 0.75;
    transform: scale(0.98);
    filter: blur(30px);
  }

  100% {
    opacity: 0.92;
    transform: scale(1.02);
    filter: blur(38px);
  }
}

/* Hero Image Card (Navy-Teal Counterweight Back-Glow Shadow) */
.hero-main-card {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 14px 44px -6px rgba(44, 110, 127, 0.32),
    0 24px 60px -12px rgba(27, 58, 75, 0.15);
  aspect-ratio: 16 / 10.5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-card:hover {
  transform: scale(1.012);
  box-shadow:
    0 20px 54px -4px rgba(44, 110, 127, 0.42),
    0 30px 72px -10px rgba(27, 58, 75, 0.20);
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single Floating Card (Top Right Edge of Image) */
.floating-parent-card {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 28px rgba(42, 36, 32, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 198px;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-fast);
  animation: floatSoft 5s ease-in-out infinite alternate;
}

.floating-parent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(42, 36, 32, 0.14);
}

.parent-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(245, 135, 31, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.parent-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.parent-card-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
}

.parent-card-desc {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.parent-card-arrow {
  color: var(--amber-primary);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Floating Quick Navigation Strip Below Image */
.floating-quick-nav {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 10px clamp(14px, 1.5vw, 24px);
  box-shadow: 0 14px 36px rgba(42, 36, 32, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  white-space: nowrap;
  max-width: 95%;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.quick-nav-item:hover {
  color: var(--amber-primary);
  transform: translateY(-2px);
}

.quick-nav-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.quick-nav-item:hover .quick-nav-icon {
  color: var(--amber-primary);
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}



@media (max-width: 1024px) {
  .hero-copy-col {
    margin-left: 0;
    max-width: 100%;
    transform: none;
  }

  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
  }

  .floating-parent-card {
    right: 0;
    top: -12px;
  }

  .floating-quick-nav {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    margin-top: 24px;
    overflow-x: auto;
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .floating-parent-card {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 16px;
    max-width: 100%;
  }
}



/* --------------------------------------------------------------------------
   SCENE 2: A Prepared Environment (Redesigned Montessori Classroom Scene)
   -------------------------------------------------------------------------- */
.scene-prepared {
  position: relative;
  background-color: var(--bg-cream);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(16px, 2.5vh, 32px);
  padding-bottom: clamp(20px, 3vh, 36px);
}

.scene2-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scene2-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
  gap: clamp(16px, 2.8vw, 40px);
  align-items: center;
  margin-bottom: clamp(20px, 3vh, 36px);
}

/* Left photo column with organic background arch & botanical accents */
.scene2-visual-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene2-bg-arch {
  position: absolute;
  width: 112%;
  height: 112%;
  top: -6%;
  left: -6%;
  z-index: 1;
  pointer-events: none;
}

.scene2-photo-card {
  position: relative;
  z-index: 2;
  width: clamp(210px, 21vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 52% 48% / 52% 48% 54% 46%;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(42, 36, 32, 0.11);
  border: 4px solid var(--bg-cream);
}

.scene2-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene2-twig-accent {
  position: absolute;
  bottom: -15px;
  left: -20px;
  z-index: 3;
  width: clamp(70px, 9vw, 110px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(42, 36, 32, 0.15));
  animation: twigSwaySoft 7s ease-in-out infinite alternate;
  transform-origin: bottom left;
}

.scene2-sparkle-accent {
  position: absolute;
  top: -10px;
  right: 15px;
  z-index: 3;
  width: clamp(24px, 3vw, 36px);
  height: auto;
  pointer-events: none;
  animation: sparkleRotatePulse 5s ease-in-out infinite alternate;
}

.s2-top-right-leaf {
  animation: ambientFloatSoft 8s ease-in-out infinite alternate;
}

.card-bottom-left-leaf {
  animation: leafPulseSoft 6s ease-in-out infinite alternate;
  transform-origin: bottom left;
}

@keyframes twigSwaySoft {
  0% { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(3.5deg) translateY(-3px); }
}

@keyframes sparkleRotatePulse {
  0% { transform: scale(0.92) rotate(0deg); }
  100% { transform: scale(1.08) rotate(15deg); }
}

@keyframes ambientFloatSoft {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(-3deg); }
}

@keyframes leafPulseSoft {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

/* Right intro copy column */
.scene2-intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 580px;
}

.scene2-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-primary);
}

.scene2-wavy-accent {
  width: 36px;
  height: 8px;
  margin-top: -4px;
}

.scene2-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw + 0.4rem, 3.1rem);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 2px;
}

.scene2-heading-line {
  width: 44px;
  height: 3px;
  background: var(--amber-primary);
  border-radius: 2px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.scene2-subtext {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.35vw + 0.55rem, 1rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3-Cards Grid */
.scene2-cards-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: 0;
  width: 100%;
}

.scene2-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(42, 36, 32, 0.08);
  box-shadow: 0 10px 32px rgba(42, 36, 32, 0.05);
  padding: clamp(20px, 2.2vw, 30px) clamp(16px, 1.8vw, 24px) clamp(28px, 3vw, 38px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-fast);
}

.scene2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(42, 36, 32, 0.09);
}

/* Card corner wave SVG decoration */
.card-top-left-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.card-top-right-dots {
  position: absolute;
  top: 12px;
  right: 16px;
  pointer-events: none;
  opacity: 0.65;
}

/* Central circular icon */
.card-icon-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.card-sage .card-icon-badge {
  background: linear-gradient(135deg, rgba(8, 106, 30, 0.14) 0%, rgba(14, 133, 39, 0.08) 100%);
  color: #086A1E;
}

.card-peach .card-icon-badge {
  background: linear-gradient(135deg, rgba(245, 135, 31, 0.14) 0%, rgba(252, 176, 64, 0.08) 100%);
  color: #F5871F;
}

.card-blue .card-icon-badge {
  background: linear-gradient(135deg, rgba(44, 110, 127, 0.14) 0%, rgba(0, 71, 171, 0.08) 100%);
  color: #2C6E7F;
}

.scene2-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* Dot divider line */
.card-dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 52px;
  height: 10px;
  position: relative;
  margin-bottom: 12px;
  z-index: 1;
}

.card-dot-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.card-dot-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.card-sage .card-dot-divider::before {
  background: rgba(8, 106, 30, 0.25);
}

.card-sage .card-dot-divider .dot {
  background: #086A1E;
}

.card-peach .card-dot-divider::before {
  background: rgba(245, 135, 31, 0.25);
}

.card-peach .card-dot-divider .dot {
  background: #F5871F;
}

.card-blue .card-dot-divider::before {
  background: rgba(44, 110, 127, 0.25);
}

.card-blue .card-dot-divider .dot {
  background: #2C6E7F;
}

.scene2-card p {
  font-family: var(--font-sans);
  font-size: clamp(0.86rem, 0.35vw + 0.6rem, 0.94rem);
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Bottom left leaf SVG inside Card 1 */
.card-bottom-left-leaf {
  position: absolute;
  bottom: 12px;
  left: 12px;
  pointer-events: none;
  opacity: 0.85;
  width: 42px;
  height: 42px;
}

/* Bottom right number badge */
.card-num-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-top-left-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--bg-card);
  z-index: 2;
}

.card-sage .card-num-badge {
  background: linear-gradient(135deg, #086A1E 0%, #0E8527 100%);
}

.card-peach .card-num-badge {
  background: linear-gradient(135deg, #F5871F 0%, #FCB040 100%);
}

.card-blue .card-num-badge {
  background: linear-gradient(135deg, #2C6E7F 0%, #0047AB 100%);
}

/* Responsive Grid Adjustments for Scene 2 */
@media (max-width: 1024px) {
  .scene2-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .scene2-intro-copy {
    align-items: center;
    max-width: 100%;
  }

  .scene2-photo-card {
    width: 82%;
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  .scene2-cards-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   SCENE 3: Play & Discovery (Parallax Depth & Looping Ambient Motion)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   SCENE 3: Play & Discovery (Redesigned from Reference Spec)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   SCENE 3: Play & Discovery (Redesigned from Reference Spec)
   -------------------------------------------------------------------------- */
.scene-play {
  position: relative;
  background-color: var(--bg-cream);
  overflow: hidden;
  padding-top: clamp(48px, 4vw, 62px);
  padding-bottom: clamp(10px, 1.2vw, 18px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.scene-play > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 2.6vw, 36px);
}

/* Top Grid Layout */
.scene3-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: center;
  margin-bottom: 0;
  flex-shrink: 0;
  min-height: 0;
}

/* Scene Tag */
.scene3-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-sage);
  margin-bottom: clamp(6px, 0.8vw, 12px);
}

.scene3-tag span {
  color: var(--earth-sage);
}

/* CTA Buttons Row */
.scene3-cta-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
  margin-top: clamp(6px, 1vw, 14px);
}

.scene3-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scene3-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 0.4vw + 0.62rem, 1rem);
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.scene3-text-link:hover {
  color: var(--amber-primary);
  gap: 12px;
}

.scene3-text-link svg {
  transition: transform var(--transition-fast);
}

.scene3-text-link:hover svg {
  transform: translateX(3px);
}

.scene3-sparkle-deco {
  margin-top: 8px;
  opacity: 0.5;
}

.scene3-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scene3-bottom-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
}

/* Floating Scattered Leaves */
.s3-leaf {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.s3-leaf-1 { top: 12%; left: 6%; width: 28px; height: 28px; transform: rotate(-15deg); }
.s3-leaf-2 { top: 38%; right: 4%; width: 24px; height: 24px; transform: rotate(25deg); }
.s3-leaf-3 { bottom: 24%; left: 8%; width: 32px; height: 32px; transform: rotate(40deg); }
.s3-leaf-4 { bottom: 18%; right: 7%; width: 26px; height: 26px; transform: rotate(-30deg); }

/* Wave BG */
.scene3-wave-bg {
  width: 100%;
  height: 100%;
}

/* Top Left Back Button */
.scene3-top-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.scene3-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(42, 36, 32, 0.05);
  border: 1px solid rgba(42, 36, 32, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.scene3-back-btn:hover {
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(42, 36, 32, 0.09);
}

/* Section Header */
.scene3-header {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scene3-sub-tag {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8C7B6C;
  margin-bottom: 4px;
}

.scene3-main-tag {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-primary);
  margin-bottom: 12px;
}

.scene3-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw + 0.5rem, 3.4rem);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.scene3-heading .text-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-primary);
}

.scene3-leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
}

.scene3-leaf-divider .line-left,
.scene3-leaf-divider .line-right {
  height: 1.5px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(245, 135, 31, 0.4), transparent);
}

.scene3-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 0.4vw + 0.65rem, 1.05rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

/* Main 2-Column Grid Layout */
.scene3-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Visual Column */
.scene3-visual-col {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.scene3-peach-backdrop {
  position: absolute;
  width: 108%;
  height: 108%;
  top: -4%;
  left: -4%;
  z-index: 1;
  pointer-events: none;
}

.scene3-swirl-line {
  position: absolute;
  width: 116%;
  height: 116%;
  top: -8%;
  left: -8%;
  z-index: 1;
  pointer-events: none;
}

.scene3-badge-garden {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(42, 36, 32, 0.08);
  border: 1px solid rgba(42, 36, 32, 0.06);
}

.scene3-badge-garden .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F7EFE3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scene3-badge-garden .badge-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.scene3-pebble-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1.25 / 1;
  border-radius: 44% 56% 58% 42% / 54% 46% 54% 46%;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(42, 36, 32, 0.12);
  border: 5px solid #FFFFFF;
}

.scene3-pebble-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Arrow Buttons */
.scene3-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  color: var(--text-main);
  box-shadow: 0 6px 18px rgba(42, 36, 32, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.scene3-arrow-prev { left: 4px; }
.scene3-arrow-next { right: 4px; }

.scene3-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #FFFDF8;
}

/* Filter Bar Overlapping Bottom Photo */
.scene3-filter-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.12);
  border: 1px solid rgba(42, 36, 32, 0.05);
}

.scene3-filter-bar .filter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.scene3-filter-bar .filter-btn.active {
  background: var(--amber-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 135, 31, 0.3);
}

/* Speech Bubble Pill (Bottom Left) */
.scene3-speech-pill {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--earth-sage);
  margin-bottom: 24px;
}

.scene3-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.4vw + 0.3rem, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: clamp(6px, 1vw, 12px);
}

.scene3-title .title-line {
  display: inline-block;
  white-space: nowrap;
}

.scene3-title .amber-accent {
  color: var(--amber-primary);
  font-weight: 400;
}

.scene3-desc {
  font-size: clamp(0.85rem, 0.72vw, 0.98rem);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 440px;
  margin-bottom: clamp(4px, 0.5vw, 8px);
}

.scene3-path-line {
  margin-top: 6px;
  display: block;
}

/* Right Visuals */
.scene3-visuals {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.scene3-image-mask-container {
  position: relative;
  width: 100%;
  max-width: min(600px, 36vw);
}

@media (max-width: 900px) {
  .scene3-image-mask-container {
    max-width: 100%;
  }
}

.scene3-image-mask {
  width: 100%;
  aspect-ratio: 16/9.5;
  border-radius: 46% 54% 28% 72% / 41% 43% 57% 59%;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(42, 36, 32, 0.08);
}

.scene3-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Cards */
.scene3-floating-card {
  position: absolute;
  border-radius: 18px;
  padding: clamp(12px, 1.4vw, 16px) clamp(14px, 1.6vw, 18px);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(42, 36, 32, 0.10);
  z-index: 5;
}

.card-bl {
  background: var(--earth-sage);
  bottom: 0%;
  left: -6%;
  color: white;
}

.fcard-icon-white {
  color: white;
  display: flex;
  align-items: center;
}

.card-bl .fcard-content strong {
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  display: block;
}

.fcard-badge-heart {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid white;
}

.card-tr {
  background: white;
  top: 4%;
  right: -4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(12px, 1.4vw, 18px);
}

.fcard-icon-amber-outline {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-tr .fcard-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-tr .fcard-content strong {
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.25;
}

.card-tr .fcard-link {
  color: var(--amber-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Middle Translucent Pill with Orange Frosted Glass Tint */
.scene3-feature-pill {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.88) 0%, rgba(254, 236, 218, 0.76) 50%, rgba(253, 224, 198, 0.84) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1.5px solid rgba(245, 135, 31, 0.25);
  border-radius: 100px;
  padding: clamp(12px, 1.5vw, 20px) clamp(24px, 3vw, 44px);
  box-shadow: 0 20px 50px rgba(245, 135, 31, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  max-width: 1240px;
  flex-shrink: 0;
}

.fpill-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fpill-icon {
  width: clamp(40px, 3.5vw, 52px);
  height: clamp(40px, 3.5vw, 52px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fpill-icon.icon-green { background: rgba(8, 106, 30, 0.12); color: var(--earth-sage); }
.fpill-icon.icon-peach { background: rgba(245, 135, 31, 0.18); color: var(--amber-primary); }
.fpill-icon.icon-yellow { background: rgba(252, 176, 64, 0.24); color: var(--amber-secondary); }

.fpill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fpill-text strong {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.7vw, 0.98rem);
  font-weight: 800;
  color: var(--text-main);
}

.fpill-text span {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.5vw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.35;
}

.fpill-divider {
  width: 1px;
  height: 48px;
  background: rgba(245, 135, 31, 0.20);
}

/* Bottom 4-Card Grid & Stripe (Reduced 15% vertical height) */
.scene3-grid-bottom {
  position: relative;
  padding-bottom: clamp(8px, 1.1vw, 16px);
  padding-top: clamp(8px, 1.1vw, 16px);
  margin-top: 0;
  flex-shrink: 0;
}

.scene3-bottom-stripe {
  position: absolute;
  bottom: 0;
  left: calc(-1 * clamp(20px, 4vw, 56px));
  right: calc(-1 * clamp(20px, 4vw, 56px));
  width: auto;
  height: 100%;
  background: linear-gradient(135deg, rgba(235, 244, 233, 0.85) 0%, rgba(222, 238, 220, 0.65) 50%, rgba(208, 230, 207, 0.80) 100%);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1.5px solid rgba(8, 106, 30, 0.16);
  border-bottom: none;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 -8px 24px rgba(8, 106, 30, 0.04);
  z-index: 1;
  border-radius: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) 0 0;
}

/* Edge-Anchored Botanical Flora Clusters (Shifted to Outer Edges) */
.stripe-flora {
  position: absolute;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

/* Left Edge Flora Cluster (Pushed to the Extreme Outer Left Edge) */
.flora-left-1 {
  left: -160px;
  width: 68px;
  height: 170px;
}

.flora-left-2 {
  left: -110px;
  width: 56px;
  height: 132px;
  opacity: 0.92;
}

.flora-left-3 {
  left: -205px;
  width: 48px;
  height: 106px;
  opacity: 0.85;
}

/* Right Edge Flora Cluster (Shifted Further Right) */
.flora-right-1 {
  right: -200px;
  width: 68px;
  height: 170px;
}

.flora-right-2 {
  right: -150px;
  width: 60px;
  height: 140px;
  opacity: 0.92;
}

.flora-right-3 {
  right: -245px;
  width: 52px;
  height: 115px;
  opacity: 0.88;
}

.flora-right-4 {
  right: -105px;
  width: 44px;
  height: 94px;
  opacity: 0.75;
}

/* Prompt flower accent */
.prompt-flower {
  margin-bottom: 4px;
}

.scene3-bottom-cards {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
  gap: clamp(10px, 1.3vw, 18px);
  align-items: stretch;
}

.bottom-prompt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 16px;
}

.bottom-prompt p {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.75vw, 0.98rem);
  color: var(--text-main);
  margin-bottom: 2px;
}

.bottom-prompt h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.75vw, 1.9rem);
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 8px;
}

.prompt-line {
  width: 36px;
  height: 2.5px;
  background: var(--amber-primary);
  border-radius: 2px;
}

.s3-vcard {
  background: linear-gradient(135deg, rgba(250, 253, 255, 0.94) 0%, rgba(242, 248, 255, 0.86) 50%, rgba(235, 245, 255, 0.90) 100%);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(0, 71, 171, 0.08);
  border-radius: 18px;
  padding: clamp(12px, 1.4vw, 20px) clamp(12px, 1.3vw, 18px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 71, 171, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.90);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.s3-vcard:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 71, 171, 0.18);
  box-shadow: 0 20px 42px rgba(0, 71, 171, 0.07), inset 0 1px 2px rgba(255, 255, 255, 0.98);
}

.vcard-icon {
  width: clamp(32px, 2.5vw, 40px);
  height: clamp(32px, 2.5vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(6px, 0.8vw, 12px);
}

.vcard-icon svg {
  width: clamp(18px, 1.5vw, 22px);
  height: clamp(18px, 1.5vw, 22px);
}

.vcard-icon.green-bg { background: var(--earth-sage); }
.vcard-icon.orange-bg { background: var(--amber-primary); }
.vcard-icon.yellow-bg { background: var(--amber-secondary); }
.vcard-icon.teal-bg { background: var(--paper-cut-blue); }

.s3-vcard h4 {
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 0.8vw, 0.96rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.s3-vcard p {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.3vw + 0.5rem, 0.8rem);
  color: var(--text-muted);
  line-height: 1.38;
}

/* Responsive Rules for Scene 3 Redesign */
@media (max-width: 1300px) {
  .scene3-grid-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) {
  .scene-play {
    height: auto;
    min-height: 100vh;
  }
  .scene3-bottom-cards {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .bottom-prompt {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  .bottom-prompt h3 br {
    display: none;
  }
  .scene3-feature-pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    border-radius: 40px;
    padding: 24px;
  }
  .fpill-divider { display: none; }
}

@media (max-width: 900px) {
  .scene-play {
    height: auto;
    min-height: auto;
  }
  .scene3-grid-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-bl {
    left: -10px;
  }
  .card-tr {
    right: -10px;
  }
  .flora-inner-1,
  .flora-inner-2,
  .flora-inner-3 {
    display: none;
  }
}

@media (max-width: 600px) {
  .scene3-bottom-cards {
    grid-template-columns: 1fr;
  }
  .scene3-image-mask {
    border-radius: 32px;
  }
  .stripe-flora {
    width: 50px;
    height: 140px;
  }
}

/* --------------------------------------------------------------------------
   SCENE 5: Find Your Campus (Branch Locator Dashboard)
   -------------------------------------------------------------------------- */
.scene-campuses {
  position: relative;
  background-color: var(--bg-cream, #FFFDF8);
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(72px, 9vw, 140px);
}

.s5-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.s5-header {
  margin-bottom: 40px;
}

.campus-scene-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-orange-light, #FFF2EC);
  color: var(--primary-orange, #FF7A45);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.campus-scene-heading {
  color: var(--navy-teal-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.s5-heart-icon {
  font-size: 0.8em;
}

.s5-subtitle {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 0.35vw + 0.55rem, 1rem);
  font-weight: 400;
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Dashboard Layout */
.s5-dashboard {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Left: Map Container */
.s5-map-container {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  align-self: start;
}

.s5-map-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.s5-map-scroll::-webkit-scrollbar { display: none; }

/* Wrapper keeps the map's own aspect ratio so pin hotspots stay on the drawn pins */
.s5-map-wrapper {
  width: 100%;
  aspect-ratio: 1505 / 1045;
  position: relative;
  container-type: inline-size;
}

.s5-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.s5-map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.s5-zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #F8F9FA;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--navy-teal-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.s5-zoom-btn:hover {
  background: #E9ECEF;
}

.s5-map-tooltip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-teal-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s5-tooltip-icon {
  font-size: 1.2rem;
}

/* Map Pins — transparent hotspots over the pins drawn in the map image */
.s5-map-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.s5-map-pin::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--primary-orange, #FF7A45);
  background: rgba(255, 122, 69, 0.18);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Always-visible name tag sitting beside its pin, scaled with the map */
.s5-pin-label {
  position: absolute;
  top: 50%;
  left: calc(50% + 0.9em);
  transform: translateY(-50%);
  font-size: clamp(0.56rem, 1.5cqw, 0.7rem);
  background: #FFF8EC;
  color: var(--navy-teal-dark);
  border: 1.5px solid var(--primary-orange, #FF7A45);
  border-radius: 999px;
  padding: 0.12em 0.7em;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 122, 69, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.s5-map-pin:hover,
.s5-map-pin:focus-visible,
.s5-map-pin.active {
  z-index: 20;
}

.s5-map-pin:hover::before,
.s5-map-pin:focus-visible::before,
.s5-map-pin.active::before {
  opacity: 1;
  transform: scale(1);
}

.s5-map-pin:hover .s5-pin-label,
.s5-map-pin:focus-visible .s5-pin-label {
  transform: translateY(-50%) scale(1.06);
}

.s5-map-pin.active .s5-pin-label {
  background: var(--primary-orange, #FF7A45);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

/* Right: Details Card */
.s5-details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg, 24px);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.s5-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.s5-card-tag {
  display: inline-block;
  background: var(--primary-orange-light, #FFF2EC);
  color: var(--primary-orange, #FF7A45);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.s5-card-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.s5-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-teal-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.s5-star {
  color: #FFB020;
}

/* DLF proximity line shown only in Mugalivakkam & Ashram Avenue detail cards */
.s5-card-dlf {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-primary);
  background: rgba(245,135,31,0.08);
  border: 1px solid rgba(245,135,31,0.28);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 8px;
  display: inline-block;
}

.s5-card-address {
  font-size: 0.85rem;
  color: var(--navy-teal-dark);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

.s5-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.s5-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: auto; /* pushes buttons to bottom */
}

.s5-feature-pill {
  background: #F8F9FA;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.s5-feature-icon {
  font-size: 1rem;
}

.s5-card-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
}

.s5-btn-primary {
  flex: 1;
  background: var(--primary-orange, #FF7A45);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.s5-btn-primary:hover {
  background: #E66632;
  transform: translateY(-2px);
  color: #fff;
}

.s5-btn-outline {
  flex: 1;
  background: transparent;
  color: var(--navy-teal-dark);
  border: 1px solid rgba(0,0,0,0.1);
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.s5-btn-outline:hover {
  background: #F8F9FA;
}

/* Bottom: Campus Carousel */
.s5-carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  /* overflow-x:auto also clips vertically, so leave headroom for the hover lift + shadow */
  padding-top: 12px;
  margin-top: -12px;
  padding-bottom: 20px;
  /* hide scrollbar */
  scrollbar-width: none;
}
.s5-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.s5-carousel {
  display: flex;
  gap: 16px;
  width: 100%;
}

.s5-thumb-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px 10px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.s5-thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.s5-thumb-card.active {
  border-color: var(--primary-orange, #FF7A45);
  background: #FFFDFC;
}

.s5-thumb-index {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy-teal);
  border: 2px solid #fff;
  z-index: 2;
}

.s5-thumb-card:nth-child(1) .s5-thumb-index { background: #ECA38A; }
.s5-thumb-card:nth-child(2) .s5-thumb-index { background: #A2CBAF; }
.s5-thumb-card:nth-child(3) .s5-thumb-index { background: #A0C4D5; }
.s5-thumb-card:nth-child(4) .s5-thumb-index { background: #DFB26F; }
.s5-thumb-card:nth-child(5) .s5-thumb-index { background: #E08C8C; }
.s5-thumb-card:nth-child(6) .s5-thumb-index { background: #B3A4D6; }

.s5-thumb-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #F8F9FA;
  flex-shrink: 0;
}

.s5-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s5-thumb-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s5-thumb-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy-teal-dark);
  margin-bottom: 4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.s5-thumb-rating {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Footer Bridge Line */
.s5-footer-bridge {
  text-align: center;
  margin-top: 40px;
}

.s5-footer-bridge .scene-bridge-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.s5-leaf-icon {
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .s5-dashboard {
    grid-template-columns: 1fr;
  }
}

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

/* --------------------------------------------------------------------------
   SCENE 5: Book a Visit (Closing Scene & Counter Trust Numbers)
   -------------------------------------------------------------------------- */
.scene-book-visit {
  background-color: var(--bg-cream);
  position: relative;
  /* This scene used to also hold the .trust-metrics-card counter row (see
     the dead .counter-num rules below) alongside .booking-cta-box, which
     was enough content to fill .scene-container's min-height:100vh without
     looking empty. Now it's just the slim CTA box, so on a full-height
     section it gets flex-centered inside a mostly-empty viewport, leaving
     a large dead band above and below it. Let it size to its content. */
  min-height: auto;
}

.trust-metrics-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.trust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.metric-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.counter-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--amber-primary);
  line-height: 1;
}

.counter-unit {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber-secondary);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.booking-cta-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.booking-cta-box h2 {
  font-size: clamp(2.25rem, 3.8vw + 0.5rem, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .trust-metrics-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Alternating Scene Background Utility (Cream ↔ Off-White page-turn effect)
   -------------------------------------------------------------------------- */
.scene-bg-alt {
  background-color: var(--bg-cream-alt) !important;
}

/* --------------------------------------------------------------------------
   Scene Bridge / Transition Lines
   -------------------------------------------------------------------------- */
.scene-bridge-line {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.92rem, 0.55vw + 0.6rem, 1.05rem);
  color: var(--text-light);
  letter-spacing: 0.01em;
  margin-bottom: clamp(28px, 4vw, 48px);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   SCENE 4: Hero Testimonial Carousel & Minimal Trust Stage (Compact Auto-Fit)
   -------------------------------------------------------------------------- */
.scene-parent-voices {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FCF8F1;
  padding: clamp(16px, 2.5vh, 28px) 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ambient Background Artwork */
.scene4-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.s4-bg-tl {
  position: absolute;
  top: -20px;
  left: -30px;
  width: clamp(140px, 14vw, 220px);
}

.s4-bg-tr {
  position: absolute;
  top: 10px;
  right: 10px;
  width: clamp(160px, 16vw, 240px);
}

.s4-bg-bl {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: clamp(90px, 10vw, 130px);
}

.s4-bg-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(110px, 12vw, 160px);
}

/* Scalable Container Wrapper */
.s4-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 28px);
}

/* --------------------------------------------------------------------------
   Flanking Polaroids & Mascots (Enlarged & Heroic)
   -------------------------------------------------------------------------- */
.s4-flank-polaroid {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.s4-polaroid-left {
  top: 35px;
  left: -155px;
  transform: rotate(-6deg);
}

.s4-polaroid-left:hover {
  transform: rotate(-3deg) translateY(-8px) scale(1.04);
  filter: drop-shadow(0 18px 32px rgba(25, 42, 55, 0.16));
}

.s4-polaroid-right {
  top: 100px;
  right: -155px;
  transform: rotate(6deg);
}

.s4-polaroid-right:hover {
  transform: rotate(3deg) translateY(-8px) scale(1.04);
  filter: drop-shadow(0 18px 32px rgba(25, 42, 55, 0.16));
}

/* Polaroid Paper Frame (Enlarged Hero Sizing) */
.polaroid-inner-card {
  background: #FFFFFF;
  padding: 9px 9px 28px 9px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(25, 42, 55, 0.11), 0 3px 8px rgba(25, 42, 55, 0.05);
  width: clamp(165px, 16vw, 195px);
  border: 1px solid rgba(19, 42, 58, 0.05);
}

.polaroid-photo-frame {
  width: 100%;
  height: clamp(130px, 13vw, 155px);
  overflow: hidden;
  border-radius: 5px;
  background: #EAF3F6;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Washi Tape Strips */
.polaroid-washi {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 22px;
  z-index: 4;
  opacity: 0.92;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.09);
  clip-path: polygon(4% 0%, 96% 2%, 100% 96%, 2% 100%);
}

.washi-blue {
  background: #EAF3F6;
  border: 1px solid rgba(19, 42, 58, 0.1);
}

.washi-green {
  background: #EBF3E7;
  border: 1px solid rgba(142, 173, 114, 0.3);
}

/* Floating Paper Plane */
.polaroid-paper-plane {
  position: absolute;
  top: -16px;
  right: -28px;
  width: 38px;
  height: 32px;
  z-index: 5;
  animation: s4PlaneHover 3.5s ease-in-out infinite alternate;
}

@keyframes s4PlaneHover {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -6px) rotate(5deg); }
  100% { transform: translate(7px, -3px) rotate(-4deg); }
}

/* Cute Pumpkin Mascot */
.polaroid-pumpkin-mascot {
  position: absolute;
  bottom: -20px;
  right: -36px;
  width: 72px;
  height: 64px;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(244, 122, 36, 0.24));
  animation: s4MascotBob 3s ease-in-out infinite alternate;
}

@keyframes s4MascotBob {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(3deg); }
}

.mascot-svg {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Section Header & Typography (Stacked Top Pill + Centered Heading)
   -------------------------------------------------------------------------- */
.s4-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(12px, 1.8vh, 22px);
  position: relative;
  z-index: 2;
  width: 100%;
}

.s4-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 999px;
  background: #FFF0E4;
  border: 1px solid rgba(244, 122, 36, 0.22);
  margin: 0 auto clamp(12px, 1.6vh, 18px) auto;
}

.s4-header-pill .pill-text {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F47A24;
  text-transform: uppercase;
}

.s4-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw + 0.5rem, 3.4rem);
  font-weight: 500;
  color: #132A3A;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 auto 6px auto;
  display: block;
  text-align: center;
  position: relative;
}

.s4-heading .highlight-orange {
  color: #F47A24;
  font-weight: 400;
}

.s4-heading-heart {
  display: inline-block;
  width: clamp(22px, 2.3vw, 30px);
  height: clamp(20px, 2.1vw, 28px);
  vertical-align: middle;
  margin-left: 6px;
  margin-top: -6px;
  animation: s4HeartBeat 2s ease-in-out infinite;
}

@keyframes s4HeartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.s4-subtext {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.76rem, 0.2vw + 0.62rem, 0.84rem);
  color: #4A5F6E;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Exact 2-Column Grid Matching Reference Image (3 Stats Left, 3 Reviews Right)
   -------------------------------------------------------------------------- */
.s4-exact-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  margin-top: clamp(12px, 2vh, 20px);
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Left Column: 3 Stat Cards */
.s4-exact-left-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
}

.s4-exact-stat-card {
  position: relative;
  border-radius: 18px;
  padding: 13px 15px;
  border: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  box-shadow: 0 6px 20px rgba(25, 42, 55, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* High-Contrast Frosted Gradient Tints for Stat Cards (Light Edge to Darker Edge) */
.s4-stat-card-orange {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF2E6 35%, #FEDECA 70%, #FDC69C 100%);
}

.s4-stat-card-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(244, 122, 36, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-stat-card-green {
  background: linear-gradient(135deg, #FFFFFF 0%, #F2F8ED 35%, #DDF2D2 70%, #C2E8B0 100%);
}

.s4-stat-card-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(75, 131, 58, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-stat-card-teal {
  background: linear-gradient(135deg, #FFFFFF 0%, #EDF6FA 35%, #D2EDF6 70%, #B4DEEE 100%);
}

.s4-stat-card-teal:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(46, 108, 132, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-stat-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-circle-orange {
  background: linear-gradient(135deg, #F88A22 0%, #EA6D12 100%);
}

.icon-circle-green {
  background: linear-gradient(135deg, #5B9B3C 0%, #467E2D 100%);
}

.icon-circle-teal {
  background: linear-gradient(135deg, #2E6C84 0%, #1E4F63 100%);
}

.s4-svg-icon {
  width: 20px;
  height: 20px;
}

.s4-stat-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.s4-stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.s4-stat-big-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.text-orange { color: #E56813; }
.text-green { color: #3E732E; }
.text-teal { color: #1E566C; }

.s4-stat-slash-denom {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #4A5F6E;
  font-weight: 600;
}

.s4-stat-stars-row {
  color: #E56813;
  font-size: 0.72rem;
  letter-spacing: 2px;
  margin: 1px 0;
}

.s4-stat-title {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0E202C;
  line-height: 1.2;
}

.s4-stat-subtitle {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
}

.s4-avatars-row {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.s4-avatar-mini {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  margin-left: -5px;
  object-fit: cover;
  background: #FFFFFF;
}

.s4-avatar-mini:first-child {
  margin-left: 0;
}

.s4-avatar-plus {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #D5E6CD;
  color: #3E732E;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  border: 1.5px solid #FFFFFF;
}

.s4-hq-pill-wrap {
  margin-top: 3px;
}

.s4-hq-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: #1E4F63;
  background: #DDEBF0;
  padding: 1px 8px;
  border-radius: 999px;
  border: none;
}

.pill-arrow {
  font-size: 0.78rem;
  font-weight: 800;
  margin-left: 1px;
}

/* Right Column: 3 Testimonial Cards */
.s4-exact-right-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
}

.s4-exact-review-card {
  position: relative;
  border-radius: 18px;
  padding: 13px 18px;
  border: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  box-shadow: 0 6px 20px rgba(25, 42, 55, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* High-Contrast Frosted Gradient Tints for Review Cards (Light Edge to Darker Edge) */
.s4-review-card-orange {
  background: linear-gradient(120deg, #FFFFFF 0%, #FFF2E6 30%, #FEDBBE 70%, #FDC596 100%);
}

.s4-review-card-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(244, 122, 36, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-review-card-green {
  background: linear-gradient(120deg, #FFFFFF 0%, #F2F9EE 30%, #DCF2D0 70%, #BFE7AC 100%);
}

.s4-review-card-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(75, 131, 58, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-review-card-teal {
  background: linear-gradient(120deg, #FFFFFF 0%, #EEF7FB 30%, #D2EDF7 70%, #B2DDEE 100%);
}

.s4-review-card-teal:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(46, 108, 132, 0.2), inset 0 1px 1px #FFFFFF;
}

.s4-speech-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-orange-tint { background: #FED4B4; }
.badge-green-tint { background: #D0ECC0; }
.badge-teal-tint { background: #C5E5F2; }

.s4-chat-icon {
  width: 18px;
  height: 18px;
}

.s4-review-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}

.s4-review-body {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.75rem, 0.16vw + 0.66rem, 0.82rem);
  line-height: 1.44;
  color: #132A3A;
  font-weight: 500;
  margin: 0;
}

.s4-review-author-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.s4-author-bold {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #0E202C;
}

.s4-author-sub {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.72rem;
  color: #4A5F6E;
  font-weight: 600;
}

.s4-reaction-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.s4-reaction-col:hover {
  transform: scale(1.1);
}

.s4-heart-reaction-icon {
  width: 17px;
  height: 17px;
}

.s4-reaction-count {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
}

.reaction-orange { color: #E56813; }
.reaction-green { color: #3E732E; }
.reaction-teal { color: #1E566C; }

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .s4-flank-polaroid {
    display: none;
  }
}

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

  .s4-exact-left-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .scene-parent-voices {
    min-height: auto;
    padding: 36px 0 44px;
  }
}



/* --------------------------------------------------------------------------
   Schedule a Tour Modal Drawer
   -------------------------------------------------------------------------- */
.tour-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(42, 36, 32, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.tour-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-drawer {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(42, 36, 32, 0.25);
  border: 1px solid var(--border-medium);
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.tour-drawer-overlay.active .tour-drawer {
  transform: translateY(0) scale(1);
}

.drawer-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

/* Site Footer */
.site-footer {
  background-color: var(--bg-cream-alt);
  border-top: 1px solid var(--border-light);
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
  color: var(--text-muted);
}

/* Multi-Branch Footer NAP Grid */
.footer-nap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.footer-nap-col h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-teal-dark);
  margin-bottom: 10px;
}

.footer-nap-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-nap-col a {
  color: var(--amber-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-nap-col a:hover {
  text-decoration: underline;
}

/* Floating Sticky WhatsApp Click-to-Chat Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--amber-primary);
}

.breadcrumb-nav span.current {
  color: var(--text-main);
  font-weight: 600;
}

/* Subpage Layout Frames */
.subpage-hero {
  padding: clamp(100px, 12vw, 160px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--bg-cream);
  text-align: center;
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-bottom: 20vh;
}

.subpage-hero .container {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3.8rem);
  margin-bottom: clamp(10px, 1.5vw, 20px);
}

.subpage-hero p.lead {
  font-size: clamp(0.98rem, 1vw + 0.4rem, 1.2rem);
  color: var(--text-muted);
  max-width: min(90%, 720px);
  margin: 0 auto;
  line-height: 1.65;
  text-align: center;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — Fluid behaviour at key widths
   ============================================================ */

/* Large containers: ensure .container scales up on wide screens */
@media (min-width: 1440px) {
  .container {
    width: min(92%, 1600px);
  }

  .header-container {
    width: min(92%, 1600px);
  }

  .hero-copy-col {
    max-width: 100%;
    margin-left: clamp(40px, 5vw, 96px);
  }

  .hero-layout-grid {
    gap: clamp(36px, 4vw, 70px);
  }

  .campuses-asymmetric-layout {
    gap: 48px;
  }

  .campus-card-asymmetric:nth-child(even) {
    margin-left: 5%;
  }

  .campus-card-asymmetric:nth-child(odd) {
    margin-right: 5%;
  }
}

@media (min-width: 1600px) {
  .container {
    width: min(90%, 1600px);
  }

  .header-container {
    width: min(90%, 1600px);
  }

  .hero-copy-col {
    max-width: 100%;
    margin-left: clamp(40px, 5vw, 96px);
  }

  .hero-layout-grid {
    gap: 76px;
  }
}

/* Full HD / 24-inch 1080p target: ~1920px wide */
@media (min-width: 1920px) {
  .container {
    width: min(88%, 1760px);
  }

  .header-container {
    width: min(88%, 1760px);
  }

  .hero-copy-col {
    max-width: 100%;
    margin-left: clamp(40px, 5vw, 96px);
  }

  .hero-layout-grid {
    gap: 88px;
  }
}

/* Small laptop: 1024px-1279px */
@media (max-width: 1279px) and (min-width: 1025px) {
  .campus-card-asymmetric:nth-child(even) {
    margin-left: 2%;
  }

  .campus-card-asymmetric:nth-child(odd) {
    margin-right: 2%;
  }

  .hero-copy-col {
    max-width: 100%;
    margin-left: clamp(40px, 5vw, 96px);
  }
}

/* Tablet */
@media (max-width: 768px) {

  .campus-card-asymmetric,
  .campus-card-asymmetric:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .floating-quick-nav {
    gap: clamp(10px, 3vw, 18px);
    padding: 10px clamp(12px, 3vw, 20px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 0.72rem;
  }

  .floating-parent-card {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .floating-quick-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .floating-quick-nav::-webkit-scrollbar {
    display: none;
  }

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

  .play-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .play-photo-frame {
    height: clamp(220px, 56vw, 320px);
  }

  .trust-metrics-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .campus-card-asymmetric {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GLOBAL MOBILE FIXES — added for mobile responsiveness pass
   ============================================================ */

/* subpage-hero: prevent full-viewport lockout on phones */
@media (max-width: 768px) {
  .subpage-hero {
    min-height: auto;
    padding: clamp(90px, 14vw, 120px) 0 clamp(32px, 6vw, 56px);
    padding-bottom: clamp(32px, 6vw, 56px);
    align-items: flex-start;
  }
}

/* Header CTA: hide on very small screens to prevent crowding */
@media (max-width: 480px) {
  .header-cta-btn {
    display: none !important;
  }
}

/* WhatsApp float: add bottom clearance so it doesn't overlap footer content */
.whatsapp-float-btn {
  bottom: 20px;
  right: 20px;
}
@media (max-width: 600px) {
  .whatsapp-float-btn {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================================
   SITE-WIDE MOBILE RESPONSIVENESS PASS
   Covers all shared components across every page.
   Breakpoints: 1024px, 768px, 600px, 480px, 390px, 360px
   ============================================================ */

/* ── Viewport safe-area: applied globally so env() works everywhere ── */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  /* bottom handled per-section so footer doesn't get squashed */
}

/* ── Common hero grids: stack on tablet ── */
@media (max-width: 900px) {
  /* Admissions hero */
  .adm-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Contact hero + main */
  .ct-hero-inner,
  .ct-main-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Admissions docs/branch grid */
  .adm-bot-grid { grid-template-columns: 1fr !important; }
  /* Timeline: stack steps */
  .tl-steps { grid-template-columns: 1fr !important; }
  .tl-line   { display: none !important; }
}

/* ── Tablet: 768px ── */
@media (max-width: 768px) {
  /* Reduce hero section padding universally */
  .adm-hero,
  .ct-hero,
  .faq-hero,
  .blog-hero,
  .programs-hero,
  .about-hero,
  .gallery-hero,
  .branches-hero,
  .subpage-hero {
    padding-top: clamp(80px, 15vw, 116px) !important;
    padding-bottom: clamp(32px, 6vw, 56px) !important;
  }

  /* Section inner wrappers: horizontal padding */
  .adm-hero-inner,
  .ct-hero-inner,
  .ct-main-inner,
  .sw,
  .sec-wrap,
  .faq-body-inner,
  .blog-featured-inner,
  .blog-grid-inner,
  .adm-bot-grid {
    padding-left: clamp(16px, 4vw, 32px) !important;
    padding-right: clamp(16px, 4vw, 32px) !important;
  }

  /* Section vertical rhythm */
  .adm-tl,
  .adm-progs,
  .adm-bot,
  .ct-main,
  .faq-body-section,
  .blog-section {
    padding-top: clamp(40px, 7vw, 72px) !important;
    padding-bottom: clamp(40px, 7vw, 80px) !important;
  }

  /* Section headings */
  .sh h2,
  .cs-section-header h2 {
    font-size: clamp(1.85rem, 6vw, 2.35rem) !important;
  }
}

/* ── Phones: 600px ── */
@media (max-width: 600px) {
  /* Programs grid: 1 column */
  .progs-grid { grid-template-columns: 1fr !important; }

  /* Contact form */
  .cf-row { grid-template-columns: 1fr !important; }
  .ct-form-body { padding: 20px !important; }
  .ct-form-header { padding: 20px 20px 16px !important; }
  .ct-map-header { padding: 16px 16px 12px !important; }
  .ct-trust-card { padding: 20px !important; }
  .ct-quick-item { padding: 12px 14px !important; gap: 12px !important; }

  /* Trust stats: 2-up stays fine, no change needed */

  /* Admissions program cards 2-up already, collapse to 1 */
  .progs-grid { grid-template-columns: 1fr !important; }

  /* Common section horizontal padding floor */
  .sw,
  .sec-wrap,
  .adm-hero-inner,
  .ct-hero-inner,
  .ct-main-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ── Mobile phones: 480px ── */
@media (max-width: 480px) {
  /* Stat card grids: single column */
  .hsg-grid { grid-template-columns: 1fr !important; }
  .hsg.wide { grid-column: span 1 !important; }

  /* Docs/branch cards: tighter padding */
  .dc, .bc { padding: 20px !important; }

  /* CTA rows: stack full-width */
  .adm-ctas,
  .hero-cta-row {
    flex-direction: column !important;
  }
  .adm-btn-a,
  .adm-btn-b {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Admissions h1 */
  .adm-hero h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important; }
  .ct-hero h1  { font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important; }

  /* WhatsApp float: tighter on small phones */
  .whatsapp-float-btn {
    width: 46px !important;
    height: 46px !important;
    bottom: 14px !important;
    right: 14px !important;
  }

  /* Branch map height: shorter on phones */
  .ct-map-frame { height: 200px !important; }

  /* Contact quick access items: stacked text */
  .cqi-value { font-size: 0.85rem !important; }

  /* Timeline bubbles smaller */
  .tl-bubble {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.5rem !important;
    margin-bottom: 14px !important;
  }

  /* FAQ accordion: tighter */
  .faq-q { font-size: 0.88rem !important; padding: 16px 18px !important; }
  .faq-a { padding: 0 18px 16px !important; font-size: 0.84rem !important; }

  /* Gallery grid: 2-up on phones */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* Blog card grid: single column */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Footer NAP grid tighter */
  .footer-nap-grid { gap: 20px !important; }
}

/* ── Small phones: 390px ── */
@media (max-width: 390px) {
  .adm-hero h1 { font-size: clamp(1.55rem, 7vw, 1.9rem) !important; }
  .ct-hero h1  { font-size: clamp(1.4rem, 7vw, 1.7rem) !important; }

  /* Gallery: single column on tiny phones */
  .gallery-grid { grid-template-columns: 1fr !important; }

  /* Tighter section padding */
  .sw,
  .sec-wrap,
  .adm-hero-inner,
  .ct-hero-inner,
  .ct-main-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Program cards: full width */
  .progs-grid { grid-template-columns: 1fr !important; }
}

/* ── Header nav: fix all pages that have plain <div> wrapping CTA ── */
/* (The mobile-nav-toggle show/hide is already in components.css
   at max-width:1024px, so we only need to ensure the toggle
   button is always positioned correctly) */
@media (max-width: 1024px) {
  /* CTA text: shorten to "Contact" on small screens */
  .header-cta-btn {
    font-size: clamp(11px, 0.55vw + 7px, 14px) !important;
    padding: 6px clamp(10px, 1.5vw, 16px) !important;
  }
}

/* ── Viewport safe inset: bottom clearance for iPhone home bar ── */
.site-footer {
  padding-bottom: calc(clamp(24px, 4vw, 48px) + env(safe-area-inset-bottom, 0px)) !important;
}

/* ── About us: mission grid ── */
@media (max-width: 900px) {
  .about-mission-grid,
  .about-values-grid,
  .about-team-grid,
  .about-why-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 390px) {
  .about-stats-grid { grid-template-columns: 1fr !important; }
}

/* ── Branch pages: hero+grid ── */
@media (max-width: 768px) {
  .branch-hero-grid,
  .branch-info-grid,
  .branch-why-grid {
    grid-template-columns: 1fr !important;
  }
  .branch-hero { padding-top: clamp(80px, 15vw, 116px) !important; }
}

/* ── Programs: feature grids ── */
@media (max-width: 768px) {
  .prog-feature-grid,
  .prog-schedule-grid,
  .prog-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Gallery: responsive grid ── */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2 !important; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1 !important; }
  .gallery-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
  .gallery-filter-bar::-webkit-scrollbar { display: none; }
}

/* ── Blog: article content ── */
@media (max-width: 768px) {
  .blog-article-grid,
  .blog-featured-grid { grid-template-columns: 1fr !important; }
  .blog-article-body { font-size: 0.95rem !important; }
}

/* ── FAQs: accordion ── */
@media (max-width: 600px) {
  .faq-hero-inner { padding: 0 20px !important; }
  .faq-body-inner { padding: 0 20px !important; }
}

/* ── Book-a-tour: form wrapper ── */
@media (max-width: 600px) {
  .bat-form-card { padding: 24px 18px !important; }
  .bat-hero-inner { padding: 0 20px !important; }
}

/* ── Staff login ── */
@media (max-width: 480px) {
  .login-card { padding: 28px 20px !important; margin: 0 16px !important; }
}

/* ── Scene hero: homepage ── */
@media (max-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-copy-col { text-align: left; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-features-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .hero-features-row { grid-template-columns: repeat(2, 1fr) !important; }
  .kinetic-headline { font-size: clamp(2rem, 8vw, 2.6rem) !important; }
}
@media (max-width: 420px) {
  .hero-features-row { grid-template-columns: 1fr 1fr !important; }
  .kinetic-headline { font-size: clamp(1.8rem, 8.5vw, 2.3rem) !important; }
  .hero-cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .hero-cta-row .btn-amber { width: auto; justify-content: center; }
}

/* ── Landscape small phone ── */
@media (orientation: landscape) and (max-height: 500px) {
  .scene-container { min-height: auto !important; }
  .subpage-hero { min-height: auto !important; padding-top: 80px !important; }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERHAUL — Heading sizes, image scaling, overlaps
   Covers all scenes on the homepage + shared components
   Breakpoints: 1024px, 768px, 600px, 480px, 390px
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL: Prevent horizontal overflow on all pages
   -------------------------------------------------------------------------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   SCENE 1 (Hero): Fix heading sizes, image scaling & overlapping elements
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Make kinetic headline bold, balanced and left-aligned on mobile */
  .kinetic-headline {
    font-size: clamp(2.35rem, 8.8vw, 3rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    text-align: left !important;
    margin-bottom: 6px !important;
  }

  .headline-line {
    white-space: normal !important;
    display: block;
    text-align: left !important;
  }

  /* Hero image: ensure it fills available width */
  .hero-photo-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .hero-main-card {
    border-radius: 20px !important;
    aspect-ratio: 16 / 10 !important;
  }

  /* Floating parent card: Frosted badge anchored over top-right of image with clear typography */
  .floating-parent-card {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    margin: 0 !important;
    max-width: 210px !important;
    width: auto !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    animation: none !important;
  }

  .floating-parent-card .parent-card-title {
    font-size: 0.84rem !important;
  }

  .floating-parent-card .parent-card-desc {
    font-size: 0.74rem !important;
  }

  .floating-parent-card .parent-card-arrow {
    font-size: 0.82rem !important;
  }

  /* Quick nav: relative, full width, scrollable */
  .floating-quick-nav {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 14px !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 50px !important;
    padding: 10px 14px !important;
  }

  .floating-quick-nav .quick-nav-item {
    font-size: 0.92rem !important;
  }

  .floating-quick-nav::-webkit-scrollbar { display: none; }

  /* Hero copy: left-aligned with clear readable sizes */
  .hero-copy-col {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
  }

  .hero-eyebrow {
    font-size: clamp(0.82rem, 2.6vw, 0.92rem) !important;
    justify-content: flex-start !important;
    text-align: left !important;
    letter-spacing: 0.12em !important;
  }

  .hero-subtext {
    max-width: 100% !important;
    font-size: clamp(1rem, 3.4vw, 1.12rem) !important;
    line-height: 1.65 !important;
    text-align: left !important;
    margin-bottom: 6px !important;
  }

  /* Action buttons */
  .hero-cta-row {
    gap: 14px !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  .hero-cta-row .btn-amber {
    font-size: 0.98rem !important;
    padding: 13px 26px !important;
  }

  .hero-cta-row .btn-play-story {
    font-size: 0.95rem !important;
  }

  /* Trust badges */
  .hero-features-row {
    gap: 14px 16px !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
  }

  .hero-features-row .feature-pill-label {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
  }

  /* Hero glow: reduce blur on mobile for perf */
  .hero-image-glow {
    filter: blur(16px) !important;
    opacity: 0.55 !important;
  }
}

@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .hero-cta-row .btn-amber {
    width: auto !important;
    justify-content: center !important;
  }

  .hero-features-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 14px !important;
  }
}

@media (max-width: 390px) {
  .kinetic-headline {
    font-size: clamp(2.1rem, 8.5vw, 2.45rem) !important;
  }
  .hero-subtext {
    font-size: 0.98rem !important;
  }
  .hero-features-row .feature-pill-label {
    font-size: 0.84rem !important;
  }
}

/* --------------------------------------------------------------------------
   SCENE 2 (Prepared Environment): Fix heading, image & card sizes on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .scene2-heading {
    font-size: clamp(2.05rem, 7.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
  }

  .scene2-subtext {
    font-size: clamp(0.98rem, 3.4vw, 1.08rem) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
  }

  .scene2-photo-card {
    width: 75% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .scene2-hero-grid {
    gap: 28px !important;
  }

  /* Ensure card section doesn't clip images */
  .scene2-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .scene2-card {
    padding: 20px 16px 28px !important;
  }

  .scene2-card p {
    line-height: 1.42 !important;
  }
}

@media (max-width: 480px) {
  .scene2-heading {
    font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
    line-height: 1.16 !important;
  }

  .scene2-photo-card {
    width: 85% !important;
  }
}

/* --------------------------------------------------------------------------
   SCENE 3 (Play & Discovery): Fix heading, image mask & floating card overlaps
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .scene3-title {
    font-size: clamp(2.05rem, 7.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    white-space: normal !important;
  }

  .scene3-title .title-line {
    white-space: normal !important;
    display: block !important;
  }

  .scene3-desc {
    font-size: clamp(0.98rem, 3.4vw, 1.08rem) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    max-width: 100% !important;
  }

  /* Image mask: full width, proper aspect */
  .scene3-image-mask-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .scene3-image-mask {
    aspect-ratio: 4/3 !important;
    border-radius: 24px !important;
    width: 100% !important;
  }

  /* Floating cards: prevent overlap with image */
  .scene3-floating-card {
    position: static !important;
    display: inline-flex !important;
    margin-top: 12px !important;
  }

  .card-bl {
    margin-right: 8px;
  }

  .card-tr {
    flex-direction: row !important;
    align-items: center !important;
  }

  /* Show floating cards in a row below image on mobile */
  .scene3-image-mask-container {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Pill: wrap items vertically */
  .scene3-feature-pill {
    flex-direction: column !important;
    align-items: flex-start !important;
    border-radius: 24px !important;
    gap: 16px !important;
    padding: 18px 20px !important;
  }

  .fpill-divider { display: none !important; }

  /* Bottom cards */
  .scene3-bottom-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bottom-prompt {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    align-items: center !important;
  }

  /* Hide decorative flora on mobile */
  .stripe-flora {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .scene3-title {
    font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
    line-height: 1.16 !important;
  }

  .scene3-bottom-cards {
    grid-template-columns: 1fr !important;
  }

  .scene3-desc {
    font-size: clamp(0.95rem, 3.5vw, 1.04rem) !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   SCENE 4 (Parent Voices): Fix heading & stat cards on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .s4-heading {
    font-size: clamp(2.05rem, 7.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
  }

  .s4-subtext {
    font-size: clamp(0.98rem, 3.4vw, 1.08rem) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
  }

  .s4-exact-grid {
    grid-template-columns: 1fr !important;
  }

  .s4-exact-left-col {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
  }

  .s4-exact-review-card,
  .s4-exact-stat-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .s4-heading {
    font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
    line-height: 1.16 !important;
  }

  .s4-exact-left-col {
    grid-template-columns: 1fr !important;
  }

  .s4-subtext {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
}

/* --------------------------------------------------------------------------
   SCENE 5 (Find Your Campus): Fix heading & dashboard layout on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .campus-scene-heading {
    font-size: clamp(2.05rem, 7.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .s5-subtitle {
    font-size: clamp(0.98rem, 3.4vw, 1.08rem) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
  }

  .s5-dashboard {
    grid-template-columns: 1fr !important;
  }


  .s5-carousel {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .s5-carousel::-webkit-scrollbar { display: none; }

  .s5-thumb-card {
    flex: 0 0 140px !important;
    min-width: 140px !important;
  }
}

@media (max-width: 480px) {
  .campus-scene-heading {
    font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
    line-height: 1.16 !important;
  }

}

/* --------------------------------------------------------------------------
   SCENE 6 (Closing CTA): Fix heading on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .booking-cta-box h2 {
    font-size: clamp(2.05rem, 7.5vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
  }

  .booking-cta-box p {
    font-size: clamp(0.98rem, 3.4vw, 1.08rem) !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
  }

  .booking-cta-box {
    padding: 0 8px !important;
  }
}

@media (max-width: 480px) {
  .booking-cta-box h2 {
    font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
    line-height: 1.16 !important;
  }
}

/* --------------------------------------------------------------------------
   SCENE 2 bg: prevent bottom-left shapes from clipping content
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .s2-bottom-left-shapes,
  .s2-bottom-right-shapes,
  .s2-top-right-leaf {
    display: none !important;
  }

  .scene-prepared {
    padding-top: clamp(80px, 16vw, 120px) !important;
    padding-bottom: clamp(40px, 8vw, 72px) !important;
  }
}

/* --------------------------------------------------------------------------
   Section headings: global minimum on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  h1 { font-size: clamp(2.15rem, 8vw, 2.85rem) !important; }
  h2 { font-size: clamp(1.95rem, 7.5vw, 2.45rem) !important; line-height: 1.18 !important; }
  h3 { font-size: clamp(1.22rem, 5vw, 1.55rem) !important; }
}

@media (max-width: 390px) {
  h1 { font-size: clamp(2rem, 8.5vw, 2.45rem) !important; }
  h2 { font-size: clamp(1.85rem, 8vw, 2.3rem) !important; line-height: 1.18 !important; }
}

/* --------------------------------------------------------------------------
   Images: globally ensure no images overflow their containers
   -------------------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

.scene2-photo-card img,
.hero-main-card img,
.scene3-image-mask img,
.s5-map-image,
.polaroid-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   Mobile: prevent tour drawer from overflowing viewport
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .tour-drawer {
    max-width: 100% !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .tour-drawer-overlay {
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .drawer-title {
    font-size: 1.5rem !important;
  }
}


/* --------------------------------------------------------------------------
   Mobile map: keep the map wide enough for pins + name tags to stay legible,
   and let it pan sideways instead of shrinking everything.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .s5-map-wrapper {
    width: 640px;
  }
  .s5-pin-label {
    font-size: 0.62rem;
  }
  .s5-map-controls {
    display: none;
  }
  .s5-map-tooltip {
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
    pointer-events: none;
  }
}

/* Narrow phone cards (140px): keep long names like "Madhanandapuram" on one line */
@media (max-width: 767px) {
  .s5-thumb-title {
    font-size: 0.8rem;
  }
}
