html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.num { font-size: 14px; letter-spacing: 0.2em; color: var(--ink-2); margin: 0 0 6px; }
h2 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; line-height: 1.05; }
.lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; max-width: 640px; margin: 0 0 22px; }
.note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
sup a { text-decoration: none; font: 600 11px var(--head); padding: 0 2px; }
.panel { padding: clamp(64px, 10vw, 120px) 0; position: relative; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: linear-gradient(180deg, #e9d3b2 0%, #ead2ae 55%, #dcbf97 100%); }
#panorama { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; image-rendering: auto; }
.hero-haze { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(232, 205, 168, 0) 0%, rgba(232, 205, 168, 0) 38%, rgba(176, 160, 140, 0.5) 72%, rgba(150, 136, 120, 0.78) 100%);
  animation: haze 18s ease-in-out infinite alternate; }
@keyframes haze { to { transform: translateX(-3%); opacity: 0.85; } }
.topnav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 16px) 22px; z-index: 3; }
.brand { font-size: 26px; text-decoration: none; }
.by { font-size: 13px; color: var(--ink-2); }
.hero-copy { position: relative; z-index: 2; align-self: start; padding: calc(env(safe-area-inset-top) + 15vh) 22px 0; max-width: 1080px; margin: 0 auto; width: 100%; }
.kicker { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-2); }
.hero h1 { font-size: clamp(38px, 7.2vw, 84px); line-height: 1; margin: 0 0 18px; max-width: 900px; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta { font-size: 19px; padding: 15px 26px; text-decoration: none; display: inline-block; }
.cta-note { font-size: 13px; color: var(--ink-2); }
.scrollcue { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); font: 700 22px var(--head); text-decoration: none; color: var(--paper-2); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 5px); } }

/* ---------------------------------------------------------------- 2 */
.p2 { background: var(--paper); }
.two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.big { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; margin: 0 0 18px; }
.counter { font-size: 1.5em; color: var(--leaf); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; font-size: 16px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--leaf); }
.facts b { font-size: 18px; }
.mapfig { margin: 0; text-align: center; }
#indiaMap { width: min(320px, 80vw); height: auto; image-rendering: pixelated; }

