/* ============================================================
   LITTLE PEARLS NURSERY — MODERN FULLSCREEN CONCEPT
   ============================================================ */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --primary: #FFA800;
  --primary-hover: #FFB82E;
  --primary-glow: rgba(255, 168, 0, 0.35);
  --secondary: #35BFC1;
  --secondary-hover: #2AA8AA;
  --secondary-glow: rgba(53, 191, 193, 0.35);

  --dark-bg: #0B1120;
  --text-white: #FFFFFF;
  --text-muted: #E2E8F0;
  --text-dim: #94A3B8;

  /* Unified Modern Crystal Glassmorphism (Crystal Clear Video Visibility + Refined Glass Edge) */
  --card-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
  --card-glass-border: rgba(255, 255, 255, 0.65);
  --card-glass-blur: blur(4px) saturate(125%);
  --card-glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -1px 1px rgba(255, 255, 255, 0.25);
  --card-radius: 28px;
  --logo-blue: #2DBFC2;
  --logo-blue-hover: #22B4B7;

  /* Card Typography & Sub-elements */
  --card-text-title: #0F172A;
  --card-text-body: #1E293B;
  --card-text-motto: #0F766E;
  --card-sub-bg: rgba(255, 255, 255, 0.45);
  --card-sub-border: rgba(255, 255, 255, 0.65);
  --card-badge-bg: rgba(254, 243, 199, 0.82);
  --card-badge-border: rgba(251, 191, 36, 0.60);
  --card-badge-text: #92400E;

  --header-height: 92px;
  --footer-height: 52px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET & GLOBAL BASICS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fullscreen-concept {
  font-family: var(--font-body);
  color: var(--text-white);
  background-color: var(--dark-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ============================================================
   FIXED FULLSCREEN BACKGROUND VIDEO
   ============================================================ */
.global-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.global-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: contrast(105%) saturate(112%) brightness(101%);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Clear, vibrant gradient vignette — NO blur so video stays crystal clear */
.global-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 17, 32, 0.26) 0%,
    rgba(11, 17, 32, 0.08) 36%,
    rgba(11, 17, 32, 0.18) 75%,
    rgba(11, 17, 32, 0.48) 100%
  );
  z-index: 2;
}

/* ============================================================
   FIXED MODERN HEADER
   ============================================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-smooth);
}

.header-container {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Brand Logo (Using logo.jpg, prominently visible without vertical empty margins) */
.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 6px 0;
  flex-shrink: 0;
}

.brand-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1E293B;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 168, 0, 0.12);
  color: #B45309;
}

.nav-link.active {
  background: #FFF7ED;
  color: #D97706;
  box-shadow: 0 2px 8px rgba(255, 168, 0, 0.15);
}

/* ============================================================
   WIND-BLOWN WAVING FLAG ANIMATIONS (GENTLE & SMOOTH)
   ============================================================ */
@keyframes windFlagWave {
  0% {
    transform: perspective(400px) rotateY(0deg) skewY(0deg) scaleX(1) translateY(0);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  }
  25% {
    transform: perspective(400px) rotateY(-4.5deg) skewY(-0.9deg) scaleX(0.99) translateY(-0.35px);
    filter: drop-shadow(1.5px 2px 4px rgba(0, 0, 0, 0.16));
  }
  50% {
    transform: perspective(400px) rotateY(3deg) skewY(0.6deg) scaleX(0.996) translateY(0.25px);
    filter: drop-shadow(-0.8px 1.5px 3px rgba(0, 0, 0, 0.10));
  }
  75% {
    transform: perspective(400px) rotateY(-2.5deg) skewY(-0.5deg) scaleX(0.993) translateY(-0.15px);
    filter: drop-shadow(1px 2px 3.5px rgba(0, 0, 0, 0.14));
  }
  100% {
    transform: perspective(400px) rotateY(0deg) skewY(0deg) scaleX(1) translateY(0);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  }
}

@keyframes windFlagWaveLarge {
  0% {
    transform: perspective(600px) rotateY(0deg) skewY(0deg) scaleX(1) translateY(0);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
  }
  25% {
    transform: perspective(600px) rotateY(-4deg) skewY(-0.8deg) scaleX(0.992) translateY(-0.5px);
    filter: drop-shadow(2px 3px 8px rgba(0, 0, 0, 0.15));
  }
  50% {
    transform: perspective(600px) rotateY(2.8deg) skewY(0.6deg) scaleX(0.996) translateY(0.35px);
    filter: drop-shadow(-1px 2.5px 6px rgba(0, 0, 0, 0.10));
  }
  75% {
    transform: perspective(600px) rotateY(-2.2deg) skewY(-0.45deg) scaleX(0.994) translateY(-0.25px);
    filter: drop-shadow(1.5px 3px 7px rgba(0, 0, 0, 0.13));
  }
  100% {
    transform: perspective(600px) rotateY(0deg) skewY(0deg) scaleX(1) translateY(0);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
  }
}

@keyframes flagLightRipple {
  0% {
    background-position: -120% 0;
    opacity: 0.08;
  }
  50% {
    opacity: 0.22;
  }
  100% {
    background-position: 220% 0;
    opacity: 0.08;
  }
}

/* Campus Links with Flag */
.nav-campus-link {
  padding: 0.5rem 0.85rem;
}

.flag-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.nav-campus-link:hover .flag-icon-wrap {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-campus-link .nav-text {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Mobile Toggle Hamburger - Hidden on Laptop, Desktop and Higher Devices */
.mobile-toggle {
  display: none !important;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #0F172A;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* ============================================================
   MOBILE SLIDE-OUT DRAWER
   ============================================================ */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1060;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 1.25rem;
}

.mobile-drawer-header img {
  height: 52px;
  width: auto;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #475569;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: #1E293B;
  background: #F8FAFC;
}

.mobile-drawer-link:hover {
  background: #FFF7ED;
  color: #D97706;
}

.mobile-drawer-campuses {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-drawer-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 0.15rem;
}

.mobile-campus-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0F172A;
  transition: var(--transition-fast);
}

.mobile-flag-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border-left: 1.5px solid #CBD5E1;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter;
  animation: windFlagWave 2.8s infinite ease-in-out;
  flex-shrink: 0;
}

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

.mobile-flag-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 28%,
    rgba(0, 0, 0, 0.18) 52%,
    rgba(255, 255, 255, 0.3) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  pointer-events: none;
  animation: flagLightRipple 2.8s infinite ease-in-out;
  animation-delay: inherit;
}

.mobile-campus-chip:nth-of-type(1) .mobile-flag-wrap { animation-delay: 0s; }
.mobile-campus-chip:nth-of-type(2) .mobile-flag-wrap { animation-delay: -0.45s; }
.mobile-campus-chip:nth-of-type(3) .mobile-flag-wrap { animation-delay: -0.9s; }
.mobile-campus-chip:nth-of-type(4) .mobile-flag-wrap { animation-delay: -1.35s; }
.mobile-campus-chip:nth-of-type(5) .mobile-flag-wrap { animation-delay: -1.8s; }
.mobile-campus-chip:nth-of-type(6) .mobile-flag-wrap { animation-delay: -2.25s; }

.mobile-campus-chip:hover {
  background: #FFF7ED;
  border-color: #FDBA74;
  color: #C2410C;
}

