:root {
  --ink: #142d32;
  --ink-soft: #496166;
  --paper: #f7f5ed;
  --paper-deep: #eee9da;
  --white: #fffdf7;
  --teal: #0d6c65;
  --teal-dark: #074b47;
  --teal-light: #d8ebe4;
  --lime: #b9d889;
  --sand: #d9b982;
  --rust: #a95032;
  --line: #d6d9cd;
  --shadow: 0 22px 60px rgba(20, 45, 50, 0.12);
  --radius: 22px;
  --page: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

code {
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  width: var(--page);
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50% 50% 46% 54% / 48% 44% 56% 52%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-name strong {
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.contour-field {
  background-image: repeating-radial-gradient(
    ellipse at 90% 14%,
    transparent 0,
    transparent 28px,
    rgba(13, 108, 101, 0.06) 29px,
    transparent 31px
  );
}

.hero,
.page-hero {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 86px);
  padding: 70px 0 90px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.page-hero {
  display: grid;
  padding: 100px 0 82px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(20, 45, 50, 0.13);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  color: white;
  background: var(--teal);
}

.button-primary:hover:not(:disabled) {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-full {
  width: 100%;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-facts {
  display: grid;
  max-width: 690px;
  margin: 54px 0 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-graphic {
  align-self: stretch;
}

.terrain-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(145deg, #275e59 0%, #6f9f7a 45%, #c6c788 70%, #d6b67d 100%);
  border: 10px solid rgba(255, 253, 247, 0.9);
  border-radius: 44% 56% 58% 42% / 35% 40% 60% 65%;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.terrain-card::before,
.terrain-card::after {
  position: absolute;
  border: 2px solid rgba(255, 253, 247, 0.32);
  border-radius: 48%;
  content: "";
  inset: 11% -22% 20% 13%;
  transform: rotate(-12deg);
}

.terrain-card::after {
  inset: 22% -8% 10% 3%;
  transform: rotate(8deg);
}

.terrain-ridge {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 230px;
  border: 2px solid rgba(255, 253, 247, 0.28);
  border-radius: 50%;
}

.terrain-ridge-one {
  top: 75px;
  left: -90px;
  transform: rotate(18deg);
}

.terrain-ridge-two {
  right: -130px;
  bottom: 80px;
  transform: rotate(-22deg);
}

.profile-trace {
  position: absolute;
  top: 48%;
  right: 9%;
  left: 7%;
  height: 5px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 0 0 7px rgba(255, 253, 247, 0.12);
  transform: rotate(-28deg);
}

.profile-trace::before,
.profile-trace::after {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--rust);
  border: 4px solid var(--white);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.profile-trace::before {
  left: -2px;
}

.profile-trace::after {
  right: -2px;
}

.map-label {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-label-north {
  top: 20%;
  left: 13%;
}

.map-label-coast {
  right: 13%;
  bottom: 18%;
}

.elevation-chip {
  position: absolute;
  z-index: 2;
  top: 23px;
  right: 23px;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

.elevation-chip strong {
  display: block;
  margin-top: 3px;
  font-size: 1.3rem;
}

.graphic-caption {
  margin: 14px 25px 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 100px 0;
}

.section-grid,
.two-column,
.section-heading,
.founder-panel,
.validation-panel,
.callout,
.demo-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 8vw, 100px);
}

.section-grid {
  border-top: 1px solid var(--line);
}

.prose-large,
.section-heading > p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.card-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.feature-card,
.download-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(20, 45, 50, 0.08);
  border-radius: var(--radius);
}

.feature-card:nth-child(2) {
  transform: translateY(22px);
}

.feature-number {
  display: block;
  margin-bottom: 50px;
  color: var(--rust);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

.feature-card p,
.download-card p {
  color: var(--ink-soft);
}

.founder-panel {
  align-items: center;
  padding-right: clamp(0px, 5vw, 70px);
  padding-left: clamp(0px, 5vw, 70px);
  background: var(--teal-light);
  border-radius: var(--radius);
}

.founder-monogram {
  display: grid;
  width: min(340px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  color: var(--white);
  background:
    repeating-radial-gradient(circle at 70% 30%, transparent 0 22px, rgba(255,255,255,.14) 23px 24px),
    var(--teal);
  border-radius: 48% 52% 38% 62% / 56% 38% 62% 44%;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, 10vw, 7rem);
  box-shadow: var(--shadow);
}

.callout {
  margin-bottom: 80px;
  padding: 60px;
  color: white;
  background: var(--ink);
  border-radius: var(--radius);
  align-items: center;
}

.callout .eyebrow {
  color: var(--lime);
}

.callout h2 {
  margin: 0;
}

.callout .button {
  justify-self: end;
}

.status-card {
  padding: 30px;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  background: #4ba761;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(75, 167, 97, 0.15);
}

.status-label {
  display: inline;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-value {
  margin: 18px 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
}

.status-card a {
  color: var(--teal-dark);
  font-weight: 700;
}

.facts-strip {
  display: grid;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.facts-strip div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.facts-strip div:first-child {
  padding-left: 0;
}

.facts-strip div:last-child {
  border-right: 0;
}

.facts-strip span,
.control-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 0.96rem;
}

.two-column {
  align-items: start;
}

.two-column > div:first-child > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.endpoint-list {
  display: grid;
  gap: 14px;
}

.endpoint-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.endpoint-card code {
  margin-left: 9px;
}

.endpoint-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.method {
  display: inline-block;
  min-width: 47px;
  padding: 4px 7px;
  color: white;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.method-get {
  background: var(--teal);
}

.method-post {
  background: var(--rust);
}

.validation-panel {
  padding: 60px;
  color: white;
  background: var(--teal-dark);
  border-radius: var(--radius);
}

.validation-panel .eyebrow {
  color: var(--lime);
}

.validation-panel p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.metric-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.metric-grid div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.metric-grid dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.metric-grid dd {
  margin: 5px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
}

.section-heading {
  margin-bottom: 34px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
}

.download-grid {
  grid-template-columns: repeat(2, 1fr);
}

.download-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: flex-start;
}

.download-card .button {
  margin-top: auto;
}

.file-badge {
  display: inline-flex;
  margin-bottom: 35px;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.notice-panel {
  margin-bottom: 80px;
  padding: 45px;
  background: var(--paper-deep);
  border-left: 5px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice-panel h2 {
  font-size: 2rem;
}

.notice-panel p {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.site-footer {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 55px 0 40px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 25px 70px;
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.88rem;
}

.footer-meta {
  grid-column: 1 / -1;
}

/* Interactive map */

.demo-main {
  width: var(--page);
  margin: 0 auto;
}

.demo-heading {
  display: grid;
  padding: 70px 0 42px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 70px;
}

.demo-heading h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.demo-heading > p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.map-workspace {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  grid-template-columns: 300px minmax(0, 1fr);
}

.map-sidebar {
  position: relative;
  z-index: 2;
  padding: 26px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.control-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.control-section:first-child {
  padding-top: 0;
}

.control-section:last-of-type {
  border-bottom: 0;
}

.control-label {
  margin-bottom: 12px;
}

.control-section label:not(.range-heading label) {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 700;
}

.control-section select {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.segmented-control {
  display: grid;
  padding: 4px;
  background: var(--paper-deep);
  border-radius: 11px;
  grid-template-columns: repeat(2, 1fr);
}

.segmented-control button {
  padding: 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.segmented-control button.is-active {
  color: white;
  background: var(--teal);
  box-shadow: 0 5px 12px rgba(13, 108, 101, 0.2);
}

.control-help {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.inline-actions {
  display: flex;
  margin-top: 13px;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.range-heading {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.range-heading output {
  color: var(--teal);
}

#exaggeration {
  width: 100%;
  accent-color: var(--teal);
}

.map-status {
  padding: 12px;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.map-status.is-error {
  color: #7c281e;
  background: #f5dcd5;
}

.map-panel {
  position: relative;
  min-height: 690px;
}

#map {
  position: absolute;
  inset: 0;
}

#map.is-drawing-point,
#map.is-drawing-line {
  cursor: crosshair;
}

#map.is-drawing-point .maplibregl-canvas,
#map.is-drawing-line .maplibregl-canvas {
  cursor: crosshair;
}

.map-key {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 30px;
  display: flex;
  padding: 8px 11px;
  gap: 13px;
  background: rgba(255, 253, 247, 0.92);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(20, 45, 50, 0.14);
  font-size: 0.68rem;
}

.map-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.key-line {
  display: inline-block;
  width: 21px;
  height: 3px;
  background: var(--rust);
}

.key-sample {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 9px;
}

.results-section {
  padding: 90px 0;
}

.results-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.results-heading h2 {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  margin-bottom: 30px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.profile-chart {
  margin-bottom: 30px;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.profile-chart h3 {
  margin-bottom: 20px;
}

.profile-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-profile-line {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-area {
  fill: url(#profile-fill);
}

.chart-label {
  fill: var(--ink-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

th:first-child,
td:first-child,
th:last-child,
td:last-child {
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.result-success {
  color: var(--teal-dark);
  font-weight: 700;
}

.result-no-data {
  color: var(--rust);
  font-weight: 700;
}

.source-note {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.demo-notes {
  width: 100%;
  padding: 0 0 90px;
}

.demo-notes article {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.demo-notes h2 {
  font-size: 1.6rem;
}

.demo-notes p {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 75px;
    right: 0;
    display: none;
    min-width: 240px;
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .page-hero,
  .demo-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .terrain-card {
    min-height: 460px;
  }

  .page-hero {
    padding-top: 70px;
  }

  .status-card {
    max-width: 420px;
  }

  .facts-strip,
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts-strip div:nth-child(2) {
    border-right: 0;
  }

  .facts-strip div:nth-child(-n + 2) {
    padding-bottom: 20px;
  }

  .facts-strip div:nth-child(n + 3) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .map-workspace {
    grid-template-columns: 1fr;
  }

  .map-sidebar {
    display: grid;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .control-section {
    padding: 0;
    border: 0;
  }

  .map-status {
    grid-column: 1 / -1;
  }

  .map-panel {
    min-height: 570px;
  }
}

@media (max-width: 700px) {
  :root {
    --page: min(100% - 26px, 1180px);
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-facts,
  .card-grid,
  .download-grid,
  .section-grid,
  .two-column,
  .section-heading,
  .founder-panel,
  .validation-panel,
  .callout,
  .demo-notes {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts div:last-child {
    grid-column: 1 / -1;
  }

  .terrain-card {
    min-height: 370px;
  }

  .section {
    padding: 70px 0;
  }

  .feature-card:nth-child(2) {
    transform: none;
  }

  .founder-panel,
  .validation-panel,
  .callout {
    padding: 34px;
  }

  .founder-monogram {
    max-width: 260px;
  }

  .callout .button {
    justify-self: start;
  }

  .facts-strip {
    grid-template-columns: 1fr;
  }

  .facts-strip div {
    padding: 16px 0 !important;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .facts-strip div:first-child {
    border-top: 0;
  }

  .metric-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-sidebar {
    grid-template-columns: 1fr;
  }

  .map-status {
    grid-column: auto;
  }

  .map-panel {
    min-height: 520px;
  }

  .demo-heading {
    padding-top: 45px;
    gap: 25px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-meta {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
