:root {
  --radius: 30px;
}

body {
  background:
    linear-gradient(180deg, #050a14 0%, #07101d 42%, #091423 100%);
}

body::before {
  transform: translate3d(calc(var(--mx) * 0.02), calc(var(--my) * 0.016 + var(--sy) * 1.18), 0) scale(1.16);
  filter: saturate(0.92) contrast(1.08) brightness(0.82);
}

body::after {
  background:
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.02) 0 2px,
      transparent 2px 56px
    ),
    radial-gradient(circle at 76% 18%, rgba(241, 194, 74, 0.1), transparent 18%),
    radial-gradient(circle at 14% 72%, rgba(55, 128, 255, 0.16), transparent 18%),
    radial-gradient(circle at center, transparent 33%, rgba(2, 5, 11, 0.82) 100%);
}

.header.scrolled {
  background: rgba(7, 12, 22, 0.84);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 24px;
}

.hero h1,
.title,
.cta-title {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 900;
}

.hero h1 {
  max-width: 8.8ch;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
}

.eyebrow,
.tag,
.map-badge,
.portal-kicker,
.portal-state,
.site-pill {
  border-radius: 16px;
}

.city {
  min-height: 600px;
  padding: 22px;
  border-radius: 36px;
  overflow: hidden;
}

.city::before {
  transform: scale(1.14) translate3d(calc(var(--mx) * 0.034), calc(var(--my) * 0.03 + var(--sy) * 1.3), 0);
  filter: saturate(0.86) contrast(1.1) brightness(0.84);
}

.city::after {
  background:
    linear-gradient(180deg, rgba(4, 10, 19, 0.1), rgba(4, 10, 19, 0.74) 48%, rgba(2, 6, 12, 0.96)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 74% 16%, rgba(241, 194, 74, 0.15), transparent 18%),
    radial-gradient(circle at 18% 68%, rgba(55, 128, 255, 0.18), transparent 18%);
  background-size: auto, 100% 100%, auto, auto;
}

.city-top {
  justify-content: space-between;
}

.city-bottom {
  margin-top: auto;
  padding-top: 280px;
}

.city-bottom h2 {
  max-width: 8ch;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 0.92;
}

.city-bottom p {
  max-width: 42ch;
}

.summary {
  gap: 12px;
}

.summary-row {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.74), rgba(6, 11, 20, 0.9));
}

.services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service,
.card,
.flow,
.portal-card,
.contact,
.reference-summary,
.map-shell,
.site-panel {
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.74), rgba(5, 10, 18, 0.92));
}

.reference-grid {
  grid-template-columns: minmax(280px, 0.28fr) minmax(0, 0.72fr);
}

.reference-summary {
  border-radius: 28px;
}

.map-shell {
  border-radius: 36px;
  padding: 14px;
}

.reference-map {
  height: 660px;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.map-toolbar {
  padding: 2px 6px 10px;
}

.site-panel {
  border-radius: 28px;
  position: relative;
}

.site-panel::before {
  content: "";
  position: absolute;
  inset: auto 24px auto auto;
  top: 18px;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.visual {
  min-height: 580px;
  border-radius: 36px;
}

.visual img {
  transform: scale(1.14) translate3d(calc(var(--mx) * 0.02), calc(var(--my) * 0.02 + var(--sy) * 0.9), 0);
  filter: saturate(0.84) contrast(1.04) brightness(0.78);
}

.overlay {
  border-radius: 26px;
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card {
  border-radius: 32px;
}

.cta-box {
  border-radius: 40px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-map {
    height: 560px;
  }
}

@media (max-width: 860px) {
  .services,
  .portal-grid {
    grid-template-columns: 1fr;
  }
}
