:root {
  --ink: #0a1719;
  --pine: #081b20;
  --pine-2: #0d2b30;
  --pine-3: #164047;
  --snow: #f5f7f3;
  --paper: #eef1ec;
  --ice: #c9e5ea;
  --ice-bright: #e8f7fa;
  --orange: #ff7148;
  --orange-strong: #ff5d31;
  --muted: #657174;
  --line: rgba(9, 33, 38, 0.14);
  --white-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 70px rgba(6, 27, 32, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--snow);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font-family: var(--sans);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font-size: 1rem;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

.section-pad {
  padding-block: clamp(88px, 10vw, 150px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 16px;
  color: var(--snow);
  background: var(--pine);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--pine-3);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.75rem);
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1440px);
  min-height: 80px;
  margin-inline: auto;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: min-height 180ms ease, background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  width: 100%;
  min-height: 64px;
  padding-inline: max(24px, calc((100vw - 1440px) / 2));
  color: #fff;
  background: rgba(6, 25, 29, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 30px rgba(4, 21, 25, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 0.93rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--pine);
  background: var(--ice-bright);
  border-radius: 50%;
  font-size: 0.92rem;
}

.brand-version {
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(760px, 100svh);
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--pine);
}

.hero-image,
.hero-shade,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background-image: url("photos/cairngorms_western_massif.jpg");
  background-position: 53% center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 19, 23, 0.95) 0%, rgba(5, 20, 24, 0.78) 36%, rgba(5, 20, 24, 0.12) 72%),
    linear-gradient(0deg, rgba(4, 18, 22, 0.66) 0%, transparent 38%, rgba(4, 18, 22, 0.22) 100%);
}

.hero-grain {
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  padding-top: 70px;
  padding-bottom: 150px;
}

.hero h1 {
  max-width: 1000px;
  font-size: clamp(3.8rem, 8vw, 8.1rem);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 em {
  color: var(--ice);
  font-weight: 400;
}

.hero-intro {
  max-width: 690px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--pine);
  background: var(--orange);
}

.button-primary:hover {
  background: #ff8a68;
}

