/* ==========================================================
   Village Hut Foundation — "Village Green" theme
   Palette: forest, leaf, sprout, turmeric sun, clay, kolam paper
   ========================================================== */
:root {
  --forest: #17351f;
  --forest-2: #214a2b;
  --leaf: #3d7a35;
  --sprout: #8dbf55;
  --sun: #e9a23b;
  --sun-soft: #f6d59a;
  --clay: #b0532c;
  --paper: #f5eedd;
  --cream: #fbf8f0;
  --ink: #1f241d;
  --muted: #5b6455;
  --line: #e2d8c0;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -18px rgba(23, 53, 31, .35);
  --shadow-sm: 0 6px 18px -8px rgba(23, 53, 31, .25);
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-hand: "Kalam", cursive;
  --ff-tamil: "Catamaran", "Noto Sans Tamil", sans-serif;
  --container: 1200px;
  --kolam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%233d7a35' stroke-opacity='.10' stroke-width='1.4'%3E%3Cpath d='M32 6c14 0 26 12 26 26S46 58 32 58 6 46 6 32 18 6 32 6z'/%3E%3Cpath d='M32 18c8 0 14 6 14 14s-6 14-14 14-14-6-14-14 6-14 14-14z'/%3E%3C/g%3E%3Cg fill='%233d7a35' fill-opacity='.16'%3E%3Ccircle cx='32' cy='32' r='2'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='64' cy='0' r='2'/%3E%3Ccircle cx='0' cy='64' r='2'/%3E%3Ccircle cx='64' cy='64' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--forest); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-hand); font-size: 1.25rem; color: var(--clay);
  margin-bottom: .4rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M1 13C5 4 13 1 25 1 21 9 13 13 1 13z' fill='%238dbf55'/%3E%3Cpath d='M1 13C9 9 15 6 22 3' stroke='%233d7a35' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--sun-soft); }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section.paper { background: var(--paper) var(--kolam); }
.section.dark { background: var(--forest); color: #e8efe2; }
.section.dark h2, .section.dark h3 { color: #fff; }
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tamil { font-family: var(--ff-tamil); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .98rem; letter-spacing: .02em; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  font-family: var(--ff-body);
}
.btn svg { width: 18px; height: 18px; }
.btn-sun { background: var(--sun); color: var(--forest); box-shadow: 0 10px 24px -10px rgba(233, 162, 59, .8); }
.btn-sun:hover { background: #f2b456; color: var(--forest); transform: translateY(-2px); }
.btn-green { background: var(--leaf); color: #fff; }
.btn-green:hover { background: var(--forest-2); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }
.btn-outline { border-color: var(--leaf); color: var(--leaf); }
.btn-outline:hover { background: var(--leaf); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--forest); color: #cfe0c4; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sun-soft); }
.topbar-items { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-items span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; color: var(--sprout); }
.topbar .motto { font-family: var(--ff-hand); color: var(--sun-soft); font-size: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 240, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(23, 53, 31, .45); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--forest); }
.brand img { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .01em; }
.brand-tamil { font-family: var(--ff-tamil); font-size: .82rem; color: var(--leaf); font-weight: 600; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: .55rem .8rem; color: var(--ink); font-weight: 700; font-size: .95rem;
  border-radius: 999px; position: relative;
}
.menu a:hover { color: var(--leaf); background: rgba(141, 191, 85, .14); }
.menu a.active { color: var(--leaf); }
.menu a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 6px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 6'%3E%3Cpath d='M1 3c3-3 5-3 8 0s5 3 8 0' stroke='%23e9a23b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.menu .btn { margin-left: .6rem; padding: .7rem 1.25rem; }
.menu .btn:hover { background: #f2b456; color: var(--forest); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--forest); border-radius: 2px; position: relative; transition: .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(233, 162, 59, .45), transparent 32%),
    linear-gradient(100deg, rgba(14, 36, 20, .92) 0%, rgba(14, 36, 20, .72) 45%, rgba(14, 36, 20, .25) 100%);
}
.hero .container { padding: 5rem 0 8rem; }
.hero-content { max-width: 690px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--sun-soft); font-weight: 500; }
.hero p { font-size: 1.2rem; color: #e1ead9; max-width: 590px; }
.hero-tamil { font-family: var(--ff-tamil); font-size: 1.05rem; color: var(--sprout); font-weight: 600; letter-spacing: .02em; margin-bottom: 1rem; display: inline-block; padding: .25rem .9rem; border: 1px solid rgba(141, 191, 85, .5); border-radius: 999px; background: rgba(23, 53, 31, .45); }
.hero-sun {
  position: absolute; right: 7%; top: 14%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #ffd88a 0%, #e9a23b 55%, rgba(233, 162, 59, 0) 72%);
  filter: blur(2px); opacity: .55; z-index: -1; animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(1.12); opacity: .75; } }
.hero-dots { display: flex; gap: .5rem; margin-top: 2.2rem; }
.hero-dots button { width: 34px; height: 5px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--sun); }
.field-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.field-wave svg { width: 100%; height: clamp(60px, 9vw, 120px); }

/* Pillars strip overlapping hero */
.pillars { position: relative; z-index: 3; margin-top: -5.5rem; }
.pillars .grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.pillar {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.1rem; text-align: center;
  box-shadow: var(--shadow); border-bottom: 4px solid var(--sprout); transition: transform .3s;
}
.pillar:hover { transform: translateY(-6px); }
.pillar .ico { width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; background: #eef5e4; color: var(--leaf); }
.pillar .ico svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.05rem; margin: 0; font-family: var(--ff-body); font-weight: 800; }
.pillar:nth-child(2) { border-color: var(--sun); }
.pillar:nth-child(3) { border-color: var(--clay); }
.pillar:nth-child(4) { border-color: var(--leaf); }
.pillar:nth-child(5) { border-color: var(--sun); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(6rem, 11vw, 9rem); overflow: hidden; isolation: isolate;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 36, 20, .92), rgba(14, 36, 20, .55)); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dbe6d2; font-size: 1.15rem; max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: .5rem; font-size: .9rem; margin-bottom: 1rem; color: var(--sun-soft); flex-wrap: wrap; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--sun-soft); }

