/* =====================================================================
   Tasgaon Road Register — Landing Page Stylesheet
   Aesthetic: Editorial Cartographic (surveyor's atlas meets modern web)
   ===================================================================== */

:root {
  /* Warm paper palette */
  --paper:         #FAF7F0;
  --paper-dark:    #F2EDE0;
  --ink:           #0B1F3A;
  --ink-soft:      #2A3D5A;
  --ink-muted:     #6B7A8C;
  --hairline:      #D9D1BF;

  /* Accent — burnt orange / saffron (Tasgaon warmth) */
  --accent:        #C77A2E;
  --accent-dark:   #9E5E1F;
  --accent-soft:   #F5E6D3;

  /* Tricolor (used sparingly) */
  --saffron:       #FF9933;
  --tri-white:     #FFFFFF;
  --tri-green:     #138808;

  /* Category colors — echo the same hex from road_categories table */
  --cat-nh:        #d32f2f;
  --cat-sh:        #f57c00;
  --cat-mun:       #1976d2;
  --cat-kachha:    #6d4c41;

  /* Status colors */
  --ok:            #2D7F3D;
  --warn:          #B45309;
  --danger:        #B91C1C;

  /* Typography scale */
  --fs-huge:       clamp(44px, 8vw, 88px);
  --fs-xl:         clamp(28px, 4vw, 44px);
  --fs-lg:         clamp(20px, 2.5vw, 26px);
  --fs-md:         16px;
  --fs-sm:         14px;
  --fs-xs:         12px;

  /* Spacing */
  --gutter:        clamp(20px, 4vw, 60px);
  --section:       clamp(60px, 10vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;

  /* Subtle paper texture via layered gradients */
  background-image:
    radial-gradient(circle at 25% 10%, rgba(199, 122, 46, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(11, 31, 58, 0.03) 0%, transparent 50%),
    linear-gradient(var(--paper), var(--paper));
}

/* Prevent any element from breaking viewport width */
img, svg, table { max-width: 100%; }

/* Utility: Marathi text uses Anek Devanagari */
.mr { font-family: 'Anek Devanagari', sans-serif; font-weight: 500; }

/* Display typography */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* =====================================================================
   TRICOLOR STRIP + NAV
   ===================================================================== */
.tricolor {
  height: 4px;
  background: linear-gradient(to right,
    var(--saffron) 0%, var(--saffron) 33.3%,
    var(--tri-white) 33.3%, var(--tri-white) 66.6%,
    var(--tri-green) 66.6%, var(--tri-green) 100%);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}

.nav {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 999;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(217, 209, 191, 0.6);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand-text { min-width: 0; }
@media (max-width: 480px) {
  .brand-text .brand-name { font-size: 13px; }
  .brand-text .brand-sub { font-size: 10px; }
  .brand-emblem { width: 36px; height: 36px; }
  .brand-emblem svg { width: 18px; height: 18px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-emblem {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(199, 122, 46, 0.25);
  position: relative;
}
.brand-emblem::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}
.brand-emblem svg {
  width: 22px; height: 22px;
  color: var(--paper);
  position: relative;
  z-index: 1;
}

.brand-text .brand-name {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-text .brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
/* Exclude button anchors from the muted nav-link color — they have their own
   bg+fg defined by .btn-primary / .btn-ghost and must not inherit ink-soft
   (which blends into the navy button bg and hides the label). */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--paper); }
.nav-links a.btn-ghost         { color: var(--ink); }
.nav-links a.btn-ghost:hover   { color: var(--paper); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.btn-primary::after,
.nav-links a.btn-ghost::after { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199, 122, 46, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.hamburger svg { display: block; width: 24px; height: 24px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  padding: 110px var(--gutter) 40px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding: 160px var(--gutter) 100px; gap: 60px; }
}

.hero-copy { min-width: 0; max-width: 100%; }

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-huge);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1.5px;
  background: var(--accent);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-title-mr {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn { padding: 14px 24px; font-size: 15px; }

/* Hero — mini map */
.hero-map-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .hero-map-wrap { aspect-ratio: 4 / 3; max-width: 100%; }
}

.hero-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper-dark);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(11, 31, 58, 0.04),
    0 20px 60px -20px rgba(11, 31, 58, 0.15);
}

/* Grid overlay — subtle surveyor's graph paper feel */
.hero-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.hero-map svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

/* =====================================================================
   Hero GIS illustration — animations
   ===================================================================== */

#hero-gis .gis-road {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: gisDrawRoad 1.8s ease-out forwards;
}
#hero-gis .gis-road-nh     { animation-delay: 0.2s; }
#hero-gis .gis-road-sh     { animation-delay: 0.4s; }
#hero-gis .gis-road-mun    { animation-delay: 0.6s; }
#hero-gis .gis-road-kachha { animation-delay: 0.8s; }