/* ============================================================
   RIGHT-SIDE SECTION NAV — slim logo glass track
   Sampled from images/logo.jpg: orange #F8B018, teal #2EBCC1,
   cream #F8E0C8. Same hues as --primary and --logo-blue.
   ============================================================ */
.side-nav-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 30px;
  padding: 11px 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.84) 0%, rgba(255, 255, 255, 0.68) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.side-nav-dots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 1.5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(248, 176, 24, 0.72) 0%, rgba(46, 188, 193, 0.72) 100%);
  pointer-events: none;
}

.dot-btn {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.dot-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #F8E0C8;
  box-shadow:
    0 0 0 1px rgba(46, 188, 193, 0.5),
    0 1px 2px rgba(15, 23, 42, 0.16);
  transition:
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.dot-btn:hover::before {
  background: #F8B018;
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow:
    0 0 0 3px rgba(248, 176, 24, 0.24),
    0 0 10px rgba(255, 168, 0, 0.5);
}

.dot-btn.active::before {
  width: 8px;
  height: 18px;
  background: linear-gradient(180deg, #7FE3E4 0%, #2EBCC1 46%, #1CA7AA 100%);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3px rgba(46, 188, 193, 0.2),
    0 0 14px rgba(45, 191, 194, 0.62);
}

.dot-btn.active:hover::before {
  background: linear-gradient(180deg, #8EEAEC 0%, #2DBFC2 46%, #22B4B7 100%);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3px rgba(46, 188, 193, 0.28),
    0 0 16px rgba(45, 191, 194, 0.72);
}

.dot-btn:focus {
  outline: none;
}

.dot-btn:focus-visible::before {
  box-shadow:
    0 0 0 3px rgba(255, 168, 0, 0.6),
    0 0 10px rgba(255, 168, 0, 0.4);
}

.dot-btn.active:focus-visible::before {
  box-shadow:
    0 0 0 3px rgba(255, 168, 0, 0.6),
    0 0 14px rgba(45, 191, 194, 0.62);
}

.dot-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid #F8B018;
}

.dot-btn:hover .dot-tooltip,
.dot-btn.active .dot-tooltip-flag {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Small modern flag icon: a glass chip with a tiny cloth that flutters. */
.dot-tooltip-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  padding: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: visible;
}

.dot-flag-pole {
  display: none;
}

.dot-flag-cloth {
  position: relative;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  transform-origin: 8% 50%;
  animation: dotFlagFlutter 2.4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.12),
    0 2px 4px rgba(15, 23, 42, 0.12);
}

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

.dot-flag-cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0) 72%);
  background-size: 180% 100%;
  animation: flagLightRipple 2.4s linear infinite;
  pointer-events: none;
}

@keyframes dotFlagFlutter {
  0%, 100% { transform: perspective(80px) rotateY(0deg) skewX(0deg) scaleX(1); }
  30% { transform: perspective(80px) rotateY(18deg) skewX(-4deg) scaleX(0.94); }
  62% { transform: perspective(80px) rotateY(-10deg) skewX(3deg) scaleX(1); }
}

.dot-btn:nth-child(3) .dot-flag-cloth { animation-delay: -0.2s; }
.dot-btn:nth-child(4) .dot-flag-cloth { animation-delay: -0.7s; }
.dot-btn:nth-child(5) .dot-flag-cloth { animation-delay: -1.2s; }
.dot-btn:nth-child(6) .dot-flag-cloth { animation-delay: -1.7s; }
.dot-btn:nth-child(7) .dot-flag-cloth { animation-delay: -2.1s; }
.dot-btn:nth-child(8) .dot-flag-cloth { animation-delay: -2.6s; }

@media (max-width: 1280px) {
  .side-nav-dots {
    right: 8px;
  }
}

/* ============================================================
   FULLPAGE SECTIONS WRAPPER & SECTIONS
   ============================================================ */
.fullpage-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.fp-section-about,
.fp-section-about .fp-inner {
  overflow: visible;
}

.fp-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--header-height) + 1.5rem) 2rem calc(var(--footer-height) + 1.5rem);
  box-sizing: border-box;
}

.fp-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SLIDE 1: HOME HERO
   ============================================================ */
.fp-section-home {
  padding-left: clamp(1.5rem, 5vw, 4.5rem);
  padding-right: clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  --ground-h: clamp(36px, 3.4vw, 56px);
}

.fp-section-home .fp-inner {
  max-width: 100%;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
}

.home-hero-card {
  width: 100%;
  max-width: 100%;
  background: var(--card-glass-bg);
  backdrop-filter: var(--card-glass-blur);
  -webkit-backdrop-filter: var(--card-glass-blur);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--card-radius);
  padding: clamp(1.35rem, 2.2vw, 1.85rem) clamp(1.35rem, 2vw, 2rem);
  box-shadow: var(--card-glass-shadow);
  text-align: left;
  margin: 0;
  position: relative;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  container-type: inline-size;
  container-name: heroCard;
}

@media (min-width: 992px) {
  .home-hero-card {
    width: 48%;
    min-width: 480px;
    max-width: 640px;
    margin-left: 0;
    margin-right: auto;
    /* Lift further above vertical center */
    transform: translateY(calc(-1 * clamp(6.5rem, 16vh, 10rem)));
  }
}

.home-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card-badge-bg);
  padding: 0.45rem clamp(0.85rem, 1.2vw, 1.15rem);
  border-radius: 50px;
  border: 1px solid var(--card-badge-border);
  color: var(--card-badge-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  white-space: nowrap;
  max-width: 100%;
  min-height: 34px;
}

.home-tag-pill i {
  color: #F59E0B;
  font-size: 0.95rem;
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 168, 0, 0)); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.65)); }
}

.typewriter-text {
  display: inline;
  letter-spacing: 0.015em;
  font-weight: 700;
}

.typewriter-cursor {
  display: inline-block;
  font-weight: 600;
  color: #D97706;
  margin-left: 3px;
  animation: cursorBlink 0.8s infinite ease-in-out;
  user-select: none;
}

@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.home-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--card-text-title);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: color var(--transition-smooth);
}

@supports (font-size: 1cqw) {
  .home-main-title {
    font-size: clamp(1.4rem, 4.8cqw, 2.25rem);
  }
}

.home-main-title .text-highlight {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  text-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.4));
}

.home-motto {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  color: #0E7490;
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: color var(--transition-smooth);
}

.home-description {
  display: none;
}

.home-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.95rem;
  flex-wrap: nowrap;
  width: auto;
}

.home-actions .btn {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0.52rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 50px;
  gap: 0.45rem;
  letter-spacing: 0.01em;
  justify-content: center;
}

.home-actions .btn i {
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.02rem;
}

