/* ============================================================
   Chennai Blue Vision Foundation — Chennai Blue Vision 2030
   Design tokens
   ============================================================ */
:root {
  --ink: #071A3D;
  --river-deep: #052D9A;
  --river: #043CCF;
  --river-bright: #0490E2;
  --marigold: #2F9BFF;
  --marigold-dark: #1878D1;
  --silt: #4C76B8;
  --paper: #F1F7FF;
  --paper-alt: #E4F0FC;
  --card: #FFFFFF;
  --stone: #C9DAEF;
  --text: #10233F;
  --text-soft: #526985;
  --white: #FFFFFF;
  --line: #C9DAEF;

  --font-display: 'Bricolage Grotesque', 'Work Sans', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--river);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--marigold);
}
.eyebrow.on-dark { color: var(--river-bright); }
.eyebrow.on-dark::before { background: var(--marigold); }

.lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 60ch;
}
.text-soft { color: var(--text-soft); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 3px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { background: transparent; color: var(--river-deep); border-color: var(--river-deep); }
.btn-outline:hover { background: var(--river-deep); color: var(--white); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  color: var(--white);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.5s cubic-bezier(.22, 1, .36, 1),
              box-shadow 0.5s cubic-bezier(.22, 1, .36, 1),
              border-color 0.5s cubic-bezier(.22, 1, .36, 1),
              backdrop-filter 0.5s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 26, 61, 0.55) 0%, rgba(7, 26, 61, 0.12) 62%, transparent 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 26, 61, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 14px 40px rgba(4, 18, 45, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  max-width: none;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.45s cubic-bezier(.22, 1, .36, 1);
}
.site-header nav {
  min-width: 0;
  justify-self: stretch;
}
.site-header.is-scrolled .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
  padding-right: 20px;
}
.brand-mark {
  width: 168px;
  height: 95px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  transition: height 0.45s cubic-bezier(.22, 1, .36, 1), width 0.45s cubic-bezier(.22, 1, .36, 1);
}
.brand-name {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
}
.nav-brand-title {
  flex: 1 0 100%;
  margin: 0 0 2px;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-links a i { transition: transform .2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(4, 144, 226, 0.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14);
}
.nav-links a:hover i,
.nav-links a:focus-visible i { transform: translateY(-1px); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active {
  color: var(--river-bright);
  background: rgba(4, 144, 226, 0.2);
}
.nav-cta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: auto; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer;
}

/* Desktop: logo + title/menu as one left-aligned cluster */
@media (min-width: 1101px) {
  .site-header .wrap {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 16px;
    min-height: 127px;
  }
  .site-header .header-cluster {
    display: flex;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 64px);
    flex: none;
    z-index: 3;
  }
  .site-header .brand {
    padding-right: 0;
    flex: none;
  }
  .site-header nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: max-content;
    max-width: 100%;
  }
  .site-header .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
  }
  .site-header .nav-brand-title {
    display: block;
    flex: none;
    width: auto;
    margin: 0 0 2px;
    padding-left: 11px;
    text-align: left;
    line-height: 1.15;
  }
  .site-header .nav-cta {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }
}

