/* =========================================================
   নুরুল ইসলাম — জনতথ্য ওয়েবসাইট
   Mobile-first. Colours: forest green · ivory · lime · clay
   ========================================================= */


/* ---------- Tokens ---------- */
:root {
  --forest-950: #06130C;
  --forest-900: #0B2116;
  --forest-800: #11301F;
  --forest-700: #1A442E;
  --forest-600: #245A3D;
  --forest-500: #3A7653;
  --ivory-50: #FCFAF4;
  --ivory-100: #F6F2E7;
  --ivory-200: #ECE5D3;
  --ivory-300: #DCD1B8;
  --ink: #171817;
  --ink-2: #363936;
  --ink-3: #5c605b;
  --lime-200: #ECFBB8;
  --lime-300: #DDF77A;
  --lime-400: #C9EE42;
  --clay: #96441F;
  --display: "Tiro Bangla", "Noto Serif Bengali", serif;
  --body: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 16px;
  --radius: 22px;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory-100);
  color: var(--ink);
  font: 400 17px/1.8 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--lime-400); color: var(--forest-950); }
:focus-visible { outline: 3px solid var(--lime-400); outline-offset: 3px; border-radius: 6px; }
.section :focus-visible, .section--sand :focus-visible { outline-color: var(--forest-600); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--lime-400); color: var(--forest-950); padding: 12px 18px; border-radius: 99px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.grid-12 { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
  .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-7 { grid-column: 6 / span 7; } .col-8 { grid-column: span 8; }
}
.center { text-align: center; margin-top: 32px; }
.note { color: var(--ink-3); font-size: .95rem; margin-top: 20px; }
.note a { color: var(--forest-600); font-weight: 600; }
.small { font-size: .9rem; margin-top: 14px; }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--forest-600); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--lime-300); }
.display { font-size: clamp(2.1rem, 7.4vw, 4.6rem); line-height: 1.2; margin-top: 14px; color: var(--forest-950); }
.display em { font-style: italic; color: var(--forest-600); }
.display em.lime { color: var(--lime-300); }
.display--md { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.display--xl { font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1.12; margin: 0; }
.lead-serif { font-family: var(--display); font-size: clamp(1.3rem, 3.2vw, 2rem); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; background: none;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime-400); color: var(--forest-950); }
.btn--lime:hover { background: var(--lime-300); }
.btn--forest { background: var(--forest-800); color: var(--ivory-50); }
.btn--forest:hover { background: var(--forest-700); }
.btn--light { background: var(--ivory-50); color: var(--forest-950); }
.btn--light:hover { background: var(--lime-300); }
.btn--ghost-dark { border-color: rgba(252, 250, 244, .25); color: var(--ivory-50); }
.btn--ghost-dark:hover { border-color: var(--lime-400); color: var(--lime-300); }
.btn--ghost { border-color: rgba(23, 24, 23, .2); color: var(--ink); }
.btn--ghost:hover { background: var(--forest-900); color: var(--ivory-50); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 99px; background: rgba(252, 250, 244, .1); color: var(--ivory-50); font-size: 1.4rem; cursor: pointer; }
.icon-btn:hover { background: var(--lime-400); color: var(--forest-950); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin-top: 20px; }
.badge--statement { background: var(--ivory-200); color: var(--forest-900); border: 1px solid rgba(11, 33, 22, .15); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 10px 10px 0; transition: transform .45s var(--ease); }
.header.is-hidden { transform: translateY(-120%); }
.header__bar {
  max-width: 1400px; margin: 0 auto; height: 58px; padding: 0 8px; gap: 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 99px; background: rgba(6, 19, 12, .82); color: var(--ivory-50);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(252, 250, 244, .1); box-shadow: 0 10px 40px -15px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 99px; background: var(--lime-400); color: var(--forest-950); font: 1.3rem/1 var(--display); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-10deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { font: 1.05rem var(--display); white-space: nowrap; }
.brand__text small { font-size: .7rem; color: rgba(252, 250, 244, .55); white-space: nowrap; }
.header__nav { display: none; }
.header__cta { display: none; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ivory-50); border-radius: 99px; cursor: pointer; }
.menu-btn:hover { background: rgba(252, 250, 244, .1); }
.menu-btn__lines { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-btn__lines i { display: block; height: 1.5px; background: currentColor; transition: width .4s; }
.menu-btn__lines i:last-child { width: 65%; }
.menu-btn:hover .menu-btn__lines i:last-child { width: 100%; }
@media (min-width: 640px) { .header { padding: 16px 20px 0; } .header__cta { display: inline-flex; min-height: 42px; } }
@media (min-width: 1100px) {
  .header__nav { display: flex; gap: 4px; }
  .header__nav a { position: relative; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: rgba(252, 250, 244, .75); font-size: .95rem; transition: color .3s; }
  .header__nav a:hover, .header__nav a.is-active { color: var(--lime-300); }
  .header__nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 99px; background: var(--lime-400); }
}

