/* ============================================================
   Let Every Jain Count — design system
   Recreates the Next.js (jansankhya.data) marketing aesthetic
   in plain CSS so the PHP site can use it without a build step.
   ============================================================ */

:root {
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-700:  #1d4ed8;

  --purple-50:  #faf5ff;
  --purple-100: #f3e8ff;
  --purple-700: #7e22ce;

  --emerald-100: #d1fae5;
  --emerald-700: #047857;

  --gray-50:  #EDD9B8;
  --gray-100: #E5D0A8;
  --gray-200: #D4BA8A;
  --gray-300: #BDA070;
  --gray-400: #9c8060;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --cream:      #FDF6EC;
  --cream-dark: #F2E4C8;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.18);

  --container-7xl: 1280px;
  --container-5xl: 1024px;
  --container-4xl: 896px;
  --container-3xl: 768px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--cream-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(hi), .hi {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  line-height: 1.7;
}
a { color: var(--amber-700); text-decoration: none; }
a:hover { color: var(--amber-800); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-7xl); margin: 0 auto; padding: 0 24px; }
.container-5xl { max-width: var(--container-5xl); margin: 0 auto; padding: 0 24px; }
.container-4xl { max-width: var(--container-4xl); margin: 0 auto; padding: 0 24px; }
.container-3xl { max-width: var(--container-3xl); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Top contact strip
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--gray-900), #1f2937);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-top: 6px; padding-bottom: 6px;
  flex-wrap: wrap;
}
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.topbar-social a:hover { transform: translateY(-1px); }
.topbar-social svg { width: 16px; height: 16px; }

/* Brand-coloured backgrounds on hover, so icons read as the real services
   even at small sizes (the SVG glyphs themselves are the official brand
   marks — Meta, YouTube and WhatsApp brand guidelines). */
