:root {
  --bg: #f3efe7;
  --bg-deep: #ece4d6;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: #fffaf2;
  --ink: #1c1f1b;
  --muted: #5b625b;
  --line: rgba(56, 69, 53, 0.14);
  --accent: #0f5b52;
  --accent-soft: #e0ece6;
  --signal: #c96b2c;
  --shadow: 0 18px 48px rgba(21, 28, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 91, 82, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(201, 107, 44, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 100%);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar,
.hero,
.ticker,
.section,
.footer {
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #19443f);
  color: #f7f7f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span,
.nav a,
.lead,
.service-card p,
.map-card p,
.bulletin-card p,
.footer p {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.96rem;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 28px;
  margin-top: 18px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.88), rgba(244, 237, 225, 0.82));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.map-card h2,
.timeline-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.lead {
  max-width: 44rem;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #1c4742);
  color: #f8f7f3;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.54);
}

.inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.inline-metrics li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.inline-metrics strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-family: Georgia, "Times New Roman", serif;
}

.inline-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.status-panel,
.ticker,
.service-card,
.map-card,
.timeline-card,
.bulletin-card,
.footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
}

.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #35a063;
  box-shadow: 0 0 0 6px rgba(53, 160, 99, 0.14);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-grid article {
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
  align-items: end;
  height: 118px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--signal), #e7b48b);
  animation: pulseBars 4s ease-in-out infinite;
}

.mini-chart span:nth-child(1) { height: 28%; animation-delay: 0.1s; }
.mini-chart span:nth-child(2) { height: 42%; animation-delay: 0.2s; }
.mini-chart span:nth-child(3) { height: 48%; animation-delay: 0.3s; }
.mini-chart span:nth-child(4) { height: 38%; animation-delay: 0.4s; }
.mini-chart span:nth-child(5) { height: 55%; animation-delay: 0.5s; }
.mini-chart span:nth-child(6) { height: 70%; animation-delay: 0.6s; }
.mini-chart span:nth-child(7) { height: 66%; animation-delay: 0.7s; }
.mini-chart span:nth-child(8) { height: 78%; animation-delay: 0.8s; }
.mini-chart span:nth-child(9) { height: 60%; animation-delay: 0.9s; }
.mini-chart span:nth-child(10) { height: 74%; animation-delay: 1s; }
.mini-chart span:nth-child(11) { height: 84%; animation-delay: 1.1s; }
.mini-chart span:nth-child(12) { height: 68%; animation-delay: 1.2s; }

.ticker {
  overflow: hidden;
  margin-top: 18px;
  padding: 14px 0;
  border-radius: 18px;
  background: rgba(15, 91, 82, 0.94);
  color: #f5f5f1;
}

.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding-left: 24px;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}

.section {
  margin-top: 18px;
  padding: 32px;
  border-radius: 28px;
  background: var(--panel);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 48rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.card-grid,
.bulletin-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.bulletin-card,
.map-card,
.timeline-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
}

.service-card h3,
.bulletin-card h3,
.timeline h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.service-card p,
.bulletin-card p,
.map-card p,
.timeline p {
  line-height: 1.7;
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.region-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(224, 236, 230, 0.62);
}

.region-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.region-grid strong {
  display: block;
  margin-top: 8px;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.bulletin-card time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--signal);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255, 249, 240, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulseBars {
  0%, 100% { opacity: 0.85; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.08); }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .card-grid,
  .bulletin-grid {
    grid-template-columns: 1fr;
  }

  .inline-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .hero,
  .section,
  .footer {
    padding: 22px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px 16px;
  }

  .region-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}
