.journey {
  background: radial-gradient(ellipse at 69% 52%, #18352b 0%, #10261f 54%, #0c2019 100%);
  height: auto;
}

.journey .map-stage {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: clamp(62px, 7vw, 110px) 0;
}

.atlas-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(25px, 3.2vw, 52px);
}

.atlas-header h2 {
  margin-top: 12px;
  font-size: clamp(52px, 5.9vw, 96px);
}

.atlas-controls {
  display: inline-flex;
  border: 1px solid #78877b;
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}

.atlas-controls button {
  border: 0;
  padding: 0 20px;
  min-height: 42px;
  font: 500 13px 'DM Sans', sans-serif;
  border-radius: 24px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.atlas-controls button:hover { background-color: #294537; }
.atlas-controls button[aria-pressed="true"] { background: var(--cream); color: var(--dark); }
.atlas-controls button:focus-visible { outline-offset: 1px; }

.atlas-spread {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(220px, 1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 78px);
}

.atlas-spread:has(.atlas-figure[hidden]) { display: block; }
.atlas-figure { margin: 0; min-width: 0; }
.atlas-chart {
  position: relative;
  border: 1px solid #bcc4a443;
  border-radius: 2px;
  background: radial-gradient(ellipse at 39% 63%, #244335, #152f26 55%, #10261f);
}

.atlas-chart canvas {
  display: block;
  width: 100%;
  height: clamp(266px, min(31vw, 42vh), 470px);
}

.atlas-compass {
  position: absolute;
  top: 12px;
  right: 15px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #d6c397;
  font: 10px/1 monospace;
}

.atlas-compass::after {
  content: '';
  height: 15px;
  width: 9px;
  background: linear-gradient(90deg, #d6c397 50%, #8d805e 50%);
  clip-path: polygon(50% 0, 100% 100%, 50% 77%, 0 100%);
}

.atlas-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-top: 9px;
  color: #c1cbbb;
  font-size: 11px;
}

.atlas-scale { display: flex; gap: 7px; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.atlas-scale::before { content: ''; width: var(--scale-width); height: 3px; border: solid #b4c0ab; border-width: 0 1px 1px; }
.atlas-notes { min-width: 0; }
.atlas-note + .atlas-note:not([hidden]) { margin-top: 25px; }
.atlas-note[hidden] + .atlas-note:not([hidden]) { margin-top: 0; }
.atlas-note h3 { font-size: clamp(40px, 3.7vw, 63px); line-height: 1.03; margin: 15px 0; }
.atlas-note h3 em { display: block; }
.atlas-note > p:not(.atlas-kicker) { max-width: 39ch; color: #c1cbbb; font-size: 14px; }
.atlas-kicker { color: #dcc99d; font: 500 10px/1.6 'DM Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.atlas-kicker span { padding: 0 3px; opacity: .7; }
.origin-region { font-weight: inherit; }
.atlas-destination {
  display: grid;
  width: min(100%, 260px);
  margin-top: 14px;
  gap: 3px;
  color: var(--cream);
  font-size: 12px;
}
.origin-note {
  margin-top: 14px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--gold);
  color: #d3ddca;
  font-size: 13px;
}
.atlas-destination select {
  padding: 8px 4px;
  color-scheme: dark;
  background: #163025;
  color: var(--cream);
  border-color: #879783;
}
.atlas-destination select:focus-visible { outline: 2px solid var(--gold); }
.atlas-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  margin-top: 16px;
  border-bottom: 1px solid #a09069;
  color: var(--cream);
  font-size: 13px;
}

.atlas-inquire span { color: var(--gold); transition: transform .25s; }
.atlas-inquire:hover span { transform: translate(2px, -2px); }

/* Pin only when the map, controls and notes fit within the viewport. */
@media (min-width: 900px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .journey.atlas-ready { height: 165svh; }
  .atlas-ready .map-stage { position: sticky; top: 0; height: 100svh; padding: 0; }
}

@media (max-width: 799px) {
  .atlas-spread { grid-template-columns: 1fr; gap: 22px; }
  .atlas-chart canvas { height: clamp(205px, 43vw, 340px); }
  .atlas-note h3 em { display: inline; }
  .atlas-note h3 { margin: 8px 0 10px; font-size: clamp(37px, 7vw, 52px); }
  .atlas-note > p:not(.atlas-kicker) { max-width: 60ch; }
  .atlas-inquire { margin-top: 6px; }
}

@media (max-width: 480px) {
  .atlas-header { display: grid; gap: 19px; }
  .atlas-controls { justify-self: start; }
  .atlas-controls button { min-height: 40px; padding-inline: 17px; }
  .atlas-header h2 { font-size: clamp(49px, 13.5vw, 64px); }
}
