/* ============================================
   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 */
}



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

@media (min-width: 1024px) {


  /* Section 1: Who We Are / Founder */
  .section-slide[data-section="1"] {
    height: 100vh;
    overflow: visible !important; 
  }

  /* Section 2: Our Story / CEO */
  .section-slide[data-section="2"] {
    height: 120vh;
    overflow: visible !important; /* Prevent clipping of text */
  }
  
  /* Ensure text-track has enough space in section 2 to prevent clipping */
  .section-slide[data-section="2"] .text-track {
    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"] .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 3: The Problem - More height for longer content */
  .section-slide[data-section="3"] {
    height: 150vh;
    overflow: visible; /* Prevent clipping of text at top/bottom */
  }
  
  /* Ensure text-track has enough space in section 3 to prevent clipping */
  .section-slide[data-section="3"] .text-track {
    padding: 60vh 0 70vh 0; /* Extra padding top and bottom for longer content */
  }
  
  /* Ensure pinned-viewport doesn't clip content in section 3 */
  .section-slide[data-section="3"] .pinned-viewport {
    overflow: visible;
  }

  /* Section 4: How It Works */
  .section-slide[data-section="4"] {
    height: 150vh;
    overflow: visible !important; /* Prevent clipping of text */
  }
  
  /* Ensure text-track has enough space in section 4 to prevent clipping */
  .section-slide[data-section="4"] .text-track {
    overflow: visible !important;
  }
  
  /* Ensure pinned-viewport doesn't clip content in section 4 */
  .section-slide[data-section="4"] .pinned-viewport {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .text-block {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-name {
    overflow: visible !important;
  }

  /* Section 5: Impact */
  .section-slide[data-section="5"] {
    height: 200vh;
    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);
  }
  
  /* Our Story 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;
  }
  
  /* How It Works section - prevent clipping on 1080p */
  .section-slide[data-section="4"] .text-track {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .text-block {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-name {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .pinned-viewport {
    overflow: visible !important;
  }
}

/* Tablet Landscape / Small Desktop (1024px - 1919px) */
@media (min-width: 1024px) and (max-width: 1919px) {
  .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);
  }
  
  /* Our Story 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;
  }
  
  /* How It Works section - prevent clipping on smaller desktop */
  .section-slide[data-section="4"] .text-track {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .text-block {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-profile {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-story {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-headline {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .character-name {
    overflow: visible !important;
  }
  
  .section-slide[data-section="4"] .pinned-viewport {
    overflow: visible !important;
  }
}

/* Tablet Portrait / Mobile Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .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;
  }
  
  .image-wrapper .mobile-image.hide-on-mobile {
    display: none !important;
  }
  
  .fixed-image-container.hide-container-on-mobile {
    display: none !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;
  }
  
  .image-wrapper .mobile-image.hide-on-mobile {
    display: none !important;
  }
  
  .fixed-image-container.hide-container-on-mobile {
    display: none !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 */
}

/* Intro / Who we are */
.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;
}

/* Our Story */
.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;
}

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

/* The Problem */
.section-slide[data-section="3"] {
  height: auto;
  min-height: auto;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Interstitial 3-4: HOW IT WORKS */
.interstitial-slide[data-between="3-4"] {
  height: 45vh;
  min-height: 260px;
}

/* How it works */
.section-slide[data-section="4"] {
  height: auto;
  min-height: auto;
  overflow: visible !important; /* Prevent clipping of text */
  padding-bottom: 0;
  margin-bottom: 0;
}

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

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

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

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

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

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

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

/* Interstitial 4-5: OUR IMPACT */
.interstitial-slide[data-between="4-5"] {
  height: 45vh;
  min-height: 260px;
}

/* Impact */
.section-slide[data-section="5"] {
  height: auto;
  min-height: auto;
  padding-bottom: 0;
  margin-bottom: 0;
}


/* --------------------------
   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 */
  }

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

  .interstitial-slide[data-between="3-4"] {
    height: auto !important;
    min-height: 100px !important; /* Reduced to close gap */
  }

  .interstitial-slide[data-between="4-5"] {
    height: auto !important;
    min-height: 100px !important; /* Reduced to close gap */
  }







  /* --------------------------------------------
     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;
  }
}

} /* 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;
  }
}



@media (min-width: 1024px) and (max-height: 860px) {
  .section-slide[data-section="0"] {
    overflow: visible !important; /* stops clipping */
    min-height: 110vh;
    height: auto !important;
  }

  .hero-banner {
    min-height: 110vh;
    height: auto !important;
  }

  .banner-subtitle { margin-bottom: 40px; } /* reduce push-down */
}