.btn-primary {
  background: linear-gradient(135deg, #FFA800 0%, #FF8A00 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(255, 138, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 8px 22px rgba(255, 138, 0, 0.55);
  background: linear-gradient(135deg, #FFB41F 0%, #FF971F 100%);
}

.btn-logo-blue {
  background: linear-gradient(135deg, #2DBFC2 0%, #1CA7AA 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(28, 167, 170, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-logo-blue:hover {
  background: linear-gradient(135deg, #37CCD0 0%, #22B4B7 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 8px 22px rgba(28, 167, 170, 0.55);
  transform: translateY(-2px);
  color: #FFFFFF;
}

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

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.scroll-down-indicator {
  position: absolute;
  bottom: calc(var(--footer-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  z-index: 15;
  animation: bounceDown 2s infinite ease-in-out;
  /* Keeps the white chevron readable on the photo lawn */
  filter: drop-shadow(0 1px 1px rgba(20, 40, 8, 0.8));
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* ============================================================
   WALKING & DISCUSSING CHARACTERS (First View: #home Section)
   ============================================================ */
.walking-characters-track {
  position: absolute;
  left: 0;
  right: 0;
  /* Sit on the footer so the photo lawn meets the first-screen bottom */
  bottom: var(--footer-height);
  width: 100%;
  height: clamp(118px, 17.1vh, 171px);
  pointer-events: none;
  overflow: visible;
  z-index: 12;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Hide walkers + shadows when scrolling away from home (down arrow / scroll) */
body.home-walkers-hidden .walking-characters-track {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Photo lawn under the walkers — bottom of hero-welcome-leaf-base.webp only.
   The image is 2:1; sizing the strip to ~3.4vw keeps the visible slice in the
   lower ~8% (flowering grass), below the sky, tree, and hill line.
   The strip is a low mound: lit crown, darker front lip, contact shadow below. */
.walking-characters-track {
  --lawn-tilt: perspective(980px) rotateX(8deg);
  /* Extra height behind the shoes so the far edge can feather without uncovering the feet */
  --lawn-rise: clamp(14px, 1.6vw, 26px);
  /* Square sides. A wide top radius lifted the ends and left the hill showing. */
  --lawn-radius: 0;
  /* Cover the rotateX pinch so the strip still meets both screen edges */
  --lawn-bleed: 28px;
}

.walking-characters-track::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--lawn-bleed));
  right: calc(-1 * var(--lawn-bleed));
  bottom: 0;
  height: calc(var(--ground-h) + var(--lawn-rise));
  z-index: 0;
  pointer-events: none;
  border-radius: var(--lawn-radius);
  transform: var(--lawn-tilt);
  transform-origin: 50% 100%;
  background-color: #8cb208;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(228, 236, 110, 0.14) 22%,
      rgba(210, 222, 72, 0.08) 38%,
      rgba(255, 255, 255, 0) 54%,
      rgba(24, 44, 6, 0) 72%,
      rgba(16, 32, 6, 0.24) 90%,
      rgba(8, 18, 4, 0.38) 100%
    ),
    radial-gradient(
      ellipse 58% 70% at 50% 38%,
      rgba(232, 238, 130, 0.10) 0%,
      rgba(255, 255, 255, 0) 62%
    ),
    url("../images/hero-welcome-leaf-base.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% auto;
  background-position: center, center, center bottom;
  /* Photo yellow-green, unfiltered. A thin sunlit crown, softer front lip. */
  box-shadow: inset 0 -12px 14px rgba(12, 28, 4, 0.18);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.72) 24%, #000 38%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.72) 24%, #000 38%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Front lip and the shadow it casts on the band below the walkers.
   Transparent fill so it never covers the photo, the children, or the chevron. */
.walking-characters-track::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--lawn-bleed));
  right: calc(-1 * var(--lawn-bleed));
  bottom: 0;
  height: calc(var(--ground-h) + var(--lawn-rise));
  z-index: 0;
  pointer-events: none;
  border-radius: var(--lawn-radius);
  transform: var(--lawn-tilt);
  transform-origin: 50% 100%;
  background: transparent;
  box-shadow:
    0 3px 0 rgba(64, 90, 16, 0.34),
    0 7px 4px rgba(36, 56, 10, 0.26),
    0 14px 16px rgba(12, 28, 6, 0.18),
    0 26px 28px rgba(8, 18, 4, 0.1);
}

/* Same photo's plants, swaying. Clipped to the mound so walkers and the
   scroll chevron stay clear. */
.walker-lawn-sway {
  position: absolute;
  z-index: 0;
  left: calc(-1 * var(--lawn-bleed));
  right: calc(-1 * var(--lawn-bleed));
  bottom: 0;
  height: calc(var(--ground-h) + var(--lawn-rise));
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--lawn-radius);
  transform: var(--lawn-tilt);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.72) 24%, #000 38%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.72) 24%, #000 38%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.walking-duo {
  position: absolute;
  left: 0;
  /* Soles rest on the photo lawn, with a few pixels of shoe in the blades */
  bottom: calc(var(--ground-h) - 5px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  /* Overlap is a negative margin from js/walkers.js. gap cannot be negative. */
  gap: 0;
  transform: translateX(-120vw);
  will-change: transform;
  pointer-events: auto;
  cursor: default;
}

/* Sizes of legs (--tw, --l1, ...) are set in px by js/walkers.js from the figure height */
.walking-characters-track {
  --fig-h: clamp(166px, 23.3vh, 242px);
  --ground-h: clamp(36px, 3.4vw, 56px);
}

.walking-boy {
  z-index: 2;
  --fig-ar: 0.5;
  --side-ar: 363 / 754;
  --thigh-bg: linear-gradient(90deg, #2c3762 0%, #1c2448 55%, #131a35 100%);
  --shin-bg: linear-gradient(90deg, #2c3762 0%, #1c2448 55%, #131a35 100%);
  --shoe-bg: radial-gradient(ellipse at 62% 28%, #8d5628 0%, #6b3a14 52%, #45240b 100%);
}

.walking-girl {
  z-index: 3;
  /* Fallback until walkers.js sets the clasp spacing. */
  margin-left: calc(var(--fig-h) * -0.17);
  --fig-ar: 0.56;
  --side-ar: 399 / 754;
  --skin-bg: linear-gradient(90deg, #f6caa0 0%, #eeb383 60%, #dc9d6c 100%);
  --thigh-bg: var(--skin-bg);
  --shin-bg: linear-gradient(180deg, transparent calc(100% - var(--sock-h, 0px)), #f7f7f5 calc(100% - var(--sock-h, 0px))), var(--skin-bg);
  --shoe-bg: radial-gradient(ellipse at 62% 28%, #4d4642 0%, #221d1b 50%, #0e0c0b 100%);
}

.walking-char-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-figure-wrap {
  position: relative;
  height: var(--fig-h);
  width: calc(var(--fig-h) * var(--fig-ar));
}

/* Pose stack: side → three-quarter → front (no rotateY / no photo flip) */
.walker-turntable {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.walker-face {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.14));
  will-change: opacity;
}

.walker-face-side {
  aspect-ratio: var(--side-ar);
  opacity: 1;
}

.walker-face-quarter,
.walker-face-front {
  width: calc(var(--fig-h) * 0.48);
}

.walker-side-body,
.walker-inner-arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.walker-side-body {
  z-index: 3;
}

/* The inner arm is the real sprite arm, pivoted at the sleeve and aimed at the clasp. */
.walker-inner-arm {
  z-index: 4;
  pointer-events: none;
}

.walking-boy .walker-inner-arm {
  transform-origin: 66.64% 81.17%;
}

.walking-girl .walker-inner-arm {
  transform-origin: 43.07% 70.62%;
}

.walker-leg {
  position: absolute;
  left: var(--hip-x, 50%);
  top: var(--hip-y, 66%);
  width: 0;
  height: 0;
  z-index: 2;
}

.walker-leg.leg-far {
  z-index: 1;
  filter: brightness(0.8) saturate(0.92);
}

.leg-thigh,
.leg-shin,
.leg-foot {
  position: absolute;
}

.leg-thigh {
  left: calc(var(--tw) / -2);
  top: calc(var(--tw) / -2);
  width: var(--tw);
  height: calc(var(--l1) + var(--tw));
  border-radius: calc(var(--tw) / 2);
  background: var(--thigh-bg);
  transform-origin: 50% calc(var(--tw) / 2);
}

.leg-shin {
  left: calc((var(--tw) - var(--sw)) / 2);
  top: calc(var(--l1) + (var(--tw) - var(--sw)) / 2);
  width: var(--sw);
  height: calc(var(--l2) + var(--sw));
  border-radius: calc(var(--sw) / 2);
  background: var(--shin-bg);
  transform-origin: 50% calc(var(--sw) / 2);
}

/* Pivot sits at the ankle; heel extends slightly behind it, toe forward */
.leg-foot {
  left: calc(var(--sw) / 2 - var(--fh) * 0.62);
  top: calc(var(--l2) + var(--sw) / 2 - var(--fh) / 2);
  width: var(--fl);
  height: var(--fh);
  border-radius: 45% 62% 38% 40% / 55% 72% 32% 32%;
  background: var(--shoe-bg);
  transform-origin: calc(var(--fh) * 0.62) 50%;
}

.walker-face-quarter img,
.walker-face-front img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.walker-face-front .walker-front-blink {
  opacity: 0;
  animation: walkerBlink 4s infinite;
}

.walking-girl .walker-front-blink {
  animation-duration: 4.6s;
  animation-delay: 1.2s;
}

@keyframes walkerBlink {
  0%, 92%, 97%, 100% { opacity: 0; }
  93.5%, 95.5% { opacity: 1; }
}

/* Talking mouths sit on the front-face smile. Rest hides the overlay. */
.walker-mouth {
  position: absolute;
  left: 50%;
  z-index: 5;
  width: calc(var(--fig-h) * 0.1031);
  height: calc(var(--fig-h) * 0.0813);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
}

.walking-boy .walker-mouth { top: 34.49%; }
.walking-girl .walker-mouth { top: 33.43%; }

.walker-mouth[data-shape="closed"],
.walker-mouth[data-shape="small"],
.walker-mouth[data-shape="wide"],
.walker-mouth[data-shape="round"] {
  opacity: 1;
}

.walker-mouth svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.walker-mouth .mouth-cover {
  fill: none;
  stroke: #fdc185;
  stroke-width: 18;
  stroke-linecap: round;
}

.walker-mouth .vis { opacity: 0; }

.walker-mouth[data-shape="closed"] .vis-closed,
.walker-mouth[data-shape="small"] .vis-small,
.walker-mouth[data-shape="wide"] .vis-wide,
.walker-mouth[data-shape="round"] .vis-round {
  opacity: 1;
}

.walker-mouth .cavity { fill: #4a1622; }
.walker-mouth .tooth { fill: #fff7f2; }

.walker-mouth .lip,
.walker-mouth .lip-ring {
  fill: none;
  stroke: #ed5851;
  stroke-width: 5;
  stroke-linecap: round;
}

.walker-mouth .vis-closed .lip { stroke-width: 7; }
.walker-mouth .lip-ring { stroke-width: 4; }
.walking-girl .walker-mouth .lip,
.walking-girl .walker-mouth .lip-ring { stroke: #e74e40; }

.walker-mouth .cavity { stroke: none; }
.walker-mouth .tooth { stroke: none; }

/* Extra cheek warmth only while that child is speaking. */
.walker-cheek {
  position: absolute;
  left: 50%;
  width: calc(var(--fig-h) * 0.044);
  height: calc(var(--fig-h) * 0.028);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 148, 136, 0.78) 0%, rgba(255, 148, 136, 0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.walker-face-front.is-speaking .walker-cheek { opacity: 1; }

.walking-boy .cheek-l { top: 34.8%; transform: translate(calc(-50% - var(--fig-h) * 0.090), -50%); }
.walking-boy .cheek-r { top: 34.8%; transform: translate(calc(-50% + var(--fig-h) * 0.090), -50%); }
.walking-girl .cheek-l { top: 33.6%; transform: translate(calc(-50% - var(--fig-h) * 0.079), -50%); }
.walking-girl .cheek-r { top: 33.6%; transform: translate(calc(-50% + var(--fig-h) * 0.083), -50%); }
.walking-girl .walker-cheek {
  background: radial-gradient(ellipse at center, rgba(255, 120, 112, 0.42) 0%, rgba(255, 120, 112, 0) 72%);
}

/* Speech Bubbles for Discussion */
.char-speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 168, 0, 0.5);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  will-change: transform, opacity;
  transform-origin: bottom center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubble-boy {
  border-radius: 18px 18px 18px 4px;
}

.bubble-boy::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.bubble-girl {
  border-radius: 18px 18px 4px 18px;
}

.bubble-girl::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 22%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.bubble-text {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: clamp(0.58rem, 0.78vw, 0.68rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.char-speech-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Unison line. One bubble, two tails, pulled left so it stays on screen
   when the pair stands in the right third of the hero. */
.walking-duo > .bubble-duo {
  left: 46%;
  bottom: calc(100% + 8px);
  width: min(24rem, 74vw);
  white-space: normal;
  text-align: center;
  z-index: 30;
  transform: translateX(-62%) scale(0);
}

.walking-duo > .bubble-duo.is-visible {
  opacity: 1;
  transform: translateX(-62%) scale(1);
}

.bubble-duo .bubble-text {
  white-space: normal;
  display: block;
  text-align: center;
  line-height: 1.28;
}

.bubble-duo::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 58%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.bubble-duo::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 74%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

/* Small contact ovals under each shoe. js/walkers.js slides them with the feet. */
.foot-contact-shadow {
  position: absolute;
  left: 50%;
  bottom: calc(var(--fig-h) * -0.042);
  z-index: -1;
  width: calc(var(--fig-h) * 0.128);
  height: calc(var(--fig-h) * 0.05);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(46, 28, 8, 0.95) 0%,
    rgba(38, 28, 10, 0.8) 30%,
    rgba(20, 38, 8, 0.52) 54%,
    rgba(8, 18, 4, 0) 74%
  );
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transform-origin: center center;
  will-change: transform, opacity;
}

.walking-girl .foot-contact-shadow {
  width: calc(var(--fig-h) * 0.098);
  height: calc(var(--fig-h) * 0.044);
  bottom: calc(var(--fig-h) * -0.038);
}

.foot-contact-shadow.shadow-far {
  width: calc(var(--fig-h) * 0.11);
  height: calc(var(--fig-h) * 0.042);
}

.walking-girl .foot-contact-shadow.shadow-far {
  width: calc(var(--fig-h) * 0.084);
  height: calc(var(--fig-h) * 0.036);
}

/* Ground shadow (scaled by js/walkers.js with each step) */
.walking-char-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(16, 55, 12, 0.45) 0%, rgba(16, 55, 12, 0) 72%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

/* Tablet & Mobile responsive tuning */
@media (max-width: 768px) {
  .fp-section-home {
    --ground-h: clamp(32px, 8vw, 48px);
  }

  .walking-characters-track {
    bottom: calc(var(--footer-height, 42px) + 12px);
    height: 118px;
    --ground-h: clamp(32px, 8vw, 48px);
  }

  .walking-characters-track::before {
    /* Narrow screens need a closer crop so the taller strip stays on grass */
    background-size: 100% 100%, 100% 100%, 230% auto;
    bottom: 0;
  }

  .walker-lawn-sway img {
    width: 230%;
    left: 50%;
    transform: translateX(-50%);
  }

  .walking-characters-track {
    --fig-h: clamp(123px, 18.6vh, 155px);
  }

  .char-speech-bubble {
    padding: 0.28rem 0.65rem;
    margin-bottom: 8px;
  }

  .bubble-text {
    font-size: 0.58rem;
  }
}

@media (max-width: 640px) {
  .fp-section.fp-section-home {
    /* Keep the first screen full height so the walkers stay on the lawn,
       below the welcome card. */
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 8rem;
  }

  .fp-section-home .scroll-down-indicator {
    /* --footer-height is auto here, so park the chevron on the lawn */
    bottom: calc(8px + (var(--ground-h) - 28px) / 2);
  }

  .walking-characters-track {
    bottom: 8px;
    height: 88px;
  }

  .walking-characters-track {
    --fig-h: 108px;
  }

  .char-speech-bubble {
    padding: 0.22rem 0.5rem;
    margin-bottom: 6px;
  }

  .bubble-text {
    font-size: 0.52rem;
  }
}

/* ============================================================
   SLIDE 2: ABOUT US
   ============================================================ */
/* Positioning box for the ball. Same size as the card, but outside the
   frosted glass so backdrop-filter cannot clip the kick or the fall. */
.about-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  overflow: visible;
}

.about-glass-card {
  position: relative;
  width: 100%;
  max-width: none;
  background: var(--card-glass-bg);
  backdrop-filter: var(--card-glass-blur);
  -webkit-backdrop-filter: var(--card-glass-blur);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--card-radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--card-glass-shadow);
  overflow: visible;
}

/* Kick up to the top edge → travel just outside → fall beside the card */
.about-soccer-ball {
  /* Start at the toe of the mascot's raised foot */
  --ball-start-x: 24%;
  --ball-start-y: 55%;
  /* Peak: whole ball above the card, just left of the About badge.
     top is the ball's top edge, so -ball-size parks the bottom on the border. */
  --ball-kick-x: 33%;
  --ball-rim-y: calc(var(--ball-size) * -1 - 4px);
  /* Still fully above the card, approaching the right corner */
  --ball-corner-x: calc(100% - var(--ball-size) * 0.55);
  /* Left edge of the ball sits on the card's right border for the outside fall */
  --ball-out-x: 100%;
  /* js/main.js sets this to just past the flowering grass, so the whole ball
     finishes behind the mound. The sit point is one ball higher: still in
     the sky, bottom touching the grass, fully visible. */
  --ball-land-y: calc(100% + var(--ball-size) + 24px);
  --ball-sit-y: calc(var(--ball-land-y) - var(--ball-size) - 14px);
  --ball-size: clamp(36px, 4.4vw, 52px);
  position: absolute;
  z-index: 8;
  width: var(--ball-size);
  height: auto;
  left: var(--ball-start-x);
  top: var(--ball-start-y);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.28));
  will-change: left, top, transform, opacity;
  animation: aboutBallPath 8s linear infinite;
  transform-origin: center center;
}

@keyframes aboutBallPath {
  /* Rest at the raised foot */
  0%,
  8% {
    left: var(--ball-start-x);
    top: var(--ball-start-y);
    transform: rotate(0deg) scale(1);
    opacity: 1;
    /* Straight diagonal: foot → fully above the top border */
    animation-timing-function: cubic-bezier(0.16, 0.55, 0.28, 1);
  }
  /* Peak: entire ball above the card. Bottom edge sits a few px above the border. */
  18%,
  21% {
    left: var(--ball-kick-x);
    top: var(--ball-rim-y);
    transform: rotate(260deg) scale(1);
    opacity: 1;
    animation-timing-function: linear;
  }
  /* Roll fully above the card, bottom still outside, toward the right corner */
  52% {
    left: var(--ball-corner-x);
    top: var(--ball-rim-y);
    transform: rotate(1200deg) scale(1);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  /* Leave the card: whole ball just outside the right edge, still at rim height */
  58% {
    left: var(--ball-out-x);
    top: var(--ball-rim-y);
    transform: rotate(1360deg) scale(1);
    opacity: 1;
    /* Accelerate straight down. Opacity stays solid the whole drop. */
    animation-timing-function: cubic-bezier(0.38, 0, 0.78, 0.42);
  }
  /* Visible on the grass: bottom of the ball meets the flowers, nothing faded */
  76% {
    left: var(--ball-out-x);
    top: var(--ball-sit-y);
    transform: rotate(1880deg) scale(1);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.8, 0.7);
  }
  /* Continue into the mound. The grass plate covers it; do not fade here. */
  84% {
    left: var(--ball-out-x);
    top: var(--ball-land-y);
    transform: rotate(2100deg) scale(1);
    opacity: 1;
    animation-timing-function: linear;
  }
  90% {
    left: var(--ball-out-x);
    top: var(--ball-land-y);
    transform: rotate(2160deg) scale(1);
    opacity: 1;
    animation-timing-function: linear;
  }
  /* Hidden behind the grass already, so the return to the foot is unseen */
  91% {
    left: var(--ball-out-x);
    top: var(--ball-land-y);
    transform: rotate(2160deg) scale(1);
    opacity: 0;
    animation-timing-function: linear;
  }
  92% {
    left: var(--ball-start-x);
    top: var(--ball-start-y);
    transform: rotate(0deg) scale(1);
    opacity: 0;
    animation-timing-function: linear;
  }
  97%,
  100% {
    left: var(--ball-start-x);
    top: var(--ball-start-y);
    transform: rotate(0deg) scale(1);
    opacity: 1;
    animation-timing-function: linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-soccer-ball {
    animation: none;
    opacity: 1;
  }
}

/* Live crop of the hero grass, above the ball and only along the mound.
   The top feathers into the real video so the sky beside the card stays clear. */
.about-ball-grass {
  position: fixed;
  left: 0;
  width: 100%;
  top: var(--grass-cover-top, 100vh);
  height: var(--grass-cover-h, 0px);
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--grass-feather, 28px), #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--grass-feather, 28px), #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.about-ball-grass.is-live {
  visibility: visible;
}

.about-ball-grass-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: contrast(105%) saturate(112%) brightness(101%);
}

.about-ball-grass-shade {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  top: calc(var(--grass-cover-top, 0px) * -1);
  background: linear-gradient(
    180deg,
    rgba(11, 17, 32, 0.26) 0%,
    rgba(11, 17, 32, 0.08) 36%,
    rgba(11, 17, 32, 0.18) 75%,
    rgba(11, 17, 32, 0.48) 100%
  );
}

.about-card-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-mascot-col {
  display: flex;
  justify-content: center;
}

.mascot-frame {
  position: relative;
  text-align: center;
}

.mascot-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.mascot-frame:hover .mascot-img {
  transform: translateY(-5px) scale(1.02);
}

.mascot-pill {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #D97706;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.about-content-col {
  display: flex;
  flex-direction: column;
}

.section-tag-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-badge-text);
  background: var(--card-badge-bg);
  border: 1px solid var(--card-badge-border);
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--card-text-title);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: color var(--transition-smooth);
}

.about-p {
  font-size: 1.05rem;
  color: var(--card-text-body);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: color var(--transition-smooth);
}

.about-p-sub {
  font-size: 0.98rem;
  color: var(--card-text-body);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: color var(--transition-smooth);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-bubble {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-sub-bg);
  border: 1px solid var(--card-sub-border);
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.stat-bubble:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.stat-bubble-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon-amber { background: #FEF3C7; color: #D97706; }
.stat-icon-rose  { background: #FFE4E6; color: #E11D48; }
.stat-icon-teal  { background: #CCFBF1; color: #0D9488; }
.stat-icon-purple{ background: #F3E8FF; color: #9333EA; }

.stat-bubble-data {
  display: flex;
  flex-direction: column;
}

.stat-digit {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--card-text-title);
  transition: color var(--transition-smooth);
}

.stat-label {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
}

.about-action-row .btn {
  align-self: flex-start;
}

/* ============================================================
   SLIDES 3 TO 8: CAMPUS SHOWCASE CARDS
   ============================================================ */
.fp-section-campus {
  overflow: visible;
}

.fp-section-campus .fp-inner {
  overflow: visible;
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
}

/* Wrap keeps perch outside the frosted glass (backdrop-filter clips overflow children) */
.campus-showcase-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
}

.campus-showcase-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--card-glass-bg);
  backdrop-filter: var(--card-glass-blur);
  -webkit-backdrop-filter: var(--card-glass-blur);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--card-radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--card-glass-shadow);
  overflow: visible;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Slight dark tint only, so the scene still shows through the glass. */
.about-glass-card,
.campus-showcase-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.1) 100%),
    var(--card-glass-bg);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

.about-glass-card::before,
.campus-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: rgba(15, 23, 42, 0.03);
}

.about-glass-card > *,
.campus-showcase-card > * {
  position: relative;
  z-index: 1;
}

/* Nudge UK campus card slightly right of true center (desktop/tablet only) */
@media (min-width: 641px) {
  #uk .campus-showcase-wrap {
    transform: translateX(clamp(20px, 3vw, 40px));
  }
}

/* Characters sitting on the top edge of the campus card (sibling of glass card) */
.campus-card-perch {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  pointer-events: none;
  z-index: 12;
  /* Keep the seat line in step with .campus-perch-char */
  --perch-w: clamp(72px, 9.5vw, 110px);
  --seat-drop: 20px;
  /* Girl sprite seat line (491/1076 of height) above the card top */
  --grass-rise: calc(0.59 * var(--perch-w) - var(--seat-drop));
  --grass-overlap: clamp(14px, 1.8vw, 22px);
  /* Horizontal reach of each rounded end. Wider than half the strip height
     so the cap is a mound, tallest at mid-height, with no vertical cut. */
  --grass-end: clamp(52px, 8vw, 92px);
  --mound-tilt: perspective(760px) rotateX(9deg);
  /* Domed crown, fuller front lip. Ends stay curved mounds. */
  --mound-radius: var(--grass-end) var(--grass-end) var(--grass-end) var(--grass-end) / 78% 78% 46% 46%;
}

/* One grass strip across the whole card top. A soft mound: lit crown,
   darker thicker lip, contact shadow on the card, feathered photo edge. */
.campus-card-perch::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(-1 * var(--grass-rise));
  height: calc(var(--grass-rise) + var(--grass-overlap));
  pointer-events: none;
  border-radius: var(--mound-radius);
  transform: var(--mound-tilt);
  transform-origin: 50% 100%;
  background-color: #8cb208;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(228, 236, 110, 0.16) 16%,
      rgba(210, 222, 72, 0.07) 34%,
      rgba(255, 255, 255, 0) 50%,
      rgba(28, 50, 6, 0) 68%,
      rgba(18, 36, 6, 0.24) 86%,
      rgba(8, 20, 4, 0.4) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 20, 2, 0.55) 0%,
      rgba(214, 224, 90, 0.14) 6%,
      rgba(255, 255, 255, 0) 14%,
      rgba(255, 255, 255, 0) 86%,
      rgba(214, 224, 90, 0.12) 94%,
      rgba(6, 20, 2, 0.55) 100%
    ),
    radial-gradient(ellipse 46% 80% at 50% 8%, rgba(232, 238, 130, 0.12), transparent 70%),
    url('../images/hero-welcome-leaf-base.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% auto;
  background-position: center, center, center, center bottom;
  /* Same unfiltered photo green as the walker lawn. */
  box-shadow:
    inset 0 9px 12px rgba(220, 230, 100, 0.12),
    inset 0 -11px 12px rgba(12, 28, 4, 0.22);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 100%);
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Thickness of the front lip and the soft shadow it drops onto the card.
   Sits behind the photo so the country name and the children stay clear. */
