:root {
  --green-950: #062d20;
  --green-900: #0a3d2b;
  --green-800: #10553b;
  --green-700: #196847;
  --green-100: #e8f0e9;
  --red-700: #b50f20;
  --red-600: #d3192c;
  --red-100: #fae9e9;
  --gold-600: #a77b28;
  --gold-400: #c7a252;
  --ink: #12241c;
  --muted: #617068;
  --paper: #f8f4e9;
  --paper-deep: #efe7d7;
  --white: #fffefa;
  --line: rgba(10, 61, 43, 0.14);
  --shadow-sm: 0 10px 28px rgba(23, 50, 39, 0.08);
  --shadow-lg: 0 28px 70px rgba(23, 50, 39, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1240px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(199, 162, 82, 0.11), transparent 28rem),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 100%);
  font-family: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(211, 25, 44, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green-950);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--red-700);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow::after {
  width: 48px;
  height: 2px;
  background: currentColor;
  content: "";
}

.display,
.section-title,
.page-title,
.card-title {
  margin: 0;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", "Mukta", serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-title {
  font-size: clamp(2.15rem, 4.2vw, 4rem);
}

.section-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading .section-copy {
  max-width: 520px;
  margin: 0;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section.compact {
  padding: 70px 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green-900);
  box-shadow: 0 10px 24px rgba(10, 61, 43, 0.22);
  color: white;
}

.button-primary:hover {
  background: var(--green-800);
  box-shadow: 0 16px 30px rgba(10, 61, 43, 0.25);
}

.button-outline {
  border-color: var(--green-900);
  background: rgba(255, 254, 250, 0.76);
  color: var(--green-900);
}

.button-light {
  border-color: rgba(255,255,255,.56);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-800);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(10, 61, 43, 0.1);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  height: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  display: block;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 12px 10px;
  color: #39483f;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  background: var(--red-600);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-flag {
  width: 96px;
  height: 58px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--green-950);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(5px); }

.mobile-nav {
  position: fixed;
  z-index: 99;
  inset: var(--header-height) 0 0;
  display: none;
  overflow-y: auto;
  padding: 28px 20px;
  background: rgba(248, 244, 233, 0.98);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav .nav-list {
  display: grid;
  gap: 4px;
}

.mobile-nav .nav-link {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

/* Homepage hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 60% 0 0;
  background:
    radial-gradient(circle at 2% 75%, rgba(211, 25, 44, 0.38), transparent 32%),
    radial-gradient(circle at 7% 4%, rgba(6, 45, 32, 0.46), transparent 36%),
    linear-gradient(90deg, rgba(248,244,233,.98), rgba(248,244,233,.76));
  content: "";
}

.hero-grid {
  display: grid;
  min-height: 520px;
  grid-template-columns: 40% 60%;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(24px, 3vw, 48px) 48px max(20px, calc((100vw - var(--container)) / 2));
}

.hero-copy > .eyebrow {
  margin-bottom: 24px;
}

.hero-title {
  margin: 0;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(4rem, 6.4vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-role {
  margin: 14px 0 0;
  color: var(--red-700);
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(2.3rem, 3.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.06;
}

.hero-rule {
  width: 82px;
  height: 4px;
  margin: 20px 0;
  background: var(--gold-400);
}

.hero-text {
  max-width: 485px;
  margin: 0;
  color: #36483e;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 44%;
}

.hero-media::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 10%;
  background: linear-gradient(90deg, var(--white), transparent);
  content: "";
}

.fact-strip {
  border-block: 1px solid rgba(167, 123, 40, 0.36);
  background: rgba(255, 254, 250, 0.95);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  display: grid;
  min-height: 104px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
}

.fact + .fact {
  border-left: 1px solid rgba(167, 123, 40, 0.34);
}

.fact .fact-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: rgba(199, 162, 82, 0.14);
  color: var(--gold-600);
  font-family: "Mukta", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.fact strong {
  display: block;
  color: var(--green-950);
  font-size: 1.13rem;
  line-height: 1.2;
}

.fact > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

/* Convention feature */
.congress {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248,244,233,.93), rgba(248,244,233,.98)),
    url("../images/kathmandu-civic-illustration.png") center / cover;
}

.congress::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.65), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(10,61,43,.018) 24px 25px);
  content: "";
  pointer-events: none;
}

.congress .container {
  position: relative;
}

.congress-lead {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.congress-title span {
  display: block;
  color: var(--red-700);
}

.party-visual {
  position: relative;
  min-height: 290px;
}

.party-flag {
  width: min(72%, 420px);
  margin-left: 0;
  filter: drop-shadow(0 20px 22px rgba(0,0,0,.14));
}

.party-tree {
  position: absolute;
  right: 4%;
  bottom: -12px;
  width: min(42%, 230px);
  filter: drop-shadow(0 16px 15px rgba(6,45,32,.14));
}

.congress-poster {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 43, .13);
  border-radius: 32px;
  background: #edf5f2;
  box-shadow: 0 26px 60px rgba(6, 45, 32, .16);
}

