/* ==========================================================
   The Path to Parivaar Foundation
   ========================================================== */

:root {
  --cream: #FBF7F0;
  --sand: #F3EBDD;
  --line: #E8DFD0;
  --ink: #1F2A2E;
  --ink-2: #3D4A4E;
  --ink-3: #5A6669;
  --ink-line: #3F4C50;
  --teal: #1F5C5A;
  --teal-2: #174746;
  --teal-soft: #D8E6E4;
  --amber: #E9A94B;
  --gold: #F2C98B;
  --rust: #8A4A0F;
  --rust-2: #5E3209;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --deva: 'Tiro Devanagari Hindi', serif;

  --gutter: clamp(20px, 6vw, 120px);
  --maxw: 1320px;
  --radius-lg: 28px;
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(31, 42, 46, .04), 0 2px 8px rgba(31, 42, 46, .04);
  --shadow-md: 0 10px 30px -10px rgba(31, 42, 46, .18), 0 4px 10px -6px rgba(31, 42, 46, .08);
  --shadow-lg: 0 30px 60px -20px rgba(31, 42, 46, .28);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--rust); transition: color .2s var(--ease); }
a:hover { color: var(--rust-2); }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; left: 16px; top: 16px; transform: translateY(-200%); z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; color: var(--white); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px -10px rgba(31,92,90,.7); }
.btn-primary:hover { background: var(--teal-2); color: var(--white); box-shadow: 0 14px 28px -12px rgba(31,92,90,.8); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--gold); color: var(--ink); box-shadow: 0 14px 28px -12px rgba(0,0,0,.45); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 247, 240, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(31, 42, 46, .35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: 18px var(--gutter);
  transition: padding .35s var(--ease);
}
.site-header.is-scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { transition: transform .5s var(--ease-out); }
.brand-mark .roof { stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease-out); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand:hover .brand-mark .roof { animation: draw-roof .8s var(--ease-out); }
.brand-mark .hearth { transform-origin: 18px 21px; animation: hearth 3.2s ease-in-out infinite; }
@keyframes draw-roof { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes hearth { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }
.nav-link { position: relative; color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero {
  --hero-a: #CFE3E0;
  --hero-b: #F5DDB5;
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 88px) var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero[data-theme="ink"]   { --hero-a: #C9D4D6; --hero-b: #F3D39E; }
.hero[data-theme="sand"]  { --hero-a: #EAD8BD; --hero-b: #C9DFDB; }
.hero[data-theme="amber"] { --hero-a: #F6D59E; --hero-b: #D2E4E1; }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6;
  transition: background 1.2s var(--ease);
}
.blob-a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--hero-a); animation: float-a 18s ease-in-out infinite; }
.blob-b { width: 40vw; height: 40vw; right: -10vw; bottom: -16vw; background: var(--hero-b); animation: float-b 22s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 4vw) scale(1.08); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw, -3vw) scale(1.1); } }

.hero-slides {
  display: grid; width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  visibility: hidden; pointer-events: none;
}
.slide.is-active, .slide.is-leaving { visibility: visible; }
.slide.is-active { pointer-events: auto; z-index: 2; }
.slide.is-leaving { z-index: 1; }

.slide-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }
.eyebrow-gold { color: var(--gold); }

.hero-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.03;
}
.hero-title em {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-style: italic; font-weight: 400; color: var(--teal);
  background: linear-gradient(transparent 70%, rgba(233,169,75,.35) 70%);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1s var(--ease-out) .7s;
}
.slide.is-active .hero-title em { background-size: 100% 100%; }
.hero-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* staggered text entrance */
.slide .anim {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s var(--ease-out);
}
.slide.is-active .anim { opacity: 1; transform: none; filter: blur(0); }
.slide.is-active .anim:nth-child(1) { transition-delay: .15s; }
.slide.is-active .anim:nth-child(2) { transition-delay: .27s; }
.slide.is-active .anim:nth-child(3) { transition-delay: .39s; }
.slide.is-active .anim:nth-child(4) { transition-delay: .51s; }
.slide.is-leaving .anim { opacity: 0; transform: translateY(-18px); filter: blur(4px); transition-duration: .45s; transition-delay: 0s; }