.campus-card-perch::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(-1 * var(--grass-rise));
  height: calc(var(--grass-rise) + var(--grass-overlap));
  pointer-events: none;
  border-radius: var(--mound-radius);
  transform: var(--mound-tilt);
  transform-origin: 50% 100%;
  background: transparent;
  box-shadow:
    0 3px 0 rgba(58, 82, 14, 0.34),
    0 7px 5px rgba(32, 52, 8, 0.24),
    0 14px 16px rgba(16, 36, 6, 0.14),
    0 22px 24px rgba(10, 24, 4, 0.07);
}

/* Small plants over the photo grass. The photo stays still; each sprite
   rocks from its base inside images/grass-sway.svg. */
.grass-sway {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(-1 * var(--grass-rise));
  height: calc(var(--grass-rise) + var(--grass-overlap));
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--mound-radius);
  transform: var(--mound-tilt);
  transform-origin: 50% 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 100%);
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.grass-sway img,
.walker-lawn-sway img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.campus-perch-char {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: auto;
  width: var(--perch-w);
  /* Seat on the card-top grass strip */
  transform: translateY(calc(-100% + var(--seat-drop)));
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.2));
}

.campus-perch-left {
  left: max(clamp(18px, 3vw, 42px), var(--card-radius));
}

.campus-perch-right {
  right: max(clamp(18px, 3vw, 42px), var(--card-radius));
}