.button-ghost {
  color: #fff;
  background: rgba(6, 24, 28, 0.22);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.stat {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 18px clamp(16px, 2vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.photo-credit {
  position: absolute;
  right: 22px;
  bottom: 130px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
}

.intro-grid h2 {
  max-width: 870px;
}

.intro-copy {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.intro-copy p,
.method-intro p,
.fields-copy > p:last-child {
  margin: 0;
  color: #425154;
  font-size: 1.05rem;
  line-height: 1.8;
}

.intro-copy p + p {
  margin-top: 24px;
}

.atlas-section {
  background: #f9faf7;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(46px, 6vw, 80px);
}

.section-heading h2 {
  max-width: 860px;
}

.section-lede {
  max-width: 560px;
  margin: 0 0 6px;
  color: #506064;
  font-size: 1rem;
  line-height: 1.75;
}

.explorer {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.explorer-toolbar {
  display: grid;
  grid-template-columns: minmax(270px, 1.5fr) minmax(190px, 0.75fr) minmax(230px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-control,
.field-control,
.year-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.control-label {
  color: #5d6a6d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.search-input-wrap {
  position: relative;
  display: block;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #667578;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input-wrap input,
.field-control select,
.year-inputs input {
  width: 100%;
  height: 48px;
  color: var(--ink);
  background: #f6f8f5;
  border: 1px solid #d9dfda;
  border-radius: 2px;
}

.search-input-wrap input {
  padding: 0 14px 0 44px;
}

.field-control select {
  padding: 0 42px 0 13px;
}

.year-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  color: #748083;
}

.year-inputs input {
  padding: 0 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reset-button {
  height: 48px;
  padding: 0 17px;
  color: var(--pine);
  background: transparent;
  border: 1px solid #bcc8c5;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.reset-button:hover {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.explorer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.78fr);
  min-height: 720px;
}

.map-wrap {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #dce4df;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#map .leaflet-tile-pane {
  filter: saturate(0.18) sepia(0.08) hue-rotate(126deg) brightness(0.94) contrast(1.02);
}

#map .leaflet-control-zoom {
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(6, 25, 29, 0.16);
}

#map .leaflet-control-zoom a {
  color: var(--pine);
  background: rgba(255, 255, 255, 0.95);
  border-color: #dfe5e1;
}

#map .leaflet-control-attribution {
  color: #415154;
  background: rgba(248, 250, 247, 0.8);
  font-size: 0.63rem;
}

.snow-tooltip.leaflet-tooltip {
  padding: 8px 11px;
  color: #fff;
  background: var(--pine);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(4, 24, 28, 0.22);
  font-size: 0.76rem;
  font-weight: 700;
}

.snow-tooltip.leaflet-tooltip-top::before {
  border-top-color: var(--pine);
}

.map-count,
.map-key {
  position: absolute;
  z-index: 500;
  color: var(--pine);
  background: rgba(248, 250, 247, 0.92);
  border: 1px solid rgba(8, 30, 34, 0.12);
  border-radius: 2px;
  box-shadow: 0 8px 26px rgba(6, 29, 34, 0.12);
  backdrop-filter: blur(10px);
}

.map-count {
  top: 16px;
  right: 16px;
  padding: 9px 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.map-key {
  right: 16px;
  bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  color: #536366;
  font-size: 0.68rem;
  font-weight: 700;
}

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

.key-dot {
  display: inline-block;
  background: var(--orange);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(9, 38, 43, 0.3);
}

.key-dot-small {
  width: 9px;
  height: 9px;
}

.key-dot-large {
  width: 17px;
  height: 17px;
}

.results-panel {
  display: flex;
  min-width: 0;
  max-height: 720px;
  flex-direction: column;
  background: #fbfcfa;
  border-left: 1px solid var(--line);
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.results-kicker {
  margin: 0 0 3px;
  color: #6b7779;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.results-header h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.results-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--pine);
  background: var(--ice);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.location-photo {
  position: relative;
  flex: 0 0 170px;
  margin: 0;
  overflow: hidden;
  background: var(--pine-2);
  border-bottom: 1px solid var(--line);
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  content: "";
  background: linear-gradient(transparent, rgba(4, 20, 24, 0.72));
  pointer-events: none;
}

.location-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 9px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.65rem;
}

.results-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #aab9b6 transparent;
  scrollbar-width: thin;
}

.observation {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.observation:hover {
  background: #f1f5f1;
}

.observation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  align-items: center;
  margin-bottom: 11px;
  color: #536367;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.observation-date {
  color: var(--orange-strong);
}

.observation-text {
  margin: 0;
  color: #17282b;
  font-family: var(--serif);
  font-size: 1.07rem;
  line-height: 1.55;
}

.observation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.observation-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  color: #4b5c5f;
  background: #e9efeb;
  border-radius: 2px;
  font-size: 0.67rem;
  font-weight: 750;
  line-height: 1.35;
}

.score-tag {
  color: #fff;
  background: var(--pine-3);
}

.load-more {
  width: calc(100% - 48px);
  min-height: 44px;
  flex: 0 0 auto;
  margin: 12px 24px 16px;
  color: var(--pine);
  background: var(--ice-bright);
  border: 1px solid #bdd9dd;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.load-more:hover {
  background: var(--ice);
}

.loading-state,
.empty-state,
.error-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  padding: 40px;
  color: #607073;
  text-align: center;
}

.loading-state p,
.empty-state p,
.error-state p {
  max-width: 300px;
  margin: 12px 0 0;
}

.loader {
  width: 24px;
  height: 24px;
  border: 2px solid #c5d5d2;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.analysis-section {
  color: #fff;
  background:
    radial-gradient(circle at 82% 2%, rgba(58, 113, 122, 0.2), transparent 28%),
    var(--pine);
}

.analysis-heading .section-lede {
  color: rgba(255, 255, 255, 0.6);
}

.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 38px;
  border-top: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
}

.analysis-metrics article {
  min-height: 250px;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--white-line);
}

.analysis-metrics article:first-child {
  padding-left: 0;
}

.analysis-metrics article:last-child {
  border-right: 0;
}

.metric-number {
  display: block;
  min-height: 58px;
  color: var(--ice-bright);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-number small {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.analysis-metrics h3 {
  margin-top: 24px;
  color: #fff;
  font-size: 0.9rem;
}

.analysis-metrics p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  line-height: 1.6;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--white-line);
  border-radius: 3px;
}

.chart-wide {
  grid-column: 1 / -1;
}

.chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-index {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chart-card h3,
.quality-card h3,
.caveat-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.chart-unit {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--white-line);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-box {
  position: relative;
  height: 290px;
}

.chart-box-wide {
  height: 330px;
}

.chart-box-tall {
  height: 420px;
}

.chart-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.73rem;
  line-height: 1.55;
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: flex-start;
  min-height: 290px;
  padding-top: 4px;
}

.term-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: fit-content;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.83);
  background: rgba(201, 229, 234, var(--term-alpha, 0.08));
  border: 1px solid rgba(201, 229, 234, 0.18);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

.term-pill strong {
  color: var(--ice-bright);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.quality-card,
.caveat-card {
  padding: clamp(28px, 4vw, 50px);
  border-radius: 3px;
}

.quality-card {
  background: var(--ice-bright);
  color: var(--pine);
}

.quality-card > p:not(.chart-index) {
  max-width: 800px;
  margin: 18px 0 32px;
  color: #4d6267;
}

.quality-bars {
  display: grid;
  gap: 16px;
}

.quality-row-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 6px;
  color: #31494e;
  font-size: 0.74rem;
  font-weight: 800;
}

.quality-track {
  height: 7px;
  overflow: hidden;
  background: rgba(9, 44, 50, 0.11);
  border-radius: 999px;
}

.quality-fill {
  height: 100%;
  background: var(--pine-3);
  border-radius: inherit;
}

.caveat-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--orange);
  color: var(--pine);
}

