:root {
  --ink: #102243;
  --muted: #6c7484;
  --line: rgba(16, 34, 67, .12);
  --gold: #b99059;
  --gold-2: #d8bd8a;
  --cream: #f6f1e7;
  --dark: #0a1730;
  --blue: #1f5ce6;
  --green: #1fbf8f;
  --shadow: 0 24px 70px rgba(10, 23, 48, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(185, 144, 89, .16), transparent 32rem),
    linear-gradient(180deg, #fbfaf7 0%, #f4efe5 42%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(250, 248, 243, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--dark), #173764);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .75rem;
  box-shadow: 0 12px 32px rgba(10, 23, 48, .2);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.top-nav a {
  color: var(--muted);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.top-nav a,
.floor-switch a,
.button {
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.top-nav a {
  padding: .62rem .9rem;
  font-size: .92rem;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--ink);
  background: rgba(185, 144, 89, .14);
}

main {
  overflow: hidden;
}

.hero,
.split,
.location-arguments,
.panel,
.chart-section,
.heatmap,
.competitors,
.summary {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 5rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: .42rem .7rem;
  color: #0b4ccc;
  background: rgba(31, 92, 230, .09);
  border: 1px solid rgba(31, 92, 230, .08);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10em;
  margin-bottom: 1.1rem;
  font-size: clamp(1.7rem, 3.9vw, 3.35rem);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: .6rem;
  font-size: 1.45rem;
}

.lead,
.split p,
.callout p,
.profile-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85rem 1.25rem;
  border: 1px solid var(--line);
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--dark), #1d3760);
  border-color: transparent;
  box-shadow: 0 18px 45px rgba(10, 23, 48, .22);
}

.button.ghost {
  background: rgba(255, 255, 255, .66);
}

.button:hover,
.floor-switch a:hover,
.top-nav a:hover {
  transform: translateY(-1px);
}

.map-stage {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  background: #eef1ea;
  border: 1px solid rgba(16, 34, 67, .1);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(31, 92, 230, .22), transparent 8rem);
  mix-blend-mode: multiply;
}

.map-stage img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.map-stage.wide {
  min-height: 28rem;
}

.catchment-map img {
  object-position: 42% 50%;
}

.pulse-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  background: var(--blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31, 92, 230, .35);
  animation: pulse 1.9s ease-out infinite;
}

.pulse-dot.main {
  width: 1.3rem;
  height: 1.3rem;
  background: #102243;
}

.pulse-dot.soft {
  background: var(--gold);
  animation-delay: .45s;
}

.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transform: translate(-50%, -50%);
  max-width: 11.5rem;
  padding: .42rem .55rem .42rem .42rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(16, 34, 67, .12);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(10, 23, 48, .16);
  backdrop-filter: blur(14px);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.map-marker i {
  display: inline-block;
  flex: 0 0 auto;
  width: .8rem;
  height: .8rem;
  background: var(--gold);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(185, 144, 89, .42);
  animation: pulse 1.9s ease-out infinite;
}

.map-marker.main i {
  width: 1rem;
  height: 1rem;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(31, 92, 230, .42);
}

.map-marker span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-label {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 3;
  display: grid;
  gap: .25rem;
  padding: .9rem 1rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(16, 34, 67, .08);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(10, 23, 48, .14);
  backdrop-filter: blur(16px);
}

.map-label span {
  color: var(--muted);
  font-size: .9rem;
}

.floor-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  width: min(1180px, calc(100% - 2rem));
  margin: -1rem auto 2rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 12px 38px rgba(10, 23, 48, .08);
}

.floor-switch a {
  flex: 1 1 11rem;
  padding: .9rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(16, 34, 67, .08);
  font-weight: 850;
}

.floor-switch a.selected {
  color: #fff;
  background: linear-gradient(135deg, #102243, #1e3d66);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
}

.metric,
.facts > div,
.competitor-grid article {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(10, 23, 48, .06);
}

.metric {
  padding: 1.15rem;
}

.metric span,
.facts span,
.competitor-grid span {
  display: block;
  color: #8a92a0;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: .45rem 0 .25rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.metric small,
.facts small,
.competitor-grid small {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2rem;
  align-items: start;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.facts > div {
  min-height: 12rem;
  padding: 1.2rem;
}

.facts strong {
  display: block;
  margin: 1.8rem 0 .45rem;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
}

.location-arguments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.location-arguments article {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 144, 89, .2), transparent 10rem),
    rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 44px rgba(10, 23, 48, .08);
}

.location-arguments span {
  display: block;
  margin-bottom: .7rem;
  color: #0b4ccc;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.location-arguments strong {
  display: block;
  margin-bottom: .55rem;
  font-size: 1.35rem;
}

.location-arguments p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.chart-section,
.drivers,
.competitors,
.summary {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.panel-head,
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  white-space: nowrap;
  padding: .5rem .7rem;
  color: #0c3f2e;
  background: rgba(31, 191, 143, .12);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
}

.profile-grid {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) 18rem;
  gap: 1.4rem;
  align-items: center;
}