@media (max-width: 1100px) {
  .header-cluster { display: contents; }
  .site-header .wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    column-gap: 10px;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
    position: relative;
  }
  .nav-cta {
    position: static;
    top: auto;
    right: auto;
  }
  .brand { padding-right: 0; flex: 1; gap: 8px; min-width: 0; }
  .brand-mark { width: 88px; height: 50px; }
  .site-header.is-scrolled .brand-mark { width: 76px; height: 44px; }
  .brand-name {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 168px);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
  }
  .nav-cta { width: auto; gap: 10px; }
  .theme-toggle { width: 40px; height: 40px; min-width: 40px; padding: 0; font-size: 1.05rem; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    background: #071A3D;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 18px 22px;
    gap: 0;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 24px rgba(0,0,0,0.25);
    white-space: normal;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-brand-title { display: none; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    color: #f4f8ff;
    padding: 12px 12px;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 4px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(4, 144, 226, 0.28);
    color: #fff;
    box-shadow: none;
  }
  .nav-links a.active {
    color: var(--river-bright);
    background: rgba(4, 144, 226, 0.2);
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}

/* ---------------- Hero / slider ---------------- */
.hero {
  position: relative;
  width: 100%;
  color: var(--white);
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #071A3D;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
}
.hero-slide {
  display: none;
  position: relative;
  width: 100%;
}
.hero-slide.is-active {
  display: block;
}
.hero-slide-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.hero-slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--ink);
}
.hero-slide-first { background: var(--ink); }
.hero-slide-govt { background: #fff; }
.hero-slide-rendering { background: #000; }
.hero-carousel-prev,
.hero-carousel-next {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.28s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-carousel-prev { left: 22px; }
.hero-carousel-next { right: 22px; }
.hero-carousel:hover .hero-carousel-prev,
.hero-carousel:hover .hero-carousel-next,
.hero-carousel:focus-within .hero-carousel-prev,
.hero-carousel:focus-within .hero-carousel-next {
  opacity: 1;
  pointer-events: auto;
}
.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-carousel-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-carousel-next:hover { transform: translateY(-50%) translateX(2px); }

.page-hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--river-deep) 0%, var(--ink) 62%);
  color: var(--white);
  padding: 140px 0 48px;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.page-hero .lede { color: rgba(255,255,255,0.82); }
.page-hero .wrap { position: relative; z-index: 2; }

.video-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.video-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,26,61,0.55) 0%, rgba(7,26,61,0.72) 55%, var(--ink) 100%);
}
.page-hero .video-scrim { background: linear-gradient(160deg, rgba(7,26,61,0.55) 0%, rgba(5,45,154,0.68) 55%, rgba(7,26,61,0.88) 100%); }
.cta-banner .video-bg { object-position: center 60%; }

