/* ============================================
   Civic Urban Governance Portal
   Tukaram Ramkrishna Kate · Anushakti Nagar 174
   Typography: Manrope (headings) + IBM Plex Sans (body)
   ============================================ */

:root {
  --ink: #0A1628;
  --ink-soft: #1A2638;
  --paper: #F4F1EA;
  --paper-alt: #EBE6DB;
  --white: #FFFFFF;
  --saffron: #E87722;
  --saffron-deep: #C55A0E;
  --slate: #2C3E50;
  --muted: #6B6660;
  --rule: #C9C2B4;
  --rule-strong: #8B857A;
  --grid: rgba(10, 22, 40, 0.06);

  --f-head: 'Manrope', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --max: 1440px;
  --gut: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.mono, .eyebrow, .ward-tag, .sector, .coord {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ CITY GRID BACKDROP ============ */
.city-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.7;
}

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--saffron);
  z-index: -1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--saffron-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--saffron);
}

.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--saffron-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px; height: 2px;
  background: var(--ink);
  transition: .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--gut);
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
}

/* ============ LAYOUT PRIMITIVES ============ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.section-head-left { padding-top: 12px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  max-width: 900px;
}
.section-head p {
  max-width: 680px;
  margin-top: 18px;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============ PAGE HERO (non-home) ============ */
.phero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.phero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: end;
}
.phero h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.phero p.lead {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  max-width: 640px;
}
.phero-meta {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.phero-meta div { min-width: 140px; }
.phero-meta strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .phero-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  transition: background .2s, transform .2s;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow {
  width: 14px; height: 10px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M1 5h11M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/></svg>") no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M1 5h11M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/></svg>") no-repeat center/contain;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,241,234,0.15);
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  opacity: .55;
  margin-bottom: 16px;
}
.footer p, .footer a, .footer li {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.7;
  opacity: .88;
}
.footer a:hover { opacity: 1; color: var(--saffron); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-mark {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  opacity: 1;
}
.footer-mark span { color: var(--saffron); }
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(244,241,234,0.25);
  display: grid; place-items: center;
  transition: .2s;
}
.socials a:hover { background: var(--saffron); border-color: var(--saffron); }
.socials svg { width: 15px; height: 15px; fill: var(--paper); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .55;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ IMAGE CELL — edge-to-edge, no face cut ============ */
.imgcell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-alt);
}
.imgcell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* preserve faces — heads never cut */
  display: block;
}
.imgcell.feat img { object-position: center 30%; }
.imgcell.full img { object-position: center center; }

/* ============ HOME ============ */
.hero {
  position: relative;
  padding: 48px 0 0;
  border-bottom: 1px solid var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
}
.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-top span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-top .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--saffron);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-family: var(--f-head);
  font-size: clamp(46px, 7.2vw, 108px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--saffron);
  font-weight: 700;
}
.hero-intro {
  margin-top: 26px;
  max-width: 520px;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  height: 100%;
  min-height: 520px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-card .imgcell {
  height: 380px;
  margin: -28px -28px 22px;
  width: calc(100% + 56px);
}
.hero-card .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 8px;
}
.hero-card h3 {
  font-family: var(--f-head);
  font-size: 22px;
  color: var(--paper);
  font-weight: 700;
}
.hero-card p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(244,241,234,0.75);
  line-height: 1.55;
}
.hero-card .meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(244,241,234,0.15);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
}

/* Ticker */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tick 40s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track span::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-head);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-num sup {
  font-size: 0.5em;
  color: var(--saffron);
  margin-left: 4px;
  font-weight: 500;
}
.stat-label {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.pillar {
  padding: 32px 26px 36px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  transition: background .3s;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--paper-alt); }
.pillar-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--saffron);
  margin-bottom: 20px;
}
.pillar h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}
.pillar-link {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 28px;
}
.pillar-link::after {
  content: '→';
  transition: transform .2s;
}
.pillar:hover .pillar-link::after { transform: translateX(4px); }
@media (max-width: 880px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
}

/* Profile band (home) */
.profile-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.profile-band .imgcell {
  min-height: 560px;
  border-right: 1px solid var(--ink);
}
.profile-band .copy {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-band h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
.profile-band p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.72;
  margin-bottom: 14px;
}
.profile-band .sig {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .profile-band { grid-template-columns: 1fr; }
  .profile-band .imgcell { min-height: 340px; border-right: none; border-bottom: 1px solid var(--ink); }
}