.donut {
  display: grid;
  width: 13rem;
  height: 13rem;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, #fff 0 55%, transparent 56%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(16, 34, 67, .08) 0);
  border-radius: 50%;
}

.donut span,
.donut small {
  grid-area: 1 / 1;
}

.donut span {
  align-self: center;
  font-size: 2.2rem;
  font-weight: 950;
}

.donut small {
  align-self: end;
  margin-bottom: 3.4rem;
  color: var(--muted);
  font-weight: 800;
}

.mini-stats {
  display: grid;
  gap: .75rem;
}

.mini-stats div {
  padding: 1rem;
  background: #f8f5ef;
  border: 1px solid var(--line);
  border-radius: .9rem;
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .9rem;
}

.bars {
  display: grid;
  gap: .9rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr) 4.8rem;
  gap: 1rem;
  align-items: center;
  min-height: 3.2rem;
}

.bar-row span,
.bar-row strong {
  font-weight: 850;
}

.bar-row i {
  position: relative;
  height: .8rem;
  overflow: hidden;
  background: rgba(16, 34, 67, .08);
  border-radius: 999px;
}

.bar-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold-2));
  border-radius: inherit;
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}

.bar-row.is-visible i::before {
  width: var(--bar);
}

.heatmap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(19rem, .7fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.callout {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.3rem, 3vw, 2rem);
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 189, 138, .22), transparent 18rem),
    linear-gradient(135deg, #0a1730, #122a4b);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.callout .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.callout h2 {
  font-size: clamp(1rem, 1.6vw, 1.7rem);
  line-height: 1.12;
}

.callout p {
  color: rgba(255, 255, 255, .74);
}

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

.driver-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}

.driver-grid article {
  position: relative;
  min-height: 8rem;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(246, 241, 231, .72));
  border: 1px solid var(--line);
  border-radius: .95rem;
}

.driver-grid article::before {
  content: "";
  position: absolute;
  right: -.65rem;
  top: -.65rem;
  width: 2.6rem;
  height: 2.6rem;
  background: radial-gradient(circle, rgba(185, 144, 89, .36), transparent 70%);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

.driver-grid strong,
.driver-grid span,
.driver-grid small {
  position: relative;
  z-index: 1;
  display: block;
}

.driver-grid strong {
  margin-bottom: .3rem;
  font-size: 1.1rem;
}

.driver-grid span {
  color: var(--muted);
  font-size: .9rem;
}

.driver-grid small {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.competitor-grid article {
  padding: 1.1rem;
}

.competitor-grid strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 3rem;
  line-height: 1;
}

.summary-table {
  display: grid;
  gap: .55rem;
  margin: 1.4rem 0 1.5rem;
}

.summary-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1rem;
  padding: 1rem;
  background: rgba(246, 241, 231, .76);
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.summary-table span,
.summary-table strong,
.summary-table em {
  font-style: normal;
}

.summary-table span {
  font-weight: 900;
}

.summary-table em {
  color: var(--muted);
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 92, 230, .36); }
  70% { box-shadow: 0 0 0 1.2rem rgba(31, 92, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 92, 230, 0); }
}

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

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .heatmap,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .metrics-grid,
  .facts,
  .location-arguments,
  .driver-grid,
  .competitor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .bar-row strong {
    justify-self: start;
  }

  .panel-head,
  .section-title {
    display: block;
  }

  .badge {
    margin-top: .5rem;
  }
}

@media (max-width: 620px) {
  .hero,
  .split,
  .panel,
  .chart-section,
  .heatmap,
  .competitors,
  .summary,
  .metrics-grid,
  .floor-switch {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .metrics-grid,
  .facts,
  .location-arguments,
  .driver-grid,
  .competitor-grid {
    grid-template-columns: 1fr;
  }

  .map-stage,
  .map-stage.wide {
    min-height: 18rem;
    border-radius: 1rem;
  }

  .map-marker {
    max-width: 8.8rem;
    font-size: .68rem;
    padding: .34rem .45rem .34rem .34rem;
  }

  .map-label {
    left: .8rem;
    right: .8rem;
    bottom: .8rem;
  }

  .summary-table > div {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}