/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--forest-950); color: var(--ivory-50); overflow-y: auto; padding: 18px var(--gutter) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.menu__list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid rgba(252, 250, 244, .1); }
.menu__list li { border-bottom: 1px solid rgba(252, 250, 244, .1); overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; text-decoration: none; font: clamp(1.9rem, 7.5vw, 4.4rem)/1.25 var(--display); transform: translateY(100%); transition: transform .8s var(--ease), color .3s; }
.menu.is-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .04s; } .menu__list li:nth-child(3) a { transition-delay: .08s; }
.menu__list li:nth-child(4) a { transition-delay: .12s; } .menu__list li:nth-child(5) a { transition-delay: .16s; }
.menu__list li:nth-child(6) a { transition-delay: .2s; } .menu__list li:nth-child(7) a { transition-delay: .24s; }
.menu__list a span { font: .85rem var(--body); color: rgba(252, 250, 244, .4); width: 28px; }
.menu__list a:hover { color: var(--lime-300); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; background: var(--forest-950); color: var(--ivory-50); overflow: hidden; display: flex; }
.hero::before { content: ""; position: absolute; right: -25%; top: -35%; width: 90vmax; height: 90vmax; border-radius: 50%; background: rgba(26, 68, 46, .45); filter: blur(120px); z-index: -1; }
.hero__lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 65%; color: rgba(252, 250, 244, .09); z-index: 0; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; padding-top: 96px; padding-bottom: 28px; }
.hero__role { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(252, 250, 244, .82); opacity: 0; animation: fadeUp .9s .15s var(--ease) forwards; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime-400); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime-400); animation: ping 1.8s infinite; }
.hero__stage { position: relative; flex: 1; margin-top: 18px; min-height: 0; }
.hero__portrait { position: absolute; right: 0; top: 0; width: 46vw; max-width: 270px; margin: 0; clip-path: inset(100% 0 0 0); animation: wipe 1.4s .35s var(--ease) forwards; }
.arch { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; }
.arch--light { background: var(--ivory-100); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top; mix-blend-mode: multiply; transform: scale(1.15); animation: settle 2.2s .35s var(--ease) forwards; }
.hero__name { position: relative; z-index: 2; padding-top: 40vw; font-size: clamp(4.1rem, 19vw, 15rem); line-height: 1.08; letter-spacing: -.01em; }
.hero__name .line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.hero__name .line > span { display: block; transform: translateY(105%); animation: rise 1.25s .25s var(--ease) forwards; }
.hero__name .line--accent > span { color: var(--lime-300); animation-delay: .4s; }
.hero__rail { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(252, 250, 244, .15); display: grid; gap: 26px; opacity: 0; animation: fadeUp 1s .9s var(--ease) forwards; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.facts dt { font-size: .75rem; font-weight: 600; color: rgba(252, 250, 244, .5); }
.facts dd { margin: 2px 0 0; font: 1.2rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) {
  .hero__portrait { width: 270px; }
  .hero__name { padding-top: 230px; }
}
@media (min-width: 1024px) {
  .hero__inner { padding-top: 140px; }
  .hero__portrait { right: 4%; top: 2%; width: min(27vw, 400px); max-width: none; }
  .hero__name { padding-top: 0; }
  .hero__name .line--accent { padding-left: 12%; }
  .hero__rail { grid-template-columns: 1fr auto; align-items: end; }
  .facts dd { font-size: 1.4rem; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--lime-400); color: var(--forest-950); padding: 14px 0; }
.marquee__track { display: flex; width: max-content; gap: 40px; white-space: nowrap; font: 1.45rem var(--display); animation: marquee 45s linear infinite; }
.marquee__track span::after { content: "✦"; margin-left: 40px; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section--dark { background: var(--forest-950); color: var(--ivory-50); }
.section--dark .display { color: var(--ivory-50); }
.section--sand { background: var(--ivory-200); }
.section__head { display: grid; gap: 18px; margin-bottom: 40px; }
.section__lede { color: var(--ink-2); max-width: 34rem; }
.section--dark .section__lede { color: rgba(252, 250, 244, .72); }
@media (min-width: 1024px) { .section__head { grid-template-columns: 7fr 5fr; align-items: end; gap: 40px; } }

/* ---------- About ---------- */
.timeline { list-style: none; margin: 34px 0 0; padding: 0 0 0 26px; border-left: 1px solid rgba(11, 33, 22, .2); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--forest-700); border: 2px solid var(--ivory-100); }
.timeline .k { font-size: .85rem; font-weight: 600; color: var(--forest-600); }
.timeline h3 { font-size: 1.45rem; margin-top: 2px; }
.timeline p { color: var(--ink-2); margin-top: 6px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(252, 250, 244, .22); background: none; color: var(--ivory-50); cursor: pointer; font-size: .92rem; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--lime-400); }
.chip[aria-pressed="true"] { background: var(--lime-400); color: var(--forest-950); border-color: var(--lime-400); font-weight: 600; }
@media (min-width: 640px) { .chips { flex-wrap: wrap; margin: 0 0 28px; padding: 0; } }