.caveat-card .chart-index {
  color: var(--pine-3);
}

.caveat-card p:last-child {
  margin: 20px 0 0;
  color: rgba(7, 30, 35, 0.76);
  font-size: 0.87rem;
  line-height: 1.72;
}

.caveat-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(7, 30, 35, 0.46);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
}

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

.method-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: end;
}

.method-intro h2 {
  max-width: 920px;
}

.method-intro > div:last-child {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: clamp(70px, 8vw, 110px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-steps li {
  min-height: 290px;
  padding: 28px clamp(20px, 2.5vw, 34px) 34px;
  border-right: 1px solid var(--line);
}

.method-steps li:first-child {
  padding-left: 0;
}

.method-steps li:last-child {
  border-right: 0;
}

.step-number {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--orange-strong);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.method-steps h3 {
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.method-steps p {
  margin: 14px 0 0;
  color: #526164;
  font-size: 0.85rem;
  line-height: 1.7;
}

.fields-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.63fr) minmax(0, 1.37fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  margin-top: clamp(95px, 11vw, 160px);
}

.fields-copy {
  position: sticky;
  top: 30px;
}

.fields-copy h2 {
  font-size: clamp(2.6rem, 4.4vw, 4.7rem);
}

.fields-copy > p:last-child {
  margin-top: 30px;
}

.fields-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--pine);
}

