/* ==========================================================================
   AVINYA CARE FOUNDATION — NestJS Red + Black + White CSS Design System
   World-Class UI/UX, 8px Grid Alignment, Editorial Typography & Motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* NestJS Brand Color Tokens */
  --brand: #F47528;          /* NestJS Primary Accent Red */
  --brand-hover: #D95F16;    /* Red Hover State */
  --brand-light: #FFF1E8;    /* Soft Tint Backgrounds */

  --black: #0A0A0A;          /* Deep Black (Hero, Impact, Stories, Final CTA, Footer) */
  --background: #FAFAFA;     /* Main Website Off-White Background */
  --white: #FFFFFF;          /* Pure White (Cards, Navigation, Modals) */

  --gray-100: #F1F1F1;       /* Soft Gray (Input Backgrounds, Secondary Badges) */
  --gray-200: #E5E5E5;       /* Subtle Border Dividers */
  --gray-800: #262626;       /* Dark Surfaces */
  --gray-900: #171717;       /* Dark Gray Text & Headers */

  --text: #171717;           /* Main Body Text */
  --muted: #737373;          /* Secondary Muted Text */
  --text-light: #FFFFFF;     /* White Text on Dark Surfaces */
  --text-light-muted: #A3A3A3;/* Muted Light Text */

  /* Borders & Shadows */
  --border-light: #E5E5E5;
  --border-light-hover: rgba(244, 117, 40, 0.4);
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-hover: rgba(244, 117, 40, 0.5);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.09);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.5);

  /* Modern Font System */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Manrope', sans-serif;

  /* Fluid Typography Scale */
  --hero-title-size: clamp(3.5rem, 7.2vw, 7rem);
  --section-title-size: clamp(2.5rem, 5vw, 5rem);
  --card-title-size: clamp(1.4rem, 2.2vw, 2.1rem);
  --body-large-size: clamp(1.1rem, 1.4vw, 1.25rem);
  --body-size: clamp(1rem, 1.2vw, 1.15rem);

  /* Transitions & Animation Tokens (Emil Kowalski Design Engineering) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-normal: 280ms var(--ease-out);
  --transition-slow: 450ms var(--ease-out);
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  color: var(--text);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: #0A0A0A !important;
}

.pin-spacer {
  background-color: #0A0A0A !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

p {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  color: var(--muted);
  line-height: 1.65;
}

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

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}

/* Utility Tag Labels & Headers */
.category-tag {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.category-tag-dark {
  color: var(--brand);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.6rem;
}

.pill-logo-emblem {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(245, 130, 32, 0.6));
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.eyebrow-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.section-header-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: var(--section-title-size);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: var(--gray-900);
}

.section-title-dark {
  color: var(--white);
}

.body-large {
  font-size: var(--body-large-size);
  line-height: 1.6;
  color: var(--muted);
}

.body-large-dark {
  font-size: var(--body-large-size);
  line-height: 1.6;
  color: var(--text-light-muted);
}

/* Global NestJS-Inspired Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  background-color: var(--brand);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 0 4px 16px rgba(244, 117, 40, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 117, 40, 0.4);
  }
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary .arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  background-color: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background-color: var(--gray-100);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ==========================================================================
   1. MINIMAL DOCK NAVIGATION (NESTJS STYLE)
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  width: min(1220px, 100%);
  height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 0 1.6rem;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled-dark {
  background: rgba(10, 10, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.navbar.scrolled-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--gray-200);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  color: var(--black);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-brand:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 130, 32, 0.45));
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.08) rotate(6deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
}

.brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F58220;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(244, 117, 40, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.navbar.scrolled-light .nav-link {
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.navbar.scrolled-light .nav-link:hover,
.navbar.scrolled-light .nav-link.active {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.2rem;
}

.mobile-nav-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 20px rgba(245, 130, 32, 0.4));
}

.mobile-nav-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.mobile-nav-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 0.2rem;
}

.mobile-nav-menu {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.mobile-nav-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--brand) !important;
}

/* ==========================================================================
   2. CENTERPIECE CANVAS HERO — DEEP BLACK (#0A0A0A) & 7-STAGE SCROLL STORY
   ========================================================================== */
