/* ============================================
   SCROLL-TRIGGERED IMAGE REVEAL
   Images pinned, text scrolls and triggers
   ============================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #6b21a8 0%, #be185d 100%); /* Match animated-bg gradient */
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh; /* Ensure body covers full height */
}

html {
  background: linear-gradient(135deg, #6b21a8 0%, #be185d 100%); /* Match animated-bg gradient */
}

/* ============================================
   SECTION STRUCTURE
   ============================================ */

.scroll-container {
  position: relative;
}

.section-slide {
  height: 150vh; /* Scroll room for text to move through */
  position: relative;
  overflow: hidden;
  background: transparent !important;
}




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

.hero-banner {
  height: 100vh !important; /* BACK TO 100vh */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Remove all the extra stuff */
}

.banner-content {
  text-align: center;
  z-index: 2;
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
  /* No transforms needed */
}

/* ============================================
   SPACER - Creates buffer without affecting triggers
   ============================================ */

.hero-spacer {
  height: 40vh; /* Adjust this value for desired spacing */
  width: 100%;
  background: transparent;
  pointer-events: none;
}

.banner-title-with-logo {
  font-size: 6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.banner-logo-inline {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 10px 40px rgba(168, 85, 247, 0.4));
  animation: fadeInScale 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.banner-title {
  font-size: 6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.banner-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 80px;
  font-weight: 400;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

  .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both, bounce 2s ease-in-out 2s infinite;
    cursor: pointer;
  }

.scroll-indicator i {
  font-size: 1.5rem;
}

/* ============================================
   PINNED VIEWPORT - Contains pinned image
   ============================================ */

.pinned-viewport {
  position: sticky; /* Stays in viewport */
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible; /* Allow text to scroll through */
  padding: 0 5%;
  pointer-events: none; /* Allow scrolling through */
}

.pinned-viewport > * {
  pointer-events: auto; /* Re-enable for children */
}

/* ============================================
   TEXT TRACK - SCROLLS UP (not pinned)
   ============================================ */

.text-track {
  position: relative;
  left: clamp(40px, 8vw, 120px); /* Shifts it right */
  width: 55%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 100vh;
  padding: 50vh 0;
  z-index: 2;
}
.text-block {
  min-height: 80vh; /* Smaller blocks for tighter control */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  
}

/* ============================================
   CHARACTER PROFILE - GTA VI STYLE
   ============================================ */

.character-profile {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.character-name {
  font-size: clamp(4.2rem, 6vw, 5.6rem);
  font-weight: 900;
  color: #f8f9fa;
  letter-spacing: 0.055em;
  line-height: 1;
  margin-bottom: 32px;
  text-transform: uppercase;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.55);
}

.character-headline {
  font-size: clamp(2.4rem, 3.6vw, 3.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 26px;
  letter-spacing: -0.012em;
}

.gradient-text {
  background: #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.character-story {
  font-size: clamp(1.25rem, 1.5vw, 1.45rem);
  line-height: 1.85;
  color: #ffffff;
  font-weight: 400;
  max-width: 780px;
  letter-spacing: 0.012em;
}

.character-story-spaced {
  margin-top: 1.5em;
}

/* ============================================
   HEADLINE PILL - Right positioned with gradient text
   ============================================ */

.headline-pill-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  width: 100%;
}

.headline-pill {
  display: inline-block;
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pill-gradient-text {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ============================================
   STORY PARAGRAPHS WITH HEADINGS
   ============================================ */

.story-paragraph {
  margin-bottom: 40px;
}


/* ============================================
   IMAGE CONTAINER - PINNED IN VIEWPORT
   ============================================ */

.fixed-image-container {
  position: fixed;

  top: clamp(40px, 6vh, 80px);
  bottom: clamp(40px, 6vh, 80px);
  right: clamp(120px, 10vw, 240px);

  width: clamp(300px, 26vw, 36vw);
  height: auto;
  display: flex;
  flex-direction: column;

  z-index: 3;
  pointer-events: none;
}


.image-wrapper {
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0); /* Start hidden */
  will-change: clip-path;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Desktop images - show by default, hide on mobile */
.image-wrapper .desktop-image {
  display: block;
}

.image-wrapper .mobile-image {
  display: none;
}

/* Ensure no fade on desktop */
.image-wrapper::after {
  display: none;
}

/* Image name styling - desktop */
.image-name {
  display: none; /* Hidden on desktop */
}

/* ============================================
   BACKGROUND ELEMENTS
   ============================================ */

/* Full-screen interstitial page */
.interstitial-slide{
  position: relative;
  height: 250vh;                /* scroll time (increase if needed) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;

 }

/* Mobile-only interstitial - hidden on desktop */
.mobile-only-interstitial {
  display: none;
}

/* Keep text centered for the duration */
.interstitial-text{
  position: sticky;
   display: inline-block;
  text-align: center;
  top:50%;
  transform: translateY(-50%);

  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: #ffffff;
  opacity: 0.4;
}



.radial-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Background images - positioned and styled */
.bg-image {
  position: absolute;
  opacity: 0.70; /* Subtle background image */
  pointer-events: none;
  z-index: 0;
  width: 30%;
  height: 30%;
  overflow: visible;
  top:35%;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(50%) brightness(0.6);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */

.nav-controls {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 9998;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-dot:hover::after,
.nav-dot.active::after {
  opacity: 1;
}

.nav-dot.active {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* ============================================
   END PROMPT
   ============================================ */

.volunteer-prompt {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  padding: 30px 50px;
  border-radius: 20px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  z-index: 10001;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.volunteer-prompt.show {
  display: flex;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.prompt-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.prompt-actions {
  display: flex;
  gap: 15px;
}

.btn-pill {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff !important;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* ============================================
   PAGE LOAD BLUR EFFECT - Section 1
   ============================================ */

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}



/* ============================================
   ANIMATED GRADIENT BACKGROUND - Blue Tones
   ============================================ */

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Use vh instead of % for better coverage */
  min-height: 100%; /* Ensure it covers at least full viewport */
  z-index: -1;
  background: transparent; /* Gradient handled by html/body */
}



/* ============================================
   TIER SHOWCASE INTERACTIVE (XP CALCULATOR)
   ============================================ */

.xp-calculator-title {
  text-align: center;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* No scale on desktop - keep original size */

.tier-showcase-interactive {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.tier-card-interactive {
  background: #ffffff;
  padding: 18px 16px;
  border-radius: 24px;
  text-align: center;
  width: clamp(140px, 18%, 160px);
  min-width: 140px;
  flex-shrink: 0;
  border: 2px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tier-card-interactive:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.tier-card-interactive.active {
  background: #ffffff;
  border: 3px solid #a855f7;
  transform: scale(1.1);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.6);
  z-index: 10;
}

.tier-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  animation: pulse-glow 2s ease-in-out infinite;
}

.tier-card-interactive.active .tier-glow {
  opacity: 1;
}

.tier-glow-gold {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.tier-card-ultimate {
  border: 3px solid rgba(251, 191, 36, 0.6);
  background: #ffffff;
}

.tier-card-ultimate.active {
  border-color: #fbbf24;
  box-shadow: 0 20px 60px rgba(251, 191, 36, 0.6);
}

.tier-img-interactive {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.tier-card-interactive.active .tier-img-interactive {
  transform: scale(1.2) rotate(5deg);
}

.tier-name-interactive {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.tier-card-interactive.active .tier-name-interactive {
  color: #a855f7;
}

.tier-name-interactive.gold-glow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-range-interactive {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 6px;
}

.tier-card-interactive.active .tier-range-interactive {
  color: #a855f7;
}

.tier-progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.tier-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tier-card-interactive.active .tier-progress-bar {
  animation: fill-progress 1s ease-out forwards;
}

@keyframes fill-progress {
  from { width: 0%; }
  to { width: 100%; }
}

.tier-copy-interactive {
  font-size: 11px;
  color: #6a6a6a;
  font-style: italic;
}

/* ============================================
   XP INTERACTIVE DISPLAY
   ============================================ */

.xp-interactive-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 580px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.xp-big-number {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xp-hours-display,
.xp-points-display {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: all 0.3s ease;
}

.xp-hours-label,
.xp-points-label {
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.xp-equals {
  font-size: 36px;
  font-weight: 700;
  color: #a855f7;
}

.xp-input-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.xp-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  background: #ffffff;
  color: #a855f7;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.xp-btn:hover {
  background: #a855f7;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.xp-btn:active {
  transform: scale(0.95);
}

.xp-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.xp-input-interactive {
  width: 140px;
  height: 60px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  border: 3px solid #a855f7;
  border-radius: 16px;
  background: #ffffff;
  color: #1a1a1a;
  padding-right: 45px;
  transition: all 0.3s ease;
}

.xp-input-interactive:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
  background: #ffffff;
}

.xp-input-suffix {
  position: absolute;
  right: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #4a4a4a;
  pointer-events: none;
}

.xp-quick-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.xp-quick-btn {
  padding: 10px 18px;
  border-radius: 20px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  background: #ffffff;
  color: #a855f7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.xp-quick-btn:hover {
  background: #a855f7;
  color: white;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

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

/* ============================================
   DESKTOP: DIFFERENT SECTION HEIGHTS
   Each section has its own scroll duration
   ============================================ */

@media (min-width: 1024px) {
  /* Section 0: Hero / Intro – desktop controls */
  .section-slide[data-section="0"],
  .section-slide.hero-banner[data-section="0"] {
    height: 120vh !important;
  }

  /* Section 1: Why Volunteer */
  .section-slide[data-section="1"] {
    height: 90vh;
    overflow: visible !important;
  }
  
  .section-slide[data-section="1"] .text-track {
    padding: 50vh 0 60vh 0;
  }
  
  .section-slide[data-section="1"] .pinned-viewport {
    overflow: visible;
  }

  /* Section 2: XP System - More height for interactive content */
  .section-slide[data-section="2"] {
    height: 200vh; /* Increased from 200vh to 250vh for more content */
    overflow: visible !important;
   
  }
  
  /* XP calculator in fixed-image-container (right side) */
  .section-slide[data-section="2"] .fixed-image-container {
    width: clamp(400px, 35vw, 45vw) !important;
    right: clamp(60px, 6vw, 120px) !important;
  }
  
  .section-slide[data-section="2"] .xp-calculator-container {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    padding: clamp(20px, 3vh, 40px);
  }
  .section-slide[data-section="2"] .xp-calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1vh, 12px);
    width: 100%;
    max-width: 600px;
  }
  
  /* Ensure text-track has enough space in section 2 */
  .section-slide[data-section="2"] .text-track {
    padding: 50vh 0 60vh 0;
    gap: 80vh;
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .text-block {
    min-height: auto;
    overflow: visible !important;
  }
  
  /* Ensure pinned-viewport doesn't clip content in section 2 */
  .section-slide[data-section="2"] .pinned-viewport {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-name {
    overflow: visible !important;
  }
}

.hero-banner {
  height: 100vh !important;
  background: transparent !important;
}



.end-spacer{
  height: 400vh;  /* 100vh is fine too – 120 gives breathing room */
}





/* ============================================
   RESPONSIVE BREAKPOINTS
   Mobile-first scaling: 400px → 768px → 1023px → 1024px+ (tablet/desktop)
   ============================================ */

/* Large Desktop (1440p and above) - Original 4K design */
@media (min-width: 2560px) {
  .fixed-image-container {
    width: clamp(400px, 30vw, 500px);
    right: clamp(80px, 8vw, 200px);
  }
  
  .text-track {
    left: clamp(60px, 10vw, 150px);
    max-width: 900px;
  }
}

/* Standard Desktop (1080p) - Most common laptop resolution */
@media (min-width: 1920px) and (max-width: 2559px) {
  .fixed-image-container {
    width: clamp(280px, 24vw, 32vw);
    right: clamp(60px, 6vw, 120px);
    top: clamp(30px, 5vh, 60px);
    bottom: clamp(30px, 5vh, 60px);
  }
  
  .text-track {
    left: clamp(30px, 5vw, 80px);
    max-width: 700px;
    padding: 40vh 0;
  }
  
  .character-name {
    font-size: clamp(3.5rem, 5vw, 4.8rem);
  }
  
  .character-headline {
    font-size: clamp(2rem, 3vw, 2.8rem);
  }
  
  .character-story {
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  }
  
  .banner-title-with-logo {
    font-size: clamp(4.5rem, 8vw, 5.5rem);
  }
  
  .banner-logo-inline {
    height: clamp(90px, 8vh, 110px);
  }
  
  .banner-subtitle {
    font-size: clamp(1.3rem, 2vw, 1.45rem);
  }
  
  /* XP System section - prevent clipping on 1080p */
  .section-slide[data-section="2"] .text-track {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .text-block {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-name {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .pinned-viewport {
    overflow: visible !important;
  }
}

/* Tablet Landscape / Small Desktop (1024px - 1919px) */
@media (min-width: 1024px) and (max-width: 1919px) {
  /* Scale down XP calculator on small desktops/tablets */
  .section-slide[data-section="2"] .xp-calculator-container .xp-calculator-title,
  .section-slide[data-section="2"] .xp-calculator-container .tier-showcase-interactive,
  .section-slide[data-section="2"] .xp-calculator-container .xp-interactive-display,
  .section-slide[data-section="2"] .xp-calculator-container .xp-input-controls,
  .section-slide[data-section="2"] .xp-calculator-container .xp-quick-buttons {
    transform: scale(0.85);
    transform-origin: center;
  }
  
  .fixed-image-container {
    width: clamp(250px, 28vw, 30vw);
    right: clamp(40px, 4vw, 80px);
    top: clamp(20px, 4vh, 50px);
    bottom: clamp(20px, 4vh, 50px);
  }
  
  .text-track {
    left: clamp(20px, 3vw, 60px);
    max-width: 600px;
    padding: 35vh 0;
  }
  
  .character-name {
    font-size: clamp(3rem, 4.5vw, 4rem);
  }
  
  .character-headline {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  }
  
  .character-story {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
  }
  
  .banner-title-with-logo {
    font-size: clamp(4rem, 7vw, 5rem);
  }
  
  .banner-logo-inline {
    height: clamp(80px, 7vh, 100px);
  }
  
  .banner-subtitle {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  }
  
  .section-slide {
    height: 140vh;
  }
  
  .radial-glow {
    width: clamp(400px, 50vw, 600px);
    height: clamp(400px, 50vw, 600px);
  }
  
  /* XP System section - prevent clipping on smaller desktop */
  .section-slide[data-section="2"] .text-track {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .text-block {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .character-name {
    overflow: visible !important;
  }
  
  .section-slide[data-section="2"] .pinned-viewport {
    overflow: visible !important;
  }
}

/* Tablet Portrait / Mobile Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Scale down XP calculator more on tablets */
  .section-slide[data-section="2"] .xp-calculator-container .xp-calculator-title,
  .section-slide[data-section="2"] .xp-calculator-container .tier-showcase-interactive,
  .section-slide[data-section="2"] .xp-calculator-container .xp-interactive-display,
  .section-slide[data-section="2"] .xp-calculator-container .xp-input-controls,
  .section-slide[data-section="2"] .xp-calculator-container .xp-quick-buttons {
    transform: scale(0.70);
    transform-origin: center;
  }
  
  .pinned-viewport {
    position: relative;
    flex-direction: column;
    height: auto;
    padding: 80px 5% 60px;
    gap: 50px;
  }
  
  .text-track {
    left: 0 !important;
    width: 100%;
    max-width: 100%;
    gap: 50px;
    padding: 0;
  }
  
  .fixed-image-container {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: min(500px, 92vw);
    height: auto;
    min-height: clamp(320px, 50vh, 500px);
    margin: 0 auto;
  }
  
  .image-wrapper {
    clip-path: none !important;
    height: 100%;
  }
  
  .image-wrapper img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  
  /* Show mobile images, hide desktop images on tablet/mobile */
  .image-wrapper .desktop-image {
    display: none !important;
  }
  
  .image-wrapper .mobile-image {
    display: block !important;
  }
  
  .character-name {
    display: none !important;
  }
  
  .character-headline {
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
  }
  
  .character-story {
    font-size: clamp(1rem, 2.5vw, 1.05rem);
  }
  
  .banner-title-with-logo {
    font-size: clamp(3rem, 8vw, 3.5rem);
    gap: clamp(12px, 3vw, 20px);
  }
  
  .banner-logo-inline {
    height: clamp(60px, 14vw, 70px);
  }
  
  .banner-subtitle {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
  }
  
  .section-slide {
    height: auto;
    min-height: 100vh;
  }
  
  .bg-image {
    display: none !important;
  }
  
  .nav-controls {
    display: none;
  }
}

/* Mobile / TABLET RESPONSIVE */
@media (max-width: 1023px) {

  /* --------------------------------------------
     HIDE BG-IMAGE ON MOBILE
     -------------------------------------------- */
  
  .bg-image {
    display: none !important;
  }

  /* Scale down radial glow on small viewports */
  .radial-glow {
    width: clamp(280px, 80vw, 600px);
    height: clamp(280px, 80vw, 600px);
  }

  /* --------------------------------------------
     HERO BANNER
     -------------------------------------------- */

  .banner-content {
    padding: 0 8%;
  }

  .banner-title-with-logo {
    font-size: clamp(3rem, 12vw, 5rem);
    gap: clamp(12px, 4vw, 25px);
  }

  .banner-logo-inline {
    height: clamp(60px, 18vw, 100px);
  }

  .banner-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .banner-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    max-width: 90%;
  }

  /* --------------------------------------------
     SECTIONS & LAYOUT
     -------------------------------------------- */

  .section-slide {
    height: auto;
    min-height: auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .pinned-viewport {
    position: relative;
    flex-direction: column;
    height: auto;
    padding: 40px 5% 0;
    gap: 30px;
    min-height: auto;
    margin-bottom: 0;
  }

  .text-track {
    left: 0 !important;     /* undo desktop shift */
    width: 100%;
    max-width: 100%;
    gap: 40px;
    padding: 0;
  }

  .text-block {
    min-height: auto;
    padding: 0;
    margin: 0;
  }
  
  .character-profile {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* --------------------------------------------
     TYPOGRAPHY
     -------------------------------------------- */

  .character-name {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  .character-headline {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    margin-top: 0;
    margin-bottom: 20px;
  }

  /* Remove extra margin from first headline when character-name is hidden */
  .character-profile > .character-headline:first-of-type {
    margin-top: 0;
  }

  .character-story {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  }

  /* Headline pill - mobile */
  .headline-pill-container {
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  .headline-pill {
    padding: 8px 18px;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
  }

  .story-paragraph {
    margin-bottom: 30px;
  }

  /* --------------------------------------------
     IMAGE
     -------------------------------------------- */

  .fixed-image-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: min(450px, 92vw);
    height: auto;
    min-height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: visible; /* Ensure text names are not clipped */
  }

  .image-wrapper {
    clip-path: none !important;
    height: auto;
    min-height: clamp(280px, 55vh, 600px);
    max-height: min(600px, 85vh);
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }
  
  /* Show mobile images, hide desktop images on mobile */
  .image-wrapper .desktop-image {
    display: none !important;
  }
  
  .image-wrapper .mobile-image {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* XP calculator container visible on mobile (stacks below text) */
  .section-slide[data-section="2"] .fixed-image-container {
    width: 100% !important;
    max-width: min(450px, 92vw) !important;
    right: auto !important;
  }
  
  .section-slide[data-section="2"] .xp-calculator-container {
    pointer-events: auto;
    padding: clamp(16px, 4vw, 24px);
  }
  .section-slide[data-section="2"] .xp-calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    width: 100%;
    max-width: 100% !important;
  }
  
  .section-slide[data-section="2"] .xp-interactive-display {
    max-width: 100% !important;
    width: 100%;
  }
  
  .section-slide[data-section="2"] .tier-card-interactive {
    width: 100% !important;
    min-width: 0 !important;
  }
  
  /* Image name styling - mobile - show under picture */
  .image-name {
    display: block !important;
    visibility: visible !important;
    margin-top: clamp(12px, 3vw, 20px);
    margin-bottom: clamp(12px, 3vw, 20px);
    padding: 0 clamp(12px, 4vw, 20px); /* Increased padding to prevent clipping */
    text-align: center;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
    line-height: 1.6; /* Increased line-height for better spacing */
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: auto; /* Changed from 1.5em to auto to allow wrapping */
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern property for word breaking */
    hyphens: auto; /* Allow hyphenation if needed */
    overflow: visible; /* Ensure text is not clipped */
  }

  /* --------------------------------------------
     UI ELEMENTS
     -------------------------------------------- */

  .nav-controls {
    display: none;
  }

  .volunteer-prompt {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 40px 20px;
    padding: clamp(20px, 5vw, 30px) clamp(16px, 4vw, 40px);
  }

  /* --------------------------------------------
     INTERSTITIAL SLIDES
     -------------------------------------------- */

  .interstitial-slide {
    height: auto;
    min-height: 100vh;
  }

  /* Show mobile-only interstitial on mobile */
  .mobile-only-interstitial {
    display: flex;
  }

  .interstitial-text {
    position: relative;
    top: auto;
    transform: none;
    font-size: clamp(4rem, 14vw, 8rem);
    letter-spacing: -0.04em;
    padding: 60px 20px;
    white-space: normal;
    word-break: break-word;
    color: #ffffff;
    opacity: 1;
  }

  /* Ensure mobile-only interstitial text is fully opaque */
  .mobile-only-interstitial .interstitial-text {
    opacity: 1 !important;
  }

  /* --------------------------------------------
     HERO SPACER
     -------------------------------------------- */

  .hero-spacer {
    height: 0vh;   /* or 0 if you want it tight */
  }


/* --------------------------
   SECTION HEIGHTS (mobile)
   -------------------------- */

/* Hero Banner */
.section-slide[data-section="0"],
.hero-banner {
  height: 90vh;
  overflow: hidden !important; /* Keep overflow hidden for hero to prevent sticking */
}

/* Why Volunteer */
.section-slide[data-section="1"] {
  height: auto;
  min-height: auto;
  overflow: visible !important; /* Prevent clipping of image names */
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Interstitial 1-2 */
.interstitial-slide[data-between="1-2"] {
  height: 50vh;
  min-height: 260px;
}

/* XP System */
.section-slide[data-section="2"] {
  height: auto;
  min-height: auto;
  overflow: visible !important; /* Prevent clipping of image names */
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-slide[data-section="2"] .character-story {
  overflow: visible !important;
}

.section-slide[data-section="2"] .character-headline {
  overflow: visible !important;
}

.section-slide[data-section="2"] .character-name {
  overflow: visible !important;
}

.section-slide[data-section="2"] .text-track {
  overflow: visible !important;
}

.section-slide[data-section="2"] .text-block {
  overflow: visible !important;
}

.section-slide[data-section="2"] .character-profile {
  overflow: visible !important;
}

.section-slide[data-section="2"] .pinned-viewport {
  overflow: visible !important;
}


/* --------------------------
   MOBILE: SIMPLE TOP-ONLY FIX
   (moves the interstitial title up)
   -------------------------- */
@media (max-width: 768px) {
  .interstitial-slide {
    min-height: 100px !important; /* Further reduced to close gap more */
    padding: 10px 0;
    overflow: visible !important;
  }
  
  .interstitial-slide .interstitial-text {
    position: relative;
    top: 0;
    margin-top: 0; /* Removed margin to close gap further */
    z-index: 1;
    padding-bottom: 20px;
  }
  
  .interstitial-slide .bg-image {
    display: none; /* Hide bg-image on mobile */
  }
  
  .interstitial-slide .bg-image img {
    display: none; /* Hide bg-image on mobile */
  }

  /* Specific overrides for all interstitial slides to close gap */
  .mobile-only-interstitial[data-between="0-1"] {
    height: auto !important;
    min-height: 100px !important;
  }

  .interstitial-slide[data-between="1-2"] {
    height: auto !important;
    min-height: 100px !important; /* Further reduced to close gap more */
  }


  /* --------------------------------------------
     HERO
     -------------------------------------------- */

  .banner-content {
    padding: 0 6%;
  }

  .banner-title-with-logo {
    font-size: 3.5rem;
    gap: 20px;
    flex-direction: column;
  }

  .banner-logo-inline {
    height: 80px;
  }

  .banner-title {
    font-size: 3.5rem;
  }

  .banner-subtitle {
    font-size: 1.2rem;
    max-width: 95%;
  }

  /* --------------------------------------------
     TEXT
     -------------------------------------------- */

  .character-name {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  .character-headline {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
  }

  /* Remove extra margin from first headline when character-name is hidden */
  .character-profile > .character-headline:first-of-type {
    margin-top: 0;
  }

  .character-story {
    font-size: 1rem;
  }

  /* --------------------------------------------
     IMAGE
     -------------------------------------------- */

  .fixed-image-container {
    height: auto;
    min-height: auto;
    padding: 0;
    gap: 0;
    overflow: visible; /* Ensure text names are not clipped */
  }
  
  .image-wrapper {
    height: auto;
    min-height: clamp(280px, 55vh, 450px);
    max-height: min(550px, 85vh);
    width: 100%;
  }
  
  .image-name {
    display: block !important;
    visibility: visible !important;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin-top: clamp(12px, 3vw, 18px);
    margin-bottom: clamp(12px, 3vw, 18px);
    padding: 0 clamp(12px, 4vw, 20px); /* Increased padding to prevent clipping */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: auto; /* Changed from 1.5em to auto to allow wrapping */
    flex-shrink: 0;
    line-height: 1.6; /* Added line-height for better spacing */
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern property for word breaking */
    hyphens: auto; /* Allow hyphenation if needed */
    overflow: visible; /* Ensure text is not clipped */
  }
  
  .pinned-viewport {
    padding: clamp(30px, 6vh, 50px) 4% 0;
    gap: clamp(24px, 5vh, 32px);
    margin-bottom: 0;
  }

  /* --------------------------------------------
     INTERSTITIAL TEXT - Smaller
     -------------------------------------------- */

  .interstitial-text {
    font-size: clamp(2.5rem, 10vw, 6rem);
    color: #ffffff;
    opacity: 1;
  }

  /* Ensure mobile-only interstitial text is fully opaque */
  .mobile-only-interstitial .interstitial-text {
    opacity: 1 !important;
  }

  /* --------------------------------------------
     TIER SHOWCASE INTERACTIVE - MOBILE
     -------------------------------------------- */

  /* No scale on mobile - keep original size */

  .tier-showcase-interactive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
  }

  .tier-card-interactive {
    width: 100%;
    padding: 14px 10px;
  }

  .tier-card-interactive:nth-child(1),
  .tier-card-interactive:nth-child(2),
  .tier-card-interactive:nth-child(3) {
    grid-row: 1;
  }

  .tier-card-interactive:nth-child(4) {
    grid-row: 2;
    grid-column: 1 / 2;
  }

  .tier-card-interactive:nth-child(5) {
    grid-row: 2;
    grid-column: 3 / 4;
  }

  .tier-img-interactive {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }

  .tier-name-interactive {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .tier-range-interactive {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .tier-copy-interactive {
    font-size: 9px;
  }

  /* --------------------------------------------
     XP INTERACTIVE DISPLAY - MOBILE
     -------------------------------------------- */

  .xp-interactive-display {
    flex-direction: row;
    gap: 10px;
    padding: 16px 12px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .xp-hours-display,
  .xp-points-display {
    font-size: 42px;
  }

  .xp-hours-label,
  .xp-points-label {
    font-size: 11px;
    margin-top: 4px;
  }

  .xp-equals {
    font-size: 24px;
  }

  .xp-input-controls {
    gap: 6px;
    margin-bottom: 12px;
  }

  .xp-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .xp-input-wrapper {
    flex: 1;
    max-width: 140px;
  }

  .xp-input-interactive {
    width: 100%;
    height: 44px;
    font-size: 24px;
    padding-right: 40px;
  }

  .xp-input-suffix {
    right: 12px;
    font-size: 14px;
  }

  .xp-quick-buttons {
    gap: 5px;
    margin-bottom: 0;
    flex-wrap: wrap !important;
  }

  .xp-quick-btn {
    padding: 8px 16px;
    font-size: 12px;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    white-space: nowrap;
  }
}

} /* Close @media (max-width: 1023px) */

/* ============================================
   SMALL MOBILE (≤400px) - e.g. iPhone SE, narrow Android
   ============================================ */
@media (max-width: 400px) {
  .banner-content {
    padding: 0 5%;
  }

  .banner-title-with-logo {
    font-size: clamp(2.25rem, 11vw, 3rem);
    gap: 10px;
    flex-direction: column;
  }

  .banner-logo-inline {
    height: clamp(50px, 22vw, 70px);
  }

  .banner-title {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .banner-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    max-width: 100%;
  }

  .character-name {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  .character-headline {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    margin-top: 0;
    margin-bottom: 18px;
  }

  /* Remove extra margin from first headline when character-name is hidden */
  .character-profile > .character-headline:first-of-type {
    margin-top: 0;
  }

  .character-story {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
  }

  .image-wrapper {
    min-height: clamp(220px, 50vh, 380px);
    max-height: min(420px, 75vh);
  }

  .image-name {
    font-size: clamp(0.75rem, 3.5vw, 0.85rem);
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 0 15px; /* Increased padding to prevent clipping */
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern property for word breaking */
    overflow: visible; /* Ensure text is not clipped */
    line-height: 1.6; /* Better line spacing */
  }

  .pinned-viewport {
    padding: 30px 4% 0;
    gap: 24px;
    margin-bottom: 0;
  }
 
  .volunteer-prompt {
    margin: 24px 12px;
    padding: 16px 12px;
  }

  .prompt-text {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  .interstitial-text {
    font-size: clamp(2rem, 9vw, 3rem);
    padding: 40px 12px;
    color: #ffffff;
    opacity: 1;
  }

  /* Ensure mobile-only interstitial text is fully opaque */
  .mobile-only-interstitial .interstitial-text {
    opacity: 1 !important;
  }

  .scroll-indicator {
    font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  }

  .scroll-indicator i {
    font-size: 1.25rem;
  }

  /* --------------------------------------------
     SMALL MOBILE - TIER & XP
     -------------------------------------------- */

  /* No scale on small mobile - keep original size */

  .tier-showcase-interactive {
    gap: 8px;
  }

  .tier-card-interactive {
    padding: 12px 8px;
  }

  .tier-img-interactive {
    width: 42px;
    height: 42px;
  }

  .tier-name-interactive {
    font-size: 12px;
  }

  .tier-range-interactive {
    font-size: 9px;
  }

  .tier-copy-interactive {
    font-size: 8px;
  }

  .xp-interactive-display {
    padding: 15px 10px;
    gap: 10px;
  }

  .xp-hours-display,
  .xp-points-display {
    font-size: 36px;
  }

  .xp-hours-label,
  .xp-points-label {
    font-size: 10px;
  }

  .xp-equals {
    font-size: 20px;
  }

  .xp-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .xp-input-interactive {
    height: 40px;
    font-size: 20px;
  }

  .xp-quick-buttons {
    flex-wrap: wrap !important;
    gap: 4px;
  }

  .xp-quick-btn {
    padding: 7px 10px;
    font-size: 11px;
    flex: 1 1 calc(50% - 2px);
    min-width: 0;
    white-space: nowrap;
  }
}



/* Default: never flash on load */
.section-slide[data-section="2"] .fixed-image-container {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

/* When your JS marks section 2 as active */
.section-slide[data-section="2"].active .fixed-image-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile: calculator should not be gated by .active */
@media (max-width: 1023px) {
  .section-slide[data-section="2"] .fixed-image-container {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