/* ---------------- Sections ---------------- */
section { padding: 0px 0; }
.section-tight { padding: 32px 0; }
.team-section,
.pledges-section,
.pledge-close { padding: 32px 0; }
main > section:not(.hero):not(.page-hero):not(.overview-hero):not(.pledge-hero):not(.team-hero) {
  padding-top: 32px;
  padding-bottom: 32px;
}
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .text-soft { color: rgba(255,255,255,0.68); }
.section-head { max-width: 62ch; margin-bottom: 24px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* wave divider */
.wave { display: block; width: 100%; height: 46px; }
.wave-paper-to-alt { fill: var(--paper-alt); }
.wave-alt-to-paper { fill: var(--paper); }
.wave-ink-to-paper { fill: var(--paper); }
.wave-paper-to-ink { fill: var(--ink); }

/* ---------------- Stats ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stat { background: var(--ink); padding: 36px 28px; }

.has-wave-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(4, 144, 226, 0.28) 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 100%, rgba(5, 45, 154, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, #04122c 0%, #071A3D 45%, #052D9A 100%);
}
.has-wave-bg .wrap { position: relative; z-index: 1; }
.has-wave-bg .stat { background: rgba(7, 26, 61, 0.42); }
.has-wave-bg .stats {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wave-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wave-bg-bob {
  position: absolute;
  left: 0;
  width: 100%;
  height: 62%;
  bottom: -8%;
}
.wave-bg-bob-slow {
  top: -10%;
  bottom: auto;
  height: 46%;
  animation: wave-bob 5.5s ease-in-out infinite;
}
.wave-bg-bob-back { animation: wave-bob 6.5s ease-in-out infinite; }
.wave-bg-bob-mid { height: 52%; bottom: -6%; animation: wave-bob 4.8s ease-in-out infinite 0.4s reverse; }
.wave-bg-bob-front { height: 42%; bottom: -10%; animation: wave-bob 3.8s ease-in-out infinite 0.2s; }
.wave-bg-track {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  will-change: transform;
}
.wave-bg-track svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wave-bg-track svg + svg { display: none; }
.wave-bg-top { fill: rgba(4, 144, 226, 0.22); animation: wave-scroll 14s linear infinite reverse; }
.wave-bg-back { fill: rgba(4, 144, 226, 0.28); animation: wave-scroll 18s linear infinite; }
.wave-bg-mid { fill: rgba(47, 155, 255, 0.22); animation: wave-scroll 11s linear infinite reverse; }
.wave-bg-front { fill: rgba(241, 247, 255, 0.14); animation: wave-scroll 7.5s linear infinite; }
@keyframes wave-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes wave-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-bg-bob,
  .wave-bg-track { animation: none; }
}
@media (max-width: 700px) {
  .has-wave-bg .wave-bg-bob,
  .water-fx .wave-bg-bob {
    height: 58px;
    bottom: -6px;
  }
  .has-wave-bg .wave-bg-bob-slow,
  .water-fx .wave-bg-bob-slow {
    height: 44px;
    top: -8px;
    bottom: auto;
  }
  .has-wave-bg .wave-bg-bob-mid,
  .water-fx .wave-bg-bob-mid { height: 52px; bottom: -4px; }
  .has-wave-bg .wave-bg-bob-front,
  .water-fx .wave-bg-bob-front { height: 40px; bottom: -8px; }
  .has-wave-bg .wave-bg-bob-back,
  .water-fx .wave-bg-bob-back { height: 64px; }
  .has-wave-bg,
  .site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .has-wave-bg .wave-bg,
  .water-fx .wave-bg {
    left: 0;
    right: 0;
    width: 100%;
  }
  .has-wave-bg .wave-bg-track,
  .water-fx .wave-bg-track {
    display: flex;
    width: 200%;
    left: 0;
    right: auto;
  }
  .has-wave-bg .wave-bg-track svg,
  .water-fx .wave-bg-track svg {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
  }
}
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--river-bright); }
.stat span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------------- Pillars / cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--stone);
  border-radius: 14px;
  padding: 20px 18px;
}
.card .km { font-family: var(--font-mono); font-size: 11.5px; color: var(--river); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); margin: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--river-deep); color: var(--river-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ---------------- Split feature ---------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: 16px; }
.feature-media figcaption { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-soft); margin-top: 10px; letter-spacing: 0.02em; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
}

/* ---------------- Timeline (plan page) ---------------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--silt), var(--river-bright));
}
.tl-item { position: relative; padding: 0 0 24px 46px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--river);
}
.tl-item .km { font-family: var(--font-mono); font-size: 12px; color: var(--river); letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-item p { color: var(--text-soft); margin: 0; max-width: 62ch; }

/* ---------------- Model / pull quote ---------------- */
.model-box {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(4,144,226,0.10), rgba(255,255,255,0.02));
}
.model-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid .g-item { grid-column: span 1; }
.gallery-grid .g-wide { grid-column: span 2; }
.g-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink); }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s ease; }
.g-wide img { aspect-ratio: 16/9; }
.g-item:hover img { transform: scale(1.045); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  background: linear-gradient(0deg, rgba(7,26,61,0.86), transparent);
  color: var(--white); font-size: 0.85rem;
}
.g-cap .tag { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--river-bright); margin-bottom: 3px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .g-wide { grid-column: span 1; } }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  color: var(--white);
  padding: 40px 28px;
  text-align: center;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-banner .scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(7,26,61,0.92), rgba(4,60,207,0.75)); z-index: 1; }
.cta-banner .inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------- Ways to help / contact ---------------- */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}
.contact-layout > * { min-width: 0; }
.contact-layout .grid-2 { min-width: 0; }
.contact-layout .field input,
.contact-layout .field select,
.contact-layout .field textarea {
  max-width: 100%;
  min-width: 0;
}
.info-card { min-width: 0; }
.info-card .row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: flex-start;
}
.info-card .row > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-layout .grid-2 { grid-template-columns: 1fr; }
  .info-card { padding: 22px; }
}