@keyframes gisDrawRoad {
  to { stroke-dashoffset: 0; }
}

#hero-gis .gis-nodes circle,
#hero-gis .gis-flag,
#hero-gis .gis-bm,
#hero-gis .gis-measure,
#hero-gis .gis-theodolite,
#hero-gis .gis-satellite,
#hero-gis .gis-compass,
#hero-gis .gis-scale,
#hero-gis .gis-laser {
  /* Fallback: fully visible if animation is disabled or blocked */
  opacity: 1;
  animation: gisFadeIn 0.9s ease-out both;
}
#hero-gis .gis-nodes       circle { animation-delay: 1.0s; }
#hero-gis .gis-flag               { animation-delay: 1.2s; }
#hero-gis .gis-bm                 { animation-delay: 1.3s; }
#hero-gis .gis-measure            { animation-delay: 1.4s; }
#hero-gis .gis-compass            { animation-delay: 1.5s; }
#hero-gis .gis-scale              { animation-delay: 1.6s; }
#hero-gis .gis-satellite          { animation-delay: 1.7s; }
#hero-gis .gis-theodolite         { animation-delay: 1.9s; }
#hero-gis .gis-laser              { animation-delay: 2.3s; animation-duration: 1.2s; }

/* IMPORTANT: Only animate opacity — a CSS `transform` keyframe on an SVG
   <g> with a `transform="translate(...)"` attribute will override the
   attribute and collapse the group to origin (0,0). */
@keyframes gisFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* GPS signal waves — subtle pulse */
#hero-gis .gis-signal-waves path {
  animation: gisPulse 2.4s ease-in-out infinite;
}
#hero-gis .gis-signal-waves path:nth-child(2) { animation-delay: 0.5s; }
#hero-gis .gis-signal-waves path:nth-child(3) { animation-delay: 1.0s; }

@keyframes gisPulse {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.7; }
}