/* ---------- Gallery ---------- */
.masonry { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }
.masonry li { break-inside: avoid; margin-bottom: 10px; animation: popIn .6s var(--ease) both; }
@media (min-width: 768px) { .masonry li { margin-bottom: 16px; } }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--forest-800); cursor: zoom-in; text-align: left; color: var(--ivory-50); }
.tile img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 19, 12, .88), rgba(6, 19, 12, .05) 55%, transparent); }
.tile__cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px; }
.tile__cap small { display: block; font-size: .7rem; color: rgba(252, 250, 244, .7); }
.tile__cap span { display: block; font: 1rem/1.35 var(--display); }
@media (min-width: 768px) { .tile__cap { padding: 16px; } .tile__cap span { font-size: 1.15rem; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(6, 19, 12, .97); color: var(--ivory-50); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: .9rem; color: rgba(252, 250, 244, .65); }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; transition: opacity .25s, transform .25s; user-select: none; -webkit-user-drag: none; }
.lightbox__stage img.is-swapping { opacity: 0; transform: scale(.97); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (min-width: 768px) { .lb-prev, .lb-next { display: grid; } .lightbox__stage { padding: 0 80px; } }
.lightbox__cap { max-width: 900px; width: 100%; margin: 0 auto; padding: 14px 18px 22px; }
.lightbox__meta { font-size: .85rem; color: var(--lime-300); }
.lightbox__cap h3 { font-size: clamp(1.4rem, 4vw, 2rem); margin-top: 4px; }
.lightbox__cap p:last-child { color: rgba(252, 250, 244, .75); margin-top: 4px; }

/* ---------- Wards ---------- */
.wards { display: grid; gap: 40px; }
@media (min-width: 1024px) { .wards { grid-template-columns: 5fr 7fr; gap: 48px; } .wards__board { position: sticky; top: 100px; align-self: start; } }
.wards > * { min-width: 0; }
.board { background: var(--forest-950); color: var(--ivory-50); border-radius: 28px; padding: 18px; overflow: hidden; }
@media (min-width: 640px) { .board { padding: 28px; } }
.board > * { position: relative; z-index: 1; }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; color: rgba(252, 250, 244, .65); }
.board__map { position: relative; margin-top: 12px; }
.board__map svg { width: 100%; height: auto; overflow: visible; display: block; touch-action: manipulation; }
.board__note { margin-top: 12px; font-size: .75rem; color: rgba(252, 250, 244, .5); }

