:root {
  --paper: #f2f5f3;
  --paper-deep: #e4ece9;
  --ink: #172228;
  --muted: #5f6f72;
  --line: #c9d6d3;
  --dark: #15232b;
  --dark-soft: #20353d;
  --sun: #ffbd4a;
  --heat: #e86a4a;
  --shade: #318c75;
  --water: #2c91c7;
  --mist: #d7e7e6;
  --white: #fff;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 4px;
  --shadow: 0 18px 48px rgba(23, 34, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.55;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 84px;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(201, 214, 211, 0.8);
  background: rgba(242, 245, 243, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--heat);
  border-radius: 50%;
  color: var(--heat);
  font-size: 1.2rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
}

.main-nav a,
.language-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.language-link:hover {
  color: var(--ink);
}

.language-link {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 0;
  background: var(--dark);
  color: var(--paper);
}

.hero-section::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(215, 231, 230, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 231, 230, 0.06) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
}

.hero-grid,
.section-grid,
.selector-layout,
.audit-layout,
.sources-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.hero-grid {
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.eyebrow,
.label-line,
.detail-kicker,
.evidence-label,
.footer-credit,
.stat-note,
.card-status,
.audit-field small,
.sheet-header,
.result-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--heat);
}

.eyebrow.light {
  color: var(--sun);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 8ch;
  margin-bottom: 1.45rem;
  color: var(--white);
  font-size: clamp(4.1rem, 9.5vw, 8.7rem);
  line-height: 0.87;
}

h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 0.93;
}