/* Survey flag — gentle wave */
#hero-gis .gis-flag path {
  transform-origin: 0 -32px;
  animation: gisFlagWave 2.8s ease-in-out 2s infinite;
}
@keyframes gisFlagWave {
  0%, 100% { transform: skewX(0deg); }
  50%      { transform: skewX(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  #hero-gis .gis-road,
  #hero-gis .gis-nodes circle,
  #hero-gis .gis-flag,
  #hero-gis .gis-bm,
  #hero-gis .gis-measure,
  #hero-gis .gis-theodolite,
  #hero-gis .gis-satellite,
  #hero-gis .gis-compass,
  #hero-gis .gis-scale,
  #hero-gis .gis-laser,
  #hero-gis .gis-signal-waves path,
  #hero-gis .gis-flag path {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* Map annotation labels */
.map-annotation {
  position: absolute;
  z-index: 6;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  pointer-events: none;
}
.map-annotation.top-left { top: 16px; left: 18px; }
.map-annotation.bottom-right {
  bottom: 16px; right: 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* Road path animation */
@keyframes draw-road {
  to { stroke-dashoffset: 0; }
}

.road-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-road 2s ease-out forwards;
}

/* =====================================================================
   STATS SECTION
   ===================================================================== */
.stats {
  padding: var(--section) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 560px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-header .section-meta { font-size: 11px; }
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.section-header .section-mr {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 16px;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 6px;
}
.section-header .section-meta {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-dark);
}

.kpi {
  background: var(--paper);
  padding: 32px 28px;
  position: relative;
  transition: background 0.3s;
}
.kpi:not(:last-child) { border-right: 1px solid var(--hairline); }

@media (max-width: 800px) {
  .kpi:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--hairline); }
}

.kpi:hover { background: var(--accent-soft); }

.kpi-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kpi-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.kpi-value {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-value .unit {
  font-size: 18px;
  color: var(--ink-muted);
  font-style: italic;
  margin-left: 6px;
  font-weight: 400;
}

.kpi-sub {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* =====================================================================
   CATEGORIES TABLE
   ===================================================================== */
.categories {
  padding: 0 var(--gutter) var(--section);
  max-width: 1280px;
  margin: 0 auto;
}

.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.cat-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
}
.cat-table thead th:last-child { text-align: right; }
.cat-table thead th:nth-last-child(2) { text-align: right; }

.cat-table tbody tr {
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s;
}
.cat-table tbody tr:hover { background: var(--paper-dark); }

.cat-table tbody td {
  padding: 20px 16px;
  font-size: 15px;
  color: var(--ink);
  vertical-align: middle;
}
.cat-table tbody td:last-child { text-align: right; font-weight: 500; }
.cat-table tbody td:nth-last-child(2) { text-align: right; font-weight: 500; }

.cat-swatch {
  display: inline-block;
  width: 10px; height: 30px;
  border-radius: 2px;
  margin-right: 14px;
  vertical-align: middle;
}

.cat-name {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: middle;
}
.cat-name .en {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
}
.cat-name .mr {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Progress bar in table */
.cat-progress {
  width: 100%;
  max-width: 120px;
  height: 4px;
  background: var(--paper-dark);
  border-radius: 2px;
  overflow: hidden;
}
.cat-progress-fill {
  height: 100%;
  transition: width 1s ease;
}

/* Hide less-critical columns on mobile */
@media (max-width: 640px) {
  .cat-table .col-progress { display: none; }
  .cat-table .col-avg { display: none; }
  .cat-table tbody td { padding: 14px 6px; font-size: 13px; }
  .cat-table thead th { padding: 10px 6px; font-size: 10px; }
  .cat-name .en { font-size: 14px; line-height: 1.2; }
  .cat-name .mr { font-size: 11px; }
  .cat-swatch { width: 6px; height: 26px; margin-right: 8px; }
  .cat-table tbody td:last-child,
  .cat-table thead th:last-child { font-size: 13px; white-space: nowrap; }
}

/* =====================================================================
   ABOUT SECTION
   ===================================================================== */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section) var(--gutter);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.about h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.about p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250, 247, 240, 0.85);
  margin-bottom: 20px;
}

.about p.mr {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.about-features {
  list-style: none;
  margin-top: 32px;
}
.about-features li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(250, 247, 240, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-features li:last-child { border-bottom: 0; }
.about-features li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--accent);
  margin-top: 2px;
}
.about-features li .feat-title {
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 2px;
}
.about-features li .feat-desc {
  font-size: 14px;
  color: rgba(250, 247, 240, 0.65);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: var(--paper);
  padding: 60px var(--gutter) 30px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-brand .brand-sub {
  font-family: 'Anek Devanagari', sans-serif;
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 420px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}
.footer-bottom .built-by {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom .built-by a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* =====================================================================
   MOBILE RESPONSIVE — HAMBURGER MENU
   ===================================================================== */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 69px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 14px var(--gutter);
    width: 100%;
  }
  .nav-links.open .btn {
    margin: 10px var(--gutter) 4px;
  }
}

/* =====================================================================
   ANIMATIONS — staggered page load reveal
   ===================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }
.reveal-5 { animation-delay: 0.7s; }

/* KPI counter animation driven by JS */
.kpi-value {
  transition: color 0.3s;
}

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .road-path { animation: none; opacity: 1; stroke-dashoffset: 0; }
  * { transition-duration: 0.01ms !important; }
}