/* Initiatives list */
.inits {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.init-row {
  display: grid;
  grid-template-columns: 80px 1fr 320px 180px 40px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: background .2s;
}
.init-row:hover { background: var(--paper-alt); }
.init-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.init-title {
  font-family: var(--f-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.init-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}
.init-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.init-arrow { text-align: right; font-size: 18px; color: var(--ink); }
@media (max-width: 880px) {
  .init-row {
    grid-template-columns: 60px 1fr 30px;
    gap: 14px;
  }
  .init-desc, .init-tag { display: none; }
}

/* Quote block */
.quote-block {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.quote-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,241,234,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,234,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.quote-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gut);
  position: relative;
}
.quote-block blockquote {
  font-family: var(--f-head);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.quote-block blockquote em {
  font-style: normal;
  color: var(--saffron);
}
.quote-block .attr {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(244,241,234,0.2);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.65);
}

/* ============ ABOUT PAGE ============ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.bio-grid .imgcell { height: 640px; }
.bio-body h3 {
  font-size: 22px;
  margin: 32px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}
.bio-body h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.bio-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 14px;
}
@media (max-width: 960px) {
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-grid .imgcell { height: 420px; }
}

/* Timeline */
.tl {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.tl-row {
  display: grid;
  grid-template-columns: 120px 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.tl-year {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tl-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.tl-body {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}
@media (max-width: 700px) {
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
}

/* Philosophy cards */
.phil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.phil-card {
  padding: 40px 30px;
  border-right: 1px solid var(--rule);
}
.phil-card:last-child { border-right: none; }
.phil-card .n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--saffron);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.phil-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.phil-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}
@media (max-width: 760px) {
  .phil { grid-template-columns: 1fr; }
  .phil-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .phil-card:last-child { border-bottom: none; }
}

/* ============ SERVICE / PROGRAM LIST ============ */
.prog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.prog-card {
  padding: 34px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  transition: background .2s;
}
.prog-card:nth-child(2n) { border-right: none; }
.prog-card:hover { background: var(--paper-alt); }
.prog-card .icon {
  width: 48px; height: 48px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: 8px;
}
.prog-card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.prog-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prog-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}
.prog-card .foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .prog { grid-template-columns: 1fr; }
  .prog-card { border-right: none; }
}

/* ============ CONSTITUENCY ============ */
.cmap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cmap-vis {
  background: var(--ink);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  position: relative;
  min-height: 560px;
}
.cmap-vis svg { width: 100%; height: auto; max-height: 460px; }
.cmap-side { padding: 48px; }
.cmap-side h3 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.cmap-side p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.72;
  margin-bottom: 14px;
}
.cmap-list {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.cmap-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.cmap-list li:last-child { border-bottom: none; }
.cmap-list .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmap-list .v { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) {
  .cmap { grid-template-columns: 1fr; }
  .cmap-vis { min-height: 380px; padding: 32px; }
}

/* ============ VISION ============ */
.vision-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--ink);
}
.vcell {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vcell:hover { background: var(--paper-alt); }
.vcell .n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--saffron-deep);
}
.vcell h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vcell p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}
.vcell.dark { background: var(--ink); color: var(--paper); }
.vcell.dark h3 { color: var(--paper); }
.vcell.dark p { color: rgba(244,241,234,0.75); }
.vcell.dark .n { color: var(--saffron); }
.vcell.img { padding: 0; }
.vcell.img .imgcell { height: 100%; }

/* Default spans */
.v-a { grid-column: span 4; grid-row: span 2; }
.v-b { grid-column: span 4; grid-row: span 2; }
.v-c { grid-column: span 4; grid-row: span 2; }
.v-d { grid-column: span 6; grid-row: span 3; }
.v-e { grid-column: span 3; grid-row: span 3; }
.v-f { grid-column: span 3; grid-row: span 3; }
.v-g { grid-column: span 4; grid-row: span 2; }
.v-h { grid-column: span 8; grid-row: span 2; }

