:root {
  --ink: #edf2ee;
  --ink-muted: #9dacaa;
  --ink-faint: #6f817f;
  --surface: #081216;
  --surface-raised: #0d1a1e;
  --surface-soft: #132328;
  --line: rgba(226, 239, 233, 0.15);
  --line-strong: rgba(226, 239, 233, 0.35);
  --cyan: #63d7d5;
  --cyan-strong: #31bbb9;
  --moss: #8eb37f;
  --sunrise: #f2a365;
  --focus: #8ee8e5;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #172426;
  --ink-muted: #546765;
  --ink-faint: #71817f;
  --surface: #f3f0e8;
  --surface-raised: #faf8f1;
  --surface-soft: #e6ebe3;
  --line: rgba(22, 47, 48, 0.16);
  --line-strong: rgba(22, 47, 48, 0.34);
  --cyan: #167d82;
  --cyan-strong: #0d666b;
  --moss: #58774b;
  --sunrise: #b95d2e;
  --focus: #0a7075;
  --shadow: 0 28px 70px rgba(28, 49, 45, 0.18);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

body:has(.photo-dialog[open]) {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--cyan);
  color: #051012;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  transition: transform 150ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem var(--page-pad);
  color: #f5f8f7;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.brand img {
  width: clamp(6.7rem, 11vw, 9.4rem);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.header-context {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-context span {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.header-context p {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
}

.header-actions > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.theme-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(5, 13, 16, 0.28);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-25deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(940px, 100svh);
  overflow: hidden;
  isolation: isolate;
  color: #f6f7f4;
}

.hero-media,
.hero-shade,
.hero-contour {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
  background: #091316;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.015);
  transition: opacity 600ms ease;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 11, 15, 0.9) 0%, rgba(4, 11, 15, 0.62) 43%, rgba(4, 11, 15, 0.08) 75%),
    linear-gradient(0deg, rgba(4, 11, 15, 0.72) 0%, transparent 42%),
    linear-gradient(180deg, rgba(4, 11, 15, 0.52) 0%, transparent 30%);
}

.hero-contour {
  z-index: -2;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='720' viewBox='0 0 1200 720'%3E%3Cg fill='none' stroke='%23b6e6df' stroke-width='1'%3E%3Cpath d='M-40 178C126 76 216 249 382 151s285 37 430-28 269-22 430 82'/%3E%3Cpath d='M-70 225C116 125 242 298 402 199s286 30 437-31 286 4 421 83'/%3E%3Cpath d='M-41 544c182-102 297 69 463-32s274 20 425-42 274-9 402 63'/%3E%3Cpath d='M-75 595c201-98 313 62 477-37s284 24 433-39 292 2 435 78'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
}

.hero-content {
  align-self: center;
  width: min(47rem, 100%);
  padding: 8.5rem var(--page-pad) 7rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #85e5df;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 10.5vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.78;
  text-wrap: balance;
}