/* ---------- Image frames ---------- */
.frame { position: relative; }
.frame-main { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; }
.frame-main img { width: 100%; height: 100%; object-fit: cover; }
.frame-small {
  position: absolute; right: -6%; bottom: -8%; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--cream); box-shadow: var(--shadow);
}
.paper .frame-small { border-color: var(--paper); }
.frame-small img { width: 100%; height: 100%; object-fit: cover; }
.frame-badge {
  position: absolute; left: -4%; top: 10%; background: var(--sun); color: var(--forest); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--shadow); max-width: 190px; font-weight: 800; line-height: 1.3;
}
.frame-badge strong { display: block; font-family: var(--ff-hand); font-size: 1.6rem; font-weight: 700; }

.quote-leaf {
  margin: 1.8rem 0; padding: 1.3rem 1.5rem 1.3rem 4rem; border-radius: var(--radius); position: relative;
  background: #eef5e4; color: var(--forest); font-family: var(--ff-display); font-size: 1.2rem; font-style: italic;
}
.quote-leaf::before {
  content: "\201C"; position: absolute; left: 1rem; top: -.3rem; font-size: 4.5rem; color: var(--sprout); font-family: var(--ff-display); line-height: 1;
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sprout) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 64px; height: 64px; border-radius: 20px 20px 20px 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sprout), var(--leaf)); color: #fff; margin-bottom: 1.2rem;
}
.card .ico svg { width: 32px; height: 32px; }
.card p { color: var(--muted); margin: 0; }
.card .num { position: absolute; right: 1.4rem; top: 1rem; font-family: var(--ff-display); font-size: 3.4rem; color: rgba(61, 122, 53, .1); font-weight: 700; line-height: 1; }

.focus-card { padding: 0; display: flex; flex-direction: column; }
.focus-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.focus-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.focus-card:hover .media img { transform: scale(1.07); }
.focus-card .body { padding: 1.6rem 1.7rem 1.9rem; position: relative; flex: 1; }
.focus-card .tag {
  position: absolute; top: -26px; right: 1.4rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--forest); box-shadow: var(--shadow-sm); border: 4px solid #fff;
}
.focus-card .tag svg { width: 24px; height: 24px; }
.focus-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }

/* Mission / vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mv-card { border-radius: var(--radius-lg); padding: 2.6rem 2.4rem; position: relative; overflow: hidden; }
.mv-card.mission { background: var(--forest); color: #dfe9d6; }
.mv-card.mission h3 { color: #fff; }
.mv-card.vision { background: var(--sun); color: #3a2a0f; }
.mv-card.vision h3 { color: var(--forest); }
.mv-card h3 { font-size: 1.9rem; }
.mv-card .big-ico { position: absolute; right: -20px; bottom: -20px; width: 170px; height: 170px; opacity: .14; }
.mv-card p { font-size: 1.08rem; position: relative; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value {
  background: #fff; border-radius: var(--radius-lg); padding: 1.8rem; display: flex; gap: 1.1rem; align-items: flex-start;
  border: 1px solid var(--line); transition: .3s;
}
.value:hover { border-color: var(--sprout); box-shadow: var(--shadow-sm); }
.value .ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fbecd2; color: var(--clay); }
.value .ico svg { width: 28px; height: 28px; }
.value h3 { margin-bottom: .25rem; font-size: 1.25rem; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }
.dark .value { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.dark .value p { color: #bfd0b5; }
.dark .value .ico { background: rgba(233, 162, 59, .18); color: var(--sun); }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; border-top: 2px dashed rgba(141, 191, 85, .55); }
.step { text-align: center; position: relative; counter-increment: step; }
.step .dot {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  background: var(--forest); color: var(--sun); border: 5px solid var(--paper); box-shadow: 0 0 0 2px var(--sprout); position: relative;
}
.step .dot svg { width: 28px; height: 28px; }
.step .dot::after {
  content: counter(step); position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sun); color: var(--forest); font-size: .78rem; font-weight: 800; display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; font-family: var(--ff-body); font-weight: 800; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Collaboration list */
.collab { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.collab-item {
  background: #fff; border-radius: var(--radius); padding: 1.4rem; border-left: 5px solid var(--sprout);
  box-shadow: var(--shadow-sm); font-weight: 700; color: var(--forest); display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; line-height: 1.45;
}
.collab-item svg { width: 30px; height: 30px; flex: none; color: var(--clay); }

/* Partners audience chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--forest); font-size: .95rem; }
.chip::before { content: "\2740  "; color: var(--sprout); }

/* Commitment banner */
.commit {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; isolation: isolate;
}
.commit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.commit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 53, 31, .82), rgba(23, 53, 31, .92)); z-index: -1; }
.commit h2 { color: #fff; max-width: 820px; margin-inline: auto; }
.commit p { color: #dbe6d2; max-width: 720px; margin-inline: auto; font-size: 1.12rem; }
.commit .one-line {
  font-family: var(--ff-hand); color: var(--sun-soft); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 1.5rem 0 2rem; line-height: 1.4;
}
.small-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.small-acts span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--sun) var(--kolam); padding: 3.2rem 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 680px; }
.cta-band p { margin: .4rem 0 0; color: #4a3712; font-weight: 600; }

/* Gallery */
.filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filters button {
  font: inherit; font-weight: 800; font-size: .92rem; padding: .6rem 1.25rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--forest); cursor: pointer; transition: .2s;
}
.filters button:hover { border-color: var(--sprout); }
.filters button.is-active { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.masonry { columns: 3 280px; column-gap: 1.1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1.1rem; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--paper); }
.masonry figure.hide { display: none; }
.masonry img { width: 100%; height: auto; transition: transform .6s; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(transparent, rgba(14, 36, 20, .85)); opacity: 0; transform: translateY(8px); transition: .35s;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; transform: none; }
.masonry figcaption small { display: block; color: var(--sun-soft); font-weight: 600; font-family: var(--ff-hand); font-size: 1rem; }