/* Soft contact shadow on the card rim — makes the perch feel rooted */
.campus-perch-char::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 118%;
  height: clamp(10px, 1.6vw, 16px);
  transform: translateX(-50%) translateY(42%);
  background: radial-gradient(
    ellipse at center,
    rgba(15, 23, 42, 0.34) 0%,
    rgba(15, 23, 42, 0.16) 42%,
    rgba(15, 23, 42, 0) 72%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1.5px);
}

.campus-perch-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.campus-perch-char .perch-blink {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.campus-perch-left .perch-blink {
  animation: campusPerchBlinkGirl 4.2s infinite;
}

.campus-perch-right .perch-blink {
  animation: campusPerchBlinkBoy 3.6s infinite;
  animation-delay: 1.3s;
}

@keyframes campusPerchBlinkGirl {
  0%, 92%, 97%, 100% { opacity: 0; }
  93.5%, 95.5% { opacity: 1; }
}

@keyframes campusPerchBlinkBoy {
  0%, 92%, 97%, 100% { opacity: 0; }
  93.5%, 95.5% { opacity: 1; }
}

.campus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.campus-flag-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Wrist pivot: clipped flag-hand rides with the flag. Girl and boy are out of phase. */
.campus-wave {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transform-origin: var(--wave-origin-x) var(--wave-origin-y);
}

.campus-wave--girl {
  --wave-origin-x: 87.5%;
  --wave-origin-y: 67.4%;
  animation: campusHandWaveGirl 3.35s ease-in-out infinite;
}

.campus-wave--boy {
  --wave-origin-x: 57.3%;
  --wave-origin-y: 64.5%;
  animation: campusHandWaveBoy 4.05s ease-in-out infinite;
  animation-delay: -1.85s;
}

.campus-wave-hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.campus-wave--girl .campus-wave-hand {
  clip-path: polygon(
    87.98% 64.59%, 87.02% 65.33%, 86.18% 66.08%, 85.34% 66.82%,
    84.5% 67.57%, 83.89% 68.31%, 85.1% 69.05%, 86.42% 69.8%,
    87.14% 70.54%, 87.5% 71.28%, 88.1% 72.03%, 88.82% 72.77%,
    89.9% 73.51%, 91.35% 74.26%, 96.63% 74.26%, 97.48% 73.51%,
    97.84% 72.77%, 97.96% 72.03%, 97.72% 71.28%, 97.36% 70.54%,
    96.88% 69.8%, 96.15% 69.05%, 95.07% 68.31%, 93.63% 67.57%,
    91.83% 66.82%, 90.5% 66.08%, 89.3% 65.33%
  );
}

.campus-wave--boy .campus-wave-hand {
  clip-path: polygon(
    57.95% 58.68%, 57.73% 59.5%, 57.5% 60.33%, 57.27% 61.16%,
    57.05% 61.98%, 56.59% 62.81%, 56.36% 63.64%, 55.91% 64.46%,
    55.45% 65.29%, 56.36% 66.12%, 61.14% 66.94%, 68.86% 67.77%,
    69.77% 68.6%, 70.91% 69.42%, 76.59% 69.42%, 77.27% 68.6%,
    77.73% 67.77%, 77.73% 66.94%, 77.73% 66.12%, 77.5% 65.29%,
    77.27% 64.46%, 76.59% 63.64%, 75.45% 62.81%, 73.86% 61.98%,
    69.77% 61.16%, 65.91% 60.33%, 62.27% 59.5%, 58.64% 58.68%
  );
}

@keyframes campusHandWaveGirl {
  0% { transform: rotate(-2.2deg); }
  13% { transform: rotate(4.6deg); }
  29% { transform: rotate(-6.4deg); }
  44% { transform: rotate(1.8deg); }
  61% { transform: rotate(-4.8deg); }
  76% { transform: rotate(6.2deg); }
  90% { transform: rotate(-1.1deg); }
  100% { transform: rotate(-2.2deg); }
}

@keyframes campusHandWaveBoy {
  0% { transform: rotate(2.4deg); }
  17% { transform: rotate(-5.8deg); }
  33% { transform: rotate(4.2deg); }
  51% { transform: rotate(-3.2deg); }
  68% { transform: rotate(6.6deg); }
  83% { transform: rotate(-5.1deg); }
  100% { transform: rotate(2.4deg); }
}

/* Slim hand-held country flags nested in perch characters + canvas wind wave */
.campus-flag-held {
  position: absolute;
  /* In front of the character <img> boxes (PNG transparency does not punch through) */
  z-index: 3;
  display: flex;
  align-items: flex-start;
  width: clamp(48px, 6.5vw, 64px);
  height: clamp(56px, 7.5vw, 72px);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.16));
}