@media (max-width: 560px) {
  .contact-layout { gap: 18px; }
  .info-card { padding: 18px; }
  .info-card .row {
    flex-direction: column;
    gap: 4px;
  }
  .info-card .row span.label { min-width: 0; }
}
.contact-lead { margin: 0 0 20px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 9px;
  border: 1px solid var(--stone); background: var(--card);
  font-family: var(--font-body); font-size: 0.96rem; color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 8px; }
.form-success { display: none; background: var(--river-deep); color: var(--white); padding: 16px 18px; border-radius: 10px; margin-top: 16px; font-size: 0.92rem; }
.form-success.show { display: block; }

.info-card { background: var(--river-deep); color: var(--white); border-radius: 16px; padding: 32px; }
.info-card h3 { font-size: 1.1rem; }
.info-card .row:first-of-type { border-top: none; }
.info-card .row span.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--river-bright); min-width: 84px; flex: none; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 24px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(4, 144, 226, 0.22) 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 100%, rgba(5, 45, 154, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #04122c 0%, #071A3D 48%, #052D9A 100%);
}
.site-footer > .wrap { position: relative; z-index: 2; }
.footer-fx,
.header-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.footer-fx .wave-bg,
.header-fx .wave-bg { z-index: 0; }
.header-fx .wave-bg-bob { height: 78%; bottom: -18%; }
.header-fx .wave-bg-bob-slow { height: 52%; top: -22%; }
.header-fx .wave-bg-bob-mid { height: 64%; bottom: -14%; }
.header-fx .wave-bg-bob-front { height: 50%; bottom: -20%; }
.water-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.water-rain span {
  position: absolute;
  top: -12%;
  width: 2px;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(190, 228, 255, 0.9));
  animation: footer-rain linear infinite;
}
.header-fx .water-rain span { animation-name: header-rain; }
@keyframes footer-rain {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: 0.85; }
  100% { transform: translate3d(10px, 28rem, 0); opacity: 0; }
}
@keyframes header-rain {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translate3d(6px, 120px, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .water-rain { display: none; }
}
.footer-brand-mark { height: 50px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.25;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--river-bright);
  margin: 0 0 12px;
}
.footer-blurb {
  max-width: 32ch;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1.2fr; gap: 34px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--river-bright); }
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-contact-block a,
.footer-contact-block span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}
.footer-contact-block i,
.footer-address i {
  width: 1em;
  margin-top: 0.22em;
  color: var(--river-bright);
  flex: none;
}
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
}
.footer-social:hover {
  color: #fff;
  background: rgba(4, 144, 226, 0.32);
  border-color: rgba(255,255,255,0.4);
}
.footer-bottom {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}
.footer-bottom a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hero-copy {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 32px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 26, 61, 0.5) 28%, rgba(7, 26, 61, 0.94) 100%);
  color: #fff;
  pointer-events: none;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  max-width: 16ch;
  margin: 0 0 10px;
}
.hero-copy .lede {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}
.breadcrumbs {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumbs a { text-decoration: none; }
.faq-list { max-width: 760px; display: grid; gap: 18px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.faq-item h2 { font-size: 1.22rem; margin-bottom: 8px; }
.video-hero-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 45, 154, 0.9);
  cursor: pointer;
  font-size: 1.2rem;
}
.page-hero .video-hero-play {
  top: auto;
  bottom: 72px;
  transform: translateX(-50%);
}
.video-slider.is-playing .video-hero-play { display: none; }
.cta-banner { cursor: pointer; }
.cta-banner .video-hero-play {
  top: auto;
  left: 18px;
  bottom: 18px;
  transform: none;
  z-index: 3;
}
.cta-banner .video-bg[poster] { background-size: cover; }

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