.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 1rem; }
.photo-strip a { border-radius: var(--radius); overflow: hidden; position: relative; display: block; }
.photo-strip a:first-child { grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo-strip a:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 22, 13, .94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 3rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1100px, 100%); border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.lightbox p { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #e5ecdf; margin: 0; font-weight: 700; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: var(--sun); color: var(--forest); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Accountability */
.pledge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pledge .card { border-top: 5px solid var(--leaf); }
.pledge .card:nth-child(2n) { border-top-color: var(--sun); }
.notice {
  background: #fff8e8; border: 1px dashed var(--sun); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: #5a4417; font-size: .95rem;
}

/* Founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.founder-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 0 0 2px var(--sprout); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.founder .sign { font-family: var(--ff-hand); font-size: 1.6rem; color: var(--clay); margin: 0; line-height: 1.2; }
.founder .role { font-weight: 800; color: var(--muted); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-info { background: var(--forest) var(--kolam); color: #dfe9d6; border-radius: var(--radius-lg); padding: 2.4rem; position: relative; overflow: hidden; }
.contact-info h2, .contact-info h3 { color: #fff; }
.info-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(233, 162, 59, .18); color: var(--sun); }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row strong { display: block; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.info-row a { color: #fff; font-weight: 700; }
.info-row a:hover { color: var(--sun-soft); }
.info-row address { font-style: normal; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; font-size: .9rem; color: var(--forest); margin-bottom: .35rem; }
label .req { color: var(--clay); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sprout); box-shadow: 0 0 0 4px rgba(141, 191, 85, .22); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--clay); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0; border-radius: 12px; font-weight: 700; }
.form-status.ok { padding: 1rem 1.2rem; background: #e8f4dc; color: var(--forest); }
.form-status.err { padding: 1rem 1.2rem; background: #fbe6dc; color: #7a2c10; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .25rem; flex: none; accent-color: var(--leaf); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 2rem; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2616; color: #b9c9af; position: relative; padding-top: 5rem; font-size: .96rem; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-120 22-240 34-360 22S840 8 720 14 480 46 360 44 120 20 0 26z' fill='%23fbf8f0'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-family: var(--ff-body); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.2rem; }
.site-footer h4::after { content: ""; display: block; width: 36px; height: 3px; background: var(--sun); border-radius: 3px; margin-top: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #d8e4cf; }
.site-footer a:hover { color: var(--sun-soft); }
.f-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.1rem; }
.f-brand img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.f-brand strong { font-family: var(--ff-display); font-size: 1.35rem; color: #fff; display: block; line-height: 1.2; }
.f-brand span { font-family: var(--ff-tamil); color: var(--sprout); font-size: .88rem; }
.f-motto { font-family: var(--ff-hand); color: var(--sun-soft); font-size: 1.25rem; }
.f-contact li { display: flex; gap: .7rem; }
.f-contact svg { width: 18px; height: 18px; flex: none; margin-top: .3rem; color: var(--sprout); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 26px; bottom: 88px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--forest); color: var(--sun); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal text */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu a { padding: .5rem .55rem; font-size: .9rem; }
  .pillars .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 6rem 1.4rem 2rem; gap: .2rem; box-shadow: -20px 0 50px rgba(0, 0, 0, .2);
    transform: translateX(105%); transition: transform .35s ease; z-index: 70; overflow-y: auto;
  }
  .nav-open .menu { transform: none; }
  .menu a { font-size: 1.05rem; padding: .8rem 1rem; }
  .menu a.active::after { display: none; }
  .menu a.active { background: rgba(141, 191, 85, .16); }
  .menu .btn { margin: 1rem 0 0; justify-content: center; }
  .nav-toggle { position: relative; z-index: 80; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10, 22, 13, .5); z-index: 65; opacity: 0; pointer-events: none; transition: .3s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .split, .contact-grid, .mv, .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 240px; margin: 0 auto; }
  .grid-3, .values, .pledge { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .frame { max-width: 520px; margin: 0 auto 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .motto, .topbar .addr { display: none; }
  .nav { min-height: 72px; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tamil { font-size: .74rem; }
  .pillars .grid { grid-template-columns: 1fr 1fr; }
  .pillar:last-child { grid-column: 1 / -1; }
  .grid-2, .grid-3, .grid-4, .values, .pledge, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .photo-strip a:first-child { grid-column: 1 / -1; grid-row: auto; }
  .frame-badge { left: 0; top: 4%; max-width: 160px; padding: .8rem 1rem; font-size: .9rem; }
  .frame-small { right: 0; }
  .card { padding: 1.6rem; }
  .founder { padding: 1.6rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Programmes */
.prog-card h3 { padding-right: 3.2rem; }
.prog-card .prog-sub { color: var(--leaf); font-weight: 700; font-size: .92rem; margin: -.3rem 0 .7rem; }
.prog-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.prog-card .prog-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; color: var(--leaf); }
.prog-card .prog-link svg { width: 18px; height: 18px; }
