/* ============================================================
   The Siksha Mitra — design system (merged)
   Refined monochrome + cinematic scroll choreography
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #08080d;
  --bg-2: #0d0d14;
  --panel: #11111a;
  --panel-2: #161620;
  --ink: #f4f4f6;
  --muted: #9b9ba8;
  --dim: #6e6e7b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #8b93f5;
  --accent-2: #aab0f8;
  --accent-soft: rgba(139, 147, 245, 0.16);
  --radius: 22px;
  --font-head: "Sora", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-hindi: "Tiro Devanagari Hindi", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #26262f #0d0d14;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 40% at 50% 0%, rgba(139, 147, 245, 0.06), transparent 60%),
    radial-gradient(45% 30% at 92% 15%, rgba(255, 255, 255, 0.02), transparent 60%),
    radial-gradient(50% 40% at 10% 95%, rgba(139, 147, 245, 0.04), transparent 65%),
    var(--bg);
}

::selection { background: rgba(139, 147, 245, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 10px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #33333f; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.hindi { font-family: var(--font-hindi); }

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1500;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- Preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-mark {
  font-family: var(--font-hindi);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent-2);
  animation: pulseSoft 2.4s ease-in-out infinite;
}
.loader-title {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.42em;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  margin: 0.4rem 0 2.2rem;
  color: var(--muted);
}
.loader-track {
  width: min(300px, 70vw);
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.loader-pct {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-badge {
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  padding: 0.3rem 0.68rem;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-logo {
  width: auto;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.brand-name em { font-style: normal; color: var(--accent); }

/* ---------- Animated Indian flag (header brand) ----------
   The element itself carries a static tricolor gradient so the flag
   still reads correctly before the video loads or if it can't play.
   The waving video (assets/video/india-flag.webm) plays on top. */
.flag {
  position: relative;
  flex: none;
  width: 60px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff9933 0 33.4%, #ffffff 33.4% 66.6%, #138808 66.6% 100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.flag video {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: cover;
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta {
  color: #0d0d14;
  background: var(--ink);
  padding: 0.6rem 1.3rem;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: #ffffff; color: #0d0d14; }
.nav-links .nav-cta.nav-donate {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(139, 147, 245, 0.5);
}
.nav-links .nav-cta.nav-donate:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 1301;
}
.nav-burger span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav: medium widths (keep the row from getting tight) ---------- */
@media (max-width: 1240px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.9rem; }
  .nav-links .nav-cta { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
}
@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1300;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(8, 8, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.4rem; }
  .nav-burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(50% 42% at 50% 45%, rgba(139, 147, 245, 0.14), transparent 70%),
    radial-gradient(40% 30% at 20% 75%, rgba(255, 255, 255, 0.04), transparent 70%),
    radial-gradient(40% 30% at 80% 20%, rgba(139, 147, 245, 0.08), transparent 70%);
}
.no-webgl .hero-fallback { display: block; }
.no-webgl #hero-canvas { display: none; }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(8, 8, 13, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 8, 13, 0.55) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}

/* Outlined titles (on top of the image, like the original concept) */
.hero-titles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
  width: 100%;
}
.hero-text {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 10vw, 10rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  will-change: transform;
}
.hero-text.accent {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

/* Masked photo (on top of titles) */
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.hero-media-mask {
  --w: 300px;
  --h: 440px;
  width: var(--w);
  height: var(--h);
  border-radius: 200px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  will-change: width, height, border-radius;
}
.hero-image {
  /* Fill the mask completely: as the mask grows on scroll, the visible
     crop window expands outward from the photo's centre — no drift. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  opacity: 0.8;
  filter: saturate(0.9) contrast(1.05);
}

/* Stats strip */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  bottom: 2.4rem;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: 1.1rem 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 17, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.hs { text-align: center; min-width: 100px; }
.hs strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
}
.hs span { font-size: 0.78rem; color: var(--dim); letter-spacing: 0.04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 99px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  will-change: transform;
  transition: box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.35s;
}
.btn-primary {
  color: #0d0d14;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: #ffffff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn.full { width: 100%; justify-content: center; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
}
.marquee-track b { color: var(--line-strong); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(90px, 12vw, 150px) clamp(1.4rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.sec-head { max-width: 780px; margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }

.sec-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.2rem;
}
.sec-label span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.24rem 0.56rem;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.12em;
}.sec-title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.sec-title .serif { color: var(--accent-2); }

/* ---------- Manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
}

.manifesto-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 147, 245, 0.07), transparent 70%),
    var(--panel);
  overflow: hidden;
  will-change: transform;
}
.art-orbit {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.art-orbit-2 {
  inset: 26%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.09);
  animation-direction: reverse;
  animation-duration: 22s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.art-core {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff, #f7f4ed 78%);
  border: 2px solid rgba(255, 153, 51, 0.4);
  box-shadow: 0 0 50px rgba(255, 153, 51, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: corePulse 5s ease-in-out infinite;
  padding: 0.8rem;
  z-index: 2;
}
.art-core-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-hindi);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.3vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.slogan-orange {
  color: #e65100; /* Vibrant Saffron Orange */
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(230, 81, 0, 0.2);
}
.slogan-blue {
  color: #0d47a1; /* Deep Royal Navy Blue */
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(13, 71, 161, 0.2);
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 35px rgba(255, 153, 51, 0.2), 0 8px 25px rgba(0, 0, 0, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 60px rgba(255, 153, 51, 0.35), 0 12px 35px rgba(0, 0, 0, 0.45); transform: scale(1.03); }
}