.topbar-social a[aria-label="Whatsapp"]  { background: #25D366; color: #fff; }
.topbar-social a[aria-label="Whatsapp"]:hover  { background: #20BA5A; }
.topbar-social a[aria-label="Youtube"]   { background: #FF0000; color: #fff; }
.topbar-social a[aria-label="Youtube"]:hover   { background: #E60000; }
.topbar-social a[aria-label="Facebook"]  { background: #1877F2; color: #fff; }
.topbar-social a[aria-label="Facebook"]:hover  { background: #145ec2; }
.topbar-social a[aria-label="Instagram"] {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.topbar-social a[aria-label="Instagram"]:hover { filter: brightness(1.10); }
.topbar-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.topbar-item:hover { color: var(--amber-300); }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-cta {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: #fff !important;
  font-weight: 600; font-size: 12px;
  border-radius: 999px;
  transition: filter 0.2s ease;
}
.topbar-cta:hover { filter: brightness(1.08); }
@media (max-width: 700px) {
  .topbar-contact .topbar-item span { display: none; }
}
@media (max-width: 600px) {
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ============================================================
   Slider / scroller — हर जैन की सही गिनती हो
   ============================================================ */
.scroller {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-500));
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.20);
}
.scroller-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  padding: 10px 0;
  font-weight: 600; font-size: 14px;
  animation: scroller-marquee 28s linear infinite;
}
.scroller-track span:nth-child(odd) { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
@keyframes scroller-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Header (sticky, sits under topbar+scroller)
   ============================================================ */
.site-header {
  position: sticky; top: 0;
  z-index: 100;
  background: rgba(242,228,200,0.97);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(217,170,100,0.18);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(16px, 2vw, 40px);
  padding-right: clamp(16px, 2vw, 40px);
}
@media (max-width: 640px) { .header-inner { height: 64px; } }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  width: 50px; height: 50px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .brand-mark { width: 42px; height: 42px; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 20px; font-weight: 700;
  color: var(--gray-900);
}
.brand-tagline {
  font-size: 13.5px;
  color: var(--amber-700);
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}
@media (max-width: 1100px) { .brand-text { display: none; } }

/* ============================================================
   Pill Nav — ReactBits design, ported to vanilla CSS/PHP
   ============================================================ */
.pill-nav,
.mobile-menu-popover {
  --base:       #111827;
  --pill-bg:    #FFF8F0;
  --pill-text:  #111827;
  --hover-text: #ffffff;
}

.site-nav { display: flex; align-items: center; gap: 8px; }

/* Simple horizontal nav list */
.nav-list {
  display: flex; list-style: none; margin: 0; padding: 0;
  align-items: center; gap: 2px;
}
.nav-list a {
  display: flex; align-items: center; height: 38px; padding: 0 8px;
  font-size: 12.5px; font-weight: 500; color: var(--gray-600);
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-list a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-list a[aria-current="page"] {
  color: var(--amber-600); font-weight: 600;
  border-bottom: 2px solid var(--amber-500);
}
@media (max-width: 900px) { .nav-list { display: none; } }

.pill-nav-container { position: relative; z-index: 99; }

.pill-nav {
  --nav-h:      40px;
  --pill-pad-x: 13px;
  --pill-gap:   2px;
  width: max-content;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.pill-logo {
  display: none; /* brand mark on left already serves this role */
}
.pill-logo-text { display: none; }

.pill-nav-items {
  position: relative;
  display: flex; align-items: center;
  height: var(--nav-h);
  background: var(--base, #000);
  border-radius: 9999px;
}

.pill-list {
  list-style: none;
  display: flex; align-items: stretch;
  gap: var(--pill-gap);
  margin: 0; padding: 3px; height: 100%;
}
.pill-list > li { display: flex; height: 100%; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  background: var(--pill-bg, #fff);
  color: var(--pill-text, #000);
  text-decoration: none; border-radius: 9999px;
  box-sizing: border-box;
  font-weight: 600; font-size: 11.5px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.3px;
  white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
}
.pill:hover { text-decoration: none; color: var(--pill-text, #000); }

.pill .hover-circle {
  position: absolute;
  left: 50%; bottom: 0;
  border-radius: 50%;
  background: var(--base, #000);
  z-index: 1; display: block; pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative; display: inline-block;
  line-height: 1; z-index: 2; overflow: hidden;
}
.pill .pill-label {
  position: relative; z-index: 2;
  display: inline-block; line-height: 1; will-change: transform;
}
.pill .pill-label-hover {
  position: absolute; left: 0; top: 0;
  color: var(--hover-text, #fff);
  z-index: 3; display: inline-block;
  will-change: transform, opacity; white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.pill.is-active {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}
.pill.is-active .pill-label,
.pill.is-active .pill-label-hover { color: #fff; }

.mobile-menu-button { display: none; }

.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-900);
  border: none;
  cursor: pointer; padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.hamburger-btn:hover { background: var(--gray-700); }
.hb-line {
  width: 16px; height: 2px;
  background: #fff;
  border-radius: 2px; display: block;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}
.hamburger-btn[aria-expanded="true"] .hb-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hb-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn[aria-expanded="true"] .hb-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.desktop-only { display: flex; }
.mobile-only  { display: none;  }

.nav-actions { display: flex; align-items: center; gap: 7px; }

/* ============================================================
   Nav Dropdowns — Social + Let's Connect
   ============================================================ */
.nav-dropdown { position: relative; display: inline-flex; }

.nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; line-height: 1;
  white-space: nowrap; border-radius: 8px; padding: 7px 10px;
  transition: background 0.2s ease, filter 0.2s ease;
}
.social-drop-trigger {
  background: rgba(0,0,0,0.06); color: var(--gray-700,#374151);
  border: 1px solid rgba(0,0,0,0.10);
}
.social-drop-trigger:hover { background: rgba(0,0,0,0.11); }
.connect-drop-trigger {
  background: linear-gradient(90deg,var(--amber-500,#f59e0b),var(--orange-500,#f97316));
  color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,0.28);
}
.connect-drop-trigger:hover { filter: brightness(1.08); }
.connect-drop-trigger .drop-chevron {
  width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.22s ease;
}
.nav-dropdown.is-open .connect-drop-trigger .drop-chevron { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08); padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(0.96);
  transform-origin: top right; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 500; min-width: 200px;
}
.nav-drop-panel::before {
  content: ''; position: absolute; top: -6px; right: 18px;
  width: 11px; height: 11px; background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08); border-left: 1px solid rgba(0,0,0,0.08);
  transform: rotate(45deg); border-radius: 2px 0 0 0;
}
.nav-dropdown.is-open .nav-drop-panel {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; text-decoration: none;
  font-size: 13px; font-weight: 600; margin-bottom: 4px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.drop-item:last-child { margin-bottom: 0; }
.drop-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.social-panel { min-width: 188px; }
.drop-whatsapp  { background:#25D366; color:#fff; }
.drop-whatsapp:hover  { filter:brightness(1.08); transform:translateX(3px); color:#fff; }
.drop-youtube   { background:#FF0000; color:#fff; }
.drop-youtube:hover   { filter:brightness(1.08); transform:translateX(3px); color:#fff; }
.drop-facebook  { background:#1877F2; color:#fff; }
.drop-facebook:hover  { filter:brightness(1.08); transform:translateX(3px); color:#fff; }
.drop-instagram { background:linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888); color:#fff; }
.drop-instagram:hover { filter:brightness(1.08); transform:translateX(3px); color:#fff; }

.connect-panel { min-width: 265px; }
.drop-connect-link {
  font-size: 14px; font-weight: 700;
  color: var(--amber-700,#b45309); background: rgba(245,158,11,0.08);
}
.drop-connect-link:hover { background:rgba(245,158,11,0.15); color:var(--amber-800,#92400e); transform:none; }
.drop-connect-link svg { color:var(--amber-500,#f59e0b); }
.drop-divider { height:1px; background:rgba(0,0,0,0.07); margin:4px 4px 6px; }
.drop-contact-item {
  color:var(--gray-600,#4b5563); font-weight:500; font-size:12.5px; word-break:break-all;
}
.drop-contact-item:hover { background:rgba(245,158,11,0.07); color:var(--amber-700,#b45309); transform:none; }
.drop-contact-item svg { color:var(--amber-400,#fbbf24); width:17px; height:17px; }

@media (max-width:860px) { .social-drop-trigger span { display:none; } }
@media (max-width:540px) {
  .nav-drop-panel { right:-8px; min-width:220px; }
  .connect-panel  { min-width:240px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: all 0.2s ease; cursor: pointer;
  border: 1px solid transparent; text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-lg svg { width: 20px; height: 20px; }

.btn-primary {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: #fff;
  box-shadow: 0 10px 24px rgba(249,115,22,0.30);
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  color: #fff;
  box-shadow: 0 12px 28px rgba(249,115,22,0.40);
}
.btn-whatsapp {
  /* Official WhatsApp brand green (#25D366) so the button reads as
     authentically WhatsApp rather than a generic "green button". */
  background: #25D366; color: #fff;
  box-shadow: 0 8px 16px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover { background: #1FB755; color: #fff; box-shadow: 0 10px 20px rgba(37,211,102,0.40); }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-lg.btn-whatsapp svg { width: 20px; height: 20px; }
@media (max-width: 540px) {
  /* On small screens, keep the WhatsApp icon but drop the text label so the
     header still fits next to the form CTA. */
  .nav-cta-label { display: none; }
  .btn-whatsapp { padding: 10px 12px; }
}
.btn-light {
  background: var(--cream); color: var(--amber-700);
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}
.btn-light:hover { background: var(--amber-50); color: var(--amber-800); }
.btn-amber {
  background: var(--amber-600); color: #fff;
  box-shadow: 0 8px 16px rgba(217,119,6,0.25);
}
.btn-amber:hover { background: var(--amber-700); color: #fff; }
.btn-outline {
  background: transparent; color: var(--gray-900);
  border-color: var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); color: var(--gray-900); }

/* ============================================================
   Hero (dark gradient with badge)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: #0d1117;
  color: #fff;
}
/* Video background */
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.05) 60%, rgba(13,17,23,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::before { content: none; }
.hero-inner {
  position: relative; z-index: 2;
  padding: 80px 24px 120px;
  text-align: center;
  max-width: var(--container-3xl);
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.90);
  margin-bottom: 24px;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-300);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-title {
  font-size: clamp(36px, 6vw, 60px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0;
}
.hero-title-accent {
  background: linear-gradient(90deg, var(--amber-300), #fde047, var(--orange-300, #fdba74));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  margin-top: 16px;
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 600;
  color: rgba(254,215,170,0.90);
}
.hero-description {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.7;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Variant: compact hero (used on inner pages) */
.hero-compact .hero-inner { padding: 60px 24px 80px; max-width: var(--container-4xl); }
.hero-compact .hero-title { font-size: clamp(30px, 5vw, 44px); }

/* Variant: orange/red hero (Census Schedule etc.) */
.hero-warm {
  background: linear-gradient(90deg, var(--orange-600), #dc2626 60%, #15803d);
}
.hero-warm::before { background: none; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 56px 0; }
.section-sm { padding: 40px 0; }
.section-gray { background: var(--gray-50); }
.section-dark {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
  color: #fff;
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(245,158,11,0.12), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(249,115,22,0.12), transparent 40%);
}
.section-dark > .container,
.section-dark > .container-4xl,
.section-dark > .container-3xl { position: relative; z-index: 2; }
.section-amber {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600), var(--amber-700));
  color: #fff;
}

.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--gray-900); margin: 0;
  letter-spacing: -0.01em;
}
.section-dark .section-heading h2,
.section-amber .section-heading h2 { color: #fff; }
.section-heading .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--amber-50); color: var(--amber-700);
  border: 1px solid var(--amber-100);
  margin-bottom: 16px;
}
.section-heading p { margin-top: 12px; color: var(--gray-500); font-size: 17px; }
.section-dark .section-heading p { color: rgba(255,255,255,0.7); }

/* ============================================================
   Grid / Cards
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  padding: 32px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: block; color: inherit;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none; color: inherit;
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.08); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--gray-900); }
.card .card-subtitle { margin: 0 0 10px; font-size: 12px; color: var(--gray-400); }
.card p { margin: 0; color: var(--gray-600); font-size: 14px; line-height: 1.65; }
.card-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 14px;
}
.card-cta svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card:hover .card-cta svg { transform: translateX(4px); }

/* Tone variants */
.tone-amber  .card-icon { background: var(--amber-50);  color: var(--amber-700); }
.tone-amber  .card-cta  { color: var(--amber-700); }
.tone-amber:hover h3    { color: var(--amber-700); }

.tone-orange .card-icon { background: var(--orange-50); color: var(--orange-700); }
.tone-orange .card-cta  { color: var(--orange-700); }
.tone-orange:hover h3   { color: var(--orange-700); }

.tone-blue   .card-icon { background: var(--blue-50);   color: var(--blue-700); }
.tone-blue   .card-cta  { color: var(--blue-700); }
.tone-blue:hover h3     { color: var(--blue-700); }

.tone-purple .card-icon { background: var(--purple-50); color: var(--purple-700); }
.tone-purple .card-cta  { color: var(--purple-700); }
.tone-purple:hover h3   { color: var(--purple-700); }

.tone-emerald .card-icon { background: var(--emerald-100); color: var(--emerald-700); }

/* ============================================================
   Coverage chips (PAN India city list)
   ============================================================ */
.coverage-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 960px; margin: 0 auto;
}
.coverage-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: all 0.2s ease;
}
.coverage-chip:hover {
  background: var(--amber-50);
  border-color: var(--amber-300);
  color: var(--amber-800);
  transform: translateY(-1px);
}
.coverage-chip svg { width: 14px; height: 14px; color: var(--amber-600); }
.coverage-chip.coverage-more {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-500);
  font-style: italic;
}

/* ============================================================
   Long-form content (about/terms/privacy/faq)
   ============================================================ */
.prose { max-width: 100%; color: var(--gray-700); font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin: 40px 0 16px; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--gray-900); margin: 28px 0 12px; }
.prose p  { margin: 0 0 16px; color: var(--gray-700); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--gray-900); }
.prose a { color: var(--amber-700); text-decoration: underline; }
.prose a:hover { color: var(--amber-800); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--gray-200); text-align: left; }
.prose th { background: var(--gray-50); font-weight: 600; }

.callout {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.callout-amber { background: var(--amber-50); border: 1px solid var(--amber-200); color: var(--gray-800); }
.callout-gray  { background: var(--gray-50);  border: 1px solid var(--gray-200);  color: var(--gray-800); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* ============================================================
   About page — split layout
   ============================================================ */
.about-split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-images {
  /* flex: 0 0 50%; */
  max-width: 50%;
  position: sticky;
  top: 100px;
}
.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 240px 240px; */
  gap: 12px;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.about-img:nth-child(1) { grid-row: 1 / 3; }
.about-img:nth-child(4) { display: none; }
.about-content {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .about-split { flex-direction: column; }
  .about-images { flex: none; width: 100%; max-width: 100%; position: static; }
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--amber-300); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; color: var(--gray-900); font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 22px 20px; color: var(--gray-600); line-height: 1.7; }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin: 0; }

/* ============================================================
   Steps (How It Works)
   ============================================================ */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 28px;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 16px rgba(249,115,22,0.25);
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; color: var(--gray-900); font-weight: 700; }
.step p  { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid; gap: 32px;
  grid-template-columns: 5fr 7fr;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-2xl);
  padding: 32px;
}
.contact-info h3 { margin: 0 0 16px; font-size: 20px; color: var(--gray-900); }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  color: var(--gray-700); font-size: 14px;
}
.contact-info svg { width: 18px; height: 18px; color: var(--amber-700); flex-shrink: 0; margin-top: 2px; }
.contact-info a { color: var(--gray-800); font-weight: 500; }
.contact-info a:hover { color: var(--amber-700); }

.form {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label {
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  color: var(--gray-900); background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.20);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Quote section
   ============================================================ */
.quote-card { text-align: center; max-width: var(--container-4xl); margin: 0 auto; padding: 0 24px; }
.quote-icon {
  width: 48px; height: 48px; margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(245,158,11,0.20);
  display: inline-flex; align-items: center; justify-content: center;
}
.quote-icon svg { width: 24px; height: 24px; color: var(--amber-300); }
.quote-text {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; color: #fff; line-height: 1.5;
  margin: 0;
}
.quote-translation { margin-top: 24px; color: var(--gray-400); font-size: 17px; }
.quote-attribution {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  margin-top: 28px;
  backdrop-filter: blur(6px);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 0;
  border-top: 1px solid var(--gray-800);
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 { margin: 0 0 6px; color: #fff; font-size: 18px; font-weight: 700; }
.footer-brand .footer-tagline { color: var(--gray-500); font-size: 12px; margin: 0 0 16px; }
.footer-brand .footer-desc { color: var(--gray-400); font-size: 14px; max-width: 360px; }
.footer-col h4 {
  color: #fff; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--gray-400); font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-col svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 24px 0;
  text-align: center;
  font-size: 12px; color: var(--gray-500);
}
.footer-bottom p { margin: 0; }

/* ============================================================
   Mobile nav — ReactBits pill popover
   ============================================================ */
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex  !important; }
  .mobile-menu-button { display: none; }
  .hamburger-btn { display: flex; }
  .pill-nav { width: 100%; justify-content: flex-end; }
}

.mobile-menu-popover {
  position: fixed;
  top: 80px;
  left: 1rem; right: 1rem;
  background: var(--base, #111827);
  border-radius: 27px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  z-index: 998;
  visibility: hidden;
  opacity: 0;
}
@media (max-width: 640px) { .mobile-menu-popover { top: 64px; } }

.mobile-menu-list {
  list-style: none; margin: 0;
  padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu-link {
  display: block;
  padding: 14px 20px;
  color: var(--pill-text, #111827);
  background-color: var(--pill-bg, #fff);
  text-decoration: none;
  font-size: 15px; font-weight: 600;
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.mobile-menu-link:hover {
  background-color: rgba(255,255,255,0.12);
  color: var(--hover-text, #fff);
  text-decoration: none;
}
.mobile-menu-link.is-active {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #fff;
}

/* ============================================================
   Error pages
   ============================================================ */
.error-section {
  padding: 100px 0 120px;
  text-align: center;
}
.error-code {
  font-size: clamp(72px, 12vw, 120px); font-weight: 800;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0; line-height: 1; letter-spacing: -0.02em;
}
.error-section h1 { margin: 16px 0 8px; font-size: 28px; color: var(--gray-900); }
.error-section p { color: var(--gray-500); margin-bottom: 28px; }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--gray-500); }

/* ============================================================
   Inner page wrapper — adds top padding so fixed header
   doesn't overlap page content (when not using a hero).
   ============================================================ */
.page-spacer { display: none; }

/* ============================================================
   Home page — bespoke styles for hero, sections, cards, stats
   ============================================================ */

/* Hero adjustments for the home page */
.hero-inner--home { padding: 70px 24px 90px; max-width: 880px; }
.hero-inner--home .hero-title { font-size: clamp(40px, 7vw, 72px); margin-bottom: 8px; }
.hero-inner--home .hero-tagline { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.hero-tagline-dot { color: rgba(254,215,170,0.55); }
.hero-lead {
  margin: 18px auto 0; max-width: 620px;
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.hero-lead.hi { color: rgba(254,215,170,0.85); font-size: 15px; }

.hero-cta--home {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px auto 0;
  max-width: 720px;
}
.hero-cta--home .btn {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 14px;
}
@media (max-width: 760px) {
  .hero-cta--home { grid-template-columns: 1fr; max-width: 380px; }
}

.btn-ghost-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 560px;
}
.hero-stat {
  padding: 14px 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
  font-size: clamp(24px, 4vw, 32px); font-weight: 800;
  background: linear-gradient(90deg, var(--amber-300), #fde047);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* --- Section: Why this matters --- */
.section-why { padding-top: 64px; padding-bottom: 64px; }
.why-lead {
  font-size: 18px; line-height: 1.8; color: var(--gray-700);
  text-align: center; max-width: 720px; margin: 0 auto;
}
.section-subtitle-hi { font-size: 20px !important; color: var(--amber-700) !important; font-weight: 600; }

/* --- Volunteer bilingual questions --- */
.volunteer-questions {
  text-align: center; margin: 24px auto 0; max-width: 680px;
  font-size: 17px; line-height: 1.9; color: var(--gray-700);
}
.volunteer-questions p { margin: 0 0 8px; }
.volunteer-questions strong { color: var(--amber-700); font-weight: 600; }
.volunteer-questions-cta {
  margin-top: 16px !important;
  display: inline-block;
  padding: 10px 24px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  color: var(--amber-800) !important;
  font-weight: 600;
}

/* Census 2027 awareness CTA card */
.awareness-cta-wrap { margin-top: 40px; }
.awareness-cta {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-2xl);
  box-shadow: 0 12px 32px rgba(217,119,6,0.10);
}
.awareness-cta-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(249,115,22,0.30);
}
.awareness-cta-icon svg { width: 32px; height: 32px; }
.awareness-cta-body { flex: 1; min-width: 0; }
.awareness-cta-title { font-size: 20px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.awareness-cta-sub { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.awareness-cta-btn { flex-shrink: 0; border-radius: 999px !important; }
@media (max-width: 700px) {
  .awareness-cta { flex-direction: column; text-align: center; padding: 28px 20px; }
  .awareness-cta-btn { width: auto; align-self: center; padding: 13px 28px !important; }
}

/* Feature cards on volunteer grid */
.feature-card { padding: 28px; }
.feature-card-cta {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(249,115,22,0.30);
}
.feature-card-cta:hover { color: #fff; box-shadow: 0 18px 40px rgba(249,115,22,0.40); }
.feature-card-cta h3 { color: #fff; }
.feature-card-cta p { color: rgba(255,255,255,0.85); }
.feature-card-cta .card-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.feature-card-cta .card-cta-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 600;
}
.feature-card-cta .card-cta-arrow svg { width: 16px; height: 16px; }

.mt-8 { margin-top: 32px; }

/* --- Pratisthan / institutions grid --- */
.prose-lead {
  max-width: 720px; margin: 12px auto 0;
  font-size: 16px; line-height: 1.7; color: var(--gray-600);
}
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .institutions-grid { grid-template-columns: repeat(2, 1fr); } }
.institution {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.institution:hover {
  transform: translateY(-3px);
  border-color: var(--amber-200);
  box-shadow: 0 12px 28px rgba(217,119,6,0.10);
}
.institution-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  color: var(--amber-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.institution:hover .institution-icon { transform: scale(1.08); }
.institution-icon svg { width: 26px; height: 26px; }
.institution-label { font-weight: 700; color: var(--gray-900); font-size: 15px; }
.institution-hi { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* --- Coverage section --- */
.section-coverage { background: var(--gray-50); padding: 80px 0; }
.coverage-card {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--amber-900));
  border-radius: var(--radius-2xl);
  padding: 56px;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 48px; align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.coverage-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(245,158,11,0.15), transparent 50%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .coverage-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
}
.coverage-text { position: relative; z-index: 1; }
.coverage-text h2 { font-size: clamp(24px, 3.5vw, 36px); color: #fff; margin: 12px 0 12px; }
.coverage-text p { color: rgba(255,255,255,0.80); font-size: 16px; margin: 0 0 24px; line-height: 1.7; }
.eyebrow-light {
  background: rgba(245,158,11,0.20) !important;
  color: var(--amber-300) !important;
  border-color: rgba(245,158,11,0.30) !important;
}
.coverage-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.coverage-stats > div { display: flex; flex-direction: column; }
.coverage-stats strong {
  font-size: clamp(28px, 3vw, 36px);
  background: linear-gradient(90deg, var(--amber-300), #fde047);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.coverage-stats span { color: rgba(255,255,255,0.7); font-size: 13px; }

.coverage-chips-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 1;
}
.coverage-card .coverage-chip {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.coverage-card .coverage-chip svg { color: var(--amber-300); }
.coverage-card .coverage-chip:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}
.coverage-card .coverage-chip.coverage-more {
  background: transparent; border-style: dashed;
  font-style: italic; color: rgba(255,255,255,0.65);
}

/* --- Impact grid --- */
.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  transition: all 0.3s ease;
}
.impact-card:hover {
  border-color: var(--amber-200);
  box-shadow: 0 12px 28px rgba(217,119,6,0.10);
}
.impact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  color: var(--amber-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.impact-icon svg { width: 22px; height: 22px; }
.impact-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--gray-900); font-weight: 700; }
.impact-card p { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.6; }

.impact-outro {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Stats / Trust section --- */
.section-stats {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600), #b45309);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-stats::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0,0,0,0.10), transparent 50%);
  pointer-events: none;
}
.section-stats > .container-4xl { position: relative; z-index: 1; }
.stats-heading { font-size: clamp(26px, 3.5vw, 38px); margin: 12px 0 16px; color: #fff; font-weight: 800; }
.stats-lead { max-width: 720px; margin: 0 auto 40px; color: rgba(255,255,255,0.92); font-size: 17px; line-height: 1.8; }

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-2xl);
  padding: 32px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.stats-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.stats-num {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats-label { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.stats-source { color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: underline; }
.stats-source:hover { color: #fff; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 32px 28px;
  margin: 0;
  position: relative;
  transition: all 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--amber-200);
  box-shadow: 0 16px 36px rgba(217,119,6,0.12);
}
.testimonial-quote-mark {
  position: absolute;
  top: 8px; left: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--amber-200);
  font-family: Georgia, serif;
  font-weight: 700;
}
.testimonial-text {
  position: relative;
  font-size: 16px; line-height: 1.7;
  color: var(--gray-800);
  font-style: italic;
  margin: 24px 0 16px;
}
.testimonial-who {
  font-size: 13px;
  color: var(--amber-700);
  font-weight: 600;
  font-style: normal;
}

/* --- Final CTA --- */
.section-final-cta {
  background: linear-gradient(135deg, var(--gray-900), #1f2937, #78350f);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(249,115,22,0.15), transparent 50%);
  pointer-events: none;
}
.section-final-cta > .container-3xl { position: relative; z-index: 1; }
.final-cta-heading { font-size: clamp(36px, 5vw, 52px); margin: 12px 0 16px; color: #fff; font-weight: 800; }
.final-cta-warning {
  font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.78);
  max-width: 580px; margin: 0 auto 16px;
}
.final-cta-body {
  font-size: 17px; line-height: 1.8;
  color: rgba(255,255,255,0.92);
  max-width: 580px; margin: 0 auto 32px;
}
.final-cta-body strong { color: var(--amber-300); font-weight: 700; }

.final-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.final-cta-row .btn { padding: 14px 24px; }

/* Section overrides for variants that need lighter eyebrows */
.section-final-cta .section-heading h2,
.section-stats .section-heading h2 { color: #fff; }

/* Soft amber background for content header on inner pages */
.page-hero-dark {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--amber-900));
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-dark h1 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; margin: 0;
  letter-spacing: -0.01em;
}
.page-hero-dark p { margin-top: 12px; color: rgba(255,255,255,0.75); font-size: 17px; }
.page-hero-dark .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber-300); font-size: 14px;
  margin-bottom: 16px;
}
.page-hero-dark .back-link:hover { color: var(--amber-200); }

/* ============================================================
   Mission page — image gallery
   ============================================================ */
.mission-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.mission-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mission-gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .mission-gallery { grid-template-columns: 1fr; }
  .mission-gallery-item img { height: 220px; }
}

/* ============================================================
   ChromaGrid — verbatim CSS from ReactBits ChromaGrid.css
   https://reactbits.dev/components/chroma-grid
   ============================================================ */
.chroma-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 320px);
  grid-auto-rows: auto;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 1rem;
  box-sizing: border-box;

  --x: 50%;
  --y: 50%;
  --r: 220px;
}

@media (max-width: 1124px) {
  .chroma-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 0.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .chroma-grid {
    grid-template-columns: 320px;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  /* height: 360px; */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
  background: var(--card-gradient);
  text-decoration: none;

  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.3);
}

.chroma-card:hover {
  border-color: var(--card-border);
}

.chroma-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.chroma-card:hover::before {
  opacity: 1;
}

.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 70%;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
  transition: background 0.3s ease;
}

.chroma-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.chroma-info {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: system-ui, sans-serif;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.25rem;
  column-gap: 0.75rem;
}

.chroma-info .role,
.chroma-info .handle {
  color: #aaa;
}

.chroma-info {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: system-ui, sans-serif;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
    white-space: nowrap;
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
}

.handle {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  white-space: nowrap;
}

.role {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}

.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 15%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.68) 88%,
    white 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 15%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.68) 88%,
    white 100%
  );
}

.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 15%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.78) 45%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.32) 88%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 15%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.78) 45%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.32) 88%,
    transparent 100%
  );

  opacity: 1;
  transition: opacity 0.25s ease;
}

/* ============================================================
   Homepage hero — page-load entrance sequence
   ============================================================ */
@keyframes lejc-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.page-home .hero-badge   { animation: lejc-rise .75s cubic-bezier(.22,1,.36,1) .10s both; }
.page-home .hero-title   { animation: lejc-rise .75s cubic-bezier(.22,1,.36,1) .25s both; }
.page-home .hero-tagline { animation: lejc-rise .75s cubic-bezier(.22,1,.36,1) .40s both; }
.page-home .hero-lead    { animation: lejc-rise .75s cubic-bezier(.22,1,.36,1) .52s both; }
.page-home .chroma-grid  { animation: lejc-rise .85s cubic-bezier(.22,1,.36,1) .68s both; }

/* ============================================================
   Mission page — enhanced card animations & hover
   ============================================================ */
@keyframes icon-float {
  0%, 100% { transform: scale(1.15) translateY(0); }
  50%       { transform: scale(1.15) translateY(-6px); }
}

/* Override base card transition with snappier spring curve */
.page-mission .card {
  transition: box-shadow 0.35s ease,
              transform   0.4s cubic-bezier(.22, 1, .36, 1),
              border-color 0.3s ease;
  border: 1px solid var(--gray-100);
  will-change: transform;
}

/* Per-tone coloured glow on hover */
.page-mission .tone-amber:hover  {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(245,158,11,0.10),
              0 24px 48px rgba(245,158,11,0.18);
  border-color: var(--amber-200);
}
.page-mission .tone-orange:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(249,115,22,0.10),
              0 24px 48px rgba(249,115,22,0.18);
  border-color: var(--orange-100);
}
.page-mission .tone-emerald:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(4,120,87,0.08),
              0 24px 48px rgba(4,120,87,0.16);
  border-color: var(--emerald-100);
}
.page-mission .tone-blue:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(29,78,216,0.08),
              0 24px 48px rgba(29,78,216,0.16);
  border-color: var(--blue-100);
}
.page-mission .tone-purple:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(126,34,206,0.08),
              0 24px 48px rgba(126,34,206,0.16);
  border-color: var(--purple-100);
}

/* Floating icon animation on hover */
.page-mission .card:hover .card-icon {
  animation: icon-float 1.4s ease-in-out infinite;
}

/* Icon circle grows slightly on hover */
.page-mission .card:hover .card-icon {
  width: 62px; height: 62px;
  transition: width 0.3s ease, height 0.3s ease;
}

/* ============================================================
   Scroll-reveal — add .reveal or .reveal-scale to any element,
   JS IntersectionObserver appends .in-view to trigger it.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(.93) translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-scale.in-view { opacity: 1; transform: none; }

/* Stagger delays — add .d1–.d8 alongside .reveal / .reveal-scale */
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; }
.d5 { transition-delay: .35s; }
.d6 { transition-delay: .42s; }
.d7 { transition-delay: .49s; }
.d8 { transition-delay: .56s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale,
  .page-home .hero-badge, .page-home .hero-title,
  .page-home .hero-tagline, .page-home .hero-lead,
  .page-home .chroma-grid {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Section-Why — amber callout treatment
   ============================================================ */
.section-why .section-heading::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-why .why-lead {
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--amber-50), #fffdf5);
  border-left: 4px solid var(--amber-400);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: 0 4px 24px rgba(217,119,6,.08);
}

/* ============================================================
   Awareness CTA — sweeping shimmer
   ============================================================ */
.awareness-cta { position: relative; overflow: hidden; }
.awareness-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: cta-shimmer 3.8s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
@keyframes cta-shimmer {
  0%   { left: -60%; }
  60%, 100% { left: 120%; }
}
.awareness-cta-icon { transition: transform .35s ease; }
.awareness-cta:hover .awareness-cta-icon { transform: scale(1.08) rotate(-4deg); }

/* ============================================================
   Institution cards — gradient top accent + icon warm hover
   ============================================================ */
.institution { position: relative; }
.institution::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px; height: 3px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .3s ease, transform .3s ease;
}
.institution:hover::before { opacity: 1; transform: scaleX(1); }
.institution:hover .institution-icon {
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(249,115,22,.30);
}

/* ============================================================
   Impact cards — bottom bar sweep + icon warm hover
   ============================================================ */
.impact-card { position: relative; overflow: hidden; }
.impact-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.impact-card:hover::after { transform: scaleX(1); }
.impact-card:hover { transform: translateY(-4px); }
.impact-icon { transition: transform .3s ease, background .3s ease, color .3s ease; }
.impact-card:hover .impact-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-400));
  color: #fff;
}

/* ============================================================
   Final CTA section — slow animated gradient
   ============================================================ */
@keyframes cta-gradient {
  0%   { background-position: 0% 60%; }
  50%  { background-position: 100% 40%; }
  100% { background-position: 0% 60%; }
}
.section-final-cta {
  background: linear-gradient(-45deg, var(--gray-900), #1a2332, #78350f, #92400e, #1a2332, var(--gray-900));
  background-size: 400% 400%;
  animation: cta-gradient 14s ease infinite;
}

/* ============================================================
   Mobile nav toggle + slide-down menu
   ============================================================ */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; gap: 5px;
  flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-800);
  border-radius: 1px;
  transition: transform .28s ease, opacity .28s ease;
}
@media (max-width: 900px) { .nav-toggle { display: flex; } }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(17,24,39,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 10px 12px 16px;
    gap: 2px;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
  }
  .nav-list:not(.is-open) { display: none; }
  .nav-list.is-open {
    display: flex;
    animation: nav-drop .22s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
  }
  .nav-list a {
    color: rgba(255,255,255,.82); border-radius: 10px;
    padding: 13px 18px; font-size: 15px;
  }
  .nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-list a[aria-current="page"] {
    color: var(--amber-300);
    background: rgba(245,158,11,.12);
    border-bottom: none;
  }
}

/* ============================================================
   Dome Gallery (Mission page — CSS sphere gallery)
   ============================================================ */
body.dg-scroll-lock { overflow: hidden; touch-action: none; }

#dome-gallery-wrap {
  position: relative;
  width: 100%;
  height: 620px;
}
@media (max-width: 768px) { #dome-gallery-wrap { height: 420px; } }

.sphere-root {
  position: relative; width: 100%; height: 100%;
  --radius: 520px; --viewer-pad: 72px;
  --circ: calc(var(--radius) * 3.14);
  --rot-y: calc((360deg / var(--segments-x)) / 2);
  --rot-x: calc((360deg / var(--segments-y)) / 2);
  --item-width:  calc(var(--circ) / var(--segments-x));
  --item-height: calc(var(--circ) / var(--segments-y));
}
.sphere-root * { box-sizing: border-box; }
.sphere, .item, .item__image { transform-style: preserve-3d; }

main.sphere-main {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  overflow: hidden; touch-action: none;
  user-select: none; -webkit-user-select: none;
  background: transparent;
}
.stage {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  perspective: calc(var(--radius) * 2);
  perspective-origin: 50% 50%;
  contain: layout paint size;
}
.sphere { transform: translateZ(calc(var(--radius) * -1)); will-change: transform; }

.overlay, .overlay--blur {
  position: absolute; inset: 0; margin: auto; z-index: 3; pointer-events: none;
}
.overlay {
  background-image: radial-gradient(rgba(235,235,235,0) 65%, var(--overlay-blur-color, #FAF2E6) 100%);
}
.overlay--blur {
  -webkit-mask-image: radial-gradient(rgba(235,235,235,0) 70%, var(--overlay-blur-color, #FAF2E6) 90%);
  mask-image:         radial-gradient(rgba(235,235,235,0) 70%, var(--overlay-blur-color, #FAF2E6) 90%);
  backdrop-filter: blur(3px);
}
.item {
  width: calc(var(--item-width) * var(--item-size-x));
  height: calc(var(--item-height) * var(--item-size-y));
  position: absolute;
  top: -999px; bottom: -999px; left: -999px; right: -999px;
  margin: auto; transform-origin: 50% 50%;
  backface-visibility: hidden; transition: transform 300ms;
  transform:
    rotateY(calc(var(--rot-y) * (var(--offset-x) + ((var(--item-size-x) - 1) / 2)) + var(--rot-y-delta, 0deg)))
    rotateX(calc(var(--rot-x) * (var(--offset-y) - ((var(--item-size-y) - 1) / 2)) + var(--rot-x-delta, 0deg)))
    translateZ(var(--radius));
}
.item__image {
  position: absolute; display: block; inset: 10px;
  border-radius: var(--tile-radius, 12px);
  background: transparent; overflow: hidden;
  backface-visibility: hidden; transition: transform 300ms;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; pointer-events: auto;
  transform: translateZ(0); -webkit-transform: translateZ(0);
}
.item__image:focus { outline: none; }
.item__image img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; backface-visibility: hidden;
  filter: var(--image-filter, none);
}
.viewer {
  position: absolute; inset: 0; z-index: 20; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: var(--viewer-pad);
}
.viewer .frame {
  height: 100%; aspect-ratio: 1;
  border-radius: var(--enlarge-radius, 32px); display: flex;
}
@media (max-aspect-ratio: 1/1) { .viewer .frame { height: auto; width: 100%; } }
.viewer .scrim {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(0,0,0,0.4); pointer-events: none;
  opacity: 0; transition: opacity 500ms ease; backdrop-filter: blur(3px);
}
.sphere-root[data-enlarging='true'] .viewer .scrim { opacity: 1; pointer-events: all; }
.viewer .enlarge {
  position: absolute; z-index: 30;
  border-radius: var(--enlarge-radius, 32px); overflow: hidden;
  transition: transform 500ms ease, opacity 500ms ease;
  transform-origin: top left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.viewer .enlarge img, .sphere-root .enlarge-closing img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--image-filter, none);
}
.edge-fade {
  position: absolute; left: 0; right: 0; height: 120px;
  z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--overlay-blur-color, #FAF2E6));
}
.edge-fade--top  { top: 0; transform: rotate(180deg); }
.edge-fade--bottom { bottom: 0; }

/* ── Dome Gallery modal popup ─────────────────────────────── */
.dg-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
  padding: 16px;
}
.dg-modal.dg-modal--open { display: flex; }
.dg-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.dg-modal-box {
  position: relative; z-index: 1;
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: dg-modal-in 0.28s cubic-bezier(0.34,1.46,0.64,1) both;
  display: flex; flex-direction: column;
}
@keyframes dg-modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.dg-modal-img-wrap {
  position: relative;
  width: 100%; height: 260px;
  flex-shrink: 0; overflow: hidden;
}
.dg-modal-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.dg-modal-img-wrap .dg-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: rgba(0,0,0,0.50); color: #fff;
  border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 18px;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s; line-height: 1;
}
.dg-modal-img-wrap .dg-modal-close:hover { background: rgba(0,0,0,0.78); }
.dg-modal-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.dg-modal-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--gray-900); margin: 0;
}
.dg-modal-desc {
  font-size: 0.9rem; color: var(--gray-600);
  line-height: 1.75; margin: 0;
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* ============================================================
   RESPONSIVE OVERHAUL — Mobile-first polish
   Systematic fixes for 320 px – 900 px viewports.
   ============================================================ */

/* ── Prevent any element causing horizontal scroll ──────────*/
html, body { overflow-x: hidden; }

/* ── Header: hide Social + Connect dropdowns on mobile ──────
   The hamburger popover covers all navigation; these two
   dropdowns are redundant and cause overflow on narrow screens. */
@media (max-width: 900px) {
  #social-drop,
  #connect-drop { display: none; }
}

/* ── Mobile menu popover — cap height so it never overflows ─*/
.mobile-menu-popover {
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
@media (max-width: 640px) {
  .mobile-menu-popover { max-height: calc(100dvh - 76px); }
}

/* ── Mobile menu — bottom action row (WhatsApp + Login) ─────*/
.mobile-menu-actions {
  display: flex; gap: 8px;
  padding: 8px 6px 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.mobile-menu-wa,
.mobile-menu-login-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 14px;
  border-radius: 50px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; color: #fff;
  transition: filter 0.2s ease;
}
.mobile-menu-wa { background: #25D366; }
.mobile-menu-wa:hover  { filter: brightness(1.08); color: #fff; }
.mobile-menu-wa svg { width: 18px; height: 18px; }
.mobile-menu-login-btn {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}
.mobile-menu-login-btn:hover { filter: brightness(1.08); color: #fff; }

/* ── ChromaGrid: fluid columns instead of fixed 320 px ──────
   Existing rules use `repeat(3, 320px)` / `minmax(320px,320px)`.
   Overrides below (placed later = same specificity wins) make
   cards shrink to fill whatever width the viewport allows.     */
@media (max-width: 1124px) {
  .chroma-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .chroma-card { width: 100%; min-width: 0; }
}
/* ≤ 768 px → single-column hero cards */
@media (max-width: 768px) {
  .chroma-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0.5rem;
    margin-top: 24px;
  }
  .chroma-card { width: 100%; }
}

/* ── Container padding: tighter on small phones ─────────────*/
@media (max-width: 480px) {
  .container,
  .container-5xl,
  .container-4xl,
  .container-3xl { padding: 0 16px; }
}

/* ── Hero — home page ────────────────────────────────────────*/
@media (max-width: 640px) {
  .hero-inner--home { padding: 48px 16px 72px; }
  .hero-badge { font-size: 11px; padding: 5px 10px; }
}
@media (max-width: 480px) {
  .hero-inner--home { padding: 36px 12px 56px; }
  .hero-tagline { font-size: 15px; }
  .hero-tagline-dot { display: none; }
  .hero-lead { font-size: 14px; }
  .hero-lead.hi { font-size: 13px; }
}

/* ── Section spacing: less vertical breathing room on mobile ─*/
@media (max-width: 640px) {
  .section        { padding: 40px 0; }
  .section-why    { padding-top: 48px; padding-bottom: 48px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading p { font-size: 15px; }
}
@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .section-heading { margin-bottom: 24px; }
}

/* ── Section-Why callout box — reduce horizontal padding ─────*/
@media (max-width: 640px) {
  .section-why .why-lead { padding: 20px 20px; font-size: 16px; }
}
@media (max-width: 480px) {
  .section-why .why-lead { padding: 16px 14px; font-size: 15px; }
}

/* ── Generic cards — tighter padding on mobile ───────────────*/
@media (max-width: 640px) { .card { padding: 22px; } }
@media (max-width: 480px) { .card { padding: 18px; } }

/* ── Impact cards ────────────────────────────────────────────*/
@media (max-width: 640px) {
  .impact-card { padding: 18px; gap: 12px; }
  .impact-grid  { gap: 14px; }
}

/* ── Institutions grid ───────────────────────────────────────*/
@media (max-width: 640px) {
  .institution { padding: 20px 16px; }
  .institutions-grid { gap: 12px; }
}
@media (max-width: 480px) {
  .institution { padding: 16px 12px; }
  .institution-label { font-size: 13px; }
  .institution-hi    { font-size: 11px; }
}

/* ── Awareness CTA ───────────────────────────────────────────*/
@media (max-width: 480px) {
  .awareness-cta { padding: 20px 16px; }
  .awareness-cta-icon { width: 52px; height: 52px; border-radius: 14px; }
  .awareness-cta-icon svg { width: 26px; height: 26px; }
  .awareness-cta-title { font-size: 17px; }
}

/* ── Buttons ─────────────────────────────────────────────────*/
@media (max-width: 480px) {
  .btn-lg { padding: 13px 22px; font-size: 14px; }
}

/* ── Final CTA row: stack on small phones ────────────────────*/
@media (max-width: 480px) {
  .final-cta-row { flex-direction: column; align-items: center; gap: 10px; }
  .final-cta-row .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ── Footer ──────────────────────────────────────────────────*/
@media (max-width: 480px) {
  .site-footer   { padding-top: 40px; }
  .footer-grid   { gap: 20px; padding-bottom: 32px; }
}

/* ── Grid utilities ──────────────────────────────────────────*/
@media (max-width: 640px) {
  .grid { gap: 16px; }
}

/* ── FAQ ─────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .faq-item summary { padding: 14px 16px; font-size: 15px; }
  .faq-body         { padding: 0 16px 16px; }
}

/* ── Prose tables — wrap to avoid horizontal scroll ─────────*/
.prose-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table      { min-width: 480px; }

/* ── Step grid ───────────────────────────────────────────────*/
@media (max-width: 480px) {
  .step { padding: 22px 18px; }
}

/* ── Coverage card (About/Mission pages) ─────────────────────*/
@media (max-width: 640px) {
  .coverage-card { padding: 28px 20px; }
}

/* ── Contact info + form ─────────────────────────────────────*/
@media (max-width: 640px) {
  .contact-info { padding: 24px 20px; }
  .form         { padding: 24px 20px; }
}

/* ── Section headings: slightly smaller on very small phones ─*/
@media (max-width: 380px) {
  .section-heading h2 { font-size: clamp(18px, 7vw, 28px); }
}

/* ── Stats grid: 2-col on mid-size tablets ───────────────────*/
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Impact grid: 2-col on tablets, already 1-col at ≤900 px ─*/
@media (max-width: 768px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* ── Testimonial grid: 1-col already at ≤900 px — no change ─*/

/* ── Why-lead font-size fallback on desktop ──────────────────*/
.why-lead { font-size: 18px; }

/* ── Prose lead on mobile ────────────────────────────────────*/
@media (max-width: 640px) {
  .prose-lead { font-size: 15px; }
  .why-lead   { font-size: 16px; }
}

/* ── Header action buttons — compact size ────────────────────
   .btn inside the header nav area needs tighter padding so
   Login + WhatsApp don't blow out the available space.         */
.header-inner .btn {
  padding: 8px 13px;
  font-size: 13px;
}
.header-inner .btn svg { width: 16px; height: 16px; }

/* ── Hamburger breakpoint — 1350px ──────────────────────────
   7 nav links + 4 action buttons + brand text cannot fit below
   ~1360 px even with compact sizing. Collapse to mobile menu. */
@media (max-width: 1350px) {
  .nav-list      { display: none !important; }
  .hamburger-btn { display: flex !important; }
  #social-drop,
  #connect-drop  { display: none !important; }
}
@media (min-width: 1351px) {
  /* Explicitly keep hamburger hidden at full desktop widths */
  .hamburger-btn { display: none !important; }
}

/* ============================================================
   Our Posts — verified posts grid (renders backend posts)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  transition: opacity 0.2s ease;
}
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: var(--amber-100);
  text-decoration: none;
}

.post-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--amber-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-media img,
.post-card:hover .post-media video { transform: scale(1.03); }

.post-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.post-play svg {
  width: 28px; height: 28px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  padding: 12px;
  box-sizing: content-box;
}
.post-media-empty svg { width: 40px; height: 40px; color: #d6c08a; }

.post-foot { padding: 12px 14px; border-top: 1px solid var(--gray-100); }
.post-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.post-verified { width: 14px; height: 14px; color: #16a34a; }
.post-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-empty { text-align: center; padding: 64px 0; }
.posts-empty svg { width: 56px; height: 56px; color: #d6c08a; margin: 0 auto 12px; }
.posts-empty p { color: var(--gray-600); margin: 0; }

.posts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.posts-page-label { font-size: 14px; color: var(--gray-600); }
.btn-ghost {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid var(--gray-100);
}
.btn-ghost:hover { background: var(--amber-50); color: var(--amber-800); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---- Our Posts: single post detail ---- */
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.post-back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.post-back-link:hover { color: var(--amber-700); }

.post-verified-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 14px;
  font-weight: 600;
}
.post-verified-banner svg { width: 16px; height: 16px; }
.container-3xl > .post-verified-banner { display: flex; width: fit-content; }

.post-detail-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.post-detail-head { padding: 20px 24px 12px; }
.post-detail-head h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--gray-900); line-height: 1.4; }
.post-detail-meta { margin: 6px 0 0; font-size: 12px; color: var(--gray-500); }

.post-detail-media {
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-detail-media img,
.post-detail-media video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; }
.post-detail-media .post-media-empty { padding: 64px 0; }

.post-detail-desc { padding: 20px 24px; border-top: 1px solid var(--gray-100); }
.post-detail-desc p { margin: 0; color: var(--gray-700); font-size: 15px; line-height: 1.7; }

.post-detail-source { padding: 16px 24px; border-top: 1px solid var(--gray-100); background: var(--amber-50); }
.post-detail-source a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.post-detail-source a svg { width: 15px; height: 15px; }

.post-detail-share { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