.congress-poster::after {
  position: absolute;
  inset: 0;
  border: 8px solid rgba(255, 255, 255, .7);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.congress-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.congress-poster figcaption {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  padding: 8px 14px 6px;
  border-radius: 999px;
  background: rgba(6, 45, 32, .9);
  color: white;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(6, 45, 32, .18);
}

.congress-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.document-feature {
  grid-column: span 4;
  display: grid;
  min-height: 290px;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(10, 61, 43, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.congress-document {
  position: relative;
  overflow: hidden;
  border-color: rgba(197, 20, 35, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(197, 20, 35, 0.08), transparent 34%),
    rgba(255, 254, 250, 0.94);
}

.congress-document::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red-700);
  content: "";
}

.document-copy {
  position: relative;
  z-index: 1;
}

.manifesto-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.document-art {
  position: relative;
  width: 104px;
  height: 142px;
  padding: 18px 12px;
  border: 1px solid #d6cbb7;
  background: #fffaf0;
  box-shadow: 8px 9px 0 #eee2cc;
}

.document-art::before {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  background: url("../images/nc-tree.png") center / contain no-repeat;
  content: "";
}

.document-art::after {
  display: block;
  height: 45px;
  background: repeating-linear-gradient(180deg, #b8b09f 0 1px, transparent 1px 9px);
  content: "";
}

.document-feature h3 {
  margin: 0 0 10px;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.2;
}

.document-feature p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.priority-panel {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  border-left: 1px solid var(--gold-400);
}

.priority-card {
  display: grid;
  min-height: 132px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 15px 10px;
  border: 1px solid rgba(10,61,43,.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.64);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.priority-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 61, 43, .22);
  box-shadow: 0 14px 28px rgba(6, 45, 32, .09);
}

.priority-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 85, 59, .12), rgba(199, 162, 82, .17));
  color: var(--green-800);
  line-height: 1;
}

.priority-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-card strong {
  color: var(--green-950);
  font-size: 0.92rem;
  line-height: 1.3;
}

.employment-stat {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  border-radius: var(--radius-md);
  background: var(--green-950);
  color: white;
}

.employment-stat span {
  color: #dceadf;
  font-weight: 600;
}

.employment-stat strong {
  max-width: 720px;
  color: white;
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(1.65rem, 2.65vw, 2.8rem);
  line-height: 1.12;
  text-align: right;
}

/* Cards and homepage sections */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 26px;
}

.card-kicker {
  color: var(--red-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.card-title {
  margin-top: 8px;
  font-size: 1.55rem;
}

.card p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.card-image {
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card-image img {
  transform: scale(1.035);
}

.work-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 17px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 1.7rem;
}

.documents-kathmandu {
  background: rgba(255, 254, 250, 0.78);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
  gap: 38px;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  transition: border-color 180ms ease, transform 180ms ease;
}

.document-row:hover {
  border-color: rgba(211,25,44,.36);
  transform: translateX(3px);
}

.pdf-icon {
  display: grid;
  width: 42px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  background: var(--red-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.document-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.26;
}

.document-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.download-mark {
  color: var(--green-800);
  font-size: 1.25rem;
}

.kathmandu-panel {
  position: relative;
  display: flex;
  min-height: 455px;
  overflow: hidden;
  align-items: flex-start;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.kathmandu-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kathmandu-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,244,233,.97) 0%, rgba(248,244,233,.74) 42%, rgba(248,244,233,.04) 75%);
  content: "";
}

.kathmandu-content {
  position: relative;
  z-index: 1;
  max-width: 330px;
}

.kathmandu-content h3 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.08;
}

.kathmandu-content p {
  margin: 0 0 22px;
  color: #435248;
}

/* Interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background: var(--green-950);
  color: white;
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.page-hero::before {
  top: -240px;
  left: -130px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(211,25,44,.32), transparent 67%);
}

.page-hero::after {
  right: -120px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(199,162,82,.22), transparent 65%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-person {
  position: absolute;
  right: 2%;
  bottom: -20px;
  width: auto;
  height: calc(100% + 18px);
  max-height: none;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,.26));
  opacity: .88;
}

.page-hero-portrait-frame {
  position: absolute;
  z-index: 0;
  right: 2.5%;
  bottom: -168px;
  width: min(32vw, 470px);
  height: 440px;
  border: 0;
  background: transparent;
}

.page-hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) drop-shadow(0 22px 26px rgba(0,0,0,.24));
  transform: none;
}

.page-hero .breadcrumb,
.page-hero .eyebrow,
.page-hero .page-title,
.page-hero .page-intro {
  position: relative;
  z-index: 1;
}

.page-hero .page-title {
  max-width: 64%;
}

.page-hero .page-intro {
  max-width: 58%;
}

.page-hero .eyebrow {
  color: #f4a5ac;
}

.page-title {
  max-width: 900px;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.page-intro {
  max-width: 700px;
  margin: 22px 0 0;
  color: #d7e3dc;
  font-size: 1.12rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #b8cbc0;
  font-size: 0.86rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  gap: 58px;
}

.prose h2,
.prose h3 {
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  line-height: 1.2;
}

.prose h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.prose h3 {
  margin: 32px 0 12px;
  font-size: 1.5rem;
}

.prose p {
  color: #45564c;
}

.info-panel {
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
  color: white;
}

.info-panel h3 {
  margin: 0 0 20px;
  color: white;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.55rem;
}

.portrait-stage {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: end center;
  margin-top: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 70%, rgba(211,25,44,.16), transparent 36%),
    linear-gradient(150deg, var(--paper-deep), #fffdf7);
}

.portrait-stage::before {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(167,123,40,.28);
  border-radius: calc(var(--radius-lg) - 10px);
  content: "";
}

.portrait-stage img {
  position: relative;
  z-index: 1;
  max-height: 440px;
  object-fit: contain;
  object-position: bottom;
}

.portrait-stage-professional {
  min-height: 590px;
}

.portrait-stage-professional img {
  width: auto;
  max-height: 565px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.info-list small {
  display: block;
  color: #a9c2b3;
}

.info-list strong {
  display: block;
  margin-top: 3px;
  color: white;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding: 26px 26px 26px 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.timeline-icon {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
}

.timeline-item h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.25rem;
  line-height: 1.2;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric {
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.metric-icon {
  font-size: 2.4rem;
}

.metric strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.45rem;
}

.metric span {
  color: var(--muted);
}

.constituency-feature {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 48px;
}

.constituency-art {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.constituency-art img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.campaign-poster {
  width: min(100%, 380px);
  max-height: 460px;
  overflow: hidden;
  margin-top: 30px;
  border: 10px solid white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.campaign-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.works-grid,
.vision-grid {
  grid-template-columns: repeat(4, 1fr);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--green-900);
  cursor: pointer;
  font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--green-900);
  background: var(--green-900);
  color: white;
}

.document-search {
  min-width: min(100%, 320px);
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.document-library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.library-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.library-card[hidden] {
  display: none;
}

.library-card .pdf-icon {
  margin-bottom: 20px;
}

.library-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.library-card-top .pdf-icon {
  margin-bottom: 0;
}

.library-card-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(197, 20, 35, .18);
  background:
    radial-gradient(circle at 100% 0, rgba(197, 20, 35, .07), transparent 35%),
    var(--white);
}

.library-card-featured::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red-700), var(--gold-400));
  content: "";
}

.manifesto-badge {
  padding: 7px 10px 5px;
  border-radius: 999px;
  background: rgba(197, 20, 35, .09);
  color: var(--red-700);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.library-card h2 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.25rem;
  line-height: 1.28;
}

.library-card p {
  margin: auto 0 16px;
  color: var(--muted);
  font-size: .88rem;
}

.library-card p strong {
  color: var(--green-900);
  font-weight: 700;
}

.social-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 34px;
}

.facebook-frame {
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.facebook-frame iframe {
  width: 100%;
  height: 610px;
  border: 0;
}

.social-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--green-950);
  color: white;
}

.social-card h2 {
  margin: 0 0 12px;
  color: white;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 2rem;
}

.social-card p {
  color: #c6d8ce;
}

.social-links {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 46px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
}

.contact-item small {
  display: block;
  color: var(--muted);
}

.contact-item strong {
  display: block;
  color: var(--green-950);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--green-950);
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(10,61,43,.2);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(90deg, rgba(6,45,32,.97), rgba(10,61,43,.94)),
    url("../images/kathmandu-civic-illustration.png") center 62% / cover;
  color: #d7e6dd;
}

.site-footer::after {
  display: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
}

.footer-brand .brand-name {
  color: white;
  font-size: 1.15rem;
}

.footer-brand .brand-subtitle {
  color: #afc5b8;
  font-size: .68rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav {
  min-width: 0;
}

.footer-menu li {
  display: flex;
  align-items: center;
}

.footer-menu li + li::before {
  display: block;
  flex: 0 0 auto;
  margin: 0 1px;
  color: rgba(255,255,255,.3);
  content: "|";
  line-height: 1;
}

.footer-menu a {
  padding: 5px 9px;
  color: #d7e6dd;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-menu a:hover {
  color: white;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.footer-social a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  background: white;
  color: var(--green-950);
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

/* External feedback application */
.feedback-integration {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(167,123,40,.18);
  background:
    radial-gradient(circle at 100% 0, rgba(199,162,82,.16), transparent 34%),
    linear-gradient(145deg, #f4eddf, #fffdf7 58%, #f7f0e3);
}

.feedback-integration-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.feedback-integration-heading .section-copy {
  max-width: 720px;
  margin: 16px 0 0;
}

.feedback-integration-heading .button {
  margin-bottom: 6px;
  white-space: nowrap;
}

.feedback-app-frame {
  overflow: hidden;
  border: 1px solid rgba(6,45,32,.18);
  border-radius: 30px;
  background: #f4f5f7;
  box-shadow: 0 26px 60px rgba(6,45,32,.15);
}

.feedback-app-frame iframe {
  display: block;
  width: 100%;
  height: 1040px;
  border: 0;
  background: #f4f5f7;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1160px) {
  :root { --header-height: 76px; }
  .site-nav,
  .header-flag { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 43% 57%; }
  .document-feature { grid-column: span 6; }
  .priority-panel { grid-column: span 12; border-left: 0; border-top: 1px solid var(--gold-400); }
  .priority-card { min-height: 112px; }
  .works-grid,
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; row-gap: 10px; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-menu { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 900px) {
  .section { padding: 74px 0; }
  .hero::before { inset: 0; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 520px; padding: 64px 24px 54px; text-align: center; align-items: center; }
  .hero-title { font-size: clamp(4.4rem, 14vw, 6.4rem); }
  .hero-media { min-height: 500px; }
  .hero-media::after { inset: 0 0 auto; width: auto; height: 18%; background: linear-gradient(180deg, var(--white), transparent); }
  .fact { padding: 18px; }
  .congress-lead { grid-template-columns: 1fr; }
  .party-visual { min-height: 230px; }
  .congress-poster { width: min(100%, 440px); margin-inline: auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split-grid,
  .content-grid,
  .social-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .document-library { grid-template-columns: 1fr 1fr; }
  .constituency-feature { grid-template-columns: 1fr; }
  .page-hero-portrait-frame {
    right: -40px;
    bottom: -92px;
    width: 46%;
    height: 350px;
    opacity: .16;
  }
  .page-hero .page-title,
  .page-hero .page-intro { max-width: 100%; }
  .feedback-integration-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }
  .feedback-app-frame iframe { height: 1080px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-subtitle { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .hero-copy { min-height: 490px; }
  .hero-title { font-size: clamp(4rem, 17vw, 5.2rem); }
  .hero-role { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-media { min-height: 340px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-top: 1px solid rgba(167,123,40,.24); border-left: 0; }
  .fact { min-height: 85px; }
  .document-feature { grid-column: span 12; grid-template-columns: 76px 1fr; padding: 20px; }
  .document-art { width: 72px; height: 108px; padding: 12px 9px; box-shadow: 5px 6px 0 #eee2cc; }
  .document-art::before { width: 28px; height: 28px; margin-bottom: 9px; }
  .priority-panel { padding: 14px 0; }
  .employment-stat { align-items: start; flex-direction: column; padding: 24px; }
  .employment-stat strong { text-align: left; }
  .card-grid,
  .metric-grid,
  .document-library { grid-template-columns: 1fr; }
  .kathmandu-panel { min-height: 520px; padding: 28px; }
  .kathmandu-panel::after { background: linear-gradient(180deg, rgba(248,244,233,.97) 0%, rgba(248,244,233,.75) 45%, rgba(248,244,233,.06) 78%); }
  .page-hero { padding: 66px 0 62px; }
  .page-title { font-size: 2.8rem; }
  .page-hero-person {
    right: -42px;
    bottom: -8px;
    display: block;
    height: 93%;
    opacity: .2;
  }
  .page-hero-portrait-frame {
    right: -34px;
    bottom: -34px;
    width: 58%;
    height: 300px;
    opacity: .2;
  }
  .page-hero-portrait-frame img {
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }
  .footer-brand .brand-subtitle { display: block; }
  .portrait-stage-professional { min-height: 510px; }
  .portrait-stage-professional img { max-height: 490px; }
  .timeline-item { padding: 24px; }
  .timeline-icon { position: static; margin-bottom: 13px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .site-footer { padding: 18px 0; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .footer-menu { justify-content: flex-start; gap: 2px; }
  .footer-menu li + li::before { display: none; }
  .footer-menu a { display: block; padding: 4px 7px; font-size: .72rem; }
  .footer-social a { width: 30px; height: 30px; }
  .feedback-integration-heading { margin-bottom: 24px; }
  .feedback-app-frame { border-radius: 20px; }
  .feedback-app-frame iframe { height: 1160px; }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .footer-brand {
    min-width: 0;
  }
  .footer-social {
    grid-row: 2;
    justify-content: flex-start;
  }
  .footer-nav {
    grid-column: 1;
    grid-row: 3;
  }
  .footer-menu .nav-link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