.art-node {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  animation: nodeFloat 5s ease-in-out infinite;
  transition: color 0.3s, border-color 0.3s;
}
.art-node:hover { color: var(--accent-2); border-color: rgba(139, 147, 245, 0.5); }
.art-node svg { width: 22px; height: 22px; }
.art-node.n1 { top: 8%; left: 16%; }
.art-node.n2 { top: 16%; right: 10%; animation-delay: 1.2s; }
.art-node.n3 { bottom: 12%; left: 12%; animation-delay: 2.1s; }
.art-node.n4 { bottom: 8%; right: 18%; animation-delay: 3s; }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.manifesto-copy .lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.manifesto-copy .lead em { color: var(--accent-2); font-style: italic; }
.manifesto-copy .lead strong { color: var(--ink); }
.manifesto-copy > p:not(.lead) { margin-top: 1.3rem; color: var(--muted); }
.manifesto-copy > p strong { color: #dedee6; }

/* Word-by-word reveal (driven by GSAP) */
.word { opacity: 0.22; transition: opacity 0.12s ease; }

.check-list { margin: 1.8rem 0 2.2rem; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: #cfcfd9; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* ---------- Cards (who we serve) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  will-change: transform;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.05), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 1.4rem;
  transition: color 0.3s, border-color 0.3s;
}
.card:hover .card-icon { color: var(--accent-2); border-color: rgba(139, 147, 245, 0.4); }
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card ul { margin-top: 1.3rem; display: grid; gap: 0.5rem; }
.card ul li { font-size: 0.92rem; color: #c6c6d1; padding-left: 1.4rem; position: relative; }
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }

/* ---------- Stacking panels ---------- */
.panels-wrapper { position: relative; width: 100%; }

.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a11;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 65% at 72% 45%, var(--tint, rgba(255, 255, 255, 0.04)), transparent 70%);
  pointer-events: none;
}
.panel-career { --tint: rgba(139, 147, 245, 0.09); }
.panel-skill { --tint: rgba(56, 189, 248, 0.07); }
.panel-awareness { --tint: rgba(251, 191, 36, 0.06); }
.panel-donate { --tint: rgba(167, 139, 250, 0.09); }

.panel-content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 0 clamp(1.4rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.panel-text { flex: 1; min-width: 0; }

.accordion-header {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  transition: opacity 0.3s ease;
}
.accordion-header:hover { opacity: 0.75; }
.accordion-icon {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--dim);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.accordion-header:hover .accordion-icon { color: var(--accent-2); }

.accordion-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.panel-desc {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
  padding: 0.4rem 0 1.2rem;
}

.course-list { list-style: none; font-size: 1.15rem; padding-bottom: 1.5rem; max-width: 640px; }
.course-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.course-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 0.85;
  transition: opacity 0.3s, padding-left 0.3s;
}
.course-btn:hover { opacity: 1; padding-left: 0.8rem; }
.course-btn .arrow {
  color: var(--dim);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease);
  flex: none;
}
.course-btn:hover .arrow { opacity: 1; transform: translateX(0); color: var(--accent-2); }