@media (max-width: 960px) {
  .vision-board { grid-template-columns: repeat(6, 1fr); }
  .v-a, .v-b, .v-c { grid-column: span 3; }
  .v-d { grid-column: span 6; }
  .v-e, .v-f { grid-column: span 3; }
  .v-g { grid-column: span 6; }
  .v-h { grid-column: span 6; }
}
@media (max-width: 560px) {
  .vision-board { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .vcell { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 160px; }
  .vcell.img { min-height: 240px; }
}

/* ============ GALLERY ============ */
.gal {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gal .imgcell { height: 100%; min-height: 100%; }
.g1 { grid-column: span 6; height: 480px; }
.g2 { grid-column: span 3; height: 320px; }
.g3 { grid-column: span 3; height: 320px; }
.g4 { grid-column: span 3; height: 260px; }
.g5 { grid-column: span 6; height: 360px; }
.g6 { grid-column: span 3; height: 260px; }
.g7 { grid-column: span 4; height: 320px; }
.g8 { grid-column: span 4; height: 320px; }
.g9 { grid-column: span 4; height: 320px; }
.g10 { grid-column: span 6; height: 380px; }
.g11 { grid-column: span 6; height: 380px; }
.g12 { grid-column: span 12; height: 440px; }

@media (max-width: 880px) {
  .g1, .g5, .g10, .g11, .g12 { grid-column: span 12; height: 320px; }
  .g2, .g3, .g4, .g6 { grid-column: span 6; height: 220px; }
  .g7, .g8, .g9 { grid-column: span 12; height: 260px; }
}

/* ============ CONTACT ============ */
.cgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
}
.cgrid-col { padding: 48px; border-right: 1px solid var(--ink); }
.cgrid-col:last-child { border-right: none; background: var(--ink); color: var(--paper); }
.cgrid-col h3 {
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.cgrid-col:last-child h3 { color: var(--paper); }
.cgrid-col .sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.cgrid-col:last-child .sub { color: rgba(244,241,234,0.55); }
.ci {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: baseline;
}
.cgrid-col:last-child .ci { border-top-color: rgba(244,241,234,0.15); }
.ci .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cgrid-col:last-child .ci .k { color: rgba(244,241,234,0.55); }
.ci .v {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.cgrid-col:last-child .ci .v { color: var(--paper); }
.ci .v a:hover { color: var(--saffron); }
@media (max-width: 880px) {
  .cgrid { grid-template-columns: 1fr; }
  .cgrid-col { border-right: none; border-bottom: 1px solid var(--ink); padding: 36px 28px; }
  .cgrid-col:last-child { border-bottom: none; }
}

/* ============ SOCIAL CARD GRID (Contact) ============ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin-top: 48px;
  background: var(--ink);
}
.social-card {
  position: relative;
  background: var(--paper);
  padding: 32px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 210px;
  transition: background .25s, color .25s;
  overflow: hidden;
}
.social-card:not(:last-child) { border-right: 1px solid var(--ink); }
.social-card .sc-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 28px;
}
.social-card .sc-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: background .25s, border-color .25s;
}
.social-card .sc-icon svg {
  width: 20px; height: 20px;
  fill: var(--ink);
  transition: fill .25s;
}
.social-card .sc-n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-card .sc-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .25s;
}
.social-card .sc-handle {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  transition: color .25s;
  word-break: break-all;
}
.social-card .sc-arrow {
  position: absolute;
  right: 18px; bottom: 18px;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--ink);
  transition: transform .25s, color .25s;
}

.social-card:hover { background: var(--ink); }
.social-card:hover .sc-name { color: var(--paper); }
.social-card:hover .sc-handle { color: var(--saffron); }
.social-card:hover .sc-n { color: rgba(244,241,234,0.55); }
.social-card:hover .sc-icon { background: var(--saffron); border-color: var(--saffron); }
.social-card:hover .sc-icon svg { fill: var(--paper); }
.social-card:hover .sc-arrow { color: var(--saffron); transform: translateX(4px); }

@media (max-width: 960px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-card:nth-child(odd) { border-right: 1px solid var(--ink); }
  .social-card:nth-child(even) { border-right: none; }
  .social-card:not(:last-child):not(:nth-last-child(2)) { border-bottom: 1px solid var(--ink); }
  .social-card:nth-child(5) { grid-column: span 2; border-right: none; }
}
@media (max-width: 520px) {
  .social-grid { grid-template-columns: 1fr; }
  .social-card { border-right: none !important; border-bottom: 1px solid var(--ink); }
  .social-card:last-child { border-bottom: none; }
  .social-card:nth-child(5) { grid-column: auto; }
}

/* ============ CONTACT FORM ============ */
.form-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.form-side {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  position: relative;
}
.form-side::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  height: 1px;
  background: rgba(244,241,234,0.18);
}
.form-side .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}
.form-side h3 {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.form-side p {
  font-size: 13px;
  color: rgba(244,241,234,0.7);
  line-height: 1.6;
}
.form-side .meta-list {
  margin-top: 28px;
  list-style: none;
  padding: 0;
}
.form-side .meta-list li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.6);
  padding: 10px 0;
  border-top: 1px solid rgba(244,241,234,0.12);
  display: flex;
  justify-content: space-between;
}
.form-side .meta-list li:last-child { border-bottom: 1px solid rgba(244,241,234,0.12); }
.form-side .meta-list li strong {
  color: var(--paper);
  font-weight: 500;
}