/* ---------------------------------------------------------------- 3 */
.p3 { padding-top: clamp(64px, 10vw, 120px); background: var(--paper-2); }
.scenes { position: relative; margin-top: 10px; }
.regionmap { position: sticky; top: 80px; float: right; margin: 0 16px -180px 0; width: 120px; height: 135px; z-index: 5; image-rendering: pixelated; border: 2px solid var(--ink); background: var(--paper-2); clip-path: var(--notch); }
.scene { position: relative; height: 92svh; min-height: 520px; overflow: hidden; border-top: 3px solid var(--ink); }
.scene .layer { position: absolute; left: -5%; right: -5%; will-change: transform; }
.scene .sky { inset: 0 -5%; }
.scene .far { bottom: 22%; height: 46%; }
.scene .near { bottom: 0; height: 34%; }
.scene .trees { bottom: 7%; height: 46%; display: flex; justify-content: center; align-items: flex-end; padding: 0 6%; }
.scene .trees span + span { margin-left: -6%; }
.scene .trees span { display: block; flex: none; background-repeat: no-repeat; image-rendering: auto; }
.scene-copy { position: absolute; left: 20px; top: 40px; max-width: 380px; padding: 18px 20px; z-index: 3; }
.scene-copy h3 { margin: 0 0 6px; font-size: 26px; }
.scene-copy p { margin: 0; line-height: 1.5; }
.scene[data-region=ghats] .sky { background: linear-gradient(#cfe0c8, #e9e2c4); }
.scene[data-region=ghats] .far { background: #6f9a6a; clip-path: polygon(0 60%, 10% 30%, 22% 45%, 35% 10%, 48% 40%, 60% 18%, 74% 42%, 86% 20%, 100% 38%, 100% 100%, 0 100%); }
.scene[data-region=ghats] .near { background: #3f7346; clip-path: polygon(0 30%, 18% 10%, 40% 28%, 60% 5%, 80% 26%, 100% 12%, 100% 100%, 0 100%); }
.scene[data-region=central] .sky { background: linear-gradient(#f0d9a8, #ecd3a4); }
.scene[data-region=central] .far { background: #a7a26a; clip-path: polygon(0 70%, 20% 50%, 40% 62%, 60% 40%, 80% 58%, 100% 45%, 100% 100%, 0 100%); }
.scene[data-region=central] .near { background: #7a7a45; clip-path: polygon(0 40%, 25% 25%, 50% 38%, 75% 20%, 100% 34%, 100% 100%, 0 100%); }
.scene[data-region=himalaya] .sky { background: linear-gradient(#c9d6e6, #e8e4da); }
.scene[data-region=himalaya] .far { height: 70%; background: linear-gradient(#f6f4ef 0 28%, #8e9db3 28%); clip-path: polygon(0 80%, 12% 35%, 20% 50%, 34% 0, 46% 40%, 58% 15%, 70% 45%, 84% 8%, 100% 50%, 100% 100%, 0 100%); }
.scene[data-region=himalaya] .near { background: #50705a; clip-path: polygon(0 35%, 20% 15%, 45% 30%, 70% 8%, 100% 28%, 100% 100%, 0 100%); }
.scene[data-region=thar] .sky { background: linear-gradient(#f4d9a6, #f0c98a); }
.scene[data-region=thar] .far { background: #dcae6a; clip-path: polygon(0 75%, 15% 55%, 30% 70%, 50% 50%, 70% 66%, 85% 52%, 100% 64%, 100% 100%, 0 100%); }
.scene[data-region=thar] .near { background: #c99550; clip-path: polygon(0 45%, 22% 30%, 45% 46%, 70% 28%, 100% 42%, 100% 100%, 0 100%); }
.scene[data-region=sundarbans] .sky { background: linear-gradient(#cfdfd8, #e6e2cc); }
.scene[data-region=sundarbans] .far { background: #6c8f6e; clip-path: polygon(0 72%, 30% 64%, 60% 70%, 100% 62%, 100% 100%, 0 100%); }
.scene[data-region=sundarbans] .near { background: repeating-linear-gradient(180deg, #5a8fa0 0 6px, #4d8394 6px 10px); clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%); }

/* ---------------------------------------------------------------- 4 */
.p4 { background: var(--paper); }
.flips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.flip { appearance: none; border: 0; background: none; padding: 0; height: 250px; perspective: 900px; cursor: pointer; position: relative; text-align: left; }
.flip .face { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 6px; backface-visibility: hidden; transition: transform 0.6s ease; font-size: 14.5px; line-height: 1.45; }
.flip .front { justify-content: space-between; }
.flip .front b { font: 600 22px var(--head); }
.flip .yr { font-size: 26px; color: var(--leaf); }
.flip .art { height: 96px; background-repeat: no-repeat; background-position: center bottom; align-self: center; width: 100%; }
.flip .back { transform: rotateY(180deg); background: var(--ink); color: var(--paper-2); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--paper-2); }
.flip .back b { font: 600 18px var(--head); }
.flip .back a { color: var(--paper-2); }
.flip[aria-pressed=true] .front { transform: rotateY(-180deg); }
.flip[aria-pressed=true] .back { transform: rotateY(0); }
.flip:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- 5 */
.p5 { background: var(--paper-2); }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - 1040px) / 2)) 22px; scrollbar-width: thin; }
.carousel:focus-visible { outline: 3px solid var(--gold); }
.tcard { flex: 0 0 min(300px, 78vw); scroll-snap-align: center; padding: 16px 18px 18px; cursor: pointer; text-align: left; border: 2px solid var(--ink); background: var(--paper); clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink); appearance: none; font: inherit; color: inherit; }
.tcard canvas { width: 100%; height: 200px; display: block; }
.tcard h3 { margin: 8px 0 0; font-size: 24px; }
.tcard .bot { font-style: italic; font-size: 13px; color: var(--ink-2); }
.tcard p { font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.tcard .cat { font: 600 11px var(--head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }

/* ---------------------------------------------------------------- 6 */
.p6 { background: var(--paper); }
.aqiscale { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 34px 0 14px; }
.aqiscale > div { background: var(--c); color: #fff; padding: 14px 8px; min-height: 76px; display: grid; align-content: end; opacity: 0.28; transition: opacity 0.4s ease; }
.aqiscale > div b { font: 600 14px var(--head); }
.aqiscale > div span { font-size: 12px; }
.aqiscale > div.lit { opacity: 1; }
.aqiscale .marker { position: absolute; top: -30px; left: 0; width: 0; transition: left 3.2s cubic-bezier(0.4, 0, 0.2, 1); }
.aqiscale .marker span { position: absolute; transform: translateX(-50%); background: var(--ink); color: var(--paper-2); padding: 3px 8px; font-size: 14px; white-space: nowrap; }
.aqiscale .marker span::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.disclaimer { font-weight: 600; }

/* ---------------------------------------------------------------- 7 */
.p7 { background: var(--paper-2); }
.ngos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 40px; }
.ngos a { display: grid; gap: 6px; padding: 16px; text-decoration: none; border: 2px solid var(--ink); background: var(--paper); clip-path: var(--notch); transition: transform 0.15s ease; }
.ngos a:hover { transform: translateY(-2px); }
.ngos b { font: 600 17px var(--head); }
.ngos span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ngos em { font-style: normal; font: 600 11px var(--head); text-transform: uppercase; letter-spacing: 0.06em; }
.final { padding: 34px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.final p { margin: 0; font-size: clamp(22px, 3.4vw, 34px); }

.foot { background: var(--ink); color: var(--paper-2); padding: 56px 0 calc(env(safe-area-inset-bottom) + 90px); }
.foot h2 { font-size: 26px; }
.foot a { color: var(--paper-2); }
.foot .note { color: #cfc6e0; }
.sources { font-size: 14px; line-height: 1.6; padding-left: 22px; }
.sources li:target { background: rgba(241, 220, 188, 0.18); }

.stickycta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px); background: linear-gradient(transparent, rgba(232, 205, 168, 0.95) 30%); display: flex; justify-content: center; transition: transform 0.25s ease; }
.stickycta .cta { width: 100%; max-width: 420px; text-align: center; }
@media (min-width: 761px) { .stickycta { display: none !important; } }

@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .hero-copy { padding-top: calc(env(safe-area-inset-top) + 12vh); }
  #panorama { height: 46%; }
  .scene-copy { left: 12px; right: 12px; top: 20px; max-width: none; padding: 14px 16px; }
  .scene-copy h3 { font-size: 21px; }
  .scene-copy p { font-size: 14px; }
  .regionmap { width: 84px; height: 95px; top: 172px; margin-bottom: -95px; margin-right: 10px; }
  .aqiscale { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .aqiscale .marker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; min-height: 460px; }
  .hero-haze, .scrollcue { animation: none; }
}