.hero-scroll-container {
  position: relative;
  height: 450vh;
  background-color: var(--black);
}

.hero-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.75) 75%, rgba(10, 10, 10, 0.98) 100%),
              linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, transparent 35%, transparent 65%, rgba(10, 10, 10, 0.98) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  width: min(1100px, 90%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-narrative-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 100%;
  max-width: 880px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  pointer-events: none;
}

.hero-narrative-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s;
}

.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  animation: scrollWheelAnim 1.8s ease-in-out infinite;
}

@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   3. NESTJS CINEMATIC SCROLL TYPOGRAPHY SECTION (#hero-transition)
   ========================================================================== */
.section-scroll-typography {
  position: relative;
  height: 480vh;
  background-color: #0B0D0C !important;
  color: #FFFFFF;
  z-index: 10;
}

.typography-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0B0D0C;
}

#typography-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.typography-stage-container {
  position: relative;
  z-index: 2;
  width: min(1280px, 88vw);
  text-align: center;
  padding-inline: 4vw;
}

.typography-sentence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.8rem;
  column-gap: 1.4rem;
}

.typography-sentence.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s;
}

.typo-word {
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 7vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: rgba(255, 255, 255, 0.14);
  transition: color 220ms var(--ease-out), text-shadow 220ms var(--ease-out);
  display: inline-block;
  user-select: none;
}

.typo-word.illuminated {
  color: #FFFFFF;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.typo-word.accent-word.illuminated {
  color: #FFFFFF;
  text-shadow: 0 0 40px rgba(244, 117, 40, 0.6);
}

.final-sentence {
  flex-direction: column;
  align-items: center;
}

.final-headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.8rem;
  column-gap: 1.4rem;
}

.final-sub-caption {
  margin-top: 3rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) 300ms, transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

.final-sentence.active .final-sub-caption {
  opacity: 1;
  transform: translateY(0);
}

.dot-sep {
  color: var(--brand);
}

/* ==========================================================================
   4. CONTINUUM OF CARE / THE JOURNEY (#what-we-do)
   Apple-Grade Spacing, Cinematic Depth, Glassmorphic Cards & Atmospheric Lighting
   ========================================================================== */
.section-nestjs-stack {
  padding: 8rem 2% 8rem;
  background-color: #080A09 !important;
  background-image: 
    radial-gradient(ellipse 60% 45% at 75% 55%, rgba(244, 117, 40, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 25% 50%, rgba(16, 111, 175, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 50% 0%, rgba(98, 181, 159, 0.04) 0%, transparent 55%);
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 10;
}

.section-nestjs-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 30%, rgba(244, 117, 40, 0.3) 50%, rgba(255, 255, 255, 0.08) 70%, transparent 100%);
  pointer-events: none;
}

.nestjs-stack-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4.5rem;
  position: relative;
  z-index: 5;
}

.journey-section-title {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 1.35rem;
}

.journey-accent-word {
  position: relative;
  display: inline-block;
  color: var(--brand);
}

.journey-accent-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(244, 117, 40, 0.2));
  border-radius: 2px;
}

.journey-accent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--brand);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(244, 117, 40, 0.7);
}

.journey-section-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.nestjs-stack-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1540px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  perspective: 1400px;
  position: relative;
  z-index: 5;
}

.nestjs-stack-card {
  flex: 0 0 242px;
  height: 410px;
  margin-left: -28px;
  border-radius: 26px;
  background: rgba(18, 20, 22, 0.92) !important;
  background-image: linear-gradient(170deg, rgba(26, 28, 30, 0.95) 0%, rgba(14, 16, 17, 0.98) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.65), 
    0 0 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  padding: 1.85rem 1.55rem 1.65rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), border-color 450ms, box-shadow 450ms, opacity 450ms;
  position: relative;
  user-select: none;
  opacity: 0.9;
}

.nestjs-stack-card:first-child {
  margin-left: 0;
}

/* Inactive Card Hover: gentle lift, soft ambient rim */
.nestjs-stack-card:hover:not(.active) {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 
    0 22px 50px rgba(0, 0, 0, 0.75), 
    0 0 25px rgba(244, 117, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* Base Card Content Inner */
.stack-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  position: relative;
}

.stack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  margin-bottom: auto;
}