h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.hero-deck {
  max-width: 32rem;
  margin-bottom: 1.4rem;
  color: var(--mist);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.scope-note {
  max-width: 29rem;
  margin-bottom: 2rem;
  color: #9eb4b4;
  font-size: 0.98rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-cta span {
  font-size: 1.2rem;
  line-height: 1;
}

.hero-cta:hover {
  background: var(--white);
}

.hero-figure {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 380px;
  margin: 0;
  padding: 1.1rem 0 2.2rem;
}

.hero-figure figcaption {
  margin-bottom: 1rem;
  color: #9eb4b4;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-illustration {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.route-line,
.route-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(255, 189, 74, 0.22);
  stroke-width: 24;
}

.route-line {
  stroke: var(--sun);
  stroke-dasharray: 3 14;
  stroke-width: 4;
}

.route-tick {
  fill: none;
  stroke: #6b8e8e;
  stroke-width: 2;
}

.route-node {
  stroke: var(--dark);
  stroke-width: 5;
}

.node-home {
  fill: var(--sun);
}

.node-crossing {
  fill: var(--mist);
}

.node-water {
  fill: var(--water);
}

.node-shelter {
  fill: var(--shade);
}

.route-icons path {
  fill: none;
  stroke: var(--dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.route-labels text {
  fill: var(--mist);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.route-note {
  fill: #9eb4b4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(215, 231, 230, 0.27);
}

.stat-card {
  min-height: 154px;
  padding: 1.25rem 1.3rem 1.4rem;
  border-right: 1px solid rgba(215, 231, 230, 0.27);
}

.stat-card:first-child {
  border-left: 1px solid rgba(215, 231, 230, 0.27);
}

.stat-value {
  margin-bottom: 0.2rem;
  color: var(--sun);
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-unit {
  max-width: 15ch;
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.1;
}

.stat-note {
  margin: 0;
  color: #88a1a0;
  font-size: 0.58rem;
}

.story-section {
  padding: clamp(5.5rem, 11vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
}

.question-section,
.scale-section,
.evidence-section {
  background: var(--paper);
}

.relief-section {
  background: var(--paper-deep);
}

.audit-section {
  background: var(--dark);
  color: var(--paper);
}

.sources-section {
  background: #e9efed;
}

.section-grid {
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-intro h2 {
  text-wrap: balance;
}

.section-body {
  max-width: 43rem;
}

.section-body p,
.detail-panel p,
.audit-result p,
.method-card p {
  color: var(--muted);
}

.section-body .lead {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.45vw, 2.05rem);
  line-height: 1.17;
}

.mechanism-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(2rem, 5vw, 4.2rem);
  background: var(--dark);
  color: var(--paper);
}

.mechanism-copy .label-line {
  color: var(--sun);
}

.mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 1.45rem;
}

.mode-button {
  padding: 0.7rem 0.85rem;
  border: 1px solid #527071;
  background: transparent;
  color: #a8c0be;
  font-family: var(--mono);
  font-size: 0.69rem;
  text-transform: uppercase;
}

.mode-button:hover,
.mode-button.is-selected {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.mode-readout {
  min-height: 3.4em;
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.17rem;
  line-height: 1.25;
}

.mechanism-visual {
  min-width: 0;
}

.mini-route {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 0;
}

.mini-route.route-mode {
  display: none;
}

.js-ready .mechanism-panel[data-active-mode="route"] .mini-route[data-mode-visual="point"] {
  display: none;
}

.js-ready .mechanism-panel[data-active-mode="route"] .mini-route.route-mode {
  display: flex;
}

.mini-node {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--sun);
  border-radius: 50%;
  color: var(--sun);
  font-size: 1.1rem;
}

.mini-node.relief {
  border-color: var(--shade);
  color: var(--shade);
}

.mini-line {
  height: 3px;
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--sun) 0 4px, transparent 4px 15px);
}

.mini-stop {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline: -12px;
  border: 1px solid #779493;
  border-radius: 50%;
  background: var(--dark);
  color: #a8c0be;
}

.visual-labels {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #9eb4b4;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
  color: var(--muted);
}

.section-note p {
  max-width: 52rem;
  margin: 0;
  font-size: 0.96rem;
}

.note-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.dark-note {
  color: #a8c0be;
}

.selector-layout {
  align-items: stretch;
  gap: 1.5rem;
}

.selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.select-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 88px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  text-align: left;
}

.select-card:hover,
.select-card.is-selected {
  border-color: var(--ink);
  border-left-color: var(--heat);
  background: var(--white);
}

.layer-card.is-selected[data-layer-id="era5"] {
  border-left-color: var(--water);
}

.layer-card.is-selected[data-layer-id="lst"] {
  border-left-color: var(--heat);
}

.layer-card.is-selected[data-layer-id="trees"] {
  border-left-color: var(--shade);
}

.layer-card.is-selected[data-layer-id="route"] {
  border-left-color: var(--sun);
}

.card-number,
.relief-mark,
.audit-mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.card-number {
  color: var(--muted);
}

.card-title {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.05;
}

.card-scale {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.card-status {
  grid-column: 2 / -1;
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.select-card .card-status {
  min-width: 0;
}

.select-card .shade {
  color: var(--shade);
}

.select-card .water {
  color: var(--water);
}

.select-card .heat {
  color: var(--heat);
}

.select-card .sun {
  color: #a16800;
}

.detail-panel {
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 3.1rem);
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-kicker {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.detail-panel h3 {
  max-width: 13ch;
}

.scale-badge {
  display: inline-block;
  margin-bottom: 2.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.scale-badge.water {
  color: var(--water);
}

.scale-badge.heat {
  color: var(--heat);
}

.scale-badge.shade {
  color: var(--shade);
}

.scale-badge.sun {
  color: #a16800;
}

.detail-columns,
.relief-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.label-line {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.detail-columns p:not(.label-line),
.relief-detail-columns p:not(.label-line) {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.3;
}

.detail-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-source > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  text-transform: uppercase;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
}

.source-link > span:first-child {
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}

.source-link small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.external-mark {
  color: var(--heat);
  font-size: 1rem;
}

.relief-list .select-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.relief-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
}

.relief-mark.water {
  color: var(--water);
}

.relief-mark.shade {
  color: var(--shade);
}

.relief-mark.sun {
  color: #a16800;
}

.relief-list .card-status {
  grid-column: 2;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}

.criteria-list li::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--shade);
  content: "";
}

.audit-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  align-items: start;
  gap: 2rem;
}

.audit-sheet {
  border: 1px solid #466064;
  background: #1a2c34;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #466064;
  color: #a8c0be;
}

.audit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-field {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-right: 1px solid #466064;
  border-bottom: 1px solid #466064;
  background: transparent;
  color: var(--paper);
  text-align: left;
}

.audit-field:nth-child(even) {
  border-right: 0;
}

.audit-field:hover,
.audit-field.is-selected {
  background: #29434a;
}

.audit-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #6e9291;
  color: var(--sun);
}

.audit-field-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.audit-field strong {
  font-size: 1rem;
  line-height: 1.1;
}

.audit-field small {
  margin-top: 0.35rem;
  color: #8ca7a4;
  font-size: 0.55rem;
}

.audit-check {
  color: var(--sun);
  font-size: 1.35rem;
}

.text-button {
  padding: 0.8rem 1rem;
  background: transparent;
  color: #a8c0be;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--sun);
}

.audit-result {
  min-height: 320px;
  padding: 1.55rem;
  border: 1px solid #466064;
  background: #1a2c34;
}

.audit-result p {
  color: var(--paper);
}

.result-meter {
  height: 13px;
  margin-bottom: 1.7rem;
  background: #304d51;
}

.result-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sun);
  transition: width 220ms ease;
}

