@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

/* V10 — high-resolution geographic and orbital globe */
.earth-lab {
  position: relative;
  padding: 120px 4vw 140px;
  border-top: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
  background:
    radial-gradient(circle at 31% 54%, rgba(180, 184, 186, .07), transparent 31%),
    linear-gradient(180deg, rgba(10, 13, 15, .9), rgba(7, 9, 11, .98));
}

.earth-heading { margin-bottom: 34px; }

.earth-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.earth-mode-switch {
  display: grid;
  grid-template-columns: repeat(6, minmax(76px, 1fr));
  border: 1px solid var(--archive-rule);
  background: rgba(5, 8, 10, .58);
}

.earth-mode-button,
.earth-city-toggle {
  min-height: 52px;
  border: 0;
  color: #737f86;
  background: transparent;
  cursor: pointer;
  transition:
    color 160ms cubic-bezier(.23, 1, .32, 1),
    background-color 160ms cubic-bezier(.23, 1, .32, 1),
    border-color 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-mode-button {
  display: grid;
  place-content: center;
  gap: 4px;
  border-right: 1px solid var(--archive-rule);
  font-size: 8px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.earth-mode-button:last-child { border-right: 0; }
.earth-mode-button small { color: #59646a; font-size: 9px; letter-spacing: .06em; text-transform: none; }

.earth-mode-button.is-active {
  color: #edf3f6;
  background: rgba(188, 191, 192, .1);
  box-shadow: inset 0 -1px 0 #d1d3d4;
}

.earth-mode-button.is-active small { color: #b4b7b8; }

.earth-city-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 142px;
  padding: 0 18px;
  border: 1px solid var(--archive-rule);
  font-size: 8px;
  letter-spacing: .15em;
  text-align: left;
  text-transform: uppercase;
}

.earth-city-toggle > span:last-child { display: grid; gap: 3px; }
.earth-city-toggle small { color: #59646a; font-size: 9px; letter-spacing: .04em; text-transform: none; }

.earth-city-toggle-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #6b7377;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 4px rgba(231, 190, 120, 0);
  transition:
    background-color 160ms cubic-bezier(.23, 1, .32, 1),
    border-color 160ms cubic-bezier(.23, 1, .32, 1),
    box-shadow 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-city-toggle.is-active { color: #e8e9e9; border-color: rgba(205, 208, 209, .3); }
.earth-city-toggle.is-active small { color: #9b9fa1; }
.earth-city-toggle.is-active .earth-city-toggle-dot { border-color: #e4e5e5; background: #e4e5e5; box-shadow: 0 0 0 4px rgba(220, 222, 223, .07); }

.earth-solar-controls {
  display: none;
  grid-template-columns: minmax(170px, .7fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: -6px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--archive-rule);
  background:
    linear-gradient(100deg, rgba(202, 207, 210, .055), transparent 38%),
    rgba(8, 10, 11, .82);
}

.earth-solar-controls.is-visible { display: grid; }
.earth-solar-summary,
.earth-solar-summary > span:last-child,
.earth-solar-field,
.earth-solar-play > span:last-child { display: grid; }

.earth-solar-summary {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.earth-solar-summary > span:last-child { gap: 4px; }
.earth-solar-summary small,
.earth-solar-field > span,
.earth-solar-play small {
  color: var(--archive-muted);
  font-size: 7px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.earth-solar-summary strong {
  color: var(--archive-text);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
}

.earth-solar-symbol {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(218, 222, 224, .34);
  border-radius: 50%;
}
.earth-solar-symbol::before,
.earth-solar-symbol::after {
  position: absolute;
  inset: -5px 16px;
  border-top: 4px dotted rgba(218, 222, 224, .3);
  border-bottom: 4px dotted rgba(218, 222, 224, .3);
  content: "";
}
.earth-solar-symbol::after { transform: rotate(90deg); }
.earth-solar-symbol i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #dfe2e3;
  box-shadow: 0 0 14px rgba(213, 218, 220, .3);
}

.earth-solar-field {
  grid-template-columns: minmax(86px, auto) minmax(90px, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 12px;
}
.earth-solar-field > span {
  display: grid;
  gap: 3px;
  color: #aeb4b7;
}
.earth-solar-field > span small {
  color: #747c80;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: none;
}
.earth-solar-field output {
  color: #d7dbdd;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  text-align: right;
  white-space: nowrap;
}
.earth-solar-field input[type="range"] {
  --solar-track-height: 2px;
  --solar-thumb-size: 12px;
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #d1d3d4;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  -webkit-appearance: none;
}
.earth-solar-field input[type="range"]::-webkit-slider-runnable-track {
  height: var(--solar-track-height);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #27323b 0 34%, #d1d3d4 50%, #27323b 66% 100%);
}
.earth-solar-field input[type="range"]::-webkit-slider-thumb {
  width: var(--solar-thumb-size);
  height: var(--solar-thumb-size);
  margin-top: calc((var(--solar-track-height) - var(--solar-thumb-size)) / 2);
  border: 1px solid #e4e5e5;
  border-radius: 50%;
  background: #111517;
  box-shadow: 0 0 0 4px rgba(220, 222, 223, .08);
  box-sizing: border-box;
  -webkit-appearance: none;
}
.earth-solar-field input[type="range"]::-moz-range-track {
  height: var(--solar-track-height);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #27323b 0 34%, #d1d3d4 50%, #27323b 66% 100%);
}
.earth-solar-field input[type="range"]::-moz-range-thumb {
  width: var(--solar-thumb-size);
  height: var(--solar-thumb-size);
  border: 1px solid #e4e5e5;
  border-radius: 50%;
  background: #111517;
  box-shadow: 0 0 0 4px rgba(220, 222, 223, .08);
  box-sizing: border-box;
}
.earth-solar-field input[type="range"]:focus-visible { outline: 1px solid #d1d3d4; outline-offset: 5px; }

.earth-solar-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #5a5a5a;
  color: #f1f1f1;
  background: #050505;
  cursor: pointer;
  transition: color 160ms cubic-bezier(.23, 1, .32, 1), border-color 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms cubic-bezier(.23, 1, .32, 1);
}
.earth-solar-play > span:last-child { gap: 3px; text-align: left; }
.earth-solar-play b { font-size: 8px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.earth-solar-play small { color: #929292; }
.earth-solar-play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f1f1f1;
}
.earth-solar-play[aria-pressed="true"] { color: #050505; border-color: #f2f2f2; background: #f2f2f2; }
.earth-solar-play[aria-pressed="true"] small { color: #525252; }
.earth-solar-play[aria-pressed="true"] .earth-solar-play-icon {
  width: 8px;
  height: 10px;
  border: 0;
  border-right: 2px solid #050505;
  border-left: 2px solid #050505;
}

.earth-sun-indicator {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4e5e5;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 180ms cubic-bezier(.23, 1, .32, 1);
}
.earth-sun-indicator.is-visible { opacity: 1; }
.earth-sun-indicator.is-far-side { opacity: .52; }
.earth-sun-indicator > span:last-child { display: grid; gap: 1px; }
.earth-sun-indicator strong { font-size: 8px; letter-spacing: .16em; }
.earth-sun-indicator small { color: var(--archive-muted); font-size: 7px; letter-spacing: .05em; white-space: nowrap; }
.earth-sun-disc {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(222, 225, 226, .42);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(218, 222, 224, .18);
}
.earth-sun-disc::before {
  position: absolute;
  inset: -6px;
  border: 1px dotted rgba(222, 225, 226, .3);
  border-radius: 50%;
  content: "";
}
.earth-sun-disc i { width: 9px; height: 9px; border-radius: 50%; background: #e4e5e5; box-shadow: 0 0 9px rgba(218, 222, 224, .58); }

.earth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  min-height: 650px;
  border: 1px solid var(--archive-rule);
  background: rgba(8, 11, 13, .72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.earth-stage {
  position: relative;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  border-right: 1px solid var(--archive-rule);
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 188, 190, .08), transparent 38%),
    #05080b;
  isolation: isolate;
}

.earth-stage.is-terrain-mode {
  background:
    radial-gradient(circle at 43% 38%, rgba(126, 135, 166, .16), transparent 37%),
    radial-gradient(circle at 50% 50%, rgba(50, 57, 73, .22), transparent 68%),
    #05060a;
}

#earth-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: grab;
  touch-action: none;
  outline: none;
}

#earth-canvas:active { cursor: grabbing; }
#earth-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--archive-accent); }

.earth-layer-labels {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.earth-country-tooltip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: grid;
  min-width: max-content;
  gap: 2px;
  padding: 8px 10px 8px 24px;
  border: 1px solid rgba(255, 209, 59, .64);
  color: #fff2a8;
  background: rgba(3, 7, 10, .9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34), 0 0 22px rgba(255, 201, 40, .12), inset 2px 0 0 #ffd13b;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-country-tooltip:not([hidden]) { opacity: 1; }
.earth-country-tooltip::before {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd13b;
  box-shadow: 0 0 0 4px rgba(255, 209, 59, .16);
  content: "";
  transform: translateY(-50%);
}
.earth-country-tooltip strong { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.earth-country-tooltip small { color: #9ba6ac; font-size: 8px; letter-spacing: .05em; }

.earth-stage.is-terrain-mode .earth-country-tooltip {
  border-color: rgba(229, 153, 245, .68);
  color: #ffe7ff;
  background: rgba(12, 8, 18, .92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 26px rgba(194, 55, 214, .22), inset 2px 0 0 #d45ce7;
}

.earth-stage.is-terrain-mode .earth-country-tooltip::before {
  background: #ec9cff;
  box-shadow: 0 0 0 4px rgba(222, 103, 242, .18);
}

.earth-stage.is-orbit-dragging #earth-canvas { cursor: grabbing; }

.earth-map-label {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  min-width: max-content;
  gap: 1px;
  padding: 4px 6px 4px 15px;
  border: 1px solid rgba(221, 230, 235, .2);
  color: #ecf2f5;
  background: rgba(4, 8, 11, .76);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-map-label::before {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  content: "";
  transform: translateY(-50%);
}

.earth-map-label.is-visible { opacity: 1; }
.earth-map-label strong { font-size: 7px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.earth-map-label small { color: #8d9aa1; font-size: 8px; letter-spacing: .04em; line-height: 1.2; }
.earth-map-label__coordinates {
  color: #66757d !important;
  font-size: 6px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em !important;
  text-transform: uppercase;
}
.earth-map-label--city { color: #f0f1ef; }
.earth-map-label--capital {
  border-color: rgba(255, 207, 90, .34);
  color: #ffcf5a;
  background: rgba(8, 9, 8, .82);
}
.earth-map-label--capital small { color: #c7b985; }
.earth-map-label--capital::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}
.earth-map-label--historic-city { color: #d8be8b; }
.earth-map-label--rivers { color: #69d2fb; }
.earth-map-label--rivers strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.earth-map-label--mountains { color: #e2e6f3; }
.earth-stage.is-terrain-mode .earth-map-label--mountains {
  min-width: 118px;
  padding-bottom: 8px;
  border-color: rgba(219, 224, 241, .28);
  color: #f2f4fb;
  background: rgba(7, 8, 14, .8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34), 0 0 18px rgba(160, 170, 213, .1);
}
.earth-stage.is-terrain-mode .earth-map-label--mountains::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  left: 5px;
  height: 2px;
  background: linear-gradient(90deg, #f5f7fb var(--mountain-height, 0%), rgba(221, 227, 235, .16) 0);
  content: "";
}
.earth-map-label__elevation {
  color: #f4f6fb !important;
  font-size: 6px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}
.earth-map-label--currents { color: #dceaf2; }

.earth-orbit-label {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  min-width: max-content;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid rgba(220, 228, 232, .28);
  color: #f1f3f4;
  background: rgba(3, 7, 10, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-orbit-label.is-visible { opacity: 1; }
.earth-orbit-label strong { font-size: 8px; letter-spacing: .14em; line-height: 1.1; }
.earth-orbit-label small { color: #929da3; font-size: 8px; letter-spacing: .05em; line-height: 1.1; }
.earth-orbit-label--sun { border-color: rgba(255, 208, 122, .55); color: #ffd07a; }
.earth-orbit-label--earth { border-color: rgba(229, 235, 238, .5); }
.earth-orbit-label--moon { border-color: rgba(174, 183, 188, .45); color: #cbd1d4; }

.earth-loading {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #05080b;
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 180ms cubic-bezier(.23, 1, .32, 1);
}

.earth-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.earth-stage.is-fallback {
  background:
    linear-gradient(rgba(5, 8, 11, .24), rgba(5, 8, 11, .74)),
    url("assets/earth/earth-no-clouds.jpg") center / cover no-repeat,
    #05080b;
}

.earth-stage.is-fallback #earth-canvas,
.earth-stage.is-fallback .earth-stage-controls { display: none; }

.earth-stage.is-fallback .earth-loading {
  background: rgba(5, 8, 11, .7);
  line-height: 1.7;
}

.earth-loading span:last-child { display: grid; gap: 7px; }
.earth-loading small {
  color: #667179;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: none;
}

.earth-loading-orbit {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(190, 194, 196, .22);
  border-top-color: rgba(231, 232, 232, .92);
  border-radius: 50%;
  animation: earth-loading-spin 1.1s linear infinite;
}

@keyframes earth-loading-spin {
  to { transform: rotate(360deg); }
}

.earth-stage-topline {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 24px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(201, 216, 226, .52);
  font-size: 8px;
  letter-spacing: .18em;
  pointer-events: none;
}

.earth-legend {
  position: absolute;
  z-index: 3;
  top: 48px;
  left: 24px;
  display: flex;
  gap: 16px;
  padding: 7px 9px;
  border: 1px solid rgba(177, 196, 207, .14);
  color: #829099;
  background: rgba(4, 8, 11, .64);
  font-size: 7px;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-legend.is-visible { opacity: 1; }
.earth-legend span { display: flex; align-items: center; gap: 5px; }
.earth-legend small { color: #647078; font-size: 7px; text-transform: none; }
.earth-legend i { width: 12px; height: 1px; background: currentColor; }
.earth-legend i.is-warm { color: #e85c4a; }
.earth-legend i.is-cold { color: #4da8ef; }
.earth-legend i.is-daylight { color: #d7dbdd; }
.earth-legend i.is-nightlight { color: #848c90; box-shadow: 0 0 5px currentColor; }
.earth-legend i.is-earth-orbit { color: #f0f1ef; }
.earth-legend i.is-earth-spin { color: #ffd13b; }
.earth-legend i.is-moon-orbit { color: #aeb7bc; }

.earth-elevation-scale {
  position: absolute;
  z-index: 4;
  top: 62px;
  right: 18px;
  width: 132px;
  padding: 11px 12px 10px;
  border: 1px solid rgba(221, 227, 235, .22);
  color: #eef1f5;
  background: rgba(4, 7, 12, .8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms cubic-bezier(.23, 1, .32, 1), transform 180ms cubic-bezier(.23, 1, .32, 1);
}
.earth-elevation-scale.is-visible { opacity: 1; transform: translateY(0); }
.earth-elevation-scale p { display: grid; gap: 2px; margin: 0 0 10px; }
.earth-elevation-scale p strong { font-size: 7px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.earth-elevation-scale p small,
.earth-elevation-scale em small { color: #8d98a1; font-size: 7px; font-style: normal; letter-spacing: .03em; }
.earth-elevation-meter {
  position: relative;
  height: 116px;
  margin-left: 42px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to top, #343a43, #f4f6fb) 1;
}
.earth-elevation-meter span {
  position: absolute;
  right: 0;
  bottom: var(--elevation-level);
  left: -46px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateY(50%);
}
.earth-elevation-meter b { width: 37px; color: #aeb7bf; font-size: 6px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.earth-elevation-meter i { flex: 1; height: 1px; background: rgba(230, 235, 240, .34); }
.earth-elevation-scale em { display: grid; gap: 1px; margin-top: 9px; color: #bcc4cb; font-size: 6px; font-style: normal; line-height: 1.45; }

.earth-stage-controls {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.earth-stage-controls p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: rgba(218, 229, 236, .62);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.earth-stage-controls p span {
  color: rgba(167, 183, 194, .52);
  letter-spacing: .08em;
  text-transform: none;
}

.earth-reset {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 154px;
  padding: 10px 12px;
  border: 1px solid rgba(173, 196, 211, .28);
  color: rgba(228, 235, 239, .78);
  background: rgba(8, 13, 17, .68);
  cursor: pointer;
  pointer-events: auto;
  transition:
    color 160ms cubic-bezier(.23, 1, .32, 1),
    background-color 160ms cubic-bezier(.23, 1, .32, 1),
    border-color 160ms cubic-bezier(.23, 1, .32, 1);
}

.earth-reset span:first-child { display: grid; gap: 3px; text-align: left; }
.earth-reset small { color: #6f7c84; font-size: 8px; }
.earth-reset > span:last-child { color: #9eb8c9; font-size: 17px; }

.earth-solar-play:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

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

.earth-notes {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 62px);
  background:
    linear-gradient(180deg, rgba(21, 27, 31, .82), rgba(12, 16, 19, .9)),
    var(--archive-panel);
}

.earth-index {
  margin: 0 0 48px;
  color: #71808a;
  font-size: 8px;
  letter-spacing: .2em;
}

.earth-notes h3 {
  margin: 0;
  color: var(--archive-text);
  font-family: var(--archive-serif);
  font-size: clamp(34px, 3.5vw, 60px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.035em;
}

.earth-notes h3 b {
  display: block;
  font: inherit;
  letter-spacing: inherit;
}

.earth-notes h3 span {
  display: block;
  margin-top: 18px;
  color: var(--archive-accent-pale);
  font-family: var(--archive-sans);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .06em;
}

.earth-notes > p:not(.earth-index):not(.earth-credit) {
  margin: 36px 0 0;
  color: var(--archive-muted);
  font-family: var(--archive-serif);
  font-size: 15px;
  line-height: 1.78;
}

.earth-notes > p.zh-copy { margin-top: 16px; font-family: var(--archive-sans); font-size: 12px; }

.earth-metadata {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding-top: 42px;
}

.earth-metadata div {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) 1.2fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--archive-rule);
}

.earth-metadata dt,
.earth-metadata dd {
  margin: 0;
  color: var(--archive-muted);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.earth-metadata dt small {
  display: block;
  margin-top: 4px;
  color: #60696e;
  letter-spacing: .04em;
  text-transform: none;
}

.earth-metadata dd { color: #b6c0c5; text-align: right; }

.earth-credit {
  margin: 26px 0 0;
  color: #616b71;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.earth-credit a {
  color: #91a7b5;
  text-decoration: underline;
  text-decoration-color: rgba(145, 167, 181, .36);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .earth-mode-button:hover,
  .earth-city-toggle:hover {
    color: #e4ecef;
    background: rgba(105, 137, 155, .1);
  }

  .earth-reset:hover {
    border-color: rgba(186, 211, 226, .52);
    color: #fff;
    background: rgba(23, 35, 43, .88);
  }

  .earth-solar-play:not([aria-pressed="true"]):hover {
    border-color: #f2f2f2;
    color: #050505;
    background: #f2f2f2;
  }

  .earth-solar-play:not([aria-pressed="true"]):hover small { color: #525252; }
  .earth-solar-play:not([aria-pressed="true"]):hover .earth-solar-play-icon { border-left-color: #050505; }

  .earth-credit a:hover { color: #c5d7e1; }
}

@media (max-width: 1000px) {
  .earth-solar-controls { grid-template-columns: 1fr 1fr; }
  .earth-solar-summary { grid-column: 1 / -1; }
  .earth-solar-play { justify-self: end; }
  .earth-layout { grid-template-columns: 1fr; }
  .earth-stage { min-height: min(72vw, 660px); border-right: 0; border-bottom: 1px solid var(--archive-rule); }
  .earth-notes { min-height: 520px; }
}

@media (max-width: 720px) {
  .site-nav .nav-about { display: none; }
  .earth-lab { padding: 88px 18px 100px; }
  .earth-heading { margin-bottom: 30px; }
  .earth-toolbar { grid-template-columns: 1fr; gap: 9px; }
  .earth-mode-switch { grid-template-columns: repeat(3, 1fr); }
  .earth-mode-button { min-width: 0; border-bottom: 1px solid var(--archive-rule); }
  .earth-mode-button:nth-child(3n) { border-right: 0; }
  .earth-mode-button:nth-child(n+4) { border-bottom: 0; }
  .earth-city-toggle { width: 100%; min-height: 48px; }
  .earth-solar-controls { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .earth-solar-summary { grid-column: auto; }
  .earth-solar-field { grid-template-columns: minmax(82px, auto) minmax(0, 1fr); }
  .earth-solar-field output { grid-column: 2; }
  .earth-solar-play { width: 100%; justify-content: center; justify-self: stretch; }
  .earth-stage { min-height: 520px; }
  .earth-stage-topline { top: 16px; right: 16px; left: 16px; }
  .earth-legend { top: 43px; left: 16px; flex-direction: column; gap: 6px; }
  .earth-elevation-scale { top: 43px; right: 16px; width: 112px; padding: 9px; }
  .earth-elevation-meter { height: 94px; }
  .earth-stage-controls { right: 16px; bottom: 16px; left: 16px; align-items: stretch; }
  .earth-stage-controls p { align-self: flex-end; max-width: 120px; line-height: 1.5; }
  .earth-reset { min-width: 132px; gap: 14px; }
  .earth-notes { min-height: 0; padding: 36px 24px 42px; }
  .earth-index { margin-bottom: 34px; }
  .earth-metadata { margin-top: 36px; padding-top: 0; }
  .earth-map-label.is-secondary { display: none; }
  .earth-map-label--rivers.is-secondary { display: grid; }
  .earth-map-label { padding: 3px 5px 3px 13px; }
  .earth-map-label strong { font-size: 6px; }
  .earth-map-label small { font-size: 7px; }
}

@media (max-width: 420px) {
  .earth-stage { min-height: 460px; }
  .earth-stage-topline span:last-child { display: none; }
  .earth-stage-controls p { display: none; }
  .earth-reset { width: 100%; }
  .earth-notes h3 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .earth-loading-orbit { animation: none; }
  .earth-loading,
  .earth-map-label,
  .earth-country-tooltip,
  .earth-legend,
  .earth-mode-button,
  .earth-city-toggle,
  .earth-city-toggle-dot { transition-duration: 0ms; }
  .earth-sun-indicator,
  .earth-solar-play { transition-duration: 0ms; }
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-300-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --archive-bg: #0d0f10;
  --archive-panel: #131618;
  --archive-panel-raised: #181c1e;
  --archive-text: #e8e9e6;
  --archive-muted: #8d9497;
  --archive-rule: #303538;
  --archive-rule-strong: #4b5154;
  --archive-accent: #a9906a;
  --archive-accent-pale: #c7b794;
  --archive-serif: "Cormorant Garamond", Georgia, "Times New Roman", "Songti SC", serif;
  --archive-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
  font-family: var(--archive-sans);
  color: var(--archive-text);
  background: var(--archive-bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  font-weight: 300;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--archive-bg);
  background-size: 64px 64px;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--archive-rule);
  background: rgba(13,15,16,.92);
}

.site-mark,
.site-nav {
  display: flex;
  align-items: center;
}

.site-mark { gap: 14px; }

.site-mark > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--archive-accent);
  color: var(--archive-accent-pale);
  font-family: var(--archive-serif);
  font-size: 13px;
}

.site-mark-name,
.site-nav {
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav { gap: 28px; }
.site-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--archive-text); }
.site-nav-count { color: var(--archive-accent); }
.nav-zh {
  color: var(--archive-muted);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.3fr);
  gap: 5vw;
  min-height: calc(100vh - 72px);
  padding: 9vh 4vw 7vh;
  border-bottom: 1px solid var(--archive-rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2vw;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--archive-accent);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about h2,
.viewer-info h2 {
  margin: 0;
  font-family: var(--archive-serif);
  font-weight: 300;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(58px, 7.6vw, 128px);
  line-height: .93;
  letter-spacing: -.055em;
}

.title-en { display: block; }
.title-zh {
  display: block;
  margin-top: 26px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: .2em;
  line-height: 1.4;
}

.hero-intro {
  max-width: 510px;
  margin: 42px 0 0;
  color: #a8adaf;
  font-size: 14px;
  line-height: 1.9;
}

.zh-copy {
  display: block;
  margin-top: 10px;
  color: #747b7e;
  font-size: .78em;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 54px 0 0;
  border-top: 1px solid var(--archive-rule);
}

.hero-stats div { padding: 16px 10px 0 0; }
.hero-stats dt {
  margin-bottom: 8px;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .15em;
}
.stat-zh {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .08em;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--archive-serif);
  font-size: 22px;
}

.hero-earth-entry {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(100%, 520px);
  min-height: 92px;
  margin-top: 28px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--archive-rule);
  color: var(--archive-text);
  background:
    linear-gradient(105deg, rgba(177, 151, 108, .07), transparent 42%),
    rgba(16, 19, 20, .72);
  transition:
    border-color 240ms cubic-bezier(.23, 1, .32, 1),
    background-color 240ms cubic-bezier(.23, 1, .32, 1),
    transform 240ms cubic-bezier(.23, 1, .32, 1);
}

.hero-earth-entry::after {
  position: absolute;
  right: -38px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(181, 158, 119, .1);
  border-radius: 50%;
  content: "";
}

.hero-earth-orbit {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(179, 157, 118, .34);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-earth-orbit::before,
.hero-earth-orbit::after {
  position: absolute;
  border: 1px solid rgba(179, 157, 118, .24);
  border-radius: 50%;
  content: "";
}

.hero-earth-orbit::before { width: 58px; height: 22px; }
.hero-earth-orbit::after { width: 22px; height: 58px; }
.hero-earth-orbit i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8f9698 0 12%, #303638 34%, #0d1011 72%);
  box-shadow: 0 0 18px rgba(181, 158, 119, .16);
}
.hero-earth-orbit b {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--archive-accent-pale);
  box-shadow: 0 0 8px rgba(222, 197, 152, .5);
}

.hero-earth-copy { display: grid; min-width: 0; gap: 4px; }
.hero-earth-copy small {
  color: var(--archive-accent);
  font-size: 7px;
  letter-spacing: .19em;
}
.hero-earth-copy strong {
  font-family: var(--archive-serif);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.1;
}
.hero-earth-copy em {
  color: var(--archive-muted);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .08em;
}
.hero-earth-arrow {
  position: relative;
  z-index: 1;
  color: var(--archive-accent-pale);
  font-family: var(--archive-serif);
  font-size: 22px;
  transition: transform 240ms cubic-bezier(.23, 1, .32, 1);
}

.earth-page-main { min-height: calc(100vh - 72px); }
.earth-page .earth-lab { padding-top: 76px; }
.earth-heading h1 {
  margin: 0;
  font-family: var(--archive-serif);
  font-size: clamp(52px, 6.2vw, 104px);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.045em;
}
.earth-heading h1 .heading-zh { margin-top: 22px; }
.earth-back-link { color: var(--archive-accent-pale) !important; }

@media (hover: hover) and (pointer: fine) {
  .hero-earth-entry:hover {
    border-color: rgba(188, 164, 122, .48);
    background-color: rgba(26, 28, 28, .88);
    transform: translateY(-2px);
  }
  .hero-earth-entry:hover .hero-earth-arrow { transform: translate(3px, -3px); }
}

.hero-object {
  align-self: center;
  width: 100%;
  margin: 0;
  color: inherit;
}

.hero-object-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.hero-object-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  touch-action: pan-y;
  cursor: zoom-in;
}

.hero-object-label {
  display: block;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-book-position {
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.hero-book-shell {
  position: relative;
  perspective: 2400px;
}

.hero-object-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48vh;
  max-height: 69vh;
  padding: 22px 0 26px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-object-image::before {
  position: absolute;
  inset: auto 12% 3%;
  height: 12%;
  content: '';
  background: rgba(0, 0, 0, .62);
  filter: blur(28px);
  transform: perspective(500px) rotateX(68deg);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  display: block;
  width: min(100%, calc(118vh - 124px));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 100%);
}
.hero-carousel::after { content: none; }
.hero-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  height: 82%;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #000;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  background: #000;
  filter: saturate(.84) contrast(1.04);
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-carousel-prev {
  z-index: 1;
  opacity: .12;
  transform: translate3d(-100%, -50%, 0) scale(.78);
}
.hero-carousel-active {
  z-index: 3;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.hero-carousel-next {
  z-index: 2;
  opacity: .42;
  transform: translate3d(0, -50%, 0) scale(.78);
}

.hero-card-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}
.hero-card-navigation .hero-book-prev { justify-self: start; }
.hero-card-navigation .hero-book-next { justify-self: end; }

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 42px;
  padding: 5px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel-dots[hidden] { display: none; }
.hero-carousel-dots::-webkit-scrollbar { display: none; }
.hero-carousel-dots[aria-busy="true"] { pointer-events: none; }
.hero-carousel-dot {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: center;
  cursor: pointer;
  transition: flex-basis .38s cubic-bezier(.22,1,.36,1), width .38s cubic-bezier(.22,1,.36,1);
}
.hero-carousel-dot::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  background: #525858;
  transform: translateY(-50%);
  transition: height .3s ease, background .3s ease;
}
.hero-carousel-dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-carousel-dot:hover::before { background: #a6a38f; }
.hero-carousel-dot.is-active {
  flex-basis: 34px;
  width: 34px;
}
.hero-carousel-dot.is-active::before {
  height: 2px;
  background: #ded1ad;
}
.hero-carousel-dot:focus-visible {
  outline: 1px solid rgba(229, 215, 176, .9);
  outline-offset: 2px;
}

.hero-book-turn {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 11px;
  border: 0;
  color: #c8bea2;
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.hero-book-turn > span {
  font-family: var(--archive-serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.hero-book-turn small {
  color: #7e8484;
  font-size: 7px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-book-turn:hover,
.hero-book-turn:focus-visible {
  color: #f0e3bf;
  transform: translateX(2px);
}
.hero-book-prev:hover,
.hero-book-prev:focus-visible { transform: translateX(-2px); }
.hero-book-turn:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .72);
  outline-offset: 1px;
}
.hero-book-turn:disabled {
  opacity: .38;
  cursor: default;
}

.hero-object-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0 0;
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-object-caption span:first-child { color: var(--archive-text); }
.hero-object-caption strong {
  display: block;
  font-weight: 300;
}
.hero-object-caption small {
  display: block;
  margin-top: 5px;
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.collections { padding: 120px 4vw 150px; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(44px, 6vw, 82px);
  letter-spacing: -.04em;
}

.heading-zh {
  display: block;
  margin-top: 14px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.6;
}

.section-note {
  margin: 0 0 8px;
  color: var(--archive-muted);
  font-size: 13px;
  line-height: 1.75;
}

.collection-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
}

.filter-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.filter-button:last-child { border-right: 0; }
.filter-button:hover { color: var(--archive-text); }
.filter-button.is-active {
  color: var(--archive-text);
  background: var(--archive-panel-raised);
}
.filter-button span:last-child {
  color: var(--archive-accent);
  font-variant-numeric: tabular-nums;
}
.filter-button > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.filter-button strong { font-weight: 300; }
.filter-button small {
  color: #6f7679;
  font-size: 8px;
  letter-spacing: .06em;
}

.result-count {
  margin: 26px 0 34px;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.result-count span {
  margin-left: 8px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 22px;
}

.map-card {
  min-width: 0;
  animation: map-in .34s ease both;
}

.map-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.map-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.7vw, 25px);
  overflow: hidden;
  border: 1px solid var(--archive-rule);
  background: #090b0c;
  transition: border-color .25s ease, background .25s ease;
}

.map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.78) brightness(.88);
  transition: transform .45s ease, filter .45s ease;
}

.map-card-button:hover .map-frame {
  border-color: var(--archive-rule-strong);
  background: #0b0d0e;
}
.map-card-button:hover .map-frame img {
  transform: scale(1.016);
  filter: saturate(.95) brightness(.98);
}

.map-caption {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-top: 13px;
  border-top: 1px solid var(--archive-rule);
  margin-top: 9px;
}

.map-number,
.map-type,
.map-size {
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.map-number { color: var(--archive-accent); }
.map-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--archive-serif);
  font-size: 17px;
  line-height: 1.25;
}
.map-title-zh {
  display: block;
  margin-top: 4px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.45;
}
.map-type-zh {
  display: block;
  margin-top: 3px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: none;
}
.map-size { text-align: right; }

.about {
  padding: 110px 4vw 130px;
  border-top: 1px solid var(--archive-rule);
  background: var(--archive-panel);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
}
.about h2 {
  max-width: 800px;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.about-copy {
  max-width: 520px;
  color: #a8adaf;
  font-size: 14px;
  line-height: 1.9;
}
.about-copy p { margin: 0 0 24px; }

.contact-invitation {
  padding: 110px 4vw 120px;
  border-top: 1px solid var(--archive-rule);
}

.contact-invitation-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8vw;
  align-items: end;
}

.contact-invitation h2 {
  margin: 0;
  font-family: var(--archive-serif);
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.contact-invitation-layout p {
  max-width: 430px;
  margin: 0 0 34px;
  color: var(--archive-muted);
  font-family: var(--archive-serif);
  font-size: 18px;
  line-height: 1.55;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--archive-rule-strong);
  border-bottom: 1px solid var(--archive-rule-strong);
  color: var(--archive-text);
  font-size: 12px;
  letter-spacing: .1em;
  transition: color .2s ease, background .2s ease;
}

.contact-link:hover {
  color: var(--archive-accent-pale);
  background: var(--archive-panel-raised);
}
.contact-link small {
  display: inline-block;
  margin-left: 8px;
  color: var(--archive-muted);
  font-size: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px 4vw;
  border-top: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .15em;
}
.site-footer > :last-child {
  justify-self: end;
  text-align: right;
}
.site-footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: center;
}
.site-footer .filing-link { letter-spacing: .08em; }
.site-footer .police-filing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.site-footer .police-filing-link img {
  display: block;
  width: 18px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--archive-text); }

.viewer {
  width: calc(100vw - 36px);
  max-width: none;
  height: calc(100vh - 36px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--archive-rule-strong);
  border-radius: 0;
  color: var(--archive-text);
  background: var(--archive-bg);
}
.viewer::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
.viewer-shell { height: 100%; }
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .14em;
}
.viewer-close,
.zoom-button,
.viewer-navigation button {
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  cursor: pointer;
}
.viewer-close { min-height: 44px; }
.viewer-close:hover,
.zoom-button:hover,
.viewer-navigation button:hover { color: var(--archive-text); }

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  height: calc(100% - 58px);
}
.viewer-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #070809;
}

.viewer-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 28px;
  overflow: auto;
  background: #070809;
}
.viewer-image-wrap {
  position: relative;
  flex: none;
  overflow: visible;
}
.viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .25s ease;
}
.viewer-stage.is-zoomed {
  display: block;
  padding: 0;
}
.viewer-stage.is-zoomed .viewer-image-wrap {
  width: 160% !important;
  height: auto !important;
}
.viewer-stage.is-zoomed .viewer-image {
  cursor: zoom-out;
}

.map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.map-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #e2ded3;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.hotspot-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(215, 198, 156, .7);
  border-radius: 50%;
  color: #d7c69c;
  background: rgba(8, 10, 11, .82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .38);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.hotspot-label {
  position: absolute;
  left: 34px;
  top: 50%;
  width: max-content;
  max-width: min(220px, 34vw);
  padding: 7px 10px 6px;
  border: 1px solid rgba(215, 198, 156, .34);
  background: rgba(8, 10, 11, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-4px, -50%);
  backdrop-filter: blur(5px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.hotspot-label strong,
.hotspot-label small {
  display: block;
  white-space: nowrap;
}
.hotspot-label strong {
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .025em;
}
.hotspot-label small {
  margin-top: 2px;
  color: #8c8f8d;
  font-size: 7px;
  font-weight: 300;
  letter-spacing: .06em;
}
.map-hotspot:hover .hotspot-marker,
.map-hotspot:focus-visible .hotspot-marker {
  color: #0a0c0d;
  border-color: #e4d6ae;
  background: #d7c69c;
  transform: translate(-50%, -50%) scale(1.08);
}
.map-hotspot:hover .hotspot-label,
.map-hotspot:focus-visible .hotspot-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.map-hotspot:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -5px;
  border-radius: 50%;
}

.family-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 86px;
  height: 96px;
  padding: 0;
  border: 0;
  color: #e7e1d3;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.family-hotspot-crest {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .48));
  transform: translate(-50%, -50%);
  transition: filter .18s ease, transform .18s ease;
}
.family-hotspot-crest img {
  display: block;
  width: 100%;
  height: auto;
}
.family-hotspot-label {
  position: absolute;
  left: 74px;
  top: 50%;
  z-index: 4;
  width: max-content;
  max-width: min(230px, 36vw);
  padding: 8px 11px 7px;
  border: 1px solid rgba(223, 205, 157, .46);
  color: #e7e1d3;
  background: rgba(7, 9, 10, .9);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .38);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-5px, -50%);
  backdrop-filter: blur(6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.family-hotspot.is-left .family-hotspot-label {
  right: 74px;
  left: auto;
  text-align: right;
  transform: translate(5px, -50%);
}
.family-hotspot-label strong,
.family-hotspot-label small {
  display: block;
  white-space: nowrap;
}
.family-hotspot-label strong {
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .025em;
}
.family-hotspot-label small {
  margin-top: 3px;
  color: #979b97;
  font-size: 7px;
  letter-spacing: .055em;
}
.family-hotspot:hover .family-hotspot-crest,
.family-hotspot:focus-visible .family-hotspot-crest,
.family-hotspot.is-active .family-hotspot-crest {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .58)) drop-shadow(0 0 8px rgba(232, 216, 171, .5));
  transform: translate(-50%, -50%) scale(1.14);
}
.family-hotspot:hover .family-hotspot-label,
.family-hotspot:focus-visible .family-hotspot-label,
.family-hotspot.is-active .family-hotspot-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.family-hotspot:focus-visible {
  outline: 1px solid rgba(232, 217, 177, .7);
  outline-offset: -3px;
  border-radius: 4px;
}

.map-region-hotspot {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: rgba(220, 202, 153, .3);
  opacity: 0;
  clip-path: var(--region-shape);
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 0 8px rgba(224, 207, 159, .55));
  transition: opacity .22s ease, background-color .22s ease;
}
.map-region-hotspot:hover,
.map-region-hotspot:focus-visible {
  opacity: 1;
  background: rgba(220, 202, 153, .34);
}
.map-region-hotspot:focus-visible { outline: none; }
.map-region-label {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  z-index: 3;
  width: max-content;
  max-width: min(230px, 42vw);
  padding: 9px 12px 8px;
  border: 1px solid rgba(226, 212, 172, .55);
  color: #e7e1d3;
  background: rgba(7, 9, 10, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px));
  backdrop-filter: blur(7px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.map-region-label strong,
.map-region-label small { display: block; white-space: nowrap; }
.map-region-label strong {
  font-family: var(--archive-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .02em;
}
.map-region-label small {
  margin-top: 3px;
  color: #9a9d98;
  font-size: 7px;
  letter-spacing: .06em;
}
.map-region-hotspot:hover + .map-region-label,
.map-region-hotspot:focus-visible + .map-region-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.map-region-hint,
.map-family-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px 7px;
  border: 1px solid rgba(215, 198, 156, .34);
  color: #d7c69c;
  background: rgba(7, 9, 10, .78);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.map-region-hint small,
.map-family-hint small {
  margin-left: 6px;
  color: #898d8b;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: none;
}

.viewer-info {
  display: flex;
  flex-direction: column;
  padding: 36px 28px 24px;
  border-left: 1px solid var(--archive-rule);
  overflow-y: auto;
}
.viewer-series {
  margin: 0 0 22px;
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-series small {
  display: block;
  margin-top: 6px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: none;
}
.viewer-info h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.viewer-title-zh {
  margin: 10px 0 0;
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.viewer-modes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 14px 18px;
  border-top: 1px solid var(--archive-rule);
  background: #0b0d0e;
}
.viewer-modes[hidden] { display: none; }
.viewer-modes > p {
  margin: 0;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.viewer-modes > p small {
  display: block;
  margin: 5px 0 0;
  color: #666d70;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: none;
}
.viewer-mode-list {
  display: grid;
  grid-template-columns: repeat(var(--mode-count, 3), minmax(0, 1fr));
  border: 1px solid var(--archive-rule);
}
.viewer-mode-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  color: #747a7b;
  background: rgba(255, 255, 255, .012);
  text-align: left;
  cursor: pointer;
}
.viewer-mode-list > * + * {
  border-left: 1px solid var(--archive-rule);
}
.viewer-mode-button span,
.viewer-mode-button strong,
.viewer-mode-button small {
  display: block;
  min-width: 0;
}
.viewer-mode-button strong {
  color: inherit;
  font-family: var(--archive-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.15;
}
.viewer-mode-button small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .06em;
}
.viewer-mode-button em {
  color: #525758;
  font-family: var(--archive-sans);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.viewer-mode-button:hover,
.viewer-mode-button:focus-visible {
  color: #cfc4a5;
  background: rgba(215, 198, 156, .05);
}
.viewer-mode-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -1px;
}
.viewer-mode-button.is-active {
  color: #e2d6b6;
  background: rgba(215, 198, 156, .1);
}
.viewer-mode-button.is-active em { color: var(--archive-accent); }
.viewer-mode-menu {
  position: relative;
  min-width: 0;
  color: #747a7b;
  background: rgba(255, 255, 255, .012);
}
.viewer-mode-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px;
  list-style: none;
  text-align: left;
  cursor: pointer;
}
.viewer-mode-menu summary::-webkit-details-marker { display: none; }
.viewer-mode-menu summary span,
.viewer-mode-menu summary strong,
.viewer-mode-menu summary small {
  display: block;
  min-width: 0;
}
.viewer-mode-menu summary strong {
  font-family: var(--archive-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.15;
}
.viewer-mode-menu summary small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .06em;
}
.viewer-mode-menu summary em {
  color: #525758;
  font-family: var(--archive-sans);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viewer-mode-menu summary b {
  display: inline-block;
  margin-left: 4px;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  transition: transform .16s ease;
}
.viewer-mode-menu[open] summary b { transform: rotate(180deg); }
.viewer-mode-menu summary:hover,
.viewer-mode-menu summary:focus-visible {
  color: #cfc4a5;
  background: rgba(215, 198, 156, .05);
}
.viewer-mode-menu summary:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -1px;
}
.viewer-mode-menu.is-active summary {
  color: #e2d6b6;
  background: rgba(215, 198, 156, .1);
}
.viewer-mode-menu.is-active summary em { color: var(--archive-accent); }
.viewer-mode-options {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 8;
  width: min(320px, 80vw);
  max-height: min(62vh, 560px);
  padding: 6px;
  border: 1px solid rgba(215, 198, 156, .36);
  background: rgba(10, 12, 13, .97);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 198, 156, .38) rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}
.viewer-mode-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  color: #858a89;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.viewer-mode-option + .viewer-mode-option {
  border-top: 1px solid rgba(255, 255, 255, .055);
}
.viewer-mode-option em {
  color: #666c6d;
  font-family: var(--archive-sans);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.viewer-mode-option strong,
.viewer-mode-option small { display: block; }
.viewer-mode-option strong {
  font-family: var(--archive-serif);
  font-size: 13px;
  font-weight: 300;
}
.viewer-mode-option small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: .06em;
}
.viewer-mode-option:hover,
.viewer-mode-option:focus-visible,
.viewer-mode-option.is-active {
  color: #e1d5b4;
  background: rgba(215, 198, 156, .08);
}
.viewer-mode-option:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .58);
  outline-offset: -1px;
}
.viewer-mode-option.is-active em { color: var(--archive-accent); }
.viewer-family-card {
  margin-top: 26px;
  padding: 15px;
  border: 1px solid rgba(215, 198, 156, .24);
  background: linear-gradient(145deg, rgba(215, 198, 156, .07), rgba(255, 255, 255, .012));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.viewer-family-card[hidden] { display: none; }
.viewer-family-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.viewer-family-card > header p {
  margin: 0;
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.viewer-family-card > header p small {
  margin-left: 6px;
  color: #717674;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: none;
}
.viewer-family-card > header button {
  padding: 4px 0;
  border: 0;
  color: #8a8e8b;
  background: transparent;
  font: inherit;
  font-size: 8px;
  letter-spacing: .08em;
  cursor: pointer;
}
.viewer-family-card > header button:hover,
.viewer-family-card > header button:focus-visible { color: #e3d5ad; }
.family-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.family-card-toolbar > span {
  color: #777d7a;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.family-card-toolbar > span small {
  margin-left: 5px;
  color: #666c69;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
}
.family-card-identity {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.family-card-crest {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.family-card-crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .52));
}
.family-card-identity h3 {
  margin: 0;
  color: #e0d4b4;
  font-family: var(--archive-serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}
.family-card-identity p {
  margin: 7px 0 0;
  color: #8a908e;
  font-size: 10px;
  letter-spacing: .08em;
}
.family-card-text-en {
  margin: 15px 0 0;
  color: #b7bab6;
  font-family: var(--archive-serif);
  font-size: var(--family-text-en-size, 15px);
  line-height: 1.62;
}
.family-card-text-zh {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #777d7a;
  font-size: var(--family-text-zh-size, 12px);
  line-height: 1.78;
}
.viewer-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.viewer-note h3 {
  margin: 0;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-note h3 small {
  margin-left: 7px;
  color: #666d70;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: none;
}
.note-size-controls,
.family-size-controls {
  display: grid;
  grid-template-columns: 38px 48px 38px;
  flex: none;
  border: 1px solid var(--archive-rule);
}
.note-size-controls button,
.family-size-controls button {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #a9aa9f;
  background: rgba(255, 255, 255, .018);
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
}
.note-size-controls button + button,
.family-size-controls button + button {
  border-left: 1px solid var(--archive-rule);
}
.note-size-controls .note-size-reset,
.family-size-controls .family-size-reset {
  color: #767b7c;
  font-family: var(--archive-sans);
  font-size: 8px;
  letter-spacing: .04em;
}
.note-size-controls button:hover,
.note-size-controls button:focus-visible,
.family-size-controls button:hover,
.family-size-controls button:focus-visible {
  color: #e1d5b4;
  background: rgba(215, 198, 156, .08);
}
.note-size-controls button:focus-visible,
.family-size-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid rgba(215, 198, 156, .7);
  outline-offset: -1px;
}
.note-size-controls button:disabled,
.family-size-controls button:disabled {
  color: #414647;
  cursor: default;
  background: transparent;
}
.viewer-note-en {
  margin: 0;
  color: #b1b5b5;
  font-family: var(--archive-serif);
  font-size: var(--note-en-size, 15.5px);
  line-height: 1.7;
}
.viewer-note-en.is-plain-note,
.viewer-note-zh.is-plain-note {
  white-space: pre-line;
}
.viewer-note .viewer-note-zh {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: #6f7679;
  font-family: var(--archive-sans);
  font-size: var(--note-zh-size, 11px);
  line-height: 1.85;
}
.viewer-note-intro,
.viewer-note-section p {
  margin: 0;
}
.viewer-note-intro {
  color: #c5c5c0;
}
.viewer-note-sections {
  margin-top: 18px;
}
.viewer-note-section + .viewer-note-section {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .045);
}
.viewer-note-section h4 {
  margin: 0 0 5px;
  color: #d4c69f;
  font-family: var(--archive-serif);
  font-size: var(--note-heading-size, 15px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .015em;
}
.viewer-note-subsections {
  margin-top: 11px;
  padding-left: 14px;
  border-left: 1px solid rgba(215, 198, 156, .16);
}
.viewer-note-subsection + .viewer-note-subsection {
  margin-top: 12px;
}
.viewer-note-subsection h5 {
  margin: 0 0 4px;
  color: #aaa58f;
  font-family: var(--archive-serif);
  font-size: calc(var(--note-en-size, 15.5px) * .88);
  font-weight: 400;
  line-height: 1.35;
}
.viewer-note-subsection p {
  margin: 0;
}
.viewer-note-zh .viewer-note-sections {
  margin-top: 13px;
}
.viewer-note-zh .viewer-note-section + .viewer-note-section {
  margin-top: 10px;
  padding-top: 9px;
}
.viewer-note-zh .viewer-note-section h4 {
  margin-bottom: 3px;
  color: #8b887d;
  font-family: var(--archive-sans);
  font-size: var(--note-zh-heading-size, 11px);
  letter-spacing: .06em;
}
.viewer-note-zh .viewer-note-subsections {
  margin-top: 8px;
  padding-left: 11px;
}
.viewer-note-zh .viewer-note-subsection + .viewer-note-subsection {
  margin-top: 8px;
}
.viewer-note-zh .viewer-note-subsection h5 {
  color: #77796f;
  font-family: var(--archive-sans);
  font-size: calc(var(--note-zh-size, 11px) * .94);
  letter-spacing: .045em;
}
.viewer-related {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-related h3 {
  margin: 0 0 14px;
  color: var(--archive-accent);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-related h3 small {
  margin-left: 7px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: none;
}
.related-view-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.related-view-button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}
.related-view-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--archive-rule);
  background: #08090a;
  transition: border-color .2s ease;
}
.related-view-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.82);
}
.related-view-button:hover .related-view-image { border-color: var(--archive-accent); }
.related-view-caption {
  display: block;
  padding-top: 8px;
}
.related-view-caption strong {
  display: block;
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.25;
}
.related-view-caption small {
  display: block;
  margin-top: 3px;
  color: var(--archive-muted);
  font-size: 8px;
}
.viewer-metadata {
  margin: 30px 0 30px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-metadata div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--archive-rule);
  font-size: 11px;
}
.viewer-metadata dt { color: var(--archive-muted); }
.viewer-metadata dt small {
  display: block;
  margin-top: 4px;
  color: #656c6f;
  font-size: 8px;
}
.viewer-metadata dd { margin: 0; text-align: right; }
.viewer-metadata dd small {
  display: block;
  margin-top: 4px;
  color: var(--archive-muted);
  font-size: 8px;
}
.zoom-button {
  min-height: 46px;
  border-top: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
  text-align: left;
}
.zoom-button small,
.viewer-close small,
.viewer-navigation small,
.site-footer small {
  color: var(--archive-muted);
  font-size: 8px;
}
.viewer-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  border-top: 1px solid var(--archive-rule);
}
.viewer-navigation button {
  min-height: 54px;
  padding: 0;
  text-align: left;
}
.viewer-navigation button:last-child { text-align: right; }

/* V74 preview — supplied viewer control artwork */
.ui-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ui-icon-button img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.ui-icon-button:hover img,
.ui-icon-button:focus-visible img {
  filter: drop-shadow(0 0 7px rgba(225, 212, 176, .32));
  transform: translateY(-1px);
}
.viewer-header .ui-icon-button {
  min-width: 54px;
  padding: 0 4px;
}
.viewer-header .viewer-info-toggle { min-width: 58px; }
.viewer-header .ui-icon-button img { height: 44px; }
.viewer-navigation .ui-icon-button {
  align-items: center;
  min-height: 64px;
}
.viewer-navigation .ui-icon-button img { height: 44px; }
.viewer-navigation .viewer-prev { justify-content: flex-start; }
.viewer-navigation .viewer-next { justify-content: flex-end; }
.illustration-header .ui-icon-button {
  min-width: 54px;
  padding: 0 6px;
}
.illustration-header .ui-icon-button img { height: 42px; }

/* V75 preview — the supplied previous/next artwork also drives the homepage carousel. */
.hero-card-navigation .hero-turn-icon-button {
  min-width: 80px;
  min-height: 58px;
  padding: 0;
}
.hero-card-navigation .hero-turn-icon-button img {
  width: auto;
  height: 54px;
}
.hero-book-shell { position: relative; }
.hero-card-navigation {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 0;
  left: 0;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.hero-card-navigation .hero-book-turn { pointer-events: auto; }
.hero-card-navigation .hero-carousel-dots { pointer-events: auto; }

.illustration-viewer {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--archive-rule-strong);
  border-radius: 0;
  color: var(--archive-text);
  background: var(--archive-bg);
}
.illustration-viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.illustration-shell {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.illustration-header,
.illustration-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  border-bottom: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .14em;
}
.illustration-header button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  cursor: pointer;
}
.illustration-header button:hover { color: var(--archive-text); }
.illustration-header small { font-size: 8px; }
.illustration-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: #070809;
}
.illustration-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}
.illustration-caption {
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--archive-rule);
  border-bottom: 0;
}
.illustration-caption h2 {
  margin: 0;
  color: var(--archive-text);
  font-family: var(--archive-serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.02em;
}
.illustration-caption p {
  margin: 4px 0 0;
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .06em;
}
.illustration-caption > span {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@keyframes map-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 3vh 0 0; }
  .hero-object-image { max-height: none; }
  .hero-carousel { width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .about-layout { grid-template-columns: 1fr; gap: 46px; }
  .contact-invitation-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .site-header { padding: 0 18px; }
  .site-mark-name, .site-nav-count { display: none; }
  .site-nav { gap: 20px; }
  .hero { padding: 70px 18px 54px; }
  .hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-intro { margin-top: 30px; }
  .hero-stats { margin-top: 38px; }
  .hero-object-image { min-height: 0; padding: 18px 0 22px; }
  .hero-carousel { border-radius: 0; }
  .hero-carousel-slide { width: 72%; height: 80%; border-radius: 8px; }
  .hero-card-navigation { gap: 4px; margin-top: 14px; }
  .hero-carousel-dots { gap: 3px; padding-inline: 4px; }
  .hero-carousel-dot { flex-basis: 12px; width: 12px; }
  .hero-carousel-dot.is-active { flex-basis: 24px; width: 24px; }
  .hero-book-turn { min-height: 40px; padding: 5px 7px; }
  .hero-book-turn small { display: none; }
  .hero-book-turn > span { font-size: 23px; }
  .hero-object-caption { flex-direction: column; gap: 6px; }
  .collections { padding: 88px 18px 100px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 38px; }
  .collection-filters { grid-template-columns: 1fr 1fr; }
  .filter-button:nth-child(2n) { border-right: 0; }
  .filter-button:nth-child(-n+4) { border-bottom: 1px solid var(--archive-rule); }
  .filter-button:last-child { grid-column: 1 / -1; border-right: 0; }
  .gallery { grid-template-columns: 1fr; gap: 54px; }
  .map-frame { padding: 16px; }
  .about { padding: 84px 18px 90px; }
  .contact-invitation { padding: 84px 18px 90px; }
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    text-align: center;
  }
  .site-footer > :last-child { align-self: center; text-align: center; }
  .site-footer-center { flex-direction: column; gap: 8px; }
  .site-footer span:last-child { display: none; }
  .viewer { width: 100vw; height: 100vh; border: 0; }
  .viewer-layout { grid-template-columns: 1fr; grid-template-rows: minmax(340px, 58vh) auto; overflow-y: auto; }
  .viewer-stage { padding: 14px; }
  .viewer-modes { grid-template-columns: 1fr; gap: 9px; padding: 10px 12px 12px; }
  .viewer-modes > p { display: flex; align-items: baseline; gap: 8px; }
  .viewer-modes > p small { display: inline; margin: 0; }
  .viewer-mode-button { min-height: 52px; padding: 8px; }
  .viewer-mode-button strong { font-size: 12px; }
  .viewer-mode-button small { font-size: 8px; }
  .viewer-mode-button em { font-size: 8px; }
  .viewer-mode-menu summary { min-height: 52px; padding: 8px; }
  .viewer-mode-menu summary strong { font-size: 12px; }
  .viewer-mode-menu summary small { font-size: 8px; }
  .viewer-mode-menu summary em { font-size: 8px; }
  .viewer-mode-options {
    bottom: calc(100% + 6px);
    width: min(310px, calc(100vw - 32px));
    max-height: min(42vh, 360px);
    max-height: min(42dvh, 360px);
  }
  .hotspot-label { left: 30px; max-width: 42vw; padding: 6px 8px 5px; }
  .hotspot-label strong { font-size: 10px; }
  .hotspot-label small { font-size: 6px; }
  .family-hotspot { width: 62px; height: 74px; }
  .family-hotspot-crest { width: 54px; height: auto; }
  .family-hotspot-label { left: 57px; max-width: 48vw; padding: 6px 8px 5px; }
  .family-hotspot.is-left .family-hotspot-label { right: 57px; left: auto; }
  .family-hotspot-label strong { font-size: 10px; }
  .family-hotspot-label small { font-size: 6px; }
  .map-region-label { max-width: 52vw; padding: 7px 9px 6px; }
  .map-region-label strong { font-size: 10px; }
  .map-region-label small { font-size: 6px; }
  .map-region-hint,
  .map-family-hint { left: 10px; bottom: 10px; font-size: 7px; }
  .map-region-hint small,
  .map-family-hint small { display: block; margin: 3px 0 0; }
  .viewer-info { padding: 24px 18px 18px; border-left: 0; border-top: 1px solid var(--archive-rule); }
  .viewer-info h2 { font-size: 30px; }
  .family-card-identity { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .family-card-crest { width: 112px; height: 112px; }
  .family-card-identity h3 { font-size: 21px; }
  .viewer-note-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .viewer-metadata { margin: 28px 0 22px; }
  .viewer-navigation { margin-top: 26px; }
  .illustration-viewer { width: 100vw; height: 100dvh; border: 0; }
  .illustration-stage { padding: 12px; }
  .illustration-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-card { animation: none; }
  .map-frame img, .hero-carousel-slide, .viewer-image { transition: none; }
}

/* V73 preview — obsidian archive desk */
:root {
  --archive-ip: #8f78a8;
  --archive-ip-pale: #b8a3ca;
  --archive-copper-glow: rgba(169, 144, 106, .12);
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(169, 144, 106, .08), transparent 30rem),
    radial-gradient(circle at 8% 52%, rgba(118, 94, 132, .05), transparent 28rem),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    var(--archive-bg);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  background: rgba(10, 12, 13, .86);
  backdrop-filter: blur(18px) saturate(1.15);
}

.preview-badge {
  padding: 5px 8px 4px;
  border: 1px solid rgba(169, 144, 106, .45);
  color: var(--archive-accent-pale);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  grid-template-columns: minmax(260px, .62fr) minmax(520px, 1.55fr);
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  min-height: calc(100svh - 68px);
  padding-top: clamp(48px, 6vh, 76px);
  padding-bottom: clamp(46px, 6vh, 74px);
}

.hero-copy {
  align-self: center;
  justify-content: center;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(54px, 5.9vw, 96px);
  line-height: .94;
}

.hero-intro {
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.8;
}

.hero-stats { margin-top: 38px; }

.hero-object {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-object-image {
  min-height: clamp(430px, 59vh, 690px);
  padding: 18px 0 24px;
}

.hero-carousel-slide {
  box-shadow: 0 22px 60px rgba(0,0,0,.52);
}

.collections { padding-top: 104px; }

.collection-filters {
  position: sticky;
  top: 68px;
  z-index: 25;
  background: rgba(13, 15, 16, .91);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.filter-button {
  position: relative;
  min-height: 72px;
  padding: 0 20px;
}

.filter-button::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: transparent;
  content: "";
}

.filter-button.is-active::after { background: var(--archive-accent); }
.filter-button[data-filter="ip-inspired"].is-active::after { background: var(--archive-ip); }
.filter-button[data-filter="ip-inspired"] span:last-child { color: var(--archive-ip-pale); }

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 76px clamp(24px, 3vw, 46px);
}

.map-card {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

.map-card::before {
  content: none;
}

.map-card[data-series="ip-inspired"]::before { background: rgba(143, 120, 168, .72); }
.map-card[data-series="ip-inspired"] .map-number { color: var(--archive-ip-pale); }
.map-card-button { height: 100%; }
.map-card[data-orientation="portrait"] .map-frame,
.map-frame {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #080a0b;
}
.map-frame img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) brightness(.92);
}

.viewer {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  box-shadow: 0 40px 120px rgba(0,0,0,.58);
}

.viewer-header {
  min-height: 60px;
  background: rgba(15, 17, 18, .96);
}

.viewer-header-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.viewer-info-toggle,
.viewer-close {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  font-size: 10px;
  letter-spacing: .1em;
  cursor: pointer;
}

.viewer-info-toggle {
  border-right: 1px solid var(--archive-rule);
  color: var(--archive-accent-pale);
}

.viewer-info-toggle:hover,
.viewer-info-toggle:focus-visible,
.viewer-close:hover,
.viewer-close:focus-visible { color: var(--archive-text); }

.viewer-info-toggle small,
.viewer-close small { color: #6f7679; }

.viewer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 28vw);
  height: calc(100% - 60px);
}

.viewer-stage { padding: clamp(18px, 2.3vw, 42px); }

.viewer-info {
  padding: 32px clamp(24px, 2.3vw, 38px) 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 16rem),
    #111416;
}

.viewer.is-info-collapsed .viewer-layout { grid-template-columns: minmax(0, 1fr); }
.viewer.is-info-collapsed .viewer-info { display: none; }

.viewer-language-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 21px;
  border: 1px solid var(--archive-rule);
}

.viewer-language-toggle button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  color: #777e80;
  background: transparent;
  font-size: 9px;
  letter-spacing: .08em;
  cursor: pointer;
}

.viewer-language-toggle button + button { border-left: 1px solid var(--archive-rule); }
.viewer-language-toggle button.is-active {
  color: #e0d4b4;
  background: rgba(169, 144, 106, .1);
}
.viewer-language-toggle small { color: #777e80; }

.viewer-note[data-language="en"] .viewer-note-zh,
.viewer-note[data-language="zh"] .viewer-note-en { display: none; }

.viewer-note[data-language="zh"] .viewer-note-zh {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #a4aaab;
}

.viewer-note-en { color: #c4c7c5; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 680px; padding-top: 2vh; }
  .hero-object-image { min-height: clamp(400px, 62vw, 620px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 62px; }
  .preview-badge { display: none; }
  .hero { padding: 54px 18px 46px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-object { padding: 0; }
  .hero-object-image { min-height: clamp(310px, 85vw, 480px); }
  .collections { padding-top: 76px; }
  .collection-filters {
    top: 62px;
    display: flex;
    margin-inline: -18px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    scrollbar-width: none;
  }
  .collection-filters::-webkit-scrollbar { display: none; }
  .filter-button,
  .filter-button:last-child {
    flex: 0 0 148px;
    grid-column: auto;
    min-height: 62px;
    border-right: 1px solid var(--archive-rule);
    border-bottom: 0;
  }
  .collection-filters .filter-button:nth-child(2n),
  .collection-filters .filter-button:nth-child(-n+4) {
    border-right: 1px solid var(--archive-rule);
    border-bottom: 0;
  }
  .gallery { grid-template-columns: 1fr; gap: 48px; }
  .map-card { padding: 0; }
  .map-card[data-orientation="portrait"] .map-frame,
  .map-frame { aspect-ratio: 4 / 3; }
  .viewer { width: 100vw; height: 100dvh; }
  .viewer-header { min-height: 56px; padding-left: 14px; }
  .viewer-header-actions { margin-right: -8px; }
  .viewer-info-toggle,
  .viewer-close { padding-inline: 10px; font-size: 9px; }
  .viewer-header .ui-icon-button { min-width: 48px; padding-inline: 3px; }
  .viewer-header .viewer-info-toggle { min-width: 52px; }
  .viewer-header .ui-icon-button img { height: 42px; }
  .hero-card-navigation .hero-turn-icon-button { min-width: 66px; min-height: 50px; }
  .hero-card-navigation .hero-turn-icon-button img { height: 46px; }
  .hero-card-navigation {
    position: static;
    margin-top: 14px;
    transform: none;
  }
  .viewer-layout,
  .viewer.is-info-collapsed .viewer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(320px, 57dvh) auto;
    height: calc(100% - 56px);
  }
  .viewer.is-info-collapsed .viewer-layout { grid-template-rows: minmax(0, 1fr); }
  .viewer-info { padding: 24px 18px 20px; }
  .viewer-language-toggle { position: sticky; top: -24px; z-index: 2; background: #111416; }
}

/* Mobile adaptation pass — preserve the desktop archive while improving small-screen use. */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    min-width: 0;
    overflow-x: clip;
  }

  .site-header {
    min-height: 62px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .site-mark {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
  }

  .site-mark > span:first-child {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    align-self: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 clamp(7px, 2.4vw, 12px);
    justify-content: center;
    white-space: nowrap;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 26px;
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: 48px;
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .hero-object {
    order: -1;
  }

  .hero-object-heading {
    margin-bottom: 2px;
  }

  .hero-object-image {
    min-height: clamp(230px, 68vw, 320px);
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .hero-carousel-slide {
    width: 94%;
    height: 92%;
  }

  .hero-card-navigation {
    margin-top: 4px;
  }

  .hero-object-caption {
    padding-top: 8px;
  }

  .hero-copy {
    max-width: none;
    padding-top: 42px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 14px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .title-zh {
    margin-top: 16px;
    font-size: 11px;
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.75;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .hero-earth-entry {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 82px;
    margin-top: 22px;
    padding: 13px 14px;
  }

  .hero-earth-orbit { width: 40px; height: 40px; }
  .hero-earth-orbit::before { width: 48px; height: 18px; }
  .hero-earth-orbit::after { width: 18px; height: 48px; }
  .hero-earth-copy strong { font-size: 18px; }
  .earth-page .site-nav a:nth-child(2) { display: none; }
  .earth-page .earth-lab { padding-top: 48px; }
  .earth-heading h1 { font-size: clamp(46px, 14vw, 68px); }

  .collections,
  .about,
  .contact-invitation {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .collection-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-right: 0;
    margin-left: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .filter-button,
  .filter-button:last-child {
    grid-column: span 2;
    min-width: 0;
    min-height: 60px;
    padding: 8px 10px;
    border-right: 1px solid var(--archive-rule);
    border-bottom: 1px solid var(--archive-rule);
  }

  .collection-filters .filter-button:nth-child(3) {
    border-right: 0;
  }

  .collection-filters .filter-button:nth-child(4),
  .collection-filters .filter-button:nth-child(5) {
    grid-column: span 3;
    border-bottom: 0;
  }

  .collection-filters .filter-button:nth-child(5) {
    border-right: 0;
  }

  .filter-button {
    gap: 6px;
  }

  .filter-button strong {
    font-size: 11px;
    white-space: nowrap;
  }

  .gallery {
    gap: 46px;
  }

  .map-card[data-orientation="portrait"] .map-frame {
    aspect-ratio: 3 / 4;
  }

  .map-card:not([data-orientation="portrait"]) .map-frame {
    aspect-ratio: 4 / 3;
  }

  .map-frame img {
    object-fit: contain;
    background: #080a0b;
  }

  .map-caption {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .map-size {
    grid-column: 2;
    text-align: left;
  }

  .contact-link,
  .site-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .site-footer {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .viewer {
    max-width: 100vw;
    max-height: 100dvh;
    overscroll-behavior: contain;
  }

  .viewer-header {
    padding-right: max(6px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .viewer-stage {
    min-height: clamp(280px, 78vw, 420px);
    padding: 12px;
  }

  .viewer-modes {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .viewer-info {
    max-height: none;
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
    overflow: visible;
  }

  .viewer-layout,
  .viewer.is-info-collapsed .viewer-layout {
    display: block;
    height: calc(100dvh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .viewer-visual {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .viewer.is-info-collapsed .viewer-layout {
    overflow: hidden;
  }

  .viewer.is-info-collapsed .viewer-visual {
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
  }

  .viewer.is-info-collapsed .viewer-stage {
    min-height: 0;
  }

  .note-size-controls button,
  .viewer-language-toggle button {
    min-height: 44px;
  }

  .note-size-controls button {
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .viewer-mode-list {
    display: grid;
    grid-template-columns: repeat(var(--mode-count, 3), minmax(0, 1fr));
    overflow: visible;
  }

  .viewer-mode-list > * {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .site-nav .nav-zh {
    display: none;
  }

  .hero h1 {
    font-size: clamp(36px, 12.5vw, 44px);
  }

  .hero-stats div {
    min-width: 0;
    padding-right: 6px;
  }

  .hero-stats dd {
    font-size: 20px;
  }

  .filter-button,
  .filter-button:last-child {
    padding-inline: 7px;
  }

  .viewer-header > span {
    font-size: 8px;
    letter-spacing: .1em;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .site-mark {
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav a,
  .contact-link,
  .site-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .note-size-controls button {
    min-width: 44px;
    min-height: 44px;
  }

  .viewer-language-toggle button {
    min-height: 44px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .viewer {
    width: 100vw;
    height: 100dvh;
    border: 0;
  }

  .viewer-header {
    min-height: 52px;
  }

  .viewer-layout {
    height: calc(100% - 52px);
  }

  .viewer-stage {
    padding: 10px;
  }

  .viewer-info {
    padding-top: 22px;
  }
}