/* Stage Number Capsule */
.stack-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  background: rgba(244, 117, 40, 0.08) !important;
  border: 1px solid rgba(244, 117, 40, 0.28) !important;
  color: var(--brand) !important;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(244, 117, 40, 0.12);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Healthcare Glass Icon Box */
.stack-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), color 400ms, background 400ms, border-color 400ms, box-shadow 400ms;
}

.stack-card-body {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  z-index: 2;
}

.stack-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
  transition: color 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  opacity: 0.85;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.stack-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-arrow {
  display: inline-block;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ACTIVE CARD STATE (Sophisticated warm ambient light, refined orange rim, white typography) */
.nestjs-stack-card.active {
  z-index: 40 !important;
  background: rgba(28, 22, 18, 0.97) !important;
  background-image: linear-gradient(170deg, rgba(34, 26, 20, 0.98) 0%, rgba(18, 14, 12, 0.99) 100%) !important;
  border-color: rgba(244, 117, 40, 0.8) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.65), 
    0 0 45px rgba(244, 117, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  opacity: 1 !important;
}

.nestjs-stack-card.active .stack-card-badge {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(244, 117, 40, 0.4);
}

.nestjs-stack-card.active .stack-card-icon {
  transform: scale(1.08) rotate(4deg);
  color: #FFFFFF;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 8px 22px rgba(244, 117, 40, 0.4);
}

.nestjs-stack-card.active .stack-card-desc {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}

.nestjs-stack-card.active .stack-card-footer {
  border-top-color: rgba(244, 117, 40, 0.25);
}

.nestjs-stack-card.active .stack-arrow {
  transform: translateX(6px);
}

.nestjs-stack-card.adjacent-left,
.nestjs-stack-card.adjacent-right {
  z-index: 25;
  opacity: 0.92;
}

.nestjs-stack-card.distant {
  opacity: 0.75;
}

/* Stage Progress Indicator Track below card deck */
.journey-stage-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.2rem;
  position: relative;
  z-index: 5;
}

.journey-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  padding: 0;
}

.journey-dot:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.journey-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(244, 117, 40, 0.45);
  transform: scale(1.12);
}

.journey-line {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* The full seven-card deck needs a contained horizontal track until there is
   enough room for its expanded active-card transforms. */
@media (max-width: 1600px) {
  .nestjs-stack-container {
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    padding-bottom: 2.5rem !important;
    padding-top: 2.5rem !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .nestjs-stack-card {
    flex: 0 0 260px;
    margin-left: -12px;
    scroll-snap-align: center;
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 450ms, border-color 450ms;
  }

  .nestjs-stack-card.active {
    z-index: 40 !important;
    transform: translateY(-16px) scale(1.03) !important;
    background: rgba(30, 24, 20, 0.96) !important;
    background-image: linear-gradient(170deg, rgba(38, 28, 23, 0.97) 0%, rgba(22, 17, 14, 0.99) 100%) !important;
    border-color: rgba(244, 117, 40, 0.8) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6), 0 0 35px rgba(244, 117, 40, 0.22) !important;
    opacity: 1 !important;
  }

  .nestjs-stack-card .stack-card-desc,
  .nestjs-stack-card .stack-card-action {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   5. NESTJS-STYLE STACKED OVERLAPPING FEATURE PANELS (#deep-dives)
   ========================================================================== */
.section-stacked-panels {
  padding: 9.5rem 2% 12rem;
  background-color: #080A09 !important;
  color: #FFFFFF !important;
  position: relative;
  overflow: visible;
  z-index: 20;
  isolation: isolate;
}

.stacked-panels-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 10;
}

.stacked-panels-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1460px;
  margin: 0 auto;
  position: relative;
  gap: 8vh;
}

.stacked-feature-panel {
  width: calc(100% - 72px);
  max-width: 1460px;
  min-height: 80vh;
  position: sticky;
  border-radius: 36px;
  padding: 4.5rem 3.8rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 -25px 70px rgba(0, 0, 0, 0.75), 0 30px 90px rgba(0, 0, 0, 0.85);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms, filter 500ms;
  will-change: transform, opacity, filter;
}

/* Dynamic Sticky Top Pinning & Stacking Order */
.stacked-feature-panel:nth-child(1) {
  top: 90px;
  z-index: 1;
}

.stacked-feature-panel:nth-child(2) {
  top: 120px;
  z-index: 2;
}

.stacked-feature-panel:nth-child(3) {
  top: 150px;
  z-index: 3;
}

/* Panel 01: Deep Charcoal */
.stacked-feature-panel.dark-panel {
  background-color: #121614 !important;
  background: linear-gradient(165deg, #18201C 0%, #0F1412 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
}

/* Panel 02: Emerald Teal */
.stacked-feature-panel.teal-panel {
  background-color: #087F73 !important;
  background: linear-gradient(165deg, #0A9386 0%, #06695F 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

/* Panel 03: Warm Cream */
.stacked-feature-panel.light-panel {
  background-color: #F6F4EF !important;
  background: linear-gradient(165deg, #FAF8F3 0%, #EFECE4 100%) !important;
  border: 1px solid rgba(11, 13, 12, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  color: #0B0D0C;
}

.panel-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.panel-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-block;
  margin-bottom: 1rem;
}

.teal-panel .panel-eyebrow {
  color: #FFFFFF;
}

.panel-title {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.panel-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

.light-panel .panel-desc {
  color: #404040;
}

/* Panel Visual Glass Container */
.panel-visual-frame {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: -30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out-expo);
}

.stacked-feature-panel:hover .panel-visual-image {
  transform: scale(1.04);
}

.panel-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .stacked-feature-panel {
    width: calc(100% - 28px);
    margin-top: -40px;
    padding: 3rem 1.8rem 2.5rem;
    border-radius: 24px;
    min-height: auto;
  }

  .panel-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .panel-visual-frame {
    height: 300px;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   6. CONTINUUM OF CARE — NESTJS 3D OVERLAPPING CARD DECK CAROUSEL (#journey)
   ========================================================================== */
.section-journey {
  position: relative;
  height: 350vh;
  background-color: var(--black) !important;
  color: #FFFFFF !important;
  overflow: visible;
  z-index: 25;
  isolation: isolate;
  padding: 0;
}

.journey-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  padding: 3rem 5% 2rem;
  box-sizing: border-box;
}

.journey-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nestjs-split-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.nestjs-card-deck-viewport {
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0 2.2rem;
  perspective: 1200px;
}

.nestjs-card-deck-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s var(--ease-out-expo);
  padding: 1rem 0;
  width: max-content;
  will-change: transform;
}

.nestjs-deck-card {
  flex: 0 0 min(370px, 80vw);
  background: linear-gradient(145deg, #1C1C1C 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.5s, box-shadow 0.5s, opacity 0.5s;
  cursor: pointer;
  transform-style: preserve-3d;
  min-height: 380px;
  transform: scale(0.9) rotateY(-5deg);
  opacity: 0.55;
  user-select: none;
  box-sizing: border-box;
}

.nestjs-deck-card.card-prev {
  transform: scale(0.9) rotateY(5deg);
  opacity: 0.55;
}

.nestjs-deck-card.card-next {
  transform: scale(0.9) rotateY(-5deg);
  opacity: 0.55;
}

.nestjs-deck-card.active {
  transform: scale(1.05) translateY(-10px) rotateY(0deg);
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 30px 70px rgba(244, 117, 40, 0.35);
  z-index: 10;
}

.nestjs-deck-card:hover:not(.active) {
  opacity: 0.8;
  transform: scale(0.94);
}

.card-3d-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.nestjs-deck-card:hover .card-3d-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--brand-light);
  color: var(--brand);
}

.card-step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.card-deck-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.card-deck-desc {
  font-size: 0.98rem;
  color: var(--text-light-muted);
  line-height: 1.55;
}

/* Controls */
.nestjs-deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 200;
}

.deck-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.deck-arrow-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.08);
}

.deck-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.deck-dot.active,
.deck-dot:hover {
  background: var(--brand);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--brand);
}

/* ==========================================================================
   7. HUMAN STORIES (DEEP BLACK #0A0A0A)
   ========================================================================== */
.section-stories {
  padding: 9rem 5% 8rem;
  background-color: var(--black) !important;
  color: #FFFFFF !important;
  position: relative;
  border: none !important;
  outline: 1px solid var(--black);
  margin-top: -1px;
  z-index: 30;
  isolation: isolate;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.story-card {
  background: var(--gray-800);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-dark-hover);
}

.story-card.story-card-hidden {
  display: none !important;
}

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

.story-card.story-card-revealed {
  animation: storyFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.story-image-box {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--black);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.story-card:hover .story-image {
  transform: scale(1.06);
}

.story-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.story-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.story-quote {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.story-author {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.story-role {
  font-size: 0.85rem;
  color: var(--text-light-sub);
}

/* ==========================================================================
   8. CINEMATIC IMPACT METRICS (DEEP BLACK #0A0A0A & BRAND RED)
   ========================================================================== */
.section-impact {
  padding: 9rem 5% 8rem;
  background-color: var(--black) !important;
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
  z-index: 35;
  isolation: isolate;
}

.impact-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 2.8rem 1.25rem 2.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 117, 40, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(244, 117, 40, 0.25);
}

.stat-number {
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand) !important;
  margin-bottom: 0.85rem;
  white-space: nowrap;
  max-width: 100%;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   9. INTERACTIVE COMMUNITY VISUAL MOSAIC
   ========================================================================== */
.section-community {
  padding: 8rem 5%;
  background-color: var(--background);
  text-align: center;
  position: relative;
  z-index: 40;
  isolation: isolate;
}

.community-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.community-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.community-mosaic-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.community-mosaic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light-hover);
}

.community-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 3px solid var(--brand-light);
  transition: transform var(--transition-fast);
}

