/* ==========================================================================
   Biota — Integrated Waste Management
   Design tokens → base → components → pages → motion
   ========================================================================== */

:root {
  /* Brand palette — derived from the Biota logo (olive #8AA12F, blue #0874B7) */
  --brand-olive: #8AA12F;
  --brand-blue: #0874B7;
  --paper: #F5F3EC;
  --paper-2: #ECE8DB;
  --card: #FBFAF6;
  --ink: #13202A;
  --ink-2: #44525C;
  --line: #D8D3C3;
  --forest: #0A2B44;           /* dark surfaces: deep navy from the logo ring */
  --forest-2: #0F3756;
  --forest-line: rgba(220, 232, 240, 0.14);
  --leaf: #586B17;             /* olive darkened for AA text contrast on paper */
  --leaf-2: var(--brand-olive);
  --blue: #0767A3;             /* brand blue darkened for white-text buttons */
  --lime: #B9D063;             /* olive lightened for use on navy */
  --sun: var(--brand-blue);
  --on-dark: #EEF3F6;
  --on-dark-2: #B3C3CF;

  --f-display: "Fraunces", "Tiro Devanagari Hindi", Georgia, serif;
  --f-body: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(19, 32, 42, 0.04), 0 12px 32px -12px rgba(19, 32, 42, 0.14);

  /* z-index scale */
  --z-menu: 40;
  --z-header: 50;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="hi"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.3; letter-spacing: 0; }