.form-body {
  padding: 44px 40px;
}
.form-body .form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 4px;
}
.form-field {
  margin-bottom: 22px;
  position: relative;
}
.form-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.form-field label .req { color: var(--saffron-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230A1628' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px;
  padding-right: 24px;
  cursor: pointer;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #B4AEA2;
  opacity: 1;
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 12px 0 24px;
}
.form-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--saffron);
  flex-shrink: 0;
}
.form-consent label {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-actions .submit {
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.form-actions .submit:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }
.form-actions .submit::after {
  content: '→';
  font-family: var(--f-mono);
}
.form-actions .note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-success,
.form-error {
  margin-top: 20px;
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  display: none;
}
.form-success {
  background: rgba(34, 139, 84, 0.08);
  border-left: 3px solid #228B54;
  color: #185c38;
}
.form-error {
  background: rgba(197, 90, 14, 0.08);
  border-left: 3px solid var(--saffron-deep);
  color: var(--saffron-deep);
}
.form-success.on, .form-error.on { display: block; }

@media (max-width: 880px) {
  .form-wrap { grid-template-columns: 1fr; }
  .form-side { padding: 32px 28px; }
  .form-body { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ PASSWORD ENTRY ============ */
.pw-page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.pw-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,241,234,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,234,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.pw-card {
  max-width: 440px;
  width: 100%;
  padding: 48px 44px;
  background: var(--ink-soft);
  border: 1px solid rgba(244,241,234,0.12);
  position: relative;
  z-index: 1;
}
.pw-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; width: 40px; height: 40px;
  border-top: 2px solid var(--saffron);
  border-left: 2px solid var(--saffron);
}
.pw-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px; width: 40px; height: 40px;
  border-bottom: 2px solid var(--saffron);
  border-right: 2px solid var(--saffron);
}
.pw-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 28px;
}
.pw-card h1 {
  font-family: var(--f-head);
  color: var(--paper);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.pw-card p.desc {
  font-size: 13px;
  color: rgba(244,241,234,0.65);
  margin-bottom: 32px;
  line-height: 1.6;
}
.pw-field {
  position: relative;
  margin-bottom: 14px;
}
.pw-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
  margin-bottom: 10px;
}
.pw-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(244,241,234,0.04);
  border: 1px solid rgba(244,241,234,0.2);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  outline: none;
  transition: border .2s, background .2s;
}
.pw-field input:focus {
  border-color: var(--saffron);
  background: rgba(232,119,34,0.06);
}
.pw-submit {
  width: 100%;
  padding: 14px;
  background: var(--saffron);
  color: var(--paper);
  border: none;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-top: 18px;
}
.pw-submit:hover { background: var(--saffron-deep); }
.pw-err {
  color: #FF8E7A;
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}
.pw-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(244,241,234,0.1);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.4);
  display: flex;
  justify-content: space-between;
}

/* ============ UTILITIES ============ */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.row-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 0; }

.banner {
  background: var(--saffron);
  color: var(--paper);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.banner h3 {
  color: var(--paper);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 720px;
}
.banner .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.banner .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 680px) {
  .banner { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* Fade in on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }
