@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: #f4f9f8;
  background: #071f21;
  font-synthesis: none;
  --accent: #d7f792;
  --base: #071f21;
  --glow: #478471;
  --muted: #adbfbe;
  --line: rgba(217, 236, 236, 0.15);
  --gutter: clamp(24px, 4.4vw, 80px);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--base);
  transition: background 800ms ease;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button,
a {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.boot {
  padding: 40px;
  color: var(--accent);
}
.app-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 2048px;
  margin: 0 auto;
  overflow: clip;
}
.topbar {
  height: 88px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  display: grid;
  grid-template-columns: 7px 7px 7px;
  gap: 3px;
  height: 29px;
  align-items: end;
  transform: skewY(-13deg);
}
.brand-mark i {
  background: var(--accent);
  height: 19px;
  border-radius: 1px;
  transition: background 800ms;
}
.brand-mark i:nth-child(2) {
  height: 29px;
}
.brand-mark i:nth-child(3) {
  height: 23px;
}
.brand-name {
  font-size: 21px;
  letter-spacing: -0.9px;
  font-weight: 800;
}
.brand-sub {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 7px;
  font-size: 11px;
  letter-spacing: 1.35px;
  line-height: 1.6;
  font-weight: 600;
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 12px;
  padding: 12px 0;
  color: #b5c9c9;
  position: relative;
}
.nav-link.active {
  color: #f6fbfa;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  left: 0;
  bottom: 0;
  background: var(--accent);
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 200ms,
    border-color 200ms;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.lang {
  font-size: 10px;
  letter-spacing: 1px;
  color: #b8cbcb;
  padding-left: 9px;
}
.hero {
  position: relative;
  flex: 1;
  min-height: 490px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  touch-action: pan-y;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 79%;
  overflow: hidden;
  z-index: -4;
  background: radial-gradient(ellipse at 60% 40%, var(--glow), var(--base) 80%);
}
.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 650ms ease;
  animation: drift 26s ease-in-out infinite alternate;
}
.scene.loaded {
  opacity: 1;
}
.hero-media.contain {
  width: 63%;
  padding: 28px 4% 45px 4%;
}
.hero-media.contain .scene {
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.4));
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--base) 3%,
      color-mix(in srgb, var(--base) 96%, transparent) 27%,
      color-mix(in srgb, var(--base) 72%, transparent) 44%,
      transparent 75%
    ),
    linear-gradient(0deg, var(--base), transparent 40%, rgba(0, 0, 0, 0.1));
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.26;
  background: radial-gradient(ellipse at 79% 25%, var(--glow), transparent 60%);
  mix-blend-mode: screen;
}
.hero-orbit {
  position: absolute;
  width: min(47vw, 660px);
  aspect-ratio: 1;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  border: 1px solid rgba(240, 255, 240, 0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-orbit::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 20%;
  left: 9%;
  box-shadow: 0 0 25px var(--accent);
}
.hero-orbit::after {
  content: '';
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 255, 240, 0.1);
  animation: orbit 140s linear infinite;
}
.photo-year {
  position: absolute;
  right: 5.5%;
  top: 24px;
  font-size: clamp(110px, 13.4vw, 220px);
  font-weight: 400;
  letter-spacing: -11px;
  line-height: 1;
  color: rgba(248, 255, 254, 0.8);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}
.photo-year small {
  font-size: 15px;
  letter-spacing: 2px;
  display: block;
  text-align: right;
  font-weight: 600;
  margin-top: 6px;
}
.hero-top {
  position: absolute;
  top: 27px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c2d3d0;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 4s ease-in-out infinite;
}
.chapter-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 12px;
  background: rgba(8, 24, 29, 0.18);
  backdrop-filter: blur(10px);
}
.chapter-count strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}
.chapter-count span {
  opacity: 0.65;
}
.hero-content {
  position: relative;
  padding: 80px var(--gutter) 60px;
  width: min(780px, 65%);
}
.hero-content.enter {
  animation: reveal 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 17px;
}
.eyebrow .divider {
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
h1 {
  font-size: clamp(46px, 4.6vw, 78px);
  line-height: 1.025;
  letter-spacing: -2.6px;
  font-weight: 500;
  margin: 0 0 21px;
}
h1 span {
  display: block;
}
h1 span:first-child {
  color: var(--accent);
}
.hero-description {
  color: #c4d2d1;
  font-size: 13px;
  line-height: 1.85;
  max-width: 390px;
  margin: 0 0 25px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 21px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  color: #102524;
  background: var(--accent);
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 800;
  min-height: 47px;
  box-shadow: 0 7px 25px color-mix(in srgb, var(--accent) 10%, transparent);
  transition:
    transform 200ms,
    box-shadow 200ms;
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px color-mix(in srgb, var(--accent) 22%, transparent);
}
.primary svg {
  width: 17px;
  height: 17px;
}
.text-button {
  font-size: 11px;
  color: #c4d4d2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.text-button:hover {
  color: var(--accent);
}
.photo-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 23px;
  max-width: 340px;
  text-align: right;
  font-size: 9px;
  color: #c6d6d6;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.photo-caption svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.photo-caption .caption-sub {
  opacity: 0.65;
  font-size: 8px;
}
.scene-navigation {
  position: absolute;
  right: var(--gutter);
  bottom: 77px;
  display: flex;
  gap: 8px;
}
.scene-navigation .icon-btn {
  background: rgba(5, 25, 26, 0.3);
  backdrop-filter: blur(12px);
  width: 45px;
  height: 45px;
  border-color: rgba(255, 255, 255, 0.28);
}
.media-error {
  position: absolute;
  right: 9%;
  top: 48%;
  font-size: 12px;
  color: #d7e6e5;
  background: rgba(0, 0, 0, 0.35);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 250px;
  line-height: 1.6;
}
.media-error button {
  display: block;
  color: var(--accent);
  text-decoration: underline;
  padding: 7px 0 0;
}
.empty-main {
  min-height: 380px;
  width: 100%;
  padding: 70px var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, var(--glow), transparent 90%);
}
.empty-main h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
.empty-main p {
  color: var(--muted);
  max-width: 460px;
  margin: 18px auto;
  font-size: 14px;
  line-height: 1.8;
}
.timeline-dock {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--base) 87%, #050b14);
  padding: 20px var(--gutter) 8px;
}
.dock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.mode-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
  gap: 3px;
}
.mode-switch button {
  padding: 8px 13px;
  font-size: 10px;
  border-radius: 3px;
  color: #aebfbd;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mode-switch button svg {
  width: 13px;
  height: 13px;
}
.mode-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: #15302c;
  font-weight: 800;
}
.filter-tools {
  display: flex;
  gap: 15px;
  align-items: center;
}
.category-filters {
  display: flex;
  gap: 6px;
}
.filter-chip {
  white-space: nowrap;
  padding: 9px 12px;
  font-size: 10px;
  color: #aebfbd;
  min-height: 33px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.filter-chip[aria-pressed='true'] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #edfaf5;
}
.filter-chip:hover {
  color: var(--accent);
}
.era-select {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 8px 8px 8px 16px;
  color: #d4e1de;
  font-size: 10px;
  max-width: 155px;
  cursor: pointer;
}
.era-select option {
  background: #17282b;
  color: white;
}
.track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #8ca9a6;
  font-size: 9px;
  margin: 13px 0 2px;
  min-height: 22px;
}
.track-instructions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.track-instructions svg {
  width: 12px;
  height: 12px;
}
.scale-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scale-controls button {
  border: 1px solid var(--line);
  width: 25px;
  height: 25px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.scale-controls svg {
  width: 12px;
  height: 12px;
}
.scale-controls output {
  min-width: 27px;
  text-align: center;
}
.track-viewport {
  height: 97px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3a5656 transparent;
  position: relative;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.track-viewport.dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto !important;
}
.track-viewport::-webkit-scrollbar {
  height: 3px;
}
.track-viewport::-webkit-scrollbar-thumb {
  background: #3a5656;
  border-radius: 5px;
}
.timeline-track {
  position: relative;
  height: 90px;
  min-width: 100%;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 35px;
  height: 1px;
  background: #45605d;
  opacity: 0.7;
}
.time-stop {
  position: absolute;
  top: 3px;
  width: 114px;
  height: 85px;
  transform: translateX(-50%);
  padding: 0;
  text-align: center;
  cursor: pointer;
}
.time-stop .stop-year {
  display: block;
  font-size: 12px;
  color: #bbcac7;
  font-weight: 500;
  height: 27px;
}
.time-stop .stop-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: #62817a;
  border: 2px solid #62817a;
  border-radius: 50%;
  margin: 2px auto 11px;
  position: relative;
}
.time-stop .stop-title {
  display: block;
  font-size: 8px;
  color: #8caaa4;
  padding: 0 3px;
  line-height: 1.5;
  white-space: normal;
}
.time-stop.active .stop-year {
  color: var(--accent);
}
.time-stop.active .stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 50%, transparent);
}
.time-stop.active .stop-title {
  color: #e4eddf;
}
.time-stop:hover .stop-year {
  color: var(--accent);
}
.track-viewport.proportional {
  height: 171px;
}
.proportional .timeline-track {
  height: 164px;
}
.proportional .timeline-track::before {
  top: 29px;
}
.axis-tick {
  position: absolute;
  top: 9px;
  width: 1px;
  height: 21px;
  background: #506d69;
  pointer-events: none;
}
.axis-tick span {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 8px;
  color: #88a19e;
}
.proportional .time-stop {
  top: 23px;
  width: 90px;
  height: 136px;
  pointer-events: none;
}
.proportional .time-stop .stop-dot {
  position: absolute;
  top: 2px;
  left: 42px;
  margin: 0;
  pointer-events: auto;
}
.proportional .time-stop::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 45px;
  width: 1px;
  height: calc(13px + var(--lane) * 29px);
  background: #52706a;
}
.proportional .time-stop .stop-year {
  position: absolute;
  top: calc(25px + var(--lane) * 29px);
  left: 0;
  width: 100%;
  height: auto;
  font-size: 10px;
  background: color-mix(in srgb, var(--base) 94%, #050b14);
  padding: 4px 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  pointer-events: auto;
}
.proportional .time-stop.active .stop-year {
  border-color: var(--accent);
}
.proportional .time-stop .stop-title {
  display: none;
}
.proportional .time-stop.active::after {
  background: var(--accent);
}
.track-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 30px;
  text-align: center;
}
.dock-bottom {
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(200, 230, 222, 0.08);
  font-size: 9px;
  color: #8ba59f;
  min-height: 33px;
  gap: 14px;
}
.dock-bottom span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dock-bottom kbd {
  font-family: inherit;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #b4c8c2;
}
.collection-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.collection-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.reset-mini {
  padding: 4px 6px;
  color: var(--accent);
  font-size: 10px;
  text-decoration: underline;
}
.modal-open {
  overflow: hidden;
}
dialog {
  width: min(960px, calc(100vw - 48px));
  max-height: min(90svh, 940px);
  border: 1px solid #3c5355;
  border-radius: 15px;
  padding: 0;
  background: #102326;
  color: #eef7f4;
  box-shadow: 0 30px 120px #0008;
  overscroll-behavior: contain;
}
dialog[open] {
  animation: dialog-in 250ms ease-out;
}
dialog::backdrop {
  background: rgba(2, 11, 16, 0.82);
  backdrop-filter: blur(12px);
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #102326f5;
  backdrop-filter: blur(15px);
}
.dialog-eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dialog-header h2 {
  font-size: 20px;
  letter-spacing: -0.7px;
  margin: 5px 0 0;
  line-height: 1.4;
}
.dialog-header .icon-btn {
  flex-shrink: 0;
}
.dialog-body {
  padding: 28px 30px 32px;
}
.dialog-tabs {
  display: flex;
  gap: 22px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
}
.dialog-tabs button {
  padding: 18px 0 14px;
  font-size: 12px;
  color: #a9bebb;
  border-bottom: 2px solid transparent;
}
.dialog-tabs button[aria-selected='true'] {
  color: var(--accent);
  border-color: var(--accent);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.85fr);
  gap: 35px;
}
.detail-copy h3 {
  font-size: 14px;
  margin: 3px 0 10px;
  color: #ecf7f2;
}
.detail-copy p {
  font-size: 13px;
  line-height: 1.9;
  color: #bacdca;
  margin: 0 0 23px;
}
.cite {
  color: var(--accent);
  font-size: 10px;
  margin-left: 5px;
}
.detail-image {
  margin: 0;
}
.detail-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  background: #233a3b;
}
.detail-image figcaption {
  font-size: 10px;
  color: #a2b9b6;
  line-height: 1.7;
  margin-top: 10px;
}
.detail-image a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--accent);
  margin-top: 7px;
  font-size: 10px;
}
.detail-image a svg {
  width: 12px;
  height: 12px;
}
.date-note {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #324346);
  padding: 17px 20px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 4%, #102326);
  margin-top: 8px;
}
.date-note strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.date-note strong svg {
  width: 14px;
  height: 14px;
}
.date-note p {
  font-size: 12px;
  color: #bed0cb;
  line-height: 1.8;
  margin: 0;
}
.detail-bottom {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #47625f;
  border-radius: 5px;
  font-size: 11px;
  color: #d2e2da;
  min-height: 42px;
}
.secondary svg {
  width: 15px;
  height: 15px;
}
.source-intro,
.about-text {
  font-size: 13px;
  color: #b4c9c4;
  line-height: 1.9;
  margin-top: 0;
}
.source-card {
  display: flex;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.source-card .number {
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}
.source-card div {
  flex: 1;
}
.source-card strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.source-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #a1bcb6;
  margin: 0;
}
.source-card > svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.credit-box {
  padding: 22px;
  background: #162e30;
  border-radius: 7px;
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.85;
  color: #bad0c9;
}
.credit-box h3 {
  font-size: 13px;
  color: #e2f1eb;
  margin: 0 0 12px;
}
.credit-box p {
  margin: 7px 0;
}
.credit-box a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.gallery-card {
  padding: 0;
  text-align: left;
  border: 1px solid #354d4c;
  border-radius: 7px;
  overflow: hidden;
  background: #172e30;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: cover;
  background: linear-gradient(30deg, #183844, #435f63);
  color: #dce7e6;
  font-size: 10px;
}
.gallery-card .card-copy {
  padding: 13px;
}
.card-date {
  color: var(--card-accent, var(--accent));
  font-size: 10px;
}
.gallery-card h3 {
  margin: 7px 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}
.gallery-card:hover {
  border-color: var(--accent);
}
.search-field {
  position: relative;
}
.search-field > svg {
  position: absolute;
  left: 18px;
  top: 19px;
  color: var(--accent);
}
.search-field input {
  width: 100%;
  height: 59px;
  border: 1px solid #496562;
  border-radius: 7px;
  background: #193133;
  color: white;
  padding: 15px 19px 15px 51px;
  font-size: 16px;
}
.search-field input::placeholder {
  color: #92aca8;
}
.search-hint {
  color: #91aba4;
  font-size: 11px;
  margin: 14px 0 8px;
}
.search-results {
  min-height: 170px;
}
.result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 18px 4px;
}
.result .result-date {
  min-width: 90px;
  color: var(--accent);
  font-size: 10px;
}
.result strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.result small {
  color: #9db6af;
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.result > svg {
  margin-left: auto;
  width: 17px;
  height: 17px;
}
.result:hover {
  background: #1b3335;
}
.empty-results {
  padding: 40px 0;
}
.empty-results h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.empty-results p {
  font-size: 12px;
  color: #a5bfb7;
  line-height: 1.8;
  max-width: 470px;
}
.about-kicker {
  color: var(--accent);
  font-size: 34px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 3px 0 20px;
  font-weight: 500;
}
.about-facts {
  display: flex;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.about-facts b {
  display: block;
  color: var(--accent);
  font-weight: 500;
  font-size: 28px;
}
.about-facts span {
  font-size: 10px;
  color: #acbfb9;
}
.map-panel {
  border-radius: 8px;
  border: 1px solid #375454;
  padding: 30px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      #72958d18 36px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 35px,
      #72958d18 36px
    ),
    #122f34;
}
.map-panel > svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 20px;
}
.map-panel h3 {
  font-size: 20px;
  margin: 0 0 14px;
}
.map-panel p {
  color: #b5d0c6;
  font-size: 12px;
  line-height: 1.85;
  max-width: 580px;
}
.coordinates {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  margin: 18px 0;
}
.share-input {
  display: block;
  width: 100%;
  padding: 16px;
  background: #182e30;
  border: 1px solid #4c6861;
  border-radius: 5px;
  color: white;
  font-size: 13px;
  margin: 20px 0;
}
.share-status {
  font-size: 12px;
  line-height: 1.8;
  color: var(--accent);
  min-height: 26px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #e1f9c5;
  color: #16302c;
  font-size: 12px;
  padding: 13px 20px;
  border-radius: 6px;
  z-index: 20;
  box-shadow: 0 8px 30px #0006;
  max-width: calc(100vw - 32px);
  text-align: center;
}
@keyframes drift {
  from {
    transform: scale(1.035) translateX(-0.4%);
  }
  to {
    transform: scale(1.095) translateX(0.6%);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 2px var(--accent);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 650px;
  }
  .hero-description {
    font-size: 15px;
    max-width: 430px;
  }
  .hero-content {
    padding-top: 115px;
    padding-bottom: 105px;
  }
}
@media (max-width: 1100px) {
  .toplinks {
    gap: 20px;
  }
  .brand-sub {
    display: none;
  }
  .filter-tools {
    gap: 8px;
  }
  .filter-chip {
    padding: 9px 7px;
  }
  .mode-switch button {
    padding: 8px 9px;
  }
  h1 {
    font-size: clamp(43px, 5.2vw, 64px);
  }
  .hero-content {
    width: 64%;
  }
  .hero-description {
    max-width: 340px;
    font-size: 12px;
  }
  .photo-caption {
    max-width: 270px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 23px;
  }
  .topbar {
    height: 64px;
    padding: 0 22px;
    gap: 15px;
  }
  .brand-name {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .brand-mark {
    transform: scale(0.85) skewY(-13deg);
    transform-origin: left;
    width: 23px;
    margin-right: -3px;
  }
  .brand {
    gap: 9px;
  }
  .toplinks {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    gap: 7px;
  }
  .top-actions .icon-btn {
    width: 35px;
    height: 35px;
  }
  .top-actions svg {
    width: 16px;
    height: 16px;
  }
  .lang {
    display: none;
  }
  .hero {
    min-height: 480px;
    justify-content: flex-end;
  }
  .hero-top {
    top: 20px;
    align-items: flex-start;
  }
  .section-label {
    font-size: 8px;
    letter-spacing: 1.4px;
    max-width: 180px;
    line-height: 1.7;
    padding-top: 5px;
  }
  .chapter-count {
    padding: 5px 11px;
    font-size: 9px;
  }
  .chapter-count strong {
    font-size: 13px;
  }
  .hero-media {
    width: 100%;
    top: 0;
    bottom: 90px;
  }
  .hero-media.contain {
    width: 100%;
    top: 20px;
    bottom: 135px;
    padding: 30px 35px;
  }
  .hero-shade {
    background:
      linear-gradient(
        0deg,
        var(--base) 1%,
        color-mix(in srgb, var(--base) 95%, transparent) 19%,
        color-mix(in srgb, var(--base) 66%, transparent) 42%,
        transparent 85%
      ),
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--base) 50%, transparent),
        transparent
      );
  }
  .hero-wash {
    opacity: 0.19;
  }
  .hero-orbit {
    width: 80vw;
    top: 37%;
    right: -4%;
  }
  .photo-year {
    top: 46px;
    right: 19px;
    font-size: 126px;
    letter-spacing: -6px;
    color: rgba(255, 255, 255, 0.86);
  }
  .photo-year small {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .hero-content {
    width: 100%;
    padding: 138px var(--gutter) 71px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
    margin-bottom: 11px;
    max-width: 290px;
    gap: 7px;
  }
  h1 {
    font-size: clamp(40px, 10.8vw, 61px);
    line-height: 1.025;
    letter-spacing: -1.8px;
    margin-bottom: 15px;
  }
  .hero-description {
    font-size: 11px;
    line-height: 1.75;
    max-width: 325px;
    margin-bottom: 20px;
  }
  .hero-cta {
    gap: 16px;
  }
  .primary {
    font-size: 10px;
    min-height: 43px;
    padding: 13px 16px;
    gap: 20px;
  }
  .text-button {
    font-size: 9px;
    min-height: 43px;
    gap: 5px;
  }
  .text-button svg {
    width: 12px;
    height: 12px;
  }
  .scene-navigation {
    right: 23px;
    bottom: 14px;
    gap: 6px;
  }
  .scene-navigation .icon-btn {
    width: 35px;
    height: 35px;
  }
  .scene-navigation svg {
    width: 17px;
    height: 17px;
  }
  .photo-caption {
    left: 23px;
    right: auto;
    bottom: 19px;
    text-align: left;
    max-width: calc(100% - 150px);
    font-size: 8px;
    line-height: 1.5;
    gap: 5px;
    justify-content: flex-start;
  }
  .photo-caption .caption-sub {
    display: none;
  }
  .photo-caption svg {
    display: none;
  }
  .media-error {
    right: 25px;
    top: 69px;
    max-width: 230px;
    font-size: 10px;
    padding: 10px;
  }
  .timeline-dock {
    padding: 14px var(--gutter) 5px;
  }
  .dock-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .mode-switch {
    padding: 3px;
    gap: 2px;
  }
  .mode-switch button {
    font-size: 9px;
    padding: 8px 10px;
    gap: 5px;
    min-height: 32px;
  }
  .mode-switch button svg {
    width: 11px;
    height: 11px;
  }
  .filter-tools {
    display: contents;
  }
  .era-select {
    order: 2;
    margin-left: auto;
    max-width: 135px;
    font-size: 9px;
    border: 0;
    padding-left: 4px;
  }
  .category-filters {
    order: 3;
    flex-basis: 100%;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1px 0;
  }
  .filter-chip {
    flex: 1;
    font-size: 9px;
    padding: 6px;
    min-height: 31px;
  }
  .track-meta {
    font-size: 8px;
    margin-top: 8px;
    min-height: 20px;
  }
  .track-meta .track-instructions > svg {
    display: none;
  }
  .track-meta .track-count {
    display: none;
  }
  .track-viewport {
    height: 90px;
    margin-left: -9px;
    margin-right: -9px;
  }
  .time-stop .stop-year {
    font-size: 11px;
  }
  .time-stop .stop-title {
    font-size: 8px;
  }
  .dock-bottom {
    padding-top: 5px;
    font-size: 8px;
    min-height: 27px;
  }
  .desktop-keys {
    display: none !important;
  }
  dialog {
    width: 100vw;
    max-width: none;
    max-height: 94svh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }
  .dialog-header {
    padding: 18px 22px;
    gap: 10px;
  }
  .dialog-header h2 {
    font-size: 17px;
  }
  .dialog-eyebrow {
    font-size: 9px;
  }
  .dialog-body {
    padding: 22px 22px 28px;
  }
  .dialog-tabs {
    padding: 0 22px;
    gap: 20px;
  }
  .dialog-tabs button {
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-image {
    order: -1;
  }
  .detail-image img {
    max-height: 180px;
  }
  .detail-copy p {
    font-size: 12px;
    line-height: 1.85;
  }
  .detail-copy h3 {
    font-size: 14px;
  }
  .detail-bottom {
    flex-wrap: wrap;
    gap: 14px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .gallery-card img {
    height: 100px;
  }
  .gallery-card .card-copy {
    padding: 11px;
  }
  .gallery-card h3 {
    font-size: 11px;
  }
  .card-date {
    font-size: 9px;
  }
  .source-card {
    gap: 10px;
  }
  .source-card strong {
    font-size: 12px;
  }
  .result {
    gap: 12px;
  }
  .result .result-date {
    min-width: 70px;
    width: 70px;
    font-size: 9px;
  }
  .result strong {
    font-size: 12px;
  }
  .about-kicker {
    font-size: 30px;
  }
  .about-facts {
    gap: 22px;
  }
  .about-facts b {
    font-size: 25px;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 18px;
  }
  .hero-content {
    padding-top: 140px;
  }
  h1 {
    font-size: 37px;
  }
  .hero-cta {
    gap: 12px;
  }
  .primary {
    padding-inline: 13px;
    gap: 13px;
  }
  .filter-chip {
    padding-inline: 4px;
  }
  .era-select {
    max-width: 114px;
  }
  .mode-switch button {
    padding-inline: 7px;
  }
}
@media (min-width: 761px) and (max-height: 780px) {
  .topbar {
    height: 72px;
  }
  .hero {
    min-height: 446px;
  }
  .hero-content {
    padding-top: 70px;
    padding-bottom: 44px;
  }
  h1 {
    font-size: 50px;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .hero-top {
    top: 20px;
  }
  .timeline-dock {
    padding-top: 14px;
  }
}