/* visual reveal */
.slide-visual { position: relative; }
.visual-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  height: clamp(420px, 62vh, 580px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(32px, 4vw, 56px);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  clip-path: inset(6% 6% 6% 6% round 28px);
  transform: scale(1.04) translateY(10px);
  opacity: 0;
  transition: clip-path 1.1s var(--ease-out), transform 1.2s var(--ease-out), opacity .6s var(--ease);
}
.slide.is-active .visual-card { clip-path: inset(0 0 0 0 round 28px); transform: none; opacity: 1; }
.slide.is-leaving .visual-card { opacity: 0; transform: scale(.97); transition-duration: .6s; }

.visual-teal { background: radial-gradient(120% 90% at 100% 0%, #2B7471 0%, var(--teal) 55%, #164644 100%); }
.visual-ink { background: radial-gradient(120% 90% at 0% 0%, #2F3D42 0%, var(--ink) 60%); }
.visual-amber { background: radial-gradient(120% 90% at 100% 0%, #F3BE6C 0%, var(--amber) 55%, #D48F2E 100%); color: var(--ink); }
.visual-photo { padding: 0; background: var(--ink); }

.deva-watermark {
  position: absolute; right: -40px; top: -30px; font-family: var(--deva);
  font-size: clamp(140px, 16vw, 220px); line-height: 1; color: var(--white); opacity: .08;
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-24px); } }
.deva-small { font-family: var(--deva); font-size: 30px; color: var(--gold); position: relative; }
.visual-body { position: relative; display: flex; flex-direction: column; gap: 18px; }
.visual-quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 400; }
.visual-text { font-size: 17px; line-height: 1.6; color: var(--teal-soft); max-width: 520px; }
.visual-amber .visual-text { color: rgba(31,42,46,.8); }

.visual-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.12); transition: transform 8s linear;
}
.slide.is-active .visual-photo img { transform: scale(1); }
.photo-overlay {
  position: absolute; inset: auto 0 0 0; padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(to top, rgba(20,28,31,.9) 10%, rgba(20,28,31,0));
  display: flex; flex-direction: column; gap: 10px;
}
.photo-overlay .visual-quote { font-size: clamp(24px, 2.4vw, 32px); }

/* nashik map visual */
.visual-ink { justify-content: flex-end; }
.visual-ink .visual-body { gap: 10px; }
.nashik-map { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 66%; }
.nashik-map .river { stroke-dasharray: 700; stroke-dashoffset: 700; }
.slide.is-active .nashik-map .river { animation: river 2.4s var(--ease-out) .4s forwards; }
@keyframes river { to { stroke-dashoffset: 0; } }
.nashik-map .pin { transform-origin: 200px 232px; }
.slide.is-active .nashik-map .pin { animation: pin-drop .9s var(--ease-out) .6s both, bob 3.5s ease-in-out 1.6s infinite; }
@keyframes pin-drop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nashik-map .pulse { transform-origin: 200px 232px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.nashik-map .map-rings circle { transform-origin: 200px 190px; animation: spin-slow 40s linear infinite; stroke-dasharray: 4 8; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* pathways visual */
.pathways { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pathways span {
  padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.55);
  border: 1px solid rgba(31,42,46,.12); font-weight: 600; font-size: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  margin-left: calc(var(--i) * 22px);
  opacity: 0; transform: translateX(-20px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(.45s + var(--i) * .1s);
}
.slide.is-active .pathways span { opacity: 1; transform: none; }

/* hero controls */
.hero-controls {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 5;
  padding: 8px; border-radius: 999px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(31,42,46,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.hero-arrow, .hero-pause {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.hero-arrow:hover, .hero-pause:hover { background: var(--white); transform: scale(1.06); }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-dots { display: flex; gap: 8px; }
.dot {
  width: 34px; height: 6px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(31,42,46,.16); overflow: hidden; position: relative;
  transition: width .5s var(--ease-out), background .3s var(--ease);
}
.dot.is-active { width: 64px; }
.dot span { position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.dot.is-done span { transform: scaleX(1); }
.dot.is-active span { animation: dot-fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .dot.is-active span { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 44px; width: 26px; height: 42px;
  border: 2px solid rgba(31,42,46,.4); border-radius: 20px; display: block;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px;
  background: var(--ink); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) var(--gutter); position: relative; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head.split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 64px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 16px; max-width: 660px; }
.section-title {
  font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1;
  font-weight: 500; letter-spacing: -.015em;
}
.section-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 440px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 40px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.card-title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.card-num {
  font-family: var(--serif); font-size: 20px; color: var(--rust);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--sand);
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out);
}

.card-hover {
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s var(--ease);
}
.card-hover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(233,169,75,.16), transparent 60%);
  transition: opacity .4s var(--ease);
}
.card-hover::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-hover:hover::before { opacity: 1; }
.card-hover:hover::after { transform: scaleX(1); }
.card-hover:hover .card-num { background: var(--teal); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.card-hover:hover .icon-badge { background: var(--teal); color: var(--white); transform: rotate(-6deg) scale(1.05); }

.card-dark {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  justify-content: space-between; gap: 24px; overflow: hidden;
}
.card-dark::before {
  content: "परिवार"; position: absolute; right: -20px; bottom: -40px; font-family: var(--deva);
  font-size: 140px; line-height: 1; opacity: .06; pointer-events: none;
}
.card-dark .card-dark-quote { font-family: var(--serif); font-size: 28px; line-height: 1.3; font-weight: 400; position: relative; color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none;
  margin-top: auto;
}
.link-arrow span { transition: transform .35s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }
.card-dark .link-arrow { color: var(--gold); }
.card-dark .link-arrow:hover { color: var(--white); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sand); color: var(--teal);
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out);
}
.icon-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pillars ---------- */
.pillar {
  display: flex; flex-direction: column; gap: 14px; padding: 8px 0;
}
.pillar .icon-badge { background: var(--white); margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.pillar:hover .icon-badge { background: var(--teal); color: var(--white); transform: translateY(-3px) rotate(-6deg); }
.pillar-title { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.pillar p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Nashik ---------- */
.nashik { overflow: hidden; }
.nashik-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "feat feat a b"
    "feat feat c d";
}
.nashik-grid > :nth-child(1) { grid-area: feat; }
.nashik-grid > :nth-child(2) { grid-area: a; }
.nashik-grid > :nth-child(3) { grid-area: b; }
.nashik-grid > :nth-child(4) { grid-area: c; }
.nashik-grid > :nth-child(5) { grid-area: d; }
.nashik-grid .card { padding: 32px; }
.nashik-grid .card-title { font-size: 22px; }
.nashik-grid .card p { font-size: 15px; }

.nashik-feature {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(120% 100% at 100% 0%, #2B7471 0%, var(--teal) 50%, #133D3C 100%);
  color: var(--white); padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px;
  box-shadow: var(--shadow-md);
}
.nashik-feature-bg {
  position: absolute; top: -20px; right: -20px; font-family: var(--deva); font-size: clamp(120px, 14vw, 210px);
  line-height: 1; color: var(--white); opacity: .08; animation: drift 18s ease-in-out infinite;
}
.nashik-feature::after {
  content: ""; position: absolute; left: -10%; right: -10%; top: 30%; height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 140'%3E%3Cpath d='M0 90 C 120 30, 220 130, 360 70 S 600 20, 800 60' fill='none' stroke='%236FB3AE' stroke-opacity='.35' stroke-width='4'/%3E%3Cpath d='M0 110 C 140 60, 240 150, 380 95 S 620 50, 800 85' fill='none' stroke='%23F2C98B' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  animation: drift 14s ease-in-out infinite;
  pointer-events: none;
}
.nashik-feature-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.nashik-feature h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 500; }
.nashik-feature p { font-size: 17px; line-height: 1.65; color: var(--teal-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.chip-light { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: var(--gold); }

/* ---------- Path ---------- */
.path-list {
  margin: 0; padding: 0; list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: step;
}
.path-step {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: 16px; border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.015);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease), background .4s var(--ease);
}
.path-step:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(242,201,139,.06); }
.step-num {
  font-family: var(--serif); font-size: 36px; color: var(--gold); line-height: 1;
  transition: transform .5s var(--ease-out);
}
.path-step:hover .step-num { transform: translateX(4px); }
.step-text { font-size: 19px; font-weight: 500; line-height: 1.4; }
.path-step-final { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.path-step-final .step-num { color: var(--ink); }
.path-step-final .step-text { font-weight: 600; }
.path-step-final:hover { background: var(--gold); border-color: var(--gold); }
.path-step:not(.path-step-final)::after {
  content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--ink-line), var(--gold));
}
.path-step:nth-child(4n)::after { display: none; }

.pathways-block {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--ink-line);
}
.pathways-block p { font-size: 18px; color: #D0D8DA; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pill {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gold); font-size: 16px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out);
}
.pill:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.story-media { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.story-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.story-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 40%;
  transition: transform 1.2s var(--ease-out);
}
.story-photo:hover img { transform: scale(1.04); }
.story-quote { margin: 0; padding: 32px 36px; border-radius: var(--radius); background: var(--sand); position: relative; }
.story-quote::before {
  content: "“"; position: absolute; top: -18px; left: 24px; font-family: var(--serif);
  font-size: 96px; line-height: 1; color: var(--amber);
}
.story-quote p { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; font-weight: 400; }
.story-quote footer { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.story-copy { display: flex; flex-direction: column; gap: 24px; }
.story-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 8px; }
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--white);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num { font-family: var(--serif); font-size: 34px; color: var(--teal); line-height: 1.1; }
.stat-label { font-size: 14px; line-height: 1.4; color: var(--ink-3); }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.principle { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; position: relative; }
.principle::before, .principle::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px;
}
.principle::before { right: 0; background: var(--ink); opacity: .9; }
.principle::after { width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.principle:hover::after { transform: scaleX(1); }
.principle h3 { font-size: 20px; font-weight: 600; }
.principle p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.principle-local h3 { color: var(--teal); }

/* ---------- Involved ---------- */
.involve-card p { flex-grow: 1; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 920px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.faq[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231F2A2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .4s var(--ease-out), background-color .3s var(--ease);
}
.faq[open] summary::after { transform: rotate(135deg); background-color: var(--gold); }
.faq-body { padding: 0 26px 24px; }
.faq-body p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.faq[open] .faq-body { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: var(--maxw); margin: clamp(64px, 8vw, 120px) auto;
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 80px); border-radius: var(--radius-lg);
  background: var(--teal); color: var(--white);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start;
  box-shadow: var(--shadow-lg);
}
.contact-glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,169,75,.35), transparent 65%);
  animation: float-b 16s ease-in-out infinite;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 500; }