/* Girl: pole through extended hand (~92% x, ~71% y of sprite) */
.campus-flag-held--left {
  left: 92%;
  top: 24%;
  transform: rotate(-8deg);
  transform-origin: 2px 88%;
}

/* Boy: pole through hand-on-knee (~73% x, ~68% y of sprite) */
.campus-flag-held--right {
  left: 72%;
  top: 12%;
  transform: rotate(8deg);
  transform-origin: 2px 88%;
}

.campus-flag-pole {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5px;
  height: 100%;
  flex-shrink: 0;
}

.flag-pole-finial {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8e59a 0%, #d4a017 55%, #8a6a0a 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.flag-pole-shaft {
  flex: 1 1 auto;
  width: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: linear-gradient(90deg, #9a7328 0%, #efd07a 40%, #c4922e 70%, #7a5a1a 100%);
}

.campus-flag-wrap {
  position: relative;
  z-index: 1;
  width: clamp(36px, 5vw, 48px);
  height: clamp(24px, 3.4vw, 34px);
  margin-left: 0;
  margin-top: 5px;
  border-radius: 1px 3px 3px 1px;
  overflow: hidden;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transform-origin: left center;
}

.campus-flag-held--left .campus-flag-wrap {
  animation: campusFlagClothGirl 3.35s ease-in-out infinite;
}

.campus-flag-held--right .campus-flag-wrap {
  animation: campusFlagClothBoy 4.05s ease-in-out infinite;
  animation-delay: -1.85s;
}

.campus-flag-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px 4px 4px 1px;
}

