/* NAPA — corporate palette from brand (navy, clinical blue, lung teal, warm neutrals) */
:root {
  --navy: #0f2744;
  --navy-soft: #1e3a5f;
  --blue: #2563eb;
  --blue-muted: #e8eef7;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --accent: #e11d48;
  --text: #1a202c;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --surface: #ffffff;
  --cream: #f8fafc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.12);
  --involved-orange: #f97316;
  --font: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-wordmark: "Outfit", system-ui, sans-serif;
  /* Liquid glass — shared across sections */
  --glass-blur: 24px;
  --glass-blur-strong: 30px;
  --glass-saturate: 172%;
  --glass-bg-light: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(245, 250, 255, 0.78) 48%,
    rgba(255, 255, 255, 0.94) 100%
  );
  --glass-edge: 1px solid rgba(255, 255, 255, 0.96);
  --glass-edge-soft: 1px solid rgba(15, 39, 68, 0.08);
  --glass-shadow-elevated:
    inset 0 1px 0 rgba(255, 255, 255, 0.99),
    0 22px 52px rgba(15, 39, 68, 0.08),
    0 1px 0 rgba(15, 39, 68, 0.05);
  --glass-inner-panel: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(241, 248, 255, 0.62) 100%
  );
  --section-bg: linear-gradient(180deg, #eef2f7 0%, var(--cream) 48%, #f1f5f9 100%);
  --section-orbs:
    radial-gradient(ellipse 70% 55% at 12% 22%, rgba(15, 39, 68, 0.12), transparent 58%),
    radial-gradient(ellipse 88% 70% at 82% 15%, rgba(13, 148, 136, 0.08), transparent 56%),
    radial-gradient(ellipse 72% 52% at 8% 85%, rgba(249, 115, 22, 0.055), transparent 52%);
  /* Job openings — section stripe matches landing (light); blue panel is .jobs-board */
  --jobs-board-surface: linear-gradient(
    165deg,
    #f5f8fc 0%,
    #eef4fb 42%,
    #faf8f6 100%
  );
  --jobs-board-glow:
    radial-gradient(ellipse 85% 70% at 10% 14%, rgba(147, 197, 253, 0.28), transparent 58%),
    radial-gradient(ellipse 78% 62% at 90% 86%, rgba(253, 186, 116, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 72% 22%, rgba(204, 251, 241, 0.22), transparent 50%);
  /* Fixed frosted nav — reserve space + anchor scroll (matches header row + safe area) */
  --site-header-h: calc(env(safe-area-inset-top, 0px) + 5.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-h);
  overflow-x: clip;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--site-header-h);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #e8edf5 0%, var(--cream) 42%, #eef2f7 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4.5vw, 1.75rem);
  box-sizing: border-box;
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header — frosted glass rail (fixed on scroll; works with mobile overlay nav) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 24px rgba(15, 39, 68, 0.06),
    0 12px 40px rgba(232, 239, 247, 0.45);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(237, 242, 250, 0.38) 42%,
    rgba(224, 236, 255, 0.28) 100%
  );
  opacity: 0.95;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.85rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 54px;
  width: auto;
  max-width: min(140px, 34vw);
  object-fit: contain;
}

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

.brand-text small {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 12px rgba(15, 39, 68, 0.06);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-radius: 8px;
  transition:
    color 0.22s ease,
    text-shadow 0.28s ease,
    filter 0.28s ease;
}

.nav-list a:hover {
  color: var(--teal);
  text-decoration: none;
  text-shadow:
    0 0 16px rgba(13, 148, 136, 0.55),
    0 0 32px rgba(13, 148, 136, 0.28),
    0 0 48px rgba(13, 148, 136, 0.12);
  filter: brightness(1.05);
}

.nav-list a:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(24px) saturate(185%);
    -webkit-backdrop-filter: blur(24px) saturate(185%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    padding: 1rem;
    display: none;
    box-shadow: 0 16px 48px rgba(15, 39, 68, 0.1);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 10px;
  }
}

/* Hero — pure white field (matches card surfaces); strip uses subtle glass */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: visible;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero — instant headline/body; two scripted lines use writing animation */
.hero-copy {
  position: relative;
  z-index: 1;
  overflow: visible;
  --hero-subtitle-amber: #c2410c;
  /* Writing animation: “Pulmonology & Beyond” (20 glyphs) → pause → “We call it the NAPA way!” (24 glyphs) */
  --write-char-dur: 0.4s;
  --write-stagger: 0.052s;
  --write-1-start: 0.12s;
  --write-gap: 0.16s;
  --write-2-start: calc(
    var(--write-1-start) + 19 * var(--write-stagger) + var(--write-char-dur) + var(--write-gap)
  );
  transform: translateY(-1cm);
}

/* Modern single-line NAPA */
.hero-wordmark {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: -0.35rem 0 0.85rem;
  overflow: visible;
}