.contact-copy > p { font-size: 18px; line-height: 1.6; color: var(--teal-soft); }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-size: 18px; font-weight: 600; color: var(--white); text-decoration: none;
  padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  transition: background .3s var(--ease), transform .4s var(--ease-out);
}
.contact-email:hover { background: rgba(255,255,255,.18); color: var(--white); transform: translateY(-2px); }
.contact-place { display: inline-flex; align-items: center; gap: 8px; font-size: 16px !important; color: var(--gold) !important; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; font: 16px var(--sans);
  background: var(--white); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(233,169,75,.3); }
.contact-form .btn { align-self: flex-start; }
.contact-form textarea.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,169,75,0); } 30% { box-shadow: 0 0 0 6px rgba(233,169,75,.55); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C4CDCF; font-size: 15px; line-height: 1.6; }
.footer-inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 32px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.brand-footer { color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand-footer:hover { color: var(--white); }
.site-footer address { font-style: normal; }
.site-footer a { color: #C4CDCF; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { text-decoration: none; position: relative; }
.footer-base {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--ink-line); font-size: 14px; color: #8C989B;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 100px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--white); }
.to-top:hover .to-top-arrow { animation: nudge-up .6s var(--ease-out); }
@keyframes nudge-up { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.to-top-ring .ring-fill { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 95; }
.chat-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(31,92,90,.7);
  transition: transform .45s var(--ease-out), background .3s var(--ease);
  animation: fab-in .8s var(--ease-out) 1.2s both;
}
@keyframes fab-in { from { opacity: 0; transform: translateY(20px) scale(.6); } to { opacity: 1; transform: none; } }
.chat-fab:hover { transform: scale(1.07); background: var(--teal-2); }
.chat-fab svg { position: absolute; transition: transform .45s var(--ease-out), opacity .3s var(--ease); }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab[aria-expanded="true"] .i-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
.chat-ping {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--cream);
}
.chat-ping::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.chat.is-seen .chat-ping { display: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 76px; width: min(370px, calc(100vw - 32px));
  background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform-origin: bottom right;
  animation: panel-in .45s var(--ease-out);
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-closing { animation: panel-out .25s var(--ease) forwards; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes panel-out { to { opacity: 0; transform: translateY(8px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px; background: var(--teal); color: var(--white); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.chat-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.chat-sub { font-size: 12.5px; color: var(--teal-soft); }
.chat-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; flex-shrink: 0;
}
.chat-close:hover { background: rgba(255,255,255,.22); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--cream); max-height: 50vh; overflow-y: auto; }
.bubble {
  align-self: flex-start; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--white); border: 1px solid var(--line); font-size: 15px; line-height: 1.5;
  animation: bubble-in .5s var(--ease-out) both;
}
.bubble.me { align-self: flex-end; background: var(--teal); color: var(--white); border-color: var(--teal); border-radius: 18px 18px 4px 18px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-options { display: flex; flex-direction: column; gap: 8px; }
.chat-option {
  text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  font: 500 14.5px var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .35s var(--ease-out);
  animation: bubble-in .5s var(--ease-out) both;
}
.chat-option:nth-child(1) { animation-delay: .1s; }
.chat-option:nth-child(2) { animation-delay: .18s; }
.chat-option:nth-child(3) { animation-delay: .26s; }
.chat-option:nth-child(4) { animation-delay: .34s; }
.chat-option:hover { border-color: var(--teal); background: #F2F8F7; transform: translateX(3px); }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-compose input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font: 15px var(--sans); background: var(--cream);
}
.chat-compose input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,92,90,.15); }
.chat-compose button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease-out);
}
.chat-compose button:hover { transform: rotate(-12deg) scale(1.06); }
.chat-mail { display: block; text-align: center; padding: 0 12px 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* keep hover lift working after reveal */
.js .card-hover.reveal.is-in { transition: opacity .8s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s var(--ease); transition-delay: 0s; }
.js .card-hover.reveal.is-in:hover { transform: translateY(-6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; font-size: 15px; }
  .nashik-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "feat feat" "a b" "c d"; }
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility .3s;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .main-nav .nav-link { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link:hover, .main-nav .nav-link.is-active { background: var(--sand); }
  .main-nav .btn { margin-top: 8px; height: 52px; }

  .hero { min-height: auto; padding-bottom: 130px; }
  .slide { grid-template-columns: 1fr; gap: 36px; }
  .visual-card { height: 380px; }
  .scroll-cue { display: none; }

  .section-head.split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-step::after { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-media { position: static; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 19px; }
  .hero { padding-top: 32px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .visual-card { height: 340px; }
  .visual-text { font-size: 15px; }
  .pathways span { font-size: 14px; padding: 9px 14px; margin-left: calc(var(--i) * 10px); }
  .hero-controls { gap: 6px; bottom: 28px; }
  .dot { width: 22px; }
  .dot.is-active { width: 40px; }
  .grid-3, .nashik-grid, .approach-grid, .stats { grid-template-columns: 1fr; }
  .nashik-grid { grid-template-areas: "feat" "a" "b" "c" "d"; }
  .nashik-feature { min-height: 380px; }
  .path-list { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .contact { border-radius: 22px; }
  .to-top { right: 16px; bottom: 92px; width: 48px; height: 48px; }
  .chat { right: 16px; bottom: 16px; }
  .chat-fab { width: 56px; height: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
