:root {
  --ink: #090909;
  --ink-soft: #14171d;
  --panel: #1d2027;
  --line: rgba(255, 255, 255, 0.16);
  --paper: #f5f0e8;
  --muted: #b8b2a7;
  --steel: #8ba3b3;
  --signal: #a41f24;
  --gold: #c8a75a;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

.moving-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 46, 46, 0.64), transparent 34%),
    linear-gradient(225deg, rgba(24, 25, 26, 0.88), rgba(5, 5, 5, 0.96) 62%),
    var(--ink);
}

.moving-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.16), rgba(4, 4, 5, 0.82) 47%, rgba(4, 4, 5, 0.44)),
    linear-gradient(180deg, rgba(4, 4, 5, 0.32), rgba(4, 4, 5, 0.76) 70%, #090909),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.06) 42%, transparent 57%);
}

.backdrop-slide {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(0.82);
  transform: scale(1.08) translate3d(0, 0, 0);
  transition: opacity 1600ms ease, filter 1600ms ease;
  animation: backdropDrift 20s ease-in-out infinite alternate;
}

.backdrop-slide.is-active {
  opacity: 0.28;
  filter: grayscale(1) saturate(0) contrast(1.26) brightness(0.9);
}

.backdrop-slide:nth-child(2) {
  object-position: 46% 42%;
  animation-delay: -5s;
}

.backdrop-slide:nth-child(3) {
  object-position: 52% 38%;
  animation-delay: -10s;
}

.backdrop-slide:nth-child(4) {
  object-position: 42% 44%;
  animation-delay: -15s;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  margin: 10px 0 26px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.14);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(1.02);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.brand-mark {
  display: grid;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) grayscale(1) contrast(1.2) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  opacity: 0.94;
}

.brand strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a,
.audio-toggle,
.primary-link,
.secondary-link {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a:hover,
.audio-toggle:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 167, 90, 0.65);
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.audio-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(164, 31, 36, 0.16);
}

.audio-toggle.is-playing .audio-dot {
  background: #4da36a;
  box-shadow: 0 0 0 4px rgba(77, 163, 106, 0.18);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 158px);
  padding: 24px 0 82px;
}

.hero-copy {
  max-width: 570px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  color: #f6f6f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    -3px 0 0 #050505,
    2px 0 0 rgba(255, 255, 255, 0.88),
    0 18px 42px rgba(0, 0, 0, 0.82),
    0 0 22px rgba(255, 255, 255, 0.18);
  filter: grayscale(1) contrast(1.2);
  animation: titleFlicker 5.5s steps(1, end) infinite;
}

h1::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #050505;
  content: attr(data-text);
  transform: translate(5px, 5px);
  opacity: 0.8;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

h1::after {
  position: absolute;
  inset: 0;
  color: transparent;
  content: attr(data-text);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  opacity: 0.6;
  transform: translate(-2px, 1px);
}

.lead {
  max-width: 48ch;
  color: #ded8cc;
  font-size: 1.18rem;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 700;
}

.primary-link {
  color: #fff;
  border-color: rgba(164, 31, 36, 0.7);
  background: linear-gradient(135deg, var(--signal), #6e171a);
  box-shadow: 0 20px 46px rgba(164, 31, 36, 0.24);
}

.secondary-link {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stage {
  perspective: 1200px;
  filter: drop-shadow(0 42px 80px rgba(0, 0, 0, 0.36));
}

.scene-frame {
  position: relative;
  isolation: isolate;
  width: min(520px, 100%);
  aspect-ratio: 0.76;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 220ms ease-out;
  animation: cardFloat 6s ease-in-out infinite;
}

.artifact-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 8px;
  background: #111;
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(46px);
}

.artifact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.artifact-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 46%),
    linear-gradient(110deg, rgba(200, 167, 90, 0.2), transparent 30%, rgba(139, 163, 179, 0.16));
  mix-blend-mode: screen;
  opacity: 0.62;
}

.artifact-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  gap: 5px;
}

.artifact-overlay span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.artifact-overlay strong {
  max-width: 22ch;
  color: #fffaf2;
  font-size: 1.16rem;
}

.depth-plane {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 167, 90, 0.12), rgba(139, 163, 179, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
}

.plane-one {
  inset: 34px -24px -30px 32px;
  z-index: 2;
  transform: translateZ(10px);
  animation: planePulse 7s ease-in-out infinite;
}