.ai-note {
  max-width: 920px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 4px solid var(--river-bright);
  background: rgba(4, 144, 226, 0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.news-article {
  max-width: 760px;
}
.news-article time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--river);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-article p { color: var(--text-soft); }

.form-error {
  display: none;
  margin-top: 12px;
  color: #9b1c1c;
  font-size: 0.92rem;
}
.form-error.show { display: block; }

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(4,60,207,0.12); color: var(--river-deep); border: 1px solid rgba(4,60,207,0.30);
}


/* User video slider + video gallery */
.video-slider { position: absolute; inset: 0; overflow: hidden; }
.video-slides { position: absolute; inset: 0; }
.video-slide { opacity: 0; transition: opacity .6s ease; z-index: 0; }
.video-slide.is-active { opacity: 1; z-index: 1; }
.video-slider .video-scrim { z-index: 2; }
.video-slider-controls { position: absolute; z-index: 4; left: 50%; bottom: 24px; transform: translateX(-50%); display:flex; align-items:center; gap:12px; padding:8px 12px; border:1px solid rgba(255,255,255,.22); border-radius:999px; background:rgba(5,20,48,.42); backdrop-filter:blur(8px); }
.video-slider-controls button { border:0; color:#fff; background:transparent; cursor:pointer; }
.video-prev, .video-next { width:34px; height:34px; border-radius:50%; font-size:1.1rem; }
.video-dots { display:flex; gap:7px; align-items:center; }
.video-dot { width:9px; height:9px; padding:0; border-radius:50%; background:rgba(255,255,255,.42) !important; }
.video-dot.is-active { width:24px; border-radius:99px; background:#fff !important; }
.g-video-item { position:relative; overflow:hidden; }
.g-video-item > video { width:100%; height:100%; min-height:240px; object-fit:cover; display:block; }
.video-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:56px; height:56px; display:grid; place-items:center; border-radius:50%; color:#fff; background:rgba(5,45,154,.88); box-shadow:0 8px 30px rgba(0,0,0,.25); font-size:1.15rem; pointer-events:none; }
#lightbox-video { display:none; max-width:min(92vw,1100px); max-height:78vh; border-radius:12px; }
@media (max-width:700px) { .video-slider-controls { bottom:16px; } .g-video-item > video { min-height:200px; } }

@media (max-width: 700px) {
  .hero-carousel-prev,
  .hero-carousel-next { display: none; }
}

/* Homepage hero: one image at a time, fixed frame, no vertical stacking */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(420px, 56.25vw, 760px);
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}
.hero-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide,
.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide-image::before {
  content: "";
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: .55;
}
.hero-slide-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.hero-slide-first { background: #071A3D; background-image: url("../images/brand/chennai-blue-vision-hero.jpg"); }
.hero-slide-govt { background: #071A3D; background-image: url("../images/govt-tn-cooum-revival-poster.jpg"); }
.hero-slide-rendering { background: #000; }
.hero-slide-rendering::before { display: none; }
.hero-slide-first::before { background-image: url("../images/brand/chennai-blue-vision-hero.jpg"); }
.hero-slide-govt::before { background-image: url("../images/govt-tn-cooum-revival-poster.jpg"); }
.hero-carousel-prev,
.hero-carousel-next {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.28s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-carousel-prev { left: 22px; }
.hero-carousel-next { right: 22px; }
.hero-carousel:hover .hero-carousel-prev,
.hero-carousel:hover .hero-carousel-next,
.hero-carousel:focus-within .hero-carousel-prev,
.hero-carousel:focus-within .hero-carousel-next {
  opacity: 1;
  pointer-events: auto;
}
.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-carousel-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-carousel-next:hover { transform: translateY(-50%) translateX(2px); }
@media (hover: none) {
  .hero-carousel-prev,
  .hero-carousel-next {
    opacity: 0.75;
    pointer-events: auto;
  }
}

/* Interior banner text — match Future Plan page-hero */
.page-hero .wrap,
.overview-hero .wrap,
.pledge-hero .wrap,
.team-hero .wrap {
  text-align: left;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.page-hero h1,
.overview-hero h1,
.pledge-hero h1,
.team-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem) !important;
  font-weight: 600;
  line-height: 1.06 !important;
  letter-spacing: -0.01em;
  max-width: 22ch !important;
  margin: 0 0 0.4em !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left;
  color: #fff;
}
.page-hero .lede,
.overview-hero .lede,
.overview-hero .overview-intro,
.pledge-hero .lede,
.pledge-hero p,
.team-hero .lede {
  font-family: var(--font-body);
  font-size: 1.15rem !important;
  line-height: 1.65;
  max-width: 60ch !important;
  margin: 0;
  text-align: left;
  color: rgba(255,255,255,0.82) !important;
}
.page-hero .eyebrow,
.overview-hero .eyebrow,
.pledge-hero .eyebrow,
.team-hero .eyebrow,
.overview-hero .overview-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--river-bright);
  margin-bottom: 14px;
  text-align: left;
}
.section-head {
  text-align: left;
}
.section-head.center { text-align: center; }

@media (max-width: 700px) {
  .hero {
    padding-top: 74px;
    background: #000;
  }
  .hero-carousel {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    background: #000;
  }
  .hero-carousel-track {
    position: relative;
    inset: auto;
    height: auto;
  }
  .hero-slide,
  .hero-slide-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: none;
    opacity: 1;
    visibility: visible;
    aspect-ratio: auto;
  }
  .hero-carousel .hero-slide:first-child {
    display: block;
  }
  .hero-slide-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-slide-image::before {
    display: none;
  }
  .hero-carousel-prev,
  .hero-carousel-next { display: none; }
  .hero-carousel .hero-slide:not(:first-child) { display: none; }
}


/* Uploaded community gallery images */
.gallery-grid .g-item img, .gallery-grid .g-item > video { width:100%; aspect-ratio: 4 / 3; object-fit:cover; display:block; }
.gallery-grid .g-item { overflow:hidden; }
.gallery-grid .g-cap { min-height:64px; }
@media (max-width: 700px){ .gallery-grid .g-item img, .gallery-grid .g-item > video { aspect-ratio: 4 / 3; } }


/* Shared interior surfaces (also used by Benefits, which has no page-local CSS) */
.tamil { font-family: "Noto Sans Tamil", "Latha", "Nirmala UI", "Tamil Sangam MN", sans-serif; }
.overview-hero,
.pledge-hero,
.team-hero {
  background: linear-gradient(135deg, #062b70, #0757b8 58%, #0ba6d8);
  color: #fff;
  padding: 140px 0 48px;
  position: relative;
  overflow: hidden;
}
.overview-hero h1,
.pledge-hero h1,
.team-hero h1 { color: #fff; }
.overview-hero .lede,
.pledge-hero .lede,
.team-hero .lede,
.overview-hero .overview-intro { color: rgba(255,255,255,.9); }
.overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--river);
  font-weight: 600;
}
.overview-hero .overview-kicker { color: #9fd8ff; }
.overview-section { padding: 32px 0; color: var(--text); }
.overview-section.alt { background: var(--paper-alt); }
.overview-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 6px 0 10px; color: var(--text); }
.overview-section h3 { font-size: 1.22rem; color: var(--text); margin: 0 0 6px; }
.overview-intro { font-size: 1.08rem; max-width: 920px; color: var(--text-soft); }
.overview-card,
.benefit,
.pledge-card,
.team-card {
  background: var(--card);
  border: 1px solid rgba(6,43,112,.12);
  color: var(--text);
}
.overview-card strong,
.pledge-card strong,
.pledge-card h2,
.team-card h2 { color: var(--text); }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.benefit { padding: 16px; border-radius: 14px; }
.benefit p { color: var(--text-soft); }
.phase { border-left: 5px solid #0b8fce; padding: 2px 0 2px 18px; margin: 16px 0; }
.phase h3 { font-size: 1.35rem; margin-bottom: 4px; }
.phase .phase-time { font-family: var(--font-mono); color: #1687c1; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

/* Dark / light theme */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(7,26,61,.22);
  background: transparent;
  color: var(--ink);
  font: 600 1.15rem/1 var(--font-body);
  cursor: pointer;
  transition: all .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); background: rgba(4,60,207,.08); }
.site-header .theme-toggle { color: #fff; border-color: rgba(255,255,255,.32); }
.site-header .theme-toggle:hover { background: rgba(255,255,255,.1); }

html.dark-mode {
  --paper: #07111f;
  --paper-alt: #0c1b2d;
  --card: #102238;
  --stone: #3a5878;
  --line: #3a5878;
  --text: #eaf3ff;
  --text-soft: #b7c8dd;
  /* --ink and --white stay navy / white so footers, heroes and on-dark type keep contrast */
}
html.dark-mode body { background: var(--paper); color: var(--text); }
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4 { color: var(--text); }
html.dark-mode .lede,
html.dark-mode .text-soft { color: var(--text-soft); }

html.dark-mode .site-header { background: transparent; border-bottom-color: transparent; }
html.dark-mode .site-header.is-scrolled { background: rgba(7,17,31,.82); border-bottom-color: rgba(255,255,255,.1); }
html.dark-mode .theme-toggle { color: #fff; border-color: rgba(255,255,255,.28); }
html.dark-mode .theme-toggle:hover { background: rgba(255,255,255,.08); }
html.dark-mode .nav-links a { color: #dce8f7; }
html.dark-mode .nav-links a:hover,
html.dark-mode .nav-links a:focus-visible { color: #fff; }
html.dark-mode .nav-links a.active { color: var(--river-bright); }

html.dark-mode .section-alt,
html.dark-mode .overview-section.alt,
html.dark-mode .pledges-section { background: var(--paper-alt); }
html.dark-mode .card,
html.dark-mode .overview-card,
html.dark-mode .benefit,
html.dark-mode .pledge-card,
html.dark-mode .team-card,
html.dark-mode .team-note,
html.dark-mode .future-card,
html.dark-mode .future-video {
  background: var(--card);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
  box-shadow: none;
}
html.dark-mode .card h3,
html.dark-mode .overview-section h2,
html.dark-mode .overview-section h3,
html.dark-mode .overview-card strong,
html.dark-mode .benefit h3,
html.dark-mode .pledge-card h2,
html.dark-mode .pledge-card strong,
html.dark-mode .team-card h2,
html.dark-mode .future-caption h3 { color: var(--text); }
html.dark-mode .card p,
html.dark-mode .benefit p,
html.dark-mode .overview-intro,
html.dark-mode .pledge-card p,
html.dark-mode .team-intro,
html.dark-mode .team-card p,
html.dark-mode .team-note,
html.dark-mode .future-caption p,
html.dark-mode .future-note { color: var(--text-soft); }

html.dark-mode .btn-outline { color: var(--river-bright); border-color: var(--river-bright); }
html.dark-mode .btn-outline:hover { background: var(--river-bright); color: #071A3D; }
html.dark-mode .btn-primary { color: #071A3D; }
html.dark-mode .tag-pill { color: #d6ecff; background: rgba(4,144,226,.18); border-color: rgba(4,144,226,.4); }

html.dark-mode .field input,
html.dark-mode .field select,
html.dark-mode .field textarea {
  color: var(--text);
  background: var(--card);
  border-color: var(--stone);
}

/* Keep type on navy / video / gradient surfaces white in both themes */
html.dark-mode .page-hero,
html.dark-mode .page-hero h1,
html.dark-mode .overview-hero,
html.dark-mode .overview-hero h1,
html.dark-mode .pledge-hero,
html.dark-mode .pledge-hero h1,
html.dark-mode .team-hero,
html.dark-mode .team-hero h1,
html.dark-mode .section-dark,
html.dark-mode .section-dark h2,
html.dark-mode .section-dark h3,
html.dark-mode .cta-banner,
html.dark-mode .cta-banner h2,
html.dark-mode .site-footer,
html.dark-mode .site-footer h4,
html.dark-mode .footer-brand-name,
html.dark-mode .info-card,
html.dark-mode .info-card h3,
html.dark-mode .quote,
html.dark-mode .contact-strip,
html.dark-mode .contact-strip h2,
html.dark-mode .contact-grid strong,
html.dark-mode .team-contact,
html.dark-mode .team-contact h2,
html.dark-mode .pledge-close-box,
html.dark-mode .pledge-close-box h2,
html.dark-mode .g-cap { color: #fff; }
html.dark-mode .page-hero .lede,
html.dark-mode .overview-hero .lede,
html.dark-mode .overview-hero .overview-intro,
html.dark-mode .pledge-hero p,
html.dark-mode .team-hero .lede,
html.dark-mode .section-dark .lede,
html.dark-mode .section-dark .text-soft,
html.dark-mode .cta-banner .lede,
html.dark-mode .team-contact p { color: rgba(255,255,255,.85); }
html.dark-mode .overview-kicker { color: #9fd8ff; }

@media (max-width: 900px) {
  .theme-toggle { width: 40px; height: 40px; min-width: 40px; padding: 0; font-size: 1.05rem; }
}


/* Global heading alignment */
h1, h2, h3, h4 { text-align: left; }

/* Floating WhatsApp contact button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  font: 700 .92rem var(--font-body);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.whatsapp-float .wa-icon { font-size: 1.25rem; line-height: 1; }
html.dark-mode .whatsapp-float { box-shadow: 0 14px 34px rgba(0,0,0,.48); }
@media (max-width: 700px) {
  .whatsapp-float { right: 14px; bottom: 14px; min-height: 46px; padding: 0 15px; font-size: .84rem; }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--river-deep);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--river); }
html.dark-mode .back-to-top { background: var(--river-bright); color: var(--ink); }
@media (max-width: 700px) {
  .back-to-top { right: 14px; bottom: 72px; width: 44px; height: 44px; }
}

/* Automatic hero slider — pause while the pointer is over the slider for readability */
/* Mobile layout */
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .page-hero,
  .overview-hero,
  .pledge-hero,
  .team-hero { padding: 118px 0 48px; }
  .page-hero h1,
  .overview-hero h1,
  .pledge-hero h1,
  .team-hero h1 { font-size: clamp(1.85rem, 9vw, 2.6rem) !important; max-width: none !important; }
  .lede, .overview-intro, .team-intro { font-size: 1rem; }
  .section-tight,
  .team-section,
  .pledges-section,
  .pledge-close,
  .overview-section { padding: 24px 0; }
  main > section:not(.hero):not(.page-hero):not(.overview-hero):not(.pledge-hero):not(.team-hero) {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .section-head { margin-bottom: 28px; }
  .cta-banner { padding: 40px 20px; border-radius: 16px; }
  .cta-banner .btn-row { flex-direction: column; align-items: stretch; }
  .cta-banner .btn { justify-content: center; }
  .model-box { padding: 24px; }
  .stats { grid-template-columns: 1fr; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .whatsapp-float span:not(.wa-icon) { display: none; }
  .whatsapp-float { min-width: 50px; padding: 0 14px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-name { font-size: 1rem; }
  .info-card { padding: 22px; }
  .contact-layout { gap: 28px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 78px; height: 44px; }
  .site-header.is-scrolled .brand-mark { width: 68px; height: 38px; }
}