.community-mosaic-card:hover .community-avatar {
  transform: scale(1.08);
}

.community-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.community-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.3rem;
}

/* ==========================================================================
   10. HEALTH & CANCER NEWSROOM (NESTJS EDITORIAL WITH BRAND RED)
   ========================================================================== */
.section-news {
  padding: 8rem 5% 7rem;
  background-color: var(--background);
  border-top: 1px solid var(--gray-200);
  position: relative;
  z-index: 45;
  isolation: isolate;
}

.news-updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.news-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 3rem 0 3.5rem;
}

.news-tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.news-tab-btn:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--border-light-hover);
}

.news-tab-btn.active {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(244, 117, 40, 0.3);
}

.news-ai-gen-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  background: var(--brand-light);
  border: 1px solid rgba(244, 117, 40, 0.3);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.news-ai-gen-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(244, 117, 40, 0.35);
  transform: translateY(-2px);
}

.news-featured-lead {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  align-items: center;
}

.news-featured-lead:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light-hover);
}

.news-featured-image-box {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--black);
}

.news-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.news-featured-lead:hover .news-featured-image {
  transform: scale(1.05);
}

.news-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1.5rem;
}

.news-tag-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.news-category-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-generated-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-news-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.news-featured-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.news-featured-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
}

.news-source-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900);
}

.news-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.2rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light-hover);
}

.news-image-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--black);
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.news-card:hover .news-image {
  transform: scale(1.06);
}

.news-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

.news-source-name {
  font-weight: 600;
  color: var(--gray-900);
}

.news-read-more {
  font-weight: 700;
  color: var(--brand);
}

.news-expand-bar {
  display: flex;
  justify-content: center;
  text-align: center;
}

.news-show-more-btn {
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.news-show-more-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(244, 117, 40, 0.3);
}

/* ==========================================================================
   11. TESTIMONIAL CAROUSEL SECTION (NESTJS STYLE)
   ========================================================================== */
.section-testimonials {
  padding: 8rem 5% 7rem;
  background-color: var(--background);
  border-top: 1px solid var(--gray-200);
  position: relative;
  z-index: 50;
  isolation: isolate;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
  max-width: 1280px;
  margin: 3.5rem auto 0;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light-hover);
}