.plane-two {
  inset: 68px -46px -56px 68px;
  z-index: 1;
  transform: translateZ(-28px);
  animation: planePulse 8s ease-in-out infinite reverse;
}

.notice,
.history-section,
.state-section,
.gallery-section,
.story-section,
.legacy-section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-bottom: 74px;
  padding: 18px 0 0;
  color: #ddd7ca;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.56);
}

.notice strong {
  color: var(--gold);
  white-space: nowrap;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 64px;
  margin-bottom: 34px;
}

.section-heading h2,
.impact-panel h2 {
  margin-bottom: 0;
  color: #fffaf2;
  font-size: 2.2rem;
  line-height: 1.25;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 72px;
}

.timeline article {
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(29, 32, 39, 0.74), rgba(15, 16, 20, 0.86));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.timeline span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.timeline h3 {
  margin-bottom: 12px;
  color: #fffaf2;
  font-size: 1.04rem;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.state-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
  padding-bottom: 76px;
}

.flag-panel {
  display: grid;
  align-content: space-between;
  min-height: 380px;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 16, 20, 0.84)),
    rgba(12, 12, 13, 0.7);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.flag-panel img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  filter: saturate(0.92) contrast(1.04);
}

.flag-panel figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.state-grid,
.story-grid {
  display: grid;
  gap: 14px;
}

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

.state-grid article,
.story-grid article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(29, 32, 39, 0.72), rgba(15, 16, 20, 0.84)),
    rgba(10, 10, 11, 0.72);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.state-grid h3,
.story-grid h3 {
  margin-bottom: 10px;
  color: #fffaf2;
  font-size: 1.05rem;
}

.state-grid p,
.story-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
  padding-bottom: 78px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--paper);
  background: var(--panel);
  cursor: pointer;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.42);
  transform: translateY(0);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
  filter: grayscale(0.15) contrast(1.05);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent 58%);
}

.gallery-item span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  color: #fffaf2;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: right;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.08);
}

.gallery-item:hover {
  border-color: rgba(200, 167, 90, 0.56);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.52);
  transform: translateY(-4px);
}

.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 78px;
}

.story-grid article {
  min-height: 260px;
}

.story-grid span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.legacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 34px;
  align-items: start;
  padding: 66px 0 86px;
}

.impact-panel {
  max-width: 660px;
}

.impact-panel p:last-child {
  margin: 20px 0 0;
  color: #d8d2c7;
  font-size: 1.02rem;
}

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

.stat-grid div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(139, 163, 179, 0.14), rgba(29, 32, 39, 0.7)),
    rgba(12, 12, 13, 0.68);
  backdrop-filter: blur(10px);
}

.stat-grid strong {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(900px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.7);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--paper);
  text-align: center;
}

.close-lightbox {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

@keyframes backdropDrift {
  0% {
    transform: scale(1.08) translate3d(-2.5%, -1.5%, 0);
  }

  50% {
    transform: scale(1.14) translate3d(2%, 1%, 0);
  }

  100% {
    transform: scale(1.1) translate3d(-1%, 2.5%, 0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0);
  }

  50% {
    transform: rotateX(calc(var(--rx, 0deg) + 0.7deg)) rotateY(calc(var(--ry, 0deg) - 0.7deg)) translate3d(0, -10px, 0);
  }
}

@keyframes planePulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 0.42;
  }
}

@keyframes titleFlicker {
  0%,
  92%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  93% {
    opacity: 0.86;
    transform: translate3d(1px, 0, 0);
  }

  94% {
    opacity: 1;
    transform: translate3d(-1px, 0, 0);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .hero,
  .state-layout,
  .legacy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

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

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

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

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .audio-toggle {
    width: 100%;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    justify-content: center;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .hero {
    gap: 36px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .scene-frame {
    width: min(390px, 94%);
  }

  .backdrop-slide.is-active {
    opacity: 0.28;
  }

  .notice {
    display: block;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 50px;
  }

  .section-heading h2,
  .impact-panel h2 {
    font-size: 1.65rem;
  }

  .timeline,
  .state-grid,
  .gallery-grid,
  .story-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    min-height: 0;
  }

  .gallery-grid {
    grid-auto-rows: 270px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .flag-panel {
    min-height: 0;
  }

  .flag-panel img {
    max-height: 210px;
  }

  .story-grid article {
    min-height: 0;
  }
}