.result-count {
  margin-bottom: 1.1rem;
  color: var(--sun) !important;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.result-count strong {
  font-family: var(--display);
  font-size: 4rem;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.audit-result [data-audit-result] {
  max-width: 22rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.result-status {
  margin-top: 3rem;
  color: #8ca7a4 !important;
  font-size: 0.58rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.evidence-card {
  min-height: 230px;
  padding: 1.3rem;
  border-top: 6px solid currentColor;
  background: var(--white);
}

.evidence-card.water {
  color: var(--water);
}

.evidence-card.shade {
  color: var(--shade);
}

.evidence-card.heat {
  color: var(--heat);
}

.evidence-card.sun {
  color: #a16800;
}

.evidence-card p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.2;
}

.evidence-label {
  margin-bottom: 1.4rem;
  color: currentColor;
}

.sources-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2.5rem;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.source-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.source-row .source-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.2rem 1rem;
}

.source-row .source-link > span:first-child {
  grid-column: 1;
  width: fit-content;
}

.source-row .source-link small {
  grid-column: 1;
}

.source-row .external-mark {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.method-card {
  padding: 1.6rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.method-card .eyebrow {
  color: var(--heat);
}

.method-card p {
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.22;
}

.inline-link {
  display: inline-block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.site-footer {
  padding: 2rem 0 3.5rem;
  background: var(--dark);
  color: #a8c0be;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
}

.footer-credit {
  margin-bottom: 0.5rem;
  color: var(--sun);
  font-size: 0.62rem !important;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 0.9rem 1.3rem;
}

.footer-links a {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.back-top {
  position: fixed;
  z-index: 8;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.25rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.noscript-note {
  padding: 0.8rem 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.92rem;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--dark);
  color: var(--paper);
}

.not-found-inner {
  width: min(600px, calc(100% - 48px));
}

.not-found h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

@media (max-width: 980px) {
  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.61rem;
  }

  .hero-grid,
  .section-grid,
  .selector-layout,
  .audit-layout,
  .sources-layout {
    gap: 2.5rem;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 620px);
  }

  .header-inner {
    min-height: 60px;
    gap: 0.8rem;
  }

  .main-nav {
    display: none;
  }

  .header-inner .language-link {
    margin-left: auto;
  }

  .hero-grid,
  .section-grid,
  .selector-layout,
  .audit-layout,
  .sources-layout,
  .mechanism-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .hero-figure {
    min-height: 0;
    padding-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
  }

  .stat-card {
    min-height: 134px;
    border-bottom: 1px solid rgba(215, 231, 230, 0.27);
  }

  .stat-card:nth-child(odd) {
    border-left: 1px solid rgba(215, 231, 230, 0.27);
  }

  .stat-card:nth-child(even) {
    border-right: 0;
  }

  .mechanism-panel {
    gap: 2.5rem;
  }

  .section-grid {
    margin-bottom: 2.5rem;
  }

  h2 {
    max-width: 14ch;
  }

  .detail-columns,
  .relief-detail-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .audit-fields {
    grid-template-columns: 1fr;
  }

  .audit-field,
  .audit-field:nth-child(even) {
    border-right: 0;
  }

  .audit-result {
    min-height: 250px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .shell {
    width: min(100% - 24px, 620px);
  }

  body {
    font-size: 1rem;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(3.7rem, 19vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-section {
    padding-top: 3.5rem;
  }

  .route-labels text {
    font-size: 10px;
  }

  .route-note {
    font-size: 8px;
  }

  .stat-card {
    padding-inline: 0.85rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-unit {
    font-size: 0.88rem;
  }

  .select-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .card-scale {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .card-status {
    grid-column: 2;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-card {
    min-height: 0;
  }

  .source-row .source-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .back-top {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