html[lang="hi"] h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.25; }
html[lang="hi"] .page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--leaf); font-weight: 300; }
.section-dark h2 em, .section-dark h1 em { color: var(--lime); }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html[lang="hi"] .eyebrow { letter-spacing: 0.04em; font-size: 0.9rem; }
.section-dark .eyebrow { color: var(--lime); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-dark .lead { color: var(--on-dark-2); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head.split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}

/* ---------- Icons ---------- */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { --bg: var(--blue); --fg: #fff; }
.btn-primary:hover { --bg: var(--forest); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { --bg: var(--lime); --fg: var(--ink); }
.btn-light:hover { --bg: #fff; }
.btn-outline-light { --bg: transparent; --fg: var(--on-dark); border-color: rgba(238, 242, 230, 0.3); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--leaf); text-decoration: none; cursor: pointer;
}
.link-arrow .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 12px 0 auto 0; z-index: var(--z-header);
  padding-inline: 12px; pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  max-width: calc(var(--container) + 24px); margin-inline: auto;
  height: 70px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.is-scrolled .header-inner {
  background: rgba(251, 250, 246, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: rgba(216, 211, 195, 0.8);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: clamp(46px, 4vw, 56px); width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { color: var(--ink); background: rgba(19, 32, 42, 0.05); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); margin-left: 8px;
}
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.lang-toggle span {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
html[lang="en"] .lang-toggle [data-lang="en"],
html[lang="hi"] .lang-toggle [data-lang="hi"] { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .hide-sm { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: var(--z-menu);
    background: var(--forest); color: var(--on-dark);
    display: flex; align-items: center; padding: 120px var(--gutter) 48px;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .nav-list { flex-direction: column; gap: 4px; width: 100%; }
  .nav-list li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .menu-open .nav-list li { opacity: 1; transform: none; }
  .menu-open .nav-list li:nth-child(2) { transition-delay: 50ms; }
  .menu-open .nav-list li:nth-child(3) { transition-delay: 100ms; }
  .menu-open .nav-list li:nth-child(4) { transition-delay: 150ms; }
  .menu-open .nav-list li:nth-child(5) { transition-delay: 200ms; }
  .nav-list a {
    font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); color: var(--on-dark);
    padding: 4px 0; min-height: 56px; border-radius: 0;
  }
  .nav-list a:hover { background: none; color: var(--lime); }
  .nav-cta-mobile { display: block; margin-top: 24px; }
  .nav-cta-mobile a.btn { font-family: var(--f-body); font-size: 1rem; padding: 0 24px; border-radius: 999px; color: var(--ink); }
  /* Header pill stays light over the open menu so the logo keeps its contrast */
  .menu-open .header-inner { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
  .menu-open body { overflow: hidden; }
}
@media (max-width: 380px) {
  .brand-logo { height: 40px; }
  .header-inner { padding-left: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(128px, 16vw, 176px); padding-bottom: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.hero-contours {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  color: var(--line); opacity: .7;
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; position: relative; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin: 24px 0 28px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .ln > span { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px;
}
.hero-stats dt { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.hero-stats dd { margin: 0 0 4px; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* Loop diagram */
.loop-wrap { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.loop-card {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--card) 0%, var(--paper-2) 70%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.loop-svg { width: 100%; height: 100%; overflow: visible; }
.loop-svg .ring-dash { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 7; }
.loop-svg .track { fill: none; stroke: var(--line); stroke-width: 2; }
.loop-svg .progress { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.loop-svg .node circle { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
.loop-svg .node .ico { fill: none; stroke: var(--leaf); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loop-svg .node-label { font-family: var(--f-body); font-size: 15px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.loop-svg .node-num { font-family: var(--f-body); font-size: 11px; font-weight: 600; fill: var(--ink-2); letter-spacing: .12em; text-anchor: middle; }
/* Cream halo knocks the ring line out behind label text */
.loop-svg .node-label, .loop-svg .node-num { paint-order: stroke; stroke: #F3F0E7; stroke-width: 7px; stroke-linejoin: round; }
.loop-svg .loop-big { font-family: var(--f-display); font-size: 64px; fill: var(--ink); text-anchor: middle; letter-spacing: -0.03em; font-style: italic; font-weight: 300; }
.loop-svg .loop-small { font-family: var(--f-body); font-size: 14px; fill: var(--ink-2); text-anchor: middle; }
.loop-svg .runner { fill: var(--sun); }
.spin { transform-origin: 240px 240px; transform-box: view-box; animation: spin 60s linear infinite; }
.orbit { transform-origin: 240px 240px; transform-box: view-box; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; }
.chip .dot .i { width: 14px; height: 14px; stroke-width: 2.2; }
.chip-a { top: 8%; left: -4%; }
.chip-b { bottom: 21%; right: -6%; animation-delay: -3.5s; }
.chip-b .dot { background: var(--sun); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
  .chip { font-size: 0.78rem; }
  .chip-a { left: 0; top: -2%; }
  .chip-b { right: 0; bottom: -17%; }
  .loop-wrap { margin-bottom: 64px; }
  .loop-svg .node-label { font-size: 19px; }
  .loop-svg .node-num { font-size: 13px; }
  .loop-svg .loop-small { font-size: 17px; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); padding-block: 28px; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.trust-label { font-size: 0.85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
html[lang="hi"] .trust-label { letter-spacing: .02em; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.trust-list .i { color: var(--leaf); width: 20px; height: 20px; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 32px 28px 28px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.svc-card:hover { border-color: var(--leaf); box-shadow: var(--shadow); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--leaf);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc-icon .i { width: 28px; height: 28px; }
.svc-card:hover .svc-icon { background: var(--leaf); color: #fff; }
.svc-num { font-family: var(--f-display); font-size: 0.95rem; color: var(--ink-2); }
.svc-card p { color: var(--ink-2); }
.svc-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.process::before, .process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line);
}
/* Fill is scroll-linked: main.js sets --p (0–1) */
.process::after { background: var(--leaf); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
@media (max-width: 899px) {
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .process li { padding-left: 72px; }
}
.process li { position: relative; }
.step-dot {
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 24px; position: relative; z-index: 1;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
@media (max-width: 899px) { .step-dot { position: absolute; left: 0; top: 0; margin: 0; } }
.process li.is-active .step-dot { background: var(--leaf); color: #fff; border-color: var(--leaf); box-shadow: 0 0 0 6px rgba(88, 107, 23, 0.12); }
.process h3 { margin-bottom: 10px; transition: color .5s var(--ease); }
.js .process li:not(.is-active) h3 { color: var(--ink-2); }
.process p { color: var(--ink-2); }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--forest-line); }
@media (min-width: 900px) { .impact-grid { grid-template-columns: repeat(3, 1fr); } }
.impact-item { padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 32px) clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--forest-line); }
.impact-num {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--on-dark);
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
}
.impact-num small { font-size: 0.4em; color: var(--lime); font-weight: 400; letter-spacing: 0; }
.impact-label { margin-top: 12px; color: var(--on-dark-2); max-width: 26ch; }
.impact-note { margin-top: 32px; font-size: 0.9rem; color: var(--on-dark-2); }

/* ---------- Map ---------- */
.map-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .map-grid { grid-template-columns: 0.9fr 1.1fr; } }
.map-figure { margin: 0; position: relative; }
.india-map { width: 100%; height: auto; max-width: 620px; margin-inline: auto; overflow: visible; }
.india-map .d { fill: #CBC4AE; opacity: 0; transition: opacity .6s var(--ease), fill .6s var(--ease); transition-delay: var(--d, 0ms); }
.india-map.is-in .d { opacity: 1; }
.india-map .d.on { fill: var(--leaf-2); }
.india-map .arc { fill: none; stroke: var(--leaf); stroke-width: 1.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: .55; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.india-map.is-in .arc { stroke-dashoffset: 0; }
.india-map .pin { fill: var(--leaf); stroke: var(--paper); stroke-width: 2; opacity: 0; transition: opacity .5s var(--ease); transition-delay: var(--d, 0ms); }
.india-map.is-in .pin { opacity: 1; }
.india-map .hq { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.india-map .pulse { fill: none; stroke: var(--sun); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.india-map .hq-label { font-family: var(--f-body); font-weight: 700; font-size: 15px; fill: var(--ink); }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: 0.9rem; color: var(--ink-2); justify-content: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.regions h3 { font-family: var(--f-body); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 8px; }
html[lang="hi"] .regions h3 { letter-spacing: .02em; font-size: .95rem; }
.regions p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 700px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector { background: var(--paper); padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; transition: background-color .3s var(--ease); }
.sector:hover { background: var(--card); }
.sector .i { width: 32px; height: 32px; color: var(--leaf); stroke-width: 1.3; }
.sector p { color: var(--ink-2); }
.sector ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 0.95rem; }
.sector li { display: flex; gap: 8px; align-items: baseline; }
.sector li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); flex: none; transform: translateY(-2px); }

/* ---------- Projects ---------- */
.proj-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj {
  border-radius: var(--r); overflow: hidden; background: var(--forest-2); color: var(--on-dark);
  display: flex; flex-direction: column; min-height: 100%;
}
.proj-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--forest); }
.proj-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.proj:hover .proj-art svg { transform: scale(1.05); }
.proj-tag {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 43, 68, 0.72); border: 1px solid var(--forest-line); color: var(--on-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.proj-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.proj-body p { color: var(--on-dark-2); }
.proj-metrics { display: flex; gap: 28px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--forest-line); }
.proj-metrics strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--lime); line-height: 1.1; }
.proj-metrics span { font-size: 0.85rem; color: var(--on-dark-2); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: calc(var(--r) * 1.4); background: var(--forest); color: var(--on-dark);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  position: relative; overflow: hidden; display: grid; gap: 32px; align-items: end;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 em { color: var(--lime); }
.cta-band p { color: var(--on-dark-2); margin-top: 16px; max-width: 48ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band .actions { justify-content: flex-end; } }
.cta-rings { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; color: var(--forest-line); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(64px, 8vw, 96px) 0 32px; margin-top: var(--section); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer .brand { background: #fff; padding: 10px 16px; border-radius: 16px; min-height: 0; }
.site-footer .brand-logo { height: 56px; }
.footer-blurb { margin-top: 16px; max-width: 36ch; }
.site-footer h3 { font-family: var(--f-body); font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
html[lang="hi"] .site-footer h3 { letter-spacing: .02em; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { overflow-wrap: anywhere; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--lime); }
.site-footer .i { width: 18px; height: 18px; color: var(--lime); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(238, 242, 230, 0.1); font-size: 0.88rem;
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 20px 0 24px; max-width: 16ch; }
.crumbs { display: flex; gap: 8px; font-size: 0.9rem; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--leaf); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ---------- Services page ---------- */
.subnav {
  position: sticky; top: 88px; z-index: 10; margin-bottom: 24px;
}
.subnav ul {
  list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: rgba(251, 250, 246, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--paper); }
html:not(.js) .subnav a.is-active { background: var(--ink); }

.svc-detail { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 960px) {
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail:nth-of-type(even) .svc-visual { order: -1; }
}
.svc-detail h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 16px 0 20px; }
.svc-detail .lead { margin-bottom: 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { width: 20px; height: 20px; color: var(--leaf); margin-top: 4px; stroke-width: 2.2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }
.svc-visual {
  position: relative; border-radius: var(--r); background: var(--forest); color: var(--on-dark);
  aspect-ratio: 5 / 4; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 40px);
}
@media (min-width: 960px) { .svc-visual { position: sticky; top: 160px; } }
.svc-visual > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--forest-line); }
.svc-visual .big-ico { position: relative; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(185, 208, 99, 0.14); color: var(--lime); }
.svc-visual .big-ico .i { width: 36px; height: 36px; stroke-width: 1.3; }
.svc-visual .stat { position: relative; }
.svc-visual .stat strong { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.svc-visual .stat span { color: var(--on-dark-2); }

.models { display: grid; gap: 16px; }
@media (min-width: 700px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .models { grid-template-columns: repeat(4, 1fr); } }
.model { padding: 28px; border-radius: var(--r); border: 1px solid var(--forest-line); background: rgba(255, 255, 255, 0.03); }
.model .abbr { font-family: var(--f-display); font-size: 2.2rem; color: var(--lime); line-height: 1; margin-bottom: 16px; font-style: italic; font-weight: 300; }
.model h3 { font-size: 1.25rem; margin-bottom: 8px; }
.model p { color: var(--on-dark-2); font-size: 0.98rem; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.4rem); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- About page ---------- */
.story-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.story-grid .prose { display: grid; gap: 20px; color: var(--ink-2); font-size: 1.1rem; }
.pull { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 300; }
.pull em { color: var(--leaf); }
html[lang="hi"] .pull { line-height: 1.5; }

.mv-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv { padding: clamp(28px, 4vw, 48px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.mv h3 { margin: 16px 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mv p { color: var(--ink-2); }

.values { display: grid; gap: 32px; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value .i { width: 30px; height: 30px; color: var(--lime); stroke-width: 1.3; margin-bottom: 20px; }
.value h3 { font-size: 1.3rem; margin-bottom: 8px; }
.value p { color: var(--on-dark-2); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 40px 48px; display: grid; gap: 6px; }
@media (min-width: 700px) { .timeline li { grid-template-columns: 120px 1fr; gap: 32px; } }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--leaf); }
.timeline .yr { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--leaf); }
.timeline h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); }

.team { display: grid; gap: 20px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.avatar {
  aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper-2); position: relative; overflow: hidden;
  font-family: var(--f-display); font-size: 3.4rem; color: var(--leaf); font-weight: 300; font-style: italic;
}
.avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); }
.avatar span { position: relative; }
.person-body { padding: 24px; }
.person-body h3 { font-size: 1.3rem; }
.person-body p { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }

.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); }
.cert .i { color: var(--leaf); width: 28px; height: 28px; }
.cert strong { display: block; line-height: 1.25; }
.cert span { font-size: 0.85rem; color: var(--ink-2); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.3fr 0.9fr; gap: 48px; } }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.form-card > p { color: var(--ink-2); margin-bottom: 32px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .req { color: #B3261E; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2341564C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(88, 107, 23, 0.18); background: #fff; }
.field .err { display: none; color: #B3261E; font-size: 0.88rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot small { color: var(--ink-2); max-width: 42ch; }
.form-status { margin-top: 20px; padding: 16px 20px; border-radius: var(--r-sm); background: rgba(88, 107, 23, 0.12); color: var(--forest); font-weight: 500; display: none; }
.form-status.show { display: block; }

.info-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--forest); color: var(--on-dark); display: grid; gap: 28px; }
.info-card h3 { font-size: 1.4rem; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .i { color: var(--lime); margin-top: 3px; }
.info-row strong { display: block; font-weight: 600; }
.info-row span, .info-row a { color: var(--on-dark-2); }
.info-row a { text-decoration: none; overflow-wrap: anywhere; }
.info-row a:hover { color: var(--lime); }
.offices { display: grid; gap: 16px; }
@media (min-width: 700px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office { padding: 24px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); }
.office h3 { font-size: 1.2rem; margin-bottom: 6px; }
.office p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Decorative ---------- */
.contours path { fill: none; stroke: currentColor; stroke-width: 1; }

/* ==========================================================================
   Motion
   Only transform + opacity are animated. Content is visible by default;
   the .js class (set inline in <head>) opts into reveal states.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero headline: line-by-line rise on load */
.js .hero h1 .ln > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); }
.js .hero h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.js .hero h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero h1 .ln > span { transform: none; }

/* Loop progress arc draws on load */
.js .loop-svg .progress { stroke-dashoffset: 1005.3; transition: stroke-dashoffset 2.4s var(--ease) .4s; }
.is-loaded .loop-svg .progress { stroke-dashoffset: 251; }
.js .loop-svg .node { opacity: 0; transition: opacity .8s var(--ease); }
.is-loaded .loop-svg .node { opacity: 1; }
.is-loaded .loop-svg .node:nth-of-type(2) { transition-delay: .9s; }
.is-loaded .loop-svg .node:nth-of-type(3) { transition-delay: 1.3s; }
.is-loaded .loop-svg .node:nth-of-type(4) { transition-delay: 1.7s; }
.is-loaded .loop-svg .node:nth-of-type(1) { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero h1 .ln > span { opacity: 1; transform: none; }
  .js .loop-svg .progress { stroke-dashoffset: 251; }
  .js .loop-svg .node { opacity: 1; }
  .india-map .d, .india-map .pin { opacity: 1; }
  .india-map .arc { stroke-dashoffset: 0; }
  .spin, .orbit, .chip, .india-map .pulse { animation: none; }
}

/* Leadership portraits */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1s var(--ease); }
.person:hover .avatar img { transform: scale(1.04); }

/* ==========================================================================
   Microinteractions
   Restrained, one-idea-per-element details. Pointer-driven effects are
   enabled from main.js only on fine pointers; all motion respects
   prefers-reduced-motion (see the block at the end).
   ========================================================================== */

:root { interpolate-size: allow-keywords; }

/* ---- Headings: masked rise, eyebrow rule draws, italic word underlines ---- */
.js h2[data-reveal] {
  opacity: 1;
  transform: translate3d(0, .35em, 0);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js h2[data-reveal].is-in { clip-path: inset(-20% -4% -25% -4%); transform: none; }

.js .eyebrow[data-reveal]::before {
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) calc(var(--d, 0ms) + 150ms);
}
.js .eyebrow[data-reveal].is-in::before { transform: scaleX(1); }

h1 em, h2 em, .pull em {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% .045em;
  transition: background-size 1.4s var(--ease) .55s;
}
.is-in em, .is-loaded .hero h1 em, html:not(.js) h1 em, html:not(.js) h2 em { background-size: 100% .045em; }

/* ---- Buttons: label roll, magnetic offset, press ---- */
.btn {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1));
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .45s var(--ease);
}
.btn:active { --s: .97; }
.roll { display: inline-block; overflow: hidden; height: 1.6em; line-height: 1.6; vertical-align: middle; }
.roll > span { display: block; text-shadow: 0 1.6em currentColor; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .btn:hover .roll > span { transform: translate3d(0, -1.6em, 0); }
}

/* ---- Text links: hairline draws in from the left ---- */
.link-arrow > span:first-child {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0% 1px;
  transition: background-size .55s var(--ease);
}
.link-arrow:hover > span:first-child { background-position: 0 100%; background-size: 100% 1px; }
.site-footer ul a:not(:has(svg)) {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 78% / 0% 1px;
  transition: color .2s var(--ease), background-size .5s var(--ease);
}
.site-footer ul a:not(:has(svg)):hover { background-position: 0 78%; background-size: 100% 1px; }

/* ---- Self-drawing line icons & art (main.js adds .dl + pathLength=1) ---- */
.dl { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0ms) + 250ms); }
.js [data-reveal]:not(.is-in) .dl { stroke-dashoffset: 1; }
.proj-art .dl { transition-duration: 2.4s; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---- Cursor spotlight (main.js adds .has-spot and sets --mx/--my) ---- */
.svc-card, .sector { --spot: rgba(138, 161, 47, 0.12); }
.proj, .cta-band, .model { --spot: rgba(185, 208, 99, 0.09); }
.has-spot { position: relative; isolation: isolate; }
.has-spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 65%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.has-spot:hover::before { opacity: 1; }

/* ---- Service cards ---- */
.svc-card { overflow: hidden; }
.svc-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--leaf-2); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.svc-num { position: relative; display: inline-block; overflow: hidden; height: 1.5em; line-height: 1.5; min-width: 2.2ch; text-align: right; }
.svc-num > span { display: block; transition: transform .55s var(--ease), opacity .4s var(--ease); }
.svc-num::after {
  content: ""; position: absolute; inset: 0; transform: translate3d(0, 100%, 0);
  background: var(--leaf);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") right center / 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") right center / 18px no-repeat;
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .svc-card:hover::after { transform: scaleX(1); }
  .svc-card:hover .svc-num > span { transform: translate3d(0, -100%, 0); opacity: 0; }
  .svc-card:hover .svc-num::after { transform: none; }
  .svc-card:hover .dl, .sector:hover .dl { animation: redraw 1.1s var(--ease); }
  .svc-card:hover .link-arrow .i { transform: translateX(4px); }
  .svc-card:hover .link-arrow > span:first-child { background-position: 0 100%; background-size: 100% 1px; }
}

/* ---- Sectors: list items settle in sequence on hover ---- */
.sector li { transition: transform .6s var(--ease); }
@media (hover: hover) {
  .sector:hover li { transform: translateX(4px); }
  .sector:hover li:nth-child(2) { transition-delay: 60ms; }
  .sector:hover li:nth-child(3) { transition-delay: 120ms; }
}

/* ---- Process & timeline: steps light up as the scroll-linked line reaches them ---- */
.step-dot { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease); }
.timeline::after {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: var(--leaf); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .2s linear;
}
.timeline li::before { z-index: 1; transition: background-color .5s var(--ease), box-shadow .6s var(--ease); }
.timeline li.is-active::before { background: var(--leaf); box-shadow: 0 0 0 5px rgba(88, 107, 23, 0.14); }
.timeline .yr { transition: color .5s var(--ease); }
.js .timeline li:not(.is-active) .yr { color: var(--ink-2); }

/* ---- Impact: unit settles after the count, then a hairline draws ---- */
.impact-item { position: relative; }
.impact-item::after {
  content: ""; position: absolute; left: 0; right: clamp(12px, 2vw, 32px); bottom: -1px; height: 1px;
  background: var(--lime); opacity: .55; transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.impact-item.is-done::after { transform: scaleX(1); }
.js .impact-num small { opacity: 0; transform: translate3d(0, .35em, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-done .impact-num small, .is-done.stat small { opacity: 1; transform: none; }

/* ---- Map: hovering a region isolates its cities ---- */
.regions > div { transition: opacity .45s var(--ease); }
.regions.has-hl > div:not(.is-hl) { opacity: .4; }
.regions > div[data-region] { cursor: default; }
.regions > div h3 { display: inline-flex; align-items: center; gap: 8px; }
.regions > div h3::after { content: ""; width: 0; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.regions > div.is-hl h3::after { width: 18px; }
.india-map .pin {
  transform-box: fill-box; transform-origin: center;
  transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease), fill .3s var(--ease);
}
.india-map .arc { transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0ms), opacity .45s var(--ease), stroke-width .45s var(--ease); }
.india-map.is-in[data-hl] .pin { opacity: .22; transition-delay: 0ms; }
.india-map.is-in[data-hl] .pin.r-hl { opacity: 1; transform: scale(1.45); }
.india-map[data-hl] .arc { opacity: .1; }
.india-map[data-hl] .arc.r-hl { opacity: .9; stroke-width: 1.6; }

/* ---- Projects ---- */
.proj { position: relative; }
.proj-metrics strong { transition: color .4s var(--ease); }
@media (hover: hover) { .proj:hover .proj-metrics strong { color: #fff; } }

/* ---- Decorative parallax (main.js sets --py) ---- */
.svc-visual > svg.bg, .cta-rings, .hero-contours { transform: translate3d(0, var(--py, 0px), 0); }

/* ---- Services sub-nav: sliding active pill ---- */
.subnav ul { position: relative; }
.subnav li { position: relative; z-index: 1; }
.subnav li.subnav-ind {
  position: absolute; top: 6px; left: 0; height: 40px; z-index: 0; border-radius: 999px; background: var(--ink);
  opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s var(--ease);
}
.subnav li.subnav-ind.on { opacity: 1; }

/* ---- FAQ: answers glide open ---- */
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
.faq .ans { transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s; }
.faq details:not([open]) .ans { opacity: 0; transform: translate3d(0, -6px, 0); }
.faq summary > span:first-child { transition: transform .5s var(--ease), color .3s var(--ease); }
@media (hover: hover) {
  .faq summary:hover > span:first-child { transform: translateX(6px); color: var(--leaf); }
  .faq summary:hover .plus { border-color: var(--ink); }
}

/* ---- Footer signature ---- */
.footer-sign {
  margin: clamp(48px, 7vw, 88px) 0 0;
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(3rem, 14.4vw, 13rem); line-height: .9; letter-spacing: -0.045em;
  color: rgba(238, 243, 246, 0.07); white-space: nowrap; overflow: hidden; user-select: none;
}
.footer-sign em { font-style: italic; color: rgba(185, 208, 99, 0.18); }

/* ---- Page-to-page: content cross-fades, header stays put ---- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js h2[data-reveal] { clip-path: none; transform: none; }
  .dl, .js [data-reveal]:not(.is-in) .dl { stroke-dashoffset: 0; animation: none !important; }
  .js .impact-num small { opacity: 1; transform: none; }
  .svc-visual > svg.bg, .cta-rings, .hero-contours { transform: none; }
  h1 em, h2 em, .pull em { background-size: 100% .045em; }
}