.hero-wordmark__title {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: clamp(2.65rem, 9vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(115deg, #1e1b4b 0%, #312e81 22%, #0f766e 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
  transform: none;
}

.hero-wordmark::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c, #fb923c);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wordmark__title {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-wordmark::after {
    opacity: 1 !important;
  }

  .hero-write-char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

@media (max-width: 900px) {
  .hero-wordmark {
    display: block;
    width: fit-content;
    margin-inline: auto;
  }

  .hero-wordmark::after {
    margin-inline: auto;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

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

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.35rem;
  text-align: right;
}

/* Hero: large layered lung photo — extruded depth + breathing (scale, stronger inhale/exhale) */
.hero-lung-carousel {
  position: relative;
  width: 100%;
  max-width: min(408px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-end;
  overflow: visible;
}

.lung-stage {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.lung-stage--photo {
  position: relative;
  width: min(374px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 38%;
  padding: 0.5rem 0 1.75rem;
}

/* Glass card behind lungs removed — lungs sit on the hero white field */
.lung-stage--photo::before {
  content: none;
}

/* Light-blue airflow — mist inside both lungs, synced to lung-photo-breathe (7.5s); no trachea column */
.lung-airflow {
  position: absolute;
  left: 50%;
  top: -2%;
  z-index: 0;
  width: 112%;
  height: 108%;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
  background:
    radial-gradient(ellipse 38% 48% at 28% 54%, rgba(125, 211, 252, 0.32) 0%, transparent 72%),
    radial-gradient(ellipse 38% 48% at 72% 54%, rgba(125, 211, 252, 0.32) 0%, transparent 72%);
  filter: blur(12px);
  opacity: 0.65;
  animation: lung-airflow-base 7.5s ease-in-out infinite;
}

.lung-airflow::before {
  content: "";
  position: absolute;
  left: 7%;
  top: 32%;
  width: 40%;
  height: 64%;
  border-radius: 52% 48% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(
    ellipse 78% 82% at 52% 50%,
    rgba(224, 242, 254, 0.55) 0%,
    rgba(125, 211, 252, 0.42) 42%,
    rgba(125, 211, 252, 0.12) 68%,
    transparent 78%
  );
  filter: blur(7px);
  opacity: 0.78;
  transform-origin: 50% 54%;
  animation: lung-airflow-in-lung 7.5s ease-in-out infinite;
}

.lung-airflow::after {
  content: "";
  position: absolute;
  right: 7%;
  left: auto;
  top: 32%;
  width: 40%;
  height: 64%;
  border-radius: 48% 52% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(
    ellipse 78% 82% at 48% 50%,
    rgba(224, 242, 254, 0.55) 0%,
    rgba(125, 211, 252, 0.42) 42%,
    rgba(125, 211, 252, 0.12) 68%,
    transparent 78%
  );
  filter: blur(7px);
  opacity: 0.78;
  transform-origin: 50% 54%;
  animation: lung-airflow-in-lung 7.5s ease-in-out infinite;
}

@keyframes lung-airflow-base {
  0%,
  100% {
    opacity: 0.38;
    transform: translateX(-50%) scale(1.05);
    filter: blur(14px);
  }
  50% {
    opacity: 0.78;
    transform: translateX(-50%) scale(0.97);
    filter: blur(9px);
  }
}

@keyframes lung-airflow-in-lung {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(1.05);
    filter: blur(9px);
  }
  50% {
    opacity: 0.95;
    transform: scale(0.93);
    filter: blur(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lung-airflow,
  .lung-airflow::before,
  .lung-airflow::after {
    animation: none !important;
    opacity: 0.32;
    filter: blur(12px);
  }

  .lung-airflow {
    transform: translateX(-50%);
    opacity: 0.26;
  }

  .lung-airflow::before,
  .lung-airflow::after {
    opacity: 0.38;
    transform: none;
  }
}

.lung-photo-pivot {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
  animation: lung-photo-breathe 7.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(15, 39, 68, 0.1)) drop-shadow(0 0 40px rgba(13, 148, 136, 0.12));
}

.lung-photo-volume {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.lung-photo-layer,
.lung-photo-img {
  display: block;
  width: 100%;
  max-width: min(357px, 75vw);
  height: auto;
  border-radius: 2%;
}

.lung-photo-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}

.lung-photo-layer--1 {
  transform: translate3d(-50%, -50%, -12px) scale(0.99);
  opacity: 0.42;
  filter: brightness(0.58) saturate(1.05) blur(0.35px);
}

.lung-photo-layer--2 {
  transform: translate3d(-50%, -50%, -26px) scale(0.982);
  opacity: 0.3;
  filter: brightness(0.48) saturate(1.02) blur(0.55px);
}

.lung-photo-layer--3 {
  transform: translate3d(-50%, -50%, -40px) scale(0.974);
  opacity: 0.2;
  filter: brightness(0.4) saturate(0.98) blur(0.85px);
}

.lung-photo-layer--4 {
  transform: translate3d(-50%, -50%, -54px) scale(0.966);
  opacity: 0.12;
  filter: brightness(0.32) saturate(0.95) blur(1.05px);
}

.lung-photo-img {
  position: relative;
  z-index: 6;
  transform: translateZ(18px);
  filter: saturate(1.12) contrast(1.08) brightness(1.05);
  box-shadow: 0 20px 44px rgba(15, 39, 68, 0.12);
}

@keyframes lung-photo-breathe {
  0%,
  100% {
    transform: scale(0.982);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lung-photo-pivot {
    animation: none;
    transform: scale(1);
  }

  .hero-write-char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

.hero-tagline {
  display: flex;
  justify-content: center;
  margin: clamp(0.75rem, 2vw, 1.25rem) 0 0;
  max-width: 100%;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.05rem, 5.35vw, 3.15rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--hero-subtitle-amber);
  text-shadow: none;
  -webkit-text-stroke: 0;
  white-space: nowrap;
  overflow: visible;
  padding-bottom: 0.28em;
  --hero-tagline-gradient: linear-gradient(
    90deg,
    #0284c7 0%,
    #6366f1 34%,
    #ec4899 66%,
    #f97316 100%
  );
}

.hero-copy .hero-tagline {
  justify-content: flex-start;
  text-align: left;
  margin-top: 0.65rem;
  margin-bottom: clamp(1.85rem, 4.75vw, 3rem);
}

.hero-tagline__track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  overflow: visible;
}

/* Hand-writing reveal — left-to-right stroke per glyph (P … d in order) */
.hero-write-char {
  display: inline-block;
  opacity: 1;
  transform-origin: left center;
  backface-visibility: hidden;
  overflow: visible;
  animation: hero-write-reveal var(--write-char-dur) cubic-bezier(0.33, 0.72, 0.22, 1) both;
}

.hero-tagline__track .hero-write-char {
  opacity: 0;
  color: transparent;
  background: var(--hero-tagline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes hero-write-reveal {
  0% {
    /* Extra vertical slack so script descenders (g, y) aren’t clipped during reveal */
    clip-path: inset(-0.35em 100% -0.35em 0);
    opacity: 0;
    transform: translate3d(0, 0.06em, 0) rotate(-3deg);
  }
  100% {
    clip-path: inset(-0.35em 0 -0.35em 0);
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

/* Line 1 — Pulmonology & Beyond (20 glyphs: P through d) */
.hero-tagline__track .hero-write-char:nth-child(1) {
  animation-delay: calc(var(--write-1-start) + 0 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(2) {
  animation-delay: calc(var(--write-1-start) + 1 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(3) {
  animation-delay: calc(var(--write-1-start) + 2 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(4) {
  animation-delay: calc(var(--write-1-start) + 3 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(5) {
  animation-delay: calc(var(--write-1-start) + 4 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(6) {
  animation-delay: calc(var(--write-1-start) + 5 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(7) {
  animation-delay: calc(var(--write-1-start) + 6 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(8) {
  animation-delay: calc(var(--write-1-start) + 7 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(9) {
  animation-delay: calc(var(--write-1-start) + 8 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(10) {
  animation-delay: calc(var(--write-1-start) + 9 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(11) {
  animation-delay: calc(var(--write-1-start) + 10 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(12) {
  animation-delay: calc(var(--write-1-start) + 11 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(13) {
  animation-delay: calc(var(--write-1-start) + 12 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(14) {
  animation-delay: calc(var(--write-1-start) + 13 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(15) {
  animation-delay: calc(var(--write-1-start) + 14 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(16) {
  animation-delay: calc(var(--write-1-start) + 15 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(17) {
  animation-delay: calc(var(--write-1-start) + 16 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(18) {
  animation-delay: calc(var(--write-1-start) + 17 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(19) {
  animation-delay: calc(var(--write-1-start) + 18 * var(--write-stagger));
}
.hero-tagline__track .hero-write-char:nth-child(20) {
  animation-delay: calc(var(--write-1-start) + 19 * var(--write-stagger));
}

/* Line 2 — We call it the NAPA way! (24 characters), begins after line 1 completes */
.hero-lead__tagline .hero-write-char:nth-child(1) {
  animation-delay: calc(var(--write-2-start) + 0 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(2) {
  animation-delay: calc(var(--write-2-start) + 1 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(3) {
  animation-delay: calc(var(--write-2-start) + 2 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(4) {
  animation-delay: calc(var(--write-2-start) + 3 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(5) {
  animation-delay: calc(var(--write-2-start) + 4 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(6) {
  animation-delay: calc(var(--write-2-start) + 5 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(7) {
  animation-delay: calc(var(--write-2-start) + 6 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(8) {
  animation-delay: calc(var(--write-2-start) + 7 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(9) {
  animation-delay: calc(var(--write-2-start) + 8 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(10) {
  animation-delay: calc(var(--write-2-start) + 9 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(11) {
  animation-delay: calc(var(--write-2-start) + 10 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(12) {
  animation-delay: calc(var(--write-2-start) + 11 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(13) {
  animation-delay: calc(var(--write-2-start) + 12 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(14) {
  animation-delay: calc(var(--write-2-start) + 13 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(15) {
  animation-delay: calc(var(--write-2-start) + 14 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(16) {
  animation-delay: calc(var(--write-2-start) + 15 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(17) {
  animation-delay: calc(var(--write-2-start) + 16 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(18) {
  animation-delay: calc(var(--write-2-start) + 17 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(19) {
  animation-delay: calc(var(--write-2-start) + 18 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(20) {
  animation-delay: calc(var(--write-2-start) + 19 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(21) {
  animation-delay: calc(var(--write-2-start) + 20 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(22) {
  animation-delay: calc(var(--write-2-start) + 21 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(23) {
  animation-delay: calc(var(--write-2-start) + 22 * var(--write-stagger));
}
.hero-lead__tagline .hero-write-char:nth-child(24) {
  animation-delay: calc(var(--write-2-start) + 23 * var(--write-stagger));
}

@media (max-width: 900px) {
  .hero-visual {
    align-items: center;
    text-align: center;
    padding-top: 0.5rem;
  }

  .hero-lung-carousel {
    align-self: center;
  }

  .hero-copy .hero-tagline {
    justify-content: center;
    text-align: center;
  }

  .hero-tagline {
    padding-inline: 0.25rem;
    font-size: clamp(1.85rem, 5vw, 2.55rem);
    letter-spacing: 0.03em;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .hero-copy .hero-tagline {
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0.35rem;
    justify-content: center;
    text-align: center;
    padding-inline: 0.35rem;
  }

  .hero-tagline {
    font-size: clamp(1.65rem, 5.5vw, 2.35rem);
    font-weight: 700;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.45vw, 2.65rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 1.85rem;
  max-width: 22ch;
  letter-spacing: -0.018em;
  color: var(--navy);
  opacity: 1;
  transform: none;
}

.hero-lead {
  margin-top: 0;
  font-size: calc(1.125rem + 1pt);
  line-height: 1.72;
  max-width: 44ch;
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: var(--text-muted);
}

.hero-lead__body {
  display: block;
  opacity: 1;
}

.hero-lead__tagline {
  display: block;
  margin-top: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 39, 68, 0.1);
  font-family: var(--font);
  font-style: italic;
  font-weight: 600;
  font-size: calc(1em + 2pt);
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--hero-subtitle-amber);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

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

/* Sections */
section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.section-label--join-teal {
  color: var(--teal-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-title--wellness .wellness-thick-fullstop {
  font-weight: 900;
  font-size: 1.14em;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  vertical-align: -0.06em;
  -webkit-text-stroke: 0.035em currentColor;
}

.section-intro {
  max-width: 58ch;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.section-outro {
  max-width: 58ch;
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Content sections — shared liquid canvas + ambient orbs */
.section-story,
.section-programmes,
.section-team,
.section-involved,
#about,
#work,
#membership,
#wellness,
#contact {
  position: relative;
  isolation: isolate;
  background: var(--section-bg);
  border-block: 1px solid rgba(226, 232, 240, 0.85);
}

.section-story::before,
.section-programmes::before,
.section-team::before,
.section-involved::before,
#about::before,
#work::before,
#membership::before,
#wellness::before,
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--section-orbs);
}

.section-story .container,
.section-programmes .container,
.section-team .container,
.section-involved .container,
#about .container,
#work .container,
#membership .container,
#wellness .container,
#contact .container {
  position: relative;
  z-index: 1;
}

/* Job openings — light outer band; frosted blue-white board + readable navy/blue type */
.section-jobs {
  position: relative;
  isolation: isolate;
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  background: var(--jobs-board-surface);
  border-block: 1px solid rgba(15, 39, 68, 0.07);
}

.section-jobs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--jobs-board-glow);
}

.section-jobs .container {
  position: relative;
  z-index: 1;
}

.jobs-board {
  border-radius: var(--radius-lg);
  padding: clamp(1.65rem, 4vw, 2.5rem);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(239, 246, 255, 0.92) 42%,
    rgba(224, 242, 254, 0.88) 100%
  );
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 39, 68, 0.05),
    0 32px 72px rgba(15, 39, 68, 0.18);
}

.jobs-board__header {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

.jobs-board__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.jobs-board__title--plain {
  margin: 0;
}

.jobs-board-body {
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.jobs-career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jobs-career-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 48%,
    rgba(239, 246, 255, 0.92) 100%
  );
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-left: 4px solid var(--navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 22px rgba(15, 39, 68, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-career-card--featured {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 22px rgba(15, 39, 68, 0.06),
    0 0 0 1px rgba(249, 115, 22, 0.12);
}

.jobs-career-card:hover {
  border-left-color: var(--navy-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 30px rgba(15, 39, 68, 0.1);
}

.jobs-career-card--featured:hover {
  border-left-color: var(--navy-soft);
}

.jobs-career-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 1;
}

.jobs-career-body {
  min-width: 0;
}

.jobs-career-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.jobs-career-meta {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.jobs-career-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.jobs-career-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.jobs-career-tag--muted {
  background: linear-gradient(180deg, #fb923c 0%, var(--involved-orange) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(180, 83, 9, 0.25);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.jobs-career-arrow {
  font-size: 1.15rem;
  color: rgba(37, 99, 235, 0.65);
  line-height: 1;
}

.jobs-career-card--featured .jobs-career-arrow {
  color: var(--involved-orange);
}

@media (max-width: 540px) {
  .jobs-career-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .jobs-career-arrow {
    grid-column: 2 / -1;
    justify-self: end;
    margin-top: -1.75rem;
  }
}

.section-programmes,
.section-involved {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.section-team {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

/* “What is NAPA?” story — frosted content wells */
.story-main {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow-elevated);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .story-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: stretch;
  }

  .story-aside {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
}

.story-main .section-label {
  margin-bottom: 0.5rem;
}

.story-main .section-title {
  margin-bottom: 1.25rem;
}

/* Logo beside “What is NAPA?” — crisp sizing + ambient glow */
.story-aside-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow-elevated);
}

.story-aside-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(110%, 400px);
  aspect-ratio: 1;
  max-height: 120%;
  background: radial-gradient(
    ellipse 58% 54% at 50% 50%,
    rgba(13, 148, 136, 0.28) 0%,
    rgba(30, 58, 95, 0.1) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.story-logo-lg {
  display: block;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(380px, 100%);
  max-height: min(348px, 43vh);
  object-fit: contain;
  object-position: center center;
  transform: rotate(0deg);
  filter: drop-shadow(0 6px 28px rgba(13, 148, 136, 0.42))
    drop-shadow(0 0 52px rgba(13, 148, 136, 0.22)) drop-shadow(0 2px 16px rgba(15, 39, 68, 0.12));
}

@media (max-width: 899px) {
  .story-aside {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
  }

  .story-layout {
    gap: 1.5rem;
  }

  .story-logo-lg {
    max-width: min(252px, 88vw);
    max-height: min(168px, 36vw);
  }

  .story-main .section-title {
    margin-bottom: 1rem;
  }
}

.story-prose {
  max-width: none;
  color: var(--text);
}

.story-prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.story-prose p:last-child {
  margin-bottom: 0;
}

.story-prose strong {
  color: var(--navy);
  font-weight: 600;
}

.story-prose--stagger {
  --story-reveal-gap: 3s;
  --story-reveal-duration: 0.55s;
}

.story-prose--stagger .story-reveal-line {
  opacity: 0;
  transform: translateY(8px);
  animation: story-reveal-in var(--story-reveal-duration) ease forwards;
}

.story-prose--stagger .story-reveal-line:nth-child(1) {
  animation-delay: calc(var(--story-reveal-gap) * 0);
}

.story-prose--stagger .story-reveal-line:nth-child(2) {
  animation-delay: calc(var(--story-reveal-gap) * 1);
}

.story-prose--stagger .story-reveal-line:nth-child(3) {
  animation-delay: calc(var(--story-reveal-gap) * 2);
}

.story-prose--stagger .story-reveal-line:nth-child(4) {
  animation-delay: calc(var(--story-reveal-gap) * 3);
}

@keyframes story-reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-prose--stagger .story-reveal-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.story-highlights {
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .story-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 2rem;
  }
}

.story-highlights li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.story-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Programmes & activities — tabbed panels (Get involved palette: navy, white, orange accent) */
.programmes-shell--glass {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.65rem);
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge);
  border-left: 4px solid var(--involved-orange);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 24px 56px rgba(15, 39, 68, 0.12);
}

.programmes-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

/* Activities — tabbed panels (navy / white, aligned with Get involved accents) */
.programmes-tabs {
  position: relative;
  margin: 0 0 1.5rem;
  max-width: 100%;
}

.programmes-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.programmes-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: linear-gradient(
    142deg,
    rgba(15, 39, 68, 0.96) 0%,
    rgba(26, 58, 95, 0.94) 42%,
    rgba(15, 39, 68, 0.97) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 12px 36px rgba(15, 39, 68, 0.22);
}

.programmes-tab {
  flex: unset;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  font-weight: 600;
  font-size: clamp(0.68rem, 2.4vw, 0.85rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  text-align: center;
  line-height: 1.2;
}

.programmes-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.programmes-tab__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.programmes-tab__label {
  display: block;
  max-width: 100%;
}

@media (max-width: 719px) {
  .programmes-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .programmes-tab {
    padding: 0.65rem 0.4rem;
    min-height: 72px;
  }

  .programmes-tab__icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }
}

@media (min-width: 720px) {
  .programmes-tablist {
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .programmes-tab {
    padding: 0.65rem 0.5rem;
    font-size: clamp(0.78rem, 1.2vw, 0.92rem);
    border-radius: 999px;
    flex-direction: row;
    gap: 0.45rem;
    min-height: 48px;
  }

  .programmes-tab__icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .programmes-tab__label {
    text-align: left;
  }
}

.programmes-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.programmes-tab:focus-visible {
  outline: 2px solid var(--involved-orange);
  outline-offset: 3px;
  z-index: 1;
}

#programmes-tab-social:checked ~ .programmes-tablist label[for="programmes-tab-social"],
#programmes-tab-sports:checked ~ .programmes-tablist label[for="programmes-tab-sports"],
#programmes-tab-learning:checked ~ .programmes-tablist label[for="programmes-tab-learning"],
#programmes-tab-upcoming:checked ~ .programmes-tablist label[for="programmes-tab-upcoming"] {
  background: #fff;
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(249, 115, 22, 0.35);
}

.programmes-photo-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--involved-orange);
}

.programmes-panel-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  background: var(--glass-inner-panel);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: var(--glass-edge-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 32px rgba(15, 39, 68, 0.07);
}

.programmes-panel {
  display: none;
  animation: programmes-panel-in 0.38s ease;
}

#programmes-tab-social:checked ~ .programmes-panel-wrap .programmes-panel:nth-child(1),
#programmes-tab-sports:checked ~ .programmes-panel-wrap .programmes-panel:nth-child(2),
#programmes-tab-learning:checked ~ .programmes-panel-wrap .programmes-panel:nth-child(3),
#programmes-tab-upcoming:checked ~ .programmes-panel-wrap .programmes-panel:nth-child(4) {
  display: block;
}

@keyframes programmes-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .programmes-panel {
    animation: none !important;
  }
}

.programmes-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.programmes-activity-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  border-bottom: 1px solid rgba(15, 39, 68, 0.07);
}

.programmes-activity-list li:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.programmes-activity-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, #0f766e 100%);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.programmes-activity-link {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  margin: -0.15rem -0.25rem;
  padding: 0.15rem 0.25rem;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.programmes-activity-link:hover {
  color: var(--navy);
  background: rgba(37, 99, 235, 0.09);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.programmes-activity-link:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.65);
  outline-offset: 3px;
}

.programmes-outro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 700;
  font-style: italic;
  color: var(--blue);
}

/* Activity photo gallery (hash target lightbox) */
.programmes-gallery {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.28s step-end;
}

.programmes-gallery:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.28s step-start;
}

.programmes-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, 0.52);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.programmes-gallery__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  margin: 0;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.28s ease;
}

.programmes-gallery:target .programmes-gallery__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.programmes-gallery__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.15rem;
}

.programmes-gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 38ch;
}

.programmes-gallery__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 68, 0.14);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.programmes-gallery__close:hover {
  background: #fff;
  transform: translateY(-1px);
}

.programmes-gallery__close:focus-visible {
  outline: 2px solid var(--involved-orange);
  outline-offset: 2px;
}

.programmes-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.programmes-gallery__grid .programmes-gallery__figure--wide {
  grid-column: 1 / -1;
  max-width: min(720px, 100%);
  justify-self: center;
}

.programmes-gallery__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.12);
  background: rgba(248, 250, 252, 0.9);
  box-shadow:
    0 10px 26px rgba(15, 39, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.programmes-gallery__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

@media (max-width: 560px) {
  .programmes-gallery__grid {
    grid-template-columns: 1fr;
  }

  .programmes-gallery__grid .programmes-gallery__figure--wide {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

body:has(.programmes-gallery:target) {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .programmes-gallery,
  .programmes-gallery:target,
  .programmes-gallery__dialog,
  .programmes-gallery:target .programmes-gallery__dialog {
    transition: none;
  }

  .programmes-gallery__dialog {
    transform: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .programmes-gallery__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 39, 68, 0.78);
  }
}

/* Core committee — directly under Activities (tabs + animated portraits) */
.team-shell--glass {
  border-radius: var(--radius-lg);
  padding: clamp(1.65rem, 4vw, 2.5rem);
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge);
  border-left: 4px solid var(--involved-orange);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 52px rgba(15, 39, 68, 0.11);
}

.team-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.team-intro {
  margin: 0 0 1.35rem;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.team-panel-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: var(--glass-inner-panel);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: var(--glass-edge-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 28px rgba(15, 39, 68, 0.06);
}

/* Scroll-triggered entrance — premium ease, layered motion (see js/main.js) */
.team-grid--animated:not(.team-grid--in-view) .team-member {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.988);
}

.team-grid--animated.team-grid--in-view .team-member {
  animation: team-member-in 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Cascade: relaxed stagger so portraits read one beat apart */
.team-grid--animated.team-grid--in-view .team-member:nth-child(1) {
  animation-delay: 0.1s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(2) {
  animation-delay: 0.165s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(3) {
  animation-delay: 0.23s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(4) {
  animation-delay: 0.295s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(5) {
  animation-delay: 0.36s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(6) {
  animation-delay: 0.425s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(7) {
  animation-delay: 0.49s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(8) {
  animation-delay: 0.555s;
}

@keyframes team-member-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.section-team .team-member .photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 39, 68, 0.12);
  background: linear-gradient(160deg, #e2e8f0 0%, #f8fafc 100%);
  box-shadow:
    0 12px 28px rgba(15, 39, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.team-grid--animated:not(.team-grid--in-view) .team-member .photo {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.032);
}

.team-grid--animated.team-grid--in-view .team-member .photo {
  animation:
    team-photo-reveal 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    team-photo-frame-settle 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.team-grid--animated.team-grid--in-view .team-member:nth-child(1) .photo {
  animation-delay: 0.1s, 0.1s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(2) .photo {
  animation-delay: 0.165s, 0.165s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(3) .photo {
  animation-delay: 0.23s, 0.23s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(4) .photo {
  animation-delay: 0.295s, 0.295s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(5) .photo {
  animation-delay: 0.36s, 0.36s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(6) .photo {
  animation-delay: 0.425s, 0.425s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(7) .photo {
  animation-delay: 0.49s, 0.49s;
}
.team-grid--animated.team-grid--in-view .team-member:nth-child(8) .photo {
  animation-delay: 0.555s, 0.555s;
}

@keyframes team-photo-reveal {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  18% {
    clip-path: inset(0 0 82% 0);
  }
  48% {
    clip-path: inset(0 0 38% 0);
  }
  72% {
    clip-path: inset(0 0 12% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes team-photo-frame-settle {
  from {
    transform: scale(1.032);
  }
  to {
    transform: scale(1);
  }
}

.section-team .team-member .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 42%,
    rgba(15, 39, 68, 0.06) 100%
  );
  mix-blend-mode: soft-light;
  z-index: 1;
}

.section-team .team-member .photo img {
  display: block;
  transform-origin: center center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .team-grid--animated.team-grid--in-view .team-member .photo img {
    animation: team-photo-drift 20s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
  }

  /* Drift begins after each card’s entrance + settle */
  .team-grid--animated.team-grid--in-view .team-member:nth-child(1) .photo img {
    animation-delay: 1.62s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(2) .photo img {
    animation-delay: 1.685s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(3) .photo img {
    animation-delay: 1.75s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(4) .photo img {
    animation-delay: 1.815s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(5) .photo img {
    animation-delay: 1.88s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(6) .photo img {
    animation-delay: 1.945s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(7) .photo img {
    animation-delay: 2.01s;
  }
  .team-grid--animated.team-grid--in-view .team-member:nth-child(8) .photo img {
    animation-delay: 2.075s;
  }
}

@keyframes team-photo-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.018) translate3d(0, -0.55%, 0);
  }
}

.section-team .team-member:hover .photo img {
  transform: scale(1.045) translate3d(0, -0.55%, 0);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .team-grid--animated .team-member {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .team-grid--animated .team-member .photo {
    clip-path: none !important;
    animation: none !important;
  }

  .section-team .team-member .photo img {
    animation: none !important;
  }
}

/* Get involved — partner card + conversation form (liquid glass) */
.section-label--involved {
  color: var(--involved-orange);
  letter-spacing: 0.16em;
}

.involved-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: stretch;
}

@media (min-width: 960px) {
  .involved-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
  }
}

.involved-card--glass {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.65rem);
  background: linear-gradient(
    155deg,
    rgba(15, 39, 68, 0.78) 0%,
    rgba(26, 55, 92, 0.72) 50%,
    rgba(15, 39, 68, 0.8) 100%
  );
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 28px 60px rgba(15, 39, 68, 0.24);
}

.involved-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.involved-card-title-accent {
  color: var(--involved-orange);
}

.involved-partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.involved-partner-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.involved-partner-item:first-of-type {
  padding-top: 0;
}

.involved-partner-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.involved-partner-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.15rem;
}

.involved-partner-head {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.45rem;
}

.involved-partner-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.involved-form-shell--glass {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.65rem);
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 20px 52px rgba(15, 39, 68, 0.09);
}

.involved-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

.involved-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.involved-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.involved-field input,
.involved-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(15, 39, 68, 0.2);
  border-radius: 0;
  padding: 0.55rem 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.involved-field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.involved-field input::placeholder,
.involved-field textarea::placeholder {
  color: rgba(74, 85, 104, 0.55);
}

.involved-field input:focus,
.involved-field textarea:focus {
  outline: none;
  border-bottom-color: rgba(13, 148, 136, 0.65);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 0 rgba(13, 148, 136, 0.45);
}

.involved-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.78rem 1.85rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(180deg, #fb923c 0%, var(--involved-orange) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 2px 0 rgba(180, 83, 9, 0.35),
    0 14px 36px rgba(249, 115, 22, 0.42);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.involved-submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 2px 0 rgba(180, 83, 9, 0.45),
    0 18px 44px rgba(249, 115, 22, 0.48);
}

.involved-submit:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .involved-submit {
    transition: none;
  }
}

/* Social strip — frosted glass band on white */
.social-strip {
  position: relative;
  isolation: isolate;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid rgba(15, 39, 68, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 -2px 24px rgba(15, 39, 68, 0.03);
}

.social-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.social-strip .contact-social-icons {
  flex-shrink: 0;
  margin: 0;
  justify-content: center;
}

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: var(--glass-shadow-elevated);
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-wide {
  grid-column: 1 / -1;
}

/* Who we are — four glass “tabs” in one row (jobs palette blue) */
.card-grid--four {
  display: grid;
  gap: clamp(0.75rem, 1.8vw, 1.05rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .card-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .card-grid--four {
    grid-template-columns: 1fr;
  }
}

#about .card--about-value {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(224, 231, 255, 0.45) 38%,
    rgba(239, 246, 255, 0.9) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 12px 40px rgba(37, 99, 235, 0.14);
}

#about .card--about-value::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(37, 99, 235, 0.06) 0%,
    transparent 45%,
    rgba(13, 148, 136, 0.04) 100%
  );
}

#about .card--about-value__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(224, 231, 255, 0.35);
}

#about .card--about-value__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#about .card--about-value--modern .card--about-value__media img {
  object-position: 58% center;
}

#about .card--about-value__body {
  position: relative;
  padding: 1.15rem 1.35rem 1.25rem;
}

#about .card--about-value h3 {
  position: relative;
  color: var(--blue);
  font-weight: 700;
}

#about .card--about-value p {
  position: relative;
}

@media (min-width: 801px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Full-bleed imagery */
.visual-band {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 0;
  background-size: cover;
  background-position: center;
}

.visual-band--quote {
  background-image: url("https://images.unsplash.com/photo-1758691463203-cce9d415b2b5?auto=format&fit=crop&w=2400&q=85");
}

.visual-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 39, 68, 0.88), rgba(15, 39, 68, 0.35));
}

.visual-band .container {
  position: relative;
  z-index: 1;
}

.visual-band blockquote {
  margin: 0;
  max-width: 46ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(15, 39, 68, 0.25) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 44px rgba(0, 0, 0, 0.18);
}

.visual-band cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: normal;
  opacity: 0.85;
}

/* Pillars horizontal */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--glass-inner-panel);
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  border: var(--glass-edge-soft);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(15, 39, 68, 0.06);
}

.pillar__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.pillar:hover .pillar__media img {
  transform: scale(1.04);
}

.pillar__body {
  padding: 1.5rem 1.25rem;
  flex: 1;
}

.pillar h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .pillar__media img {
    transition: none;
  }

  .pillar:hover .pillar__media img {
    transform: none;
  }
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.promise {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.35vw, 1.22rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--blue);
  box-shadow: var(--glass-shadow-elevated);
}

/* Opportunity mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .mosaic {
    grid-template-columns: 1fr;
  }
}

.mosaic-item {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge-soft);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow-elevated);
}

.mosaic-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--navy);
  position: relative;
  z-index: 1;
}

.mosaic-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Membership mosaic — same navy glass as “Partner with NAPA” */
#membership .mosaic-item {
  background: linear-gradient(
    155deg,
    rgba(15, 39, 68, 0.78) 0%,
    rgba(26, 55, 92, 0.72) 50%,
    rgba(15, 39, 68, 0.8) 100%
  );
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 28px 60px rgba(15, 39, 68, 0.24);
}

#membership .mosaic-item h3 {
  color: #fff;
}

#membership .mosaic-item p {
  color: rgba(226, 232, 240, 0.88);
}

/* Wellness row */
.wellness-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .wellness-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .wellness-row {
    grid-template-columns: 1fr;
  }
}

.wellness-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: var(--radius);
  border: var(--glass-edge-soft);
  border-top: 3px solid var(--teal);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--glass-shadow-elevated);
}

.wellness-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.wellness-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
}

.wellness-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.wellness-card:hover .wellness-card__media img {
  transform: scale(1.04);
}

.wellness-card__body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wellness-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.wellness-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .wellness-card__media img {
    transition: none;
  }

  .wellness-card:hover .wellness-card__media img {
    transform: none;
  }
}

/* Join CTA */
.join {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(15, 39, 68, 0.88) 0%,
    rgba(19, 78, 74, 0.86) 100%
  );
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 45% at 15% 20%, rgba(249, 115, 22, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(13, 148, 136, 0.1), transparent 50%);
}

.join .container {
  position: relative;
  z-index: 1;
}

.join .section-title {
  color: #fff;
}

.join .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

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

@media (max-width: 800px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}

.join-pillar {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.join-pillar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.join-pillar p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

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

.join .btn-primary {
  background: var(--teal);
  color: #fff;
}

.join .btn-primary:hover {
  background: #0f766e;
}

.join .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-member {
  text-align: center;
}

.team-member .photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  background: var(--blue-muted);
}

.team-member .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 16rem;
  margin-inline: auto;
}

.team-member .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}

.team-member .role {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-edge-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--glass-shadow-elevated);
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list strong {
  color: var(--navy);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.reg {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-social-note {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.contact-social-icons li {
  margin: 0;
}

.social-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 12px rgba(15, 39, 68, 0.14);
  text-decoration: none;
  color: #fff;
  touch-action: manipulation;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.social-contact-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.2);
}

.social-contact-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.social-contact-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-contact-btn--whatsapp {
  background: #25d366;
}

.social-contact-btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-contact-btn--email {
  background: var(--navy-soft);
}

.social-contact-btn--phone {
  background: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  .social-contact-btn:hover {
    transform: none;
  }
}

/* Footer */
.site-footer__org-name {
  display: block;
  color: #fff;
  font-weight: 700;
}

.site-footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgba(15, 39, 68, 0.94) 0%,
    rgba(19, 78, 74, 0.82) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-back-top {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-back-top__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  touch-action: manipulation;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.footer-back-top__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.footer-back-top__btn:focus-visible {
  outline: 2px solid rgba(204, 251, 241, 0.95);
  outline-offset: 3px;
}

.site-footer__credit {
  margin: 1.35rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .footer-back-top__btn:hover {
    transform: none;
  }
}

.site-footer a {
  color: #fff;
}

.site-footer .logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .logo-row img {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* Flat fallbacks when backdrop-filter is unavailable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .story-main,
  .story-aside-inner,
  .card,
  .pillar,
  .mosaic-item,
  .wellness-card,
  .contact-card,
  .promise,
  .programmes-shell--glass,
  .team-shell--glass,
  .involved-form-shell--glass,
  .programmes-panel-wrap,
  .team-panel-wrap,
  .social-strip,
  .site-header,
  .nav-toggle,
  .join,
  .join-pillar,
  .site-footer,
  .social-contact-btn,
  .visual-band blockquote,
  .involved-field input,
  .involved-field textarea,
  .jobs-board,
  .jobs-career-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: rgba(248, 250, 252, 0.97);
  }

  .story-main,
  .story-aside-inner,
  .card,
  .pillar,
  .mosaic-item,
  .wellness-card,
  .contact-card,
  .promise,
  .programmes-shell--glass,
  .team-shell--glass,
  .involved-form-shell--glass,
  .programmes-panel-wrap,
  .team-panel-wrap,
  .jobs-board,
  .jobs-career-card {
    background: var(--surface);
  }

  .jobs-board {
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 100%);
  }

  .jobs-career-card {
    background: var(--surface);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid var(--navy);
  }

  #about .card--about-value {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  }

  .involved-card--glass {
    background: var(--navy);
  }

  #membership .mosaic-item {
    background: var(--navy);
  }

  .join {
    background: linear-gradient(135deg, var(--navy) 0%, #134e4a 100%);
  }

  .join::before {
    opacity: 0;
  }

  .site-footer {
    background: var(--navy);
  }

  .visual-band blockquote {
    background: rgba(15, 39, 68, 0.75);
  }

  .social-strip {
    background: var(--surface);
  }

  .involved-field input,
  .involved-field textarea {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Utilities */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

main#top:focus:not(:focus-visible) {
  outline: none;
}

main#top:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: visible;
  }

  main {
    overflow-x: visible;
  }

  .container {
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .hero {
    overflow-x: visible;
    padding-top: clamp(2.35rem, 7vw, 4.25rem);
    padding-bottom: clamp(3.25rem, 10vw, 5.25rem);
  }

  .hero-copy {
    transform: translateY(-0.35rem);
  }

  .visual-band {
    min-height: min(48vh, 340px);
    padding: 2rem 0;
    background-position: center center;
  }

  .contact-social-icons {
    justify-content: center;
    gap: 0.75rem;
  }

  .programmes-tablist {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero .container {
    padding-inline: max(1.35rem, env(safe-area-inset-left, 0px)) max(1.35rem, env(safe-area-inset-right, 0px));
  }

  .hero-tagline {
    font-size: clamp(1.55rem, 5.8vw, 2.25rem);
    letter-spacing: 0.028em;
    padding-bottom: 0.36em;
    font-weight: 700;
  }

  .hero-tagline__track {
    transform: none;
  }

  section {
    padding: clamp(2.75rem, 9vw, 4rem) 0;
  }

  .btn {
    min-height: 44px;
    padding-inline: 1.15rem;
  }

  .programmes-activity-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    margin: -0.35rem -0.5rem;
    box-sizing: border-box;
  }

  .social-contact-btn {
    width: 46px;
    height: 46px;
  }

  .social-contact-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .hero .container {
    padding-inline: max(1.15rem, env(safe-area-inset-left, 0px)) max(1.15rem, env(safe-area-inset-right, 0px));
  }

  .hero-tagline {
    font-size: clamp(1.45rem, 5.5vw, 2.05rem);
    letter-spacing: 0.026em;
    font-weight: 700;
  }

  .hero-tagline__track {
    transform: none;
  }
}