.fields-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.fields-table th,
.fields-table td {
  padding: 17px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.fields-table th {
  color: #5a686b;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fields-table td {
  color: #3f5054;
  font-size: 0.83rem;
  line-height: 1.6;
}

.fields-table td:first-child {
  width: 38%;
}

.fields-table code {
  color: var(--pine-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 750;
}

.access-section {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--pine);
}

.access-image,
.access-overlay {
  position: absolute;
  inset: 0;
}

.access-image {
  z-index: -2;
  background-image: url("photos/ben_macdui.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.access-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 19, 23, 0.96) 0%, rgba(4, 19, 23, 0.86) 42%, rgba(4, 19, 23, 0.25) 100%),
    linear-gradient(0deg, rgba(4, 19, 23, 0.55), transparent 55%);
}

.access-content {
  padding-block: 100px;
}

.access-content h2 {
  max-width: 780px;
  font-size: clamp(3.5rem, 7vw, 7.5rem);
}

.access-content > p:not(.eyebrow) {
  max-width: 660px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.75;
}

.citation-block {
  display: flex;
  width: min(100%, 660px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
}

.citation-block a {
  color: var(--ice-bright);
  font-variant-numeric: tabular-nums;
  text-decoration-color: rgba(232, 247, 250, 0.45);
  text-underline-offset: 4px;
}

.access-credit {
  position: absolute;
  right: 22px;
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.site-footer {
  padding-block: 54px;
  color: rgba(255, 255, 255, 0.68);
  background: #061519;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px 70px;
  align-items: start;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  margin: 15px 0 0;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 5px;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 420px;
  padding: 14px 18px;
  color: #fff;
  background: #8a2b14;
  border-radius: 3px;
}

@media (max-width: 1120px) {
  .explorer-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .reset-button {
    width: 100%;
  }

  .explorer-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  }

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

  .analysis-metrics article:nth-child(2) {
    border-right: 0;
  }

  .analysis-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--white-line);
  }

  .analysis-metrics article:nth-child(3) {
    padding-left: 0;
  }

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

  .method-steps li:nth-child(2) {
    border-right: 0;
  }

  .method-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .method-steps li:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .shell,
  .site-header {
    width: min(100% - 32px, 1440px);
  }

  .site-header {
    min-height: 70px;
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav a:last-child {
    display: none;
  }

  .hero {
    min-height: 800px;
  }

  .hero-content {
    padding-bottom: 300px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 12vw, 6rem);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 19, 23, 0.94), rgba(5, 20, 24, 0.48)),
      linear-gradient(0deg, rgba(4, 18, 22, 0.75), transparent 50%);
  }

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

  .stat {
    min-height: 98px;
  }

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

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .photo-credit {
    display: none;
  }

  .intro-grid,
  .section-heading,
  .method-intro,
  .fields-section {
    grid-template-columns: 1fr;
  }

  .intro-copy,
  .method-intro > div:last-child {
    max-width: 700px;
    padding-top: 24px;
  }

  .explorer-body {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 530px;
  }

  .results-panel {
    max-height: 680px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .fields-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 64px;
  }

  .section-pad {
    padding-block: 78px;
  }

  .site-header {
    align-items: center;
  }

  .brand-version {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.71rem;
  }

  .site-nav a:nth-child(3),
  .site-nav a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 50px;
    padding-bottom: 255px;
  }

  .hero .eyebrow {
    max-width: 300px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.8rem);
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero-actions,
  .access-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    padding-inline: 16px;
  }

  .stat {
    padding: 13px 13px;
  }

  .stat:first-child,
  .stat:nth-child(3) {
    padding-left: 0;
  }

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

  .stat-label {
    font-size: 0.58rem;
  }

  .intro-grid,
  .section-heading,
  .method-intro,
  .fields-section {
    gap: 34px;
  }

  h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .explorer-toolbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .map-wrap {
    min-height: 430px;
  }

  .map-key {
    display: none;
  }

  .map-count {
    top: 10px;
    right: 10px;
  }

  .results-panel {
    max-height: 640px;
  }

  .results-header,
  .observation {
    padding-right: 18px;
    padding-left: 18px;
  }

  .load-more {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .analysis-metrics,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .analysis-metrics article {
    min-height: 215px;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--white-line);
  }

  .analysis-metrics article:last-child {
    border-bottom: 0;
  }

  .chart-wide {
    grid-column: auto;
  }

  .chart-box-wide,
  .chart-box {
    height: 285px;
  }

  .chart-box-tall {
    height: 410px;
  }

  .term-list {
    min-height: 0;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .method-steps li:nth-child(3) {
    min-height: 0;
    padding: 25px 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 28px;
  }

  .access-section {
    min-height: 800px;
  }

  .citation-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

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

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

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