.campus-flag-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px 4px 4px 1px;
  display: none;
}

@keyframes campusFlagClothGirl {
  0% { transform: rotate(-2deg) scaleX(1); }
  18% { transform: rotate(3.4deg) scaleX(0.97); }
  41% { transform: rotate(-3.8deg) scaleX(1); }
  63% { transform: rotate(4.2deg) scaleX(0.94); }
  82% { transform: rotate(-1.6deg) scaleX(0.98); }
  100% { transform: rotate(-2deg) scaleX(1); }
}

@keyframes campusFlagClothBoy {
  0% { transform: rotate(1.6deg) scaleX(0.98); }
  22% { transform: rotate(-4deg) scaleX(1); }
  47% { transform: rotate(3.2deg) scaleX(0.95); }
  69% { transform: rotate(-2.4deg) scaleX(1); }
  86% { transform: rotate(4.4deg) scaleX(0.96); }
  100% { transform: rotate(1.6deg) scaleX(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .campus-wave--girl,
  .campus-wave--boy,
  .campus-flag-held--left .campus-flag-wrap,
  .campus-flag-held--right .campus-flag-wrap {
    animation: none;
  }
}

.campus-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.campus-country-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--card-text-title);
  transition: color var(--transition-smooth);
}

.campus-city-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #0D9488;
  font-weight: 600;
  max-width: 100%;
}

.campus-city-pill i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.campus-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(236, 253, 245, 0.85);
  border: 1px solid rgba(167, 243, 208, 0.85);
  color: #065F46;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
}