.testimonial-quote {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--gray-900);
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   12. DONATE SECTION (DEEP BLACK #0A0A0A & BRAND RED)
   ========================================================================== */
.section-get-involved {
  padding: 9rem 5% 8rem;
  background-color: var(--black) !important;
  color: #FFFFFF !important;
  position: relative;
  z-index: 55;
  isolation: isolate;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  max-width: 1280px;
  margin: 3.5rem auto 0;
}

.action-card {
  border-radius: 20px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.donate-theme {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(244, 117, 40, 0.4);
}

.donate-theme:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(244, 117, 40, 0.5);
}

.volunteer-theme {
  background: var(--gray-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
}

.volunteer-theme:hover {
  transform: translateY(-6px);
  border-color: var(--border-dark-hover);
}

.awareness-theme {
  background: var(--gray-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
}

.awareness-theme:hover {
  transform: translateY(-6px);
  border-color: var(--border-dark-hover);
}

.action-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.action-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.donate-theme .action-desc {
  color: rgba(255, 255, 255, 0.9);
}

.indian-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pay-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* ==========================================================================
   13. NESTJS-STYLE MINIMALIST PREMIUM FINALE CTA SECTION
   ========================================================================== */
.section-final-cta {
  padding: 8.5rem 2% 8rem;
  background-color: #080A09 !important;
  color: #FFFFFF !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 60;
  isolation: isolate;
}

.cta-box {
  width: calc(100% - 48px);
  max-width: 1060px;
  margin: 0 auto;
  padding: 4.8rem 3.5rem 4.5rem;
  border-radius: 36px;
  background-color: #121614 !important;
  background: linear-gradient(165deg, #18201C 0%, #0F1412 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 5;
}

.display-title {
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #FFFFFF !important;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: #62B59F !important;
  margin-bottom: 2.8rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-box {
    width: calc(100% - 24px);
    padding: 3.2rem 1.6rem 2.8rem;
    border-radius: 24px;
  }
  .display-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   14. NESTJS-INSPIRED MINIMAL FOOTER (DEEP BLACK #0A0A0A)
   ========================================================================== */
.footer {
  background-color: var(--black);
  color: var(--text-light-muted);
  padding: 6.5rem 5% 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  position: relative;
  z-index: 65;
  isolation: isolate;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3.5rem;
  max-width: 1280px;
  margin: 0 auto 5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-badge {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 130, 32, 0.4));
  flex-shrink: 0;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-light-sub);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-light-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light-sub);
}

/* Floating WhatsApp Support Button — Icon Only Default, Expands on Hover, Collapses on Mouse Leave */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
  width: 56px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), padding 400ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms, transform 300ms, box-shadow 300ms;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.whatsapp-float-btn svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.whatsapp-float-btn span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms cubic-bezier(0.22, 1, 0.36, 1), margin-left 300ms;
  margin-left: 0;
  pointer-events: none;
}

/* Expands ON HOVER only — collapses back to 56px icon on mouseleave */
.whatsapp-float-btn:hover {
  width: 310px;
  padding: 0 1.5rem 0 1.2rem;
  background: #20BA5A;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn:hover span {
  max-width: 260px;
  opacity: 1;
  margin-left: 0.65rem;
}

/* ==========================================================================
   15. APPLE-STYLE MODAL SYSTEM
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: 20px;
  width: min(650px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.modal-brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(245, 130, 32, 0.4));
  flex-shrink: 0;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  color: var(--gray-900);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all var(--transition-fast);
  user-select: none;
}

.modal-close-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.08);
}

.donation-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 9999px;
  padding: 4px;
  margin: 1.5rem 0;
}

.toggle-option {
  flex: 1;
  padding: 0.6rem 0;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.toggle-option.active {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  padding: 0.75rem 0;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.amount-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.amount-btn.active {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

.impact-calculator-box {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.92rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-light) !important;
}

/* Responsive Breakpoints */
/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nestjs-split-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .news-featured-lead {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    top: 0.65rem;
    padding-inline: 0.65rem;
  }

  .navbar {
    height: 58px;
    padding: 0 0.75rem 0 0.9rem;
  }

  .nav-brand {
    min-width: 0;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .mobile-nav-overlay {
    justify-content: flex-start;
    overflow-y: auto;
    padding: max(4.5rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
  }

  .mobile-nav-brand-header {
    margin-bottom: 1.25rem;
  }

  .mobile-nav-logo {
    width: 68px;
    height: 68px;
  }

  .mobile-nav-menu {
    gap: 1rem;
  }

  .mobile-nav-link {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }

  /* Section 3: Scroll Typography Mobile */
  .section-scroll-typography {
    height: 420vh;
  }
  .typo-word {
    font-size: clamp(2.1rem, 8.5vw, 4.2rem);
    line-height: 1.05;
  }
  .typography-sentence {
    row-gap: 0.4rem;
    column-gap: 0.8rem;
  }
  .final-sub-caption {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Section 4: NestJS 7-Card Stack Mobile Touch Scroll */
  .nestjs-stack-container {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-inline: 1rem;
  }
  .nestjs-stack-card {
    flex: 0 0 270px;
    margin-left: -14px;
    scroll-snap-align: center;
  }
  .nestjs-stack-card .stack-card-desc,
  .nestjs-stack-card .stack-card-action {
    opacity: 1;
    transform: translateY(0);
  }

  /* Section 5: Stacked Panels Mobile Sticky Stacking */
  .section-stacked-panels {
    padding: 6rem 2% 8rem;
  }
  .stacked-feature-panel {
    width: calc(100% - 24px);
    padding: 2.5rem 1.4rem 2rem;
    border-radius: 24px;
    min-height: auto;
  }
  .stacked-feature-panel:nth-child(1) { top: 75px; }
  .stacked-feature-panel:nth-child(2) { top: 90px; }
  .stacked-feature-panel:nth-child(3) { top: 105px; }
  .panel-title {
    font-size: clamp(2.1rem, 8.5vw, 3.4rem);
  }
  .panel-desc {
    font-size: 0.98rem;
  }
  .panel-visual-frame {
    height: 260px;
    margin-bottom: 0;
    border-radius: 18px;
  }

  /* Section 6: Continuum of Care Journey Mobile */
  .section-journey {
    height: auto;
    padding: 5rem 5% 5rem;
  }
  .journey-sticky-viewport {
    position: relative;
    height: auto;
    padding: 0;
    overflow: visible;
  }
  .nestjs-split-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .nestjs-deck-card {
    flex: 0 0 min(320px, 80vw);
    padding: 2.2rem 1.8rem;
    min-height: 350px;
  }

  /* Section 13: Champion Manifesto CTA Mobile */
  .section-champion-manifesto {
    height: 350vh;
  }
  .champion-headline {
    font-size: clamp(2.2rem, 8.5vw, 4.2rem);
    row-gap: 0.4rem;
    column-gap: 0.8rem;
  }
  .champion-desc {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }
  .champion-visual-stage {
    height: auto;
    margin-bottom: 2rem;
  }
  .champion-node-ring {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }
  .champion-node {
    flex: 0 0 42%;
  }
  .center-heart-glow {
    position: relative;
    margin: 0 auto 1.5rem;
  }
  .champion-metrics-row {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    width: 100%;
  }
  .metric-sep {
    display: none;
  }
  .champion-actions-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-champion-primary,
  .btn-champion-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-scroll-container {
    height: 350vh;
  }
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .whatsapp-float-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .modal-container {
    width: 94vw;
    max-height: 90vh;
    padding: 1.8rem 1.4rem;
    border-radius: 20px;
  }

  #donate-modal form > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .news-tag-group,
  .news-featured-footer,
  .news-card-meta,
  .story-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-actions > .btn-primary {
    display: none;
  }

  .navbar .mobile-toggle {
    display: flex;
    flex: 0 0 42px;
  }

  .stories-grid,
  .news-grid,
  .testimonials-grid,
  .action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-card,
  .news-card,
  .testimonial-card,
  .action-card {
    min-width: 0;
  }

  .story-content,
  .news-content,
  .testimonial-card,
  .action-card {
    padding-inline: 1.25rem;
  }

  .whatsapp-float-btn:hover {
    width: 56px;
    padding: 0 16px;
    transform: none;
  }

  .whatsapp-float-btn:hover span {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

/* Accessibility: Reduced Motion (Emil Kowalski Guideline) */
@media (prefers-reduced-motion: reduce) {
  .hero-narrative-card,
  .typography-sentence {
    transform: translate(-50%, -50%) !important;
    transition: opacity 200ms ease, visibility 200ms !important;
  }
  .btn-primary,
  .nav-brand {
    transition: background-color 200ms ease, opacity 200ms ease !important;
  }
}