.hero-lede {
  max-width: 35rem;
  margin: 2.4rem 0 0;
  color: rgba(245, 248, 246, 0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: #e8f1ed;
  color: #071316;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: background-color 160ms ease, transform 160ms ease;
}

.button-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero-caption {
  position: absolute;
  right: var(--page-pad);
  bottom: 2.3rem;
  display: flex;
  max-width: 25rem;
  align-items: baseline;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.hero-caption span {
  color: #87e0db;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-caption p {
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 2.3rem;
  left: 50%;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 0.9rem;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(-3px); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

.story-section {
  display: grid;
  max-width: 98rem;
  grid-template-columns: minmax(11rem, 0.65fr) minmax(20rem, 1.35fr) minmax(13rem, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) var(--page-pad);
}

.story-kicker {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-copy h2,
.atlas-header h2,
.closing-content h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.story-copy .story-lede {
  margin: 2rem 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.62;
}

.story-copy > p:last-child {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
}

.collection-facts {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.collection-facts div {
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.collection-facts dt {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 1;
}

.collection-facts dd {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.atlas-section {
  padding: clamp(5.5rem, 9vw, 8rem) var(--page-pad) clamp(6rem, 10vw, 10rem);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--surface-soft) 54%, transparent), transparent 40%),
    var(--surface-raised);
}

.atlas-header {
  display: grid;
  max-width: 98rem;
  grid-template-columns: minmax(18rem, 1.55fr) minmax(16rem, 0.55fr);
  gap: 3rem;
  align-items: end;
  margin: 0 auto clamp(2.8rem, 5vw, 4.8rem);
}

.atlas-header h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
}

.atlas-header > p {
  max-width: 25rem;
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
}

.atlas-layout {
  display: grid;
  max-width: 98rem;
  min-height: min(52rem, 82vh);
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-pane {
  min-width: 0;
  max-height: min(52rem, 82vh);
  overflow: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.gallery-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.region-filters {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.region-filter {
  position: relative;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.region-filter::after {
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--cyan);
  content: "";
  transform-origin: left;
  transition: transform 160ms ease;
}

.region-filter:hover,
.region-filter.is-active {
  color: var(--ink);
}

.region-filter.is-active::after {
  transform: scaleX(1);
}

.result-status {
  flex: none;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.photo-card {
  min-width: 0;
  background: var(--surface);
}

.photo-card:nth-child(6n + 1) {
  grid-column: span 2;
}

.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.photo-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
}

.photo-card:nth-child(6n + 1) .photo-frame {
  aspect-ratio: 16 / 8.3;
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  border: 0 solid var(--cyan);
  content: "";
  pointer-events: none;
  transition: border-width 150ms ease, background-color 150ms ease;
}

.photo-card.is-selected .photo-frame::after {
  border-width: 4px;
  background: rgba(52, 201, 196, 0.05);
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 300ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-button:hover .photo-image,
.photo-button:focus-visible .photo-image {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.025);
}

.photo-index,
.photo-open {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  display: grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  background: rgba(4, 12, 14, 0.68);
  color: #f4f8f6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.photo-index {
  left: 0.9rem;
}

.photo-open {
  right: 0.9rem;
  opacity: 0;
  transform: translateY(5px);
  font-size: 1rem;
  transition: opacity 150ms ease, transform 150ms ease;
}

.photo-button:hover .photo-open,
.photo-button:focus-visible .photo-open,
.photo-card.is-selected .photo-open {
  opacity: 1;
  transform: translateY(0);
}

.photo-meta {
  display: flex;
  min-height: 5.6rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}

.photo-meta > span {
  display: grid;
  gap: 0.24rem;
}

.photo-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
}

.photo-region,
.photo-date {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-date {
  flex: none;
  text-align: right;
}

.map-pane {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #112126;
}

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

.map-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 14, 0.18), transparent 30%, rgba(3, 11, 14, 0.28));
  pointer-events: none;
}

.map-label {
  position: absolute;
  z-index: 3;
  top: 1.15rem;
  left: 1.15rem;
  max-width: 17rem;
  padding: 0.85rem 1rem;
  background: rgba(4, 14, 17, 0.79);
  color: #e9f0ed;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.map-label span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.map-label p {
  margin: 0.35rem 0 0;
  color: rgba(233, 240, 237, 0.68);
  font-size: 0.7rem;
  line-height: 1.4;
}

.map-preview {
  position: absolute;
  z-index: 5;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(5, 15, 18, 0.92);
  color: #f1f5f2;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.map-preview[hidden] {
  display: none;
}

.map-preview img {
  width: 8rem;
  height: 6.1rem;
  object-fit: cover;
}

.map-preview > div {
  display: grid;
  align-content: center;
  justify-items: start;
}

.map-preview p {
  margin: 0;
  color: #86dcd7;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-preview h3 {
  margin: 0.18rem 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.map-preview button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.map-fallback {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  padding: 3rem;
  place-items: center;
  background:
    linear-gradient(rgba(6, 19, 22, 0.76), rgba(6, 19, 22, 0.92)),
    url("assets/pixelmaistir-mountain-coast-hero-background.webp") center / cover;
  color: #eaf2ef;
  text-align: center;
}

.map-fallback[hidden] {
  display: none;
}

.map-fallback p {
  max-width: 28rem;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 0 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
}

.maplibregl-ctrl-bottom-right {
  bottom: 0.25rem;
}

.maplibregl-popup-content {
  border-radius: 0;
  background: #071316;
  color: #f2f6f4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.mobile-view-switch {
  display: none;
}

.closing-section {
  display: grid;
  min-height: 44rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
  background: var(--surface);
}

.closing-image {
  min-height: 35rem;
  overflow: hidden;
}

.closing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
}

.closing-content h2 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 4.3vw, 4.6rem);
}

.closing-content > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 1.7rem 0;
  color: var(--ink-muted);
}

.closing-content .text-link {
  width: fit-content;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem var(--page-pad);
  border-top: 1px solid var(--line);
  background: #060d10;
  color: rgba(239, 245, 242, 0.58);
  font-size: 0.72rem;
}

.site-footer img {
  width: 7.5rem;
  height: auto;
  margin-bottom: 0.7rem;
}

.site-footer p {
  margin: 0;
}