.panel-media {
  flex: 1;
  height: 68vh;
  max-height: 640px;
  min-height: 380px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.panel-img.dim { filter: saturate(0.8) contrast(1.05) brightness(0.82); }

/* Donate panel photo is square — match the card to it so the full image shows.
   min-height: 0 lets the square card keep its exact ratio on short/narrow
   screens (the base min-height would otherwise force a crop on mobile). */
.panel-donate .panel-media {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  max-height: 68vh;
}

/* Career, skill & awareness photos are portrait — match each card so the full image shows */
.panel-career .panel-media,
.panel-skill .panel-media,
.panel-awareness .panel-media {
  width: auto;
  height: 68vh;
  max-height: 640px;
  max-width: 100%;
  flex: 0 1 auto;
}
.panel-career .panel-media,
.panel-awareness .panel-media { aspect-ratio: 1145 / 1374; }
.panel-skill .panel-media { aspect-ratio: 784 / 1052; }

.panel-title {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.panel-description {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

/* ---------- Journey timeline ---------- */
.journey .timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 0; }
.tl-line {
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.tl-step { position: relative; padding: 0 0 clamp(2.4rem, 5vw, 3.4rem) 118px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.tl-dot svg { width: 28px; height: 28px; }
.tl-step:hover .tl-dot { color: var(--accent-2); border-color: rgba(139, 147, 245, 0.45); }
.tl-step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; font-weight: 600; }
.tl-step p { color: var(--muted); max-width: 52ch; }

/* ---------- Stats ---------- */
.stats {
  max-width: none;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.stats-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 50% 50%, rgba(139, 147, 245, 0.07), transparent 75%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
}
.stat { padding: 1rem; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff, #c2c7f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--dim); margin-top: 0.4rem; letter-spacing: 0.05em; font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: start;
}
.contact-info .sec-title { margin-bottom: 1.2rem; }
.contact-info > p:not(.sec-label) { color: var(--muted); max-width: 50ch; }

.contact-details { margin-top: 2.2rem; display: grid; gap: 1rem; }
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.cd-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.cd-icon svg { width: 19px; height: 19px; }
.contact-details b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.contact-details a, .contact-details p { color: var(--ink); font-size: 0.97rem; }
.contact-details a:hover { color: var(--accent-2); }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b9ba8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(139, 147, 245, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(110, 110, 123, 0.6); }
.field select option { background: var(--bg-2); }

.form-note {
  text-align: center;
  color: var(--accent-2);
  font-size: 0.95rem;
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.form-note.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem) 1.6rem;
  overflow: hidden;
}
.footer-huge {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 14vw, 12.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  margin: 0 auto clamp(2.4rem, 6vw, 4rem);
  max-width: 1280px;
  user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}
.footer h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.1rem;
}
.footer-grid > div:not(:first-child) { display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; width: fit-content; }
.footer-grid a:hover { color: var(--ink); }
.footer-tag { color: var(--dim); margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer-bottom {
  max-width: 1280px;
  margin: 2.6rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--dim);
  font-size: 0.88rem;
}
.footer-bottom .hindi { color: var(--muted); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s, border-color 0.3s, color 0.3s;
  backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent-2); border-color: rgba(139, 147, 245, 0.5); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 3rem);
  width: 100%;
  max-width: 660px;
  position: relative;
  transform: translateY(50px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.modal-content.scrollable { max-height: 88vh; overflow-y: auto; }
.modal-content.scrollable::-webkit-scrollbar { width: 8px; }
.modal-content.scrollable::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 4px; margin: 10px 0; }
.modal-content.scrollable::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 4px; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 1.9rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s, transform 0.3s;
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }

.modal-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 0.6rem; }
.modal-subtitle { color: var(--muted); margin-bottom: 1.8rem; }
.modal-description { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 2rem; }

.enrollment-form .form-group { display: flex; flex-direction: column; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.form-group.full-width { margin-bottom: 1.1rem; grid-column: 1 / -1; }
.enrollment-form label {
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.enrollment-form input, .enrollment-form select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.enrollment-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b9ba8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.enrollment-form select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.enrollment-form select option { background: var(--bg-2); }
.enrollment-form input:focus, .enrollment-form select:focus {
  border-color: rgba(139, 147, 245, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Reveal choreography ---------- */
[data-reveal] { opacity: 0; }
[data-reveal].settled {
  animation: none !important;
  opacity: 1;
  transform: none;
}
[data-reveal].visible {
  animation: revealUp 1s var(--ease) both;
  animation-delay: var(--d, 0s);
}
[data-reveal="left"].visible { animation-name: revealLeft; }
[data-reveal="right"].visible { animation-name: revealRight; }
[data-reveal="zoom"].visible { animation-name: revealZoom; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-64px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(64px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealZoom {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .word { opacity: 1; }
  .accordion-content { height: auto; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-art { max-width: 460px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .panel-content { flex-direction: column; text-align: center; gap: 2rem; }
  .panel-text { width: 100%; }
  .panel-media { width: 100%; height: 38vh; min-height: 260px; }
  .panel-career .panel-media,
  .panel-skill .panel-media,
  .panel-awareness .panel-media,
  .panel-donate .panel-media { width: 100%; height: auto; }
  .accordion-header { font-size: clamp(2rem, 7vw, 3rem); }
  .course-list { max-width: none; text-align: left; }
  .panel-desc { margin-inline: auto; }
  .hero-media-mask { --w: 220px; --h: 330px; }
  .hero-text { font-size: clamp(2.6rem, 13vw, 5rem); }
  .hero-stats { bottom: 1.4rem; padding: 0.9rem 1.2rem; gap: 1.2rem; }
  .hs { min-width: 80px; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-step { padding-left: 96px; }
  .tl-dot { width: 66px; height: 66px; }
  .tl-line { left: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
}