.campus-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--card-text-title);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: color var(--transition-smooth);
}

.campus-card-desc {
  font-size: 1.05rem;
  color: var(--card-text-body);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 820px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: color var(--transition-smooth);
}

/* Contact & Action Channels */
.campus-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.channel-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card-sub-bg);
  border: 1px solid var(--card-sub-border);
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.channel-card:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.channel-card-primary {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.65) 0%, rgba(253, 230, 138, 0.45) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.channel-card-primary:hover {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.88) 0%, rgba(253, 230, 138, 0.75) 100%);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.8);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.channel-card-primary .channel-icon {
  background: #F59E0B;
  color: #FFFFFF;
}

.channel-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.channel-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.2rem;
}

.channel-val {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--card-text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color var(--transition-smooth);
}

.channel-card-primary .channel-val,
.channel-card[href^="mailto:"] .channel-val,
.channel-val-email {
  font-size: clamp(0.72rem, 0.8vw, 0.84rem);
  letter-spacing: -0.015em;
}

.channel-val i {
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

/* Quality Pillars Strip - Single Line */
.campus-quality-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  width: 100%;
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--card-text-title);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-smooth);
}

.quality-chip i {
  color: #059669;
  font-size: 1rem;
}

/* ============================================================
   FIXED MODERN BOTTOM FOOTER BAR
   ============================================================ */
.fixed-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  z-index: 1000;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.footer-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.86rem;
  color: #94A3B8;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-weight: 500;
}

.footer-initiative a {
  color: #FFA800;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.footer-initiative a:hover {
  color: #FFC04D;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 1rem;
  }

  .brand-logo img {
    height: 72px;
  }

  .nav-menu {
    gap: 0.2rem;
  }

  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
  }

  .flag-icon-wrap {
    width: 22px;
    height: 15px;
  }

  .campus-channels-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .campus-quality-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .campus-quality-strip::-webkit-scrollbar {
    display: none;
  }
}

/* Mobile & Tablet Devices (Tablets, iPads, Phones: <= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .side-nav-dots {
    display: none;
  }

  .brand-logo img {
    height: 68px;
  }

  .about-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-mascot-col {
    order: -1;
  }

  .mascot-img {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-soccer-ball {
    /* Mascot is a 200px image, centered, on top of the card.
       Raised toe sits 77.79% across and 81.52% down that image.
       Offsets match the desktop rest (toe tucked into the ball's lower left). */
    --ball-start-x: calc(50% + 55.58px - 0.236 * var(--ball-size));
    --ball-start-y: calc(1.5rem + 182.6px - 0.7 * var(--ball-size));
    /* Front is the beak and raised foot (viewer's right). Peak above the
       top border on that side, then the shared path rolls to the right
       border and falls. */
    --ball-kick-x: calc(100% - var(--ball-size) * 1.55);
    /* Same clearance: whole ball above the card, not centered on the border */
    --ball-rim-y: calc(var(--ball-size) * -1 - 4px);
    /* Same contact: ball's left edge meets the card's right border */
    --ball-out-x: 100%;
  }

  .section-tag-badge {
    align-self: center;
  }

  .about-action-row .btn {
    align-self: center;
  }

  .campus-showcase-card,
  .about-glass-card,
  .home-hero-card {
    padding: 1.5rem 1.35rem;
  }

  .fp-section-home {
    align-items: flex-start;
  }

  .fp-section-home .fp-inner {
    justify-content: flex-start;
    padding-top: 0.85rem;
  }

  .home-hero-card {
    max-width: 520px;
    margin: 0.35rem auto 0;
    transform: none;
    padding: 0.85rem 1rem 0.8rem;
  }

  .home-tag-pill {
    font-size: 0.7rem;
    padding: 0.28rem 0.65rem;
    min-height: 0;
    margin-bottom: 0.4rem;
    gap: 0.35rem;
  }

  .home-tag-pill i {
    font-size: 0.72rem;
  }

  .home-main-title {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    margin-bottom: 0.3rem;
  }

  .home-motto {
    font-size: clamp(0.82rem, 1.6vw, 0.98rem);
    margin-bottom: 0.6rem;
  }

  .home-actions {
    gap: 0.45rem;
  }

  .home-actions .btn {
    padding: 0.36rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .home-actions .btn i {
    font-size: 0.7rem;
  }
}

/* Laptop, Desktop and Higher Devices (>= 1025px): Strictly remove mobile toggle & drawer */
@media (min-width: 1025px) {
  .mobile-toggle {
    display: none !important;
  }

  .desktop-nav {
    display: block !important;
  }

  .mobile-nav-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
    --footer-height: auto;
  }

  .brand-logo img {
    height: 60px;
  }

  .fp-section {
    padding: calc(var(--header-height) + 1rem) 1rem 4rem;
    min-height: auto;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
  }

  .fp-section-home {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .campus-showcase-card,
  .about-glass-card,
  .home-hero-card {
    padding: 1.5rem 0.85rem;
  }

  .fp-section-home .fp-inner {
    padding-top: 0.15rem;
  }

  .home-hero-card {
    margin-top: 0.2rem;
    padding: 0.5rem 0.65rem 0.45rem;
  }

  .home-tag-pill {
    padding: 0.18rem 0.48rem;
    font-size: clamp(0.56rem, 2.3vw, 0.66rem);
    gap: 0.25rem;
    min-height: 0;
    margin-bottom: 0.2rem;
    max-width: 100%;
  }

  .home-tag-pill i {
    font-size: 0.62rem;
  }

  .home-main-title {
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
    white-space: nowrap;
    line-height: 1.15;
    margin-bottom: 0.12rem;
  }

  .home-motto {
    font-size: clamp(0.7rem, 2.6vw, 0.82rem);
    margin-bottom: 0.32rem;
  }

  .home-actions {
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
  }

  .home-actions .btn {
    padding: 0.28rem 0.38rem;
    font-size: clamp(0.62rem, 2.4vw, 0.7rem);
    gap: 0.22rem;
    flex: 1 1 0;
    white-space: nowrap;
    justify-content: center;
    letter-spacing: -0.01em;
  }

  .home-actions .btn i {
    font-size: 0.62rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .campus-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fp-section-campus .fp-inner {
    padding-top: 2rem;
  }

  .campus-card-perch {
    --perch-w: clamp(58px, 16vw, 78px);
    --seat-drop: 18px;
  }

  .campus-perch-char::after {
    width: 122%;
    height: clamp(8px, 2.4vw, 12px);
    transform: translateX(-50%) translateY(38%);
  }

  .campus-perch-left {
    left: max(16px, var(--card-radius));
  }

  .campus-perch-right {
    right: max(16px, var(--card-radius));
  }

  .campus-flag-held {
    width: 46px;
    height: 52px;
  }

  .campus-flag-held--left {
    left: 88%;
    top: 20%;
  }

  .campus-flag-held--right {
    left: 68%;
    top: 12%;
  }

  .campus-flag-wrap {
    width: 32px;
    height: 22px;
    margin-top: 4px;
  }

  .campus-quality-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .campus-quality-strip::-webkit-scrollbar {
    display: none;
  }

  .fixed-footer-bar {
    position: relative;
    padding: 1rem 0;
  }

  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}