.cell { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .35s; }
.cell path { fill: #1A442E; stroke: #3A7653; stroke-width: 1.5; stroke-linejoin: round; transition: fill .35s, stroke .35s; }
.cell text { fill: var(--ivory-50); font-family: var(--display); font-size: 32px; pointer-events: none; transition: fill .3s; }
.cell .badge-dot { fill: var(--lime-400); }
.cell .badge-num { fill: var(--forest-950); font: 700 12px var(--body); }
.cell.is-lit path, .cell.is-active path, .cell.is-selected path { fill: url(#wardGlow); stroke: var(--lime-200); }
.cell.is-lit text, .cell.is-active text, .cell.is-selected text { fill: var(--forest-950); }
.cell.is-active { transform: translateY(-8px) scale(1.05); filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); }
.cell.is-selected { transform: scale(1.04); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.cell.is-dim { opacity: .55; }
.cell:focus-visible path { stroke: var(--ivory-50); stroke-width: 3; }
.cell.pop { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.ripple { fill: none; stroke: var(--lime-300); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ripple .85s ease-out forwards; pointer-events: none; }
.ripple--2 { stroke: var(--ivory-50); stroke-width: 1.5; animation-duration: .7s; animation-delay: .08s; }

.tip { position: absolute; z-index: 5; width: max-content; max-width: 12rem; transform: translate(-50%, -100%); margin-top: -20px; padding: 10px 14px; border-radius: 16px; background: var(--ivory-50); color: var(--forest-950); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); pointer-events: none; animation: tipIn .3s var(--ease); }
.tip.below { transform: translate(-50%, 0); margin-top: 26px; }
.tip strong { display: block; font: 1.1rem/1.3 var(--display); }
.tip .v { font-size: .85rem; font-weight: 600; color: var(--forest-600); }
.tip small { display: block; font-size: .72rem; color: var(--ink-3); line-height: 1.5; }
@media (min-width: 640px) { .tip { max-width: 16rem; } }
.hint { position: absolute; right: 0; bottom: -4px; padding: 7px 14px; border-radius: 99px; background: var(--lime-400); color: var(--forest-950); font-size: .82rem; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); animation: bob 1.4s ease-in-out infinite; transition: opacity .4s; }
.hint.is-gone { opacity: 0; pointer-events: none; }
.tour-bar { height: 4px; margin-top: 14px; border-radius: 99px; background: rgba(252, 250, 244, .1); overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--lime-400); }
.tour-bar.run i { animation: fill 3.6s linear forwards; }

.ward-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
.ward-tabs button { height: 48px; border: 1px solid rgba(23, 24, 23, .1); border-radius: 12px; background: var(--ivory-50); color: var(--forest-950); font: 1.15rem var(--display); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.ward-tabs button:hover { border-color: var(--forest-600); }
.ward-tabs button[aria-selected="true"] { background: var(--forest-900); color: var(--lime-300); transform: translateY(-2px); }

.wards__panel { min-width: 0; touch-action: pan-y; }
.panel-anim { animation: panelIn .45s var(--ease); }
.panel-anim.from-left { animation-name: panelInLeft; }
.panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.panel__num { font: clamp(4.5rem, 14vw, 7.5rem)/1 var(--display); color: var(--forest-950); display: inline-block; animation: flip .7s cubic-bezier(.34, 1.56, .64, 1); transform-origin: bottom; }
.panel__name { font: 1.4rem var(--display); color: var(--forest-600); margin-left: 12px; }
.panel__nav { display: flex; gap: 8px; padding-bottom: 10px; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 99px; border: 1px solid rgba(23, 24, 23, .2); background: none; cursor: pointer; font-size: 1.4rem; color: var(--forest-950); transition: background .3s, color .3s; }
.round:hover { background: var(--forest-950); color: var(--lime-300); }
.swipe-hint { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
@media (min-width: 1024px) { .swipe-hint { display: none; } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats div { background: var(--ivory-50); border: 1px solid rgba(23, 24, 23, .08); border-radius: 18px; padding: 14px 16px; }
.stats dt { font-size: .78rem; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font: 2rem/1.2 var(--display); color: var(--forest-950); }

.voter { margin-top: 14px; border-radius: var(--radius); padding: 20px; }
.voter--pending { display: flex; gap: 14px; align-items: flex-start; background: var(--ivory-50); border: 1.5px dashed rgba(36, 90, 61, .35); }
.voter--pending .ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; background: rgba(11, 33, 22, .06); font-size: 1.2rem; }
.voter--pending strong { display: block; }
.voter--pending p { font-size: .92rem; color: var(--ink-3); }
.voter--data { background: var(--forest-950); color: var(--ivory-50); }
.voter--data .total { font: clamp(2.6rem, 9vw, 3.8rem)/1 var(--display); color: var(--lime-300); }
.voter--data .asof { font-size: .85rem; color: rgba(252, 250, 244, .6); }
.vbar { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-size: .9rem; }
.vbar span:nth-child(2) { height: 8px; border-radius: 99px; background: rgba(252, 250, 244, .1); overflow: hidden; }
.vbar span:nth-child(2) i { display: block; height: 100%; background: var(--lime-400); border-radius: 99px; }
.voter--data a { display: inline-block; margin-top: 14px; font-size: .88rem; color: rgba(252, 250, 244, .75); }

.box { margin-top: 14px; background: var(--ivory-50); border: 1px solid rgba(23, 24, 23, .08); border-radius: var(--radius); padding: 18px 20px; }
.box h3 { font: 600 1rem var(--body); color: var(--forest-950); }
.box p, .box li { color: var(--ink-2); }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.vchips li { padding: 4px 12px; border-radius: 99px; background: var(--ivory-200); font-size: .9rem; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 12px; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 70%; max-width: 260px; scroll-snap-align: start; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--ivory-200); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.overview { margin-top: 90px; }
.overview table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 24px; }
.overview th { text-align: left; width: 6rem; font: 1.1rem var(--display); }
.overview .bar { height: 12px; border-radius: 99px; background: rgba(23, 24, 23, .06); }
.overview .bar i { display: block; height: 100%; border-radius: 99px; background: var(--forest-700); }

/* ---------- Villages ---------- */
.village-tools { display: grid; gap: 12px; }
@media (min-width: 768px) { .village-tools { grid-template-columns: 1fr auto; align-items: center; } }
.search input { width: 100%; min-height: 52px; padding: 0 20px 0 48px; border-radius: 99px; border: 1px solid rgba(23, 24, 23, .15); background: var(--ivory-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235c605b' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat 18px center; font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(36, 90, 61, .25); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(23, 24, 23, .15); background: none; cursor: pointer; font-size: .92rem; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--forest-900); color: var(--lime-200); border-color: var(--forest-900); }
.count { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
.villages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; column-gap: 32px; }
@media (min-width: 640px) { .villages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .villages { grid-template-columns: 1fr 1fr 1fr; } }
.villages li { border-bottom: 1px solid rgba(23, 24, 23, .1); padding: 14px 0; animation: popIn .4s var(--ease) both; }
.villages .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.villages .nm { display: flex; align-items: baseline; gap: 10px; }
.villages .nm small { width: 22px; font-size: .75rem; color: var(--ink-3); }
.villages .nm span { font: 1.25rem var(--display); color: var(--forest-950); }
.villages .pop { font-size: .9rem; color: var(--ink-2); }
.villages .meta { display: flex; align-items: center; gap: 10px; margin: 8px 0 0 32px; }
.villages .bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(23, 24, 23, .07); overflow: hidden; }
.villages .bar i { display: block; height: 100%; border-radius: 99px; background: var(--forest-600); transform-origin: left; animation: grow 1s var(--ease) both; }
.villages .tag { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.villages a.tag { padding: 2px 10px; border-radius: 99px; background: var(--lime-300); color: var(--forest-950); font-weight: 600; text-decoration: none; }
.source { margin-top: 22px; font-size: .88rem; color: var(--ink-3); }
.source a { color: var(--forest-600); }

/* ---------- Sectors ---------- */
.sectors { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(11, 33, 22, .15); }
.sectors li { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 4px; border-bottom: 1px solid rgba(11, 33, 22, .15); overflow: hidden; isolation: isolate; }
.sectors li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest-900); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.sectors li:hover::before { transform: scaleX(1); }
.sectors .idx { width: 28px; font-size: .85rem; color: var(--ink-3); transition: color .4s; }
.sectors svg { flex: none; width: 26px; height: 26px; color: var(--forest-600); transition: color .4s; }
.sectors .t { font: clamp(1.3rem, 4vw, 2.4rem)/1.3 var(--display); color: var(--forest-950); transition: color .4s, transform .5s var(--ease); }
.sectors li:hover .t { color: var(--ivory-50); transform: translateX(6px); }
.sectors li:hover .idx, .sectors li:hover svg { color: var(--lime-300); }

/* ---------- Principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(23, 24, 23, .1); border-radius: var(--radius); overflow: hidden; }
.principles li { background: var(--ivory-50); padding: 22px; color: var(--ink-2); }
.principles strong { display: block; font: 1.3rem var(--display); color: var(--forest-950); margin-bottom: 4px; }
@media (min-width: 768px) { .principles { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA & Footer ---------- */
.cta { background: var(--lime-400); color: var(--forest-950); padding: 84px 0; }
@media (min-width: 768px) { .cta { padding: 120px 0; } }
.cta .grid-12 { align-items: end; }
.cta p { font-size: 1.05rem; margin-bottom: 22px; }
.footer { background: var(--forest-950); color: var(--ivory-50); padding: 72px 0 28px; overflow: hidden; }
.footer > .wrap { position: relative; z-index: 1; }
.footer__top { display: grid; gap: 30px; }
.footer__quote { font: clamp(1.4rem, 3.4vw, 2.2rem)/1.5 var(--display); max-width: 40rem; color: rgba(252, 250, 244, .9); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__nav a { color: rgba(252, 250, 244, .8); text-decoration: none; padding: 6px 0; }
.footer__nav a:hover { color: var(--lime-300); }
.footer__giant { margin: 50px 0 0; font: clamp(3.5rem, 16vw, 13rem)/1.15 var(--display); color: rgba(252, 250, 244, .06); white-space: nowrap; }
.footer__bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(252, 250, 244, .1); font-size: .85rem; color: rgba(252, 250, 244, .55); }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.4fr 1fr; align-items: end; } .footer__bottom { flex-direction: row; justify-content: space-between; } }

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

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: none; } }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ripple { from { transform: scale(.05); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1.04); } }
@keyframes tipIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fill { to { width: 100%; } }
@keyframes panelIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes panelInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes flip { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

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

/* ---------- Small-screen refinements ---------- */
@media (max-width: 639px) {
  /* Captions sit below photos on phones so text never covers faces. */
  .tile { background: var(--forest-800); }
  .tile::after { display: none; }
  .tile__cap { position: static; display: block; padding: 8px 10px 10px; line-height: 1.35; }
  .tile__cap small { display: none; }
  .tile__cap span { font-size: .95rem; }
  /* Hint goes under the map instead of over wards 8–9. */
  .hint { position: static; display: inline-block; margin-top: 10px; }
}