.photo-dialog {
  width: min(96vw, 90rem);
  max-width: none;
  height: min(92vh, 58rem);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: #071114;
  color: #f0f4f1;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.photo-dialog::backdrop {
  background: rgba(2, 7, 9, 0.84);
  backdrop-filter: blur(12px);
}

.dialog-shell {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1.48fr) minmax(20rem, 0.52fr);
}

.dialog-close {
  position: absolute;
  z-index: 10;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(4, 12, 14, 0.62);
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.dialog-media {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #03090b;
}

.dialog-media picture,
.dialog-media img {
  width: 100%;
  height: 100%;
}

.dialog-media img {
  object-fit: contain;
}

.dialog-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(4, 12, 14, 0.62);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.dialog-previous { left: 1rem; }
.dialog-next { right: 1rem; }

.dialog-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  background:
    linear-gradient(160deg, rgba(39, 76, 75, 0.18), transparent 42%),
    #091518;
}

.dialog-position {
  margin: 0 0 1rem;
  color: #7bdad5;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.dialog-caption {
  margin: 1.5rem 0 0;
  color: rgba(239, 245, 242, 0.72);
}

.dialog-copy dl {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
}

.dialog-copy dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.dialog-copy dt,
.dialog-copy dd {
  margin: 0;
  font-size: 0.75rem;
}

.dialog-copy dt {
  color: rgba(239, 245, 242, 0.48);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-note {
  margin: auto 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(239, 245, 242, 0.46);
  font-size: 0.68rem;
  line-height: 1.45;
}

.noscript-message {
  padding: 2rem;
}

@media (max-width: 1100px) {
  .story-section {
    grid-template-columns: minmax(9rem, 0.45fr) minmax(20rem, 1.35fr);
  }

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

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.85fr);
  }

  .region-filters {
    gap: 0.85rem;
  }

  .region-filter {
    font-size: 0.65rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-context {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 8rem;
  }

  .hero-caption {
    right: auto;
    bottom: 2rem;
    left: var(--page-pad);
  }

  .scroll-cue {
    right: var(--page-pad);
    bottom: 1.7rem;
    left: auto;
    transform: none;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .story-kicker,
  .collection-facts {
    grid-column: auto;
  }

  .atlas-header {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .mobile-view-switch {
    display: grid;
    max-width: 98rem;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .mobile-view-switch button {
    min-height: 3.2rem;
    border: 0;
    background: var(--surface);
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-view-switch button + button {
    border-left: 1px solid var(--line);
  }

  .mobile-view-switch button.is-active {
    background: var(--cyan);
    color: #061315;
  }

  .atlas-layout {
    display: block;
    min-height: 0;
  }

  .gallery-pane {
    max-height: none;
  }

  .map-pane {
    display: none;
    height: min(70svh, 43rem);
    min-height: 31rem;
    border: 0;
  }

  .atlas-layout[data-mobile-view="map"] .gallery-pane {
    display: none;
  }

  .atlas-layout[data-mobile-view="map"] .map-pane {
    display: block;
  }

  .closing-section {
    grid-template-columns: 1fr;
  }

  .closing-image {
    min-height: 60svh;
  }

  .photo-dialog {
    width: 100vw;
    height: 100svh;
    border: 0;
  }

  .dialog-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(45vh, 1.15fr) minmax(0, 0.85fr);
    overflow: auto;
  }

  .dialog-copy {
    min-height: 24rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 0.85rem;
  }

  .header-actions > a {
    display: none;
  }

  .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-content {
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.3rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .hero-caption {
    max-width: calc(100% - 7rem);
  }

  .story-section {
    gap: 2rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

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

  .collection-facts div:last-child {
    grid-column: span 2;
  }

  .atlas-section {
    padding-right: 0;
    padding-left: 0;
  }

  .atlas-header {
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }

  .mobile-view-switch {
    margin-right: var(--page-pad);
    margin-left: var(--page-pad);
  }

  .atlas-layout {
    border-right: 0;
    border-left: 0;
  }

  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
  }

  .region-filters {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
  }

  .region-filter {
    flex: none;
  }

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

  .photo-card:nth-child(6n + 1) {
    grid-column: auto;
  }

  .photo-card:nth-child(6n + 1) .photo-frame,
  .photo-frame {
    aspect-ratio: 4 / 3;
  }

  .map-preview {
    grid-template-columns: 6.2rem 1fr;
  }

  .map-preview img {
    width: 6.2rem;
    height: 5.3rem;
  }

  .closing-content {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-media {
    min-height: 52svh;
  }

  .dialog-copy {
    padding: 2.2rem 1.35rem 2.5rem;
  }

  .dialog-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

@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;
  }
}
