:root {
  --bg: #0f1416;
  --surface: #171f23;
  --surface-alt: #1d282d;
  --text: #f4f7f8;
  --muted: #b3c2c8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #59d9e8;
  --accent-strong: #ffe24d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(89, 217, 232, 0.12), transparent 30%),
    linear-gradient(180deg, #0a0d0f, var(--bg) 20%, #0b1113 100%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--accent-strong);
  color: #101010;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(15, 20, 22, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 40px 0 24px;
}

.hero-panel,
.hero-media,
.section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 36, 40, 0.98), rgba(12, 17, 19, 0.98));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(89, 217, 232, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 9vw, 5rem);
}

.hero-copy {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-meta,
.location-grid,
.artifact-links,
.selection-list {
  display: grid;
  gap: 0.85rem;
}

.hero-meta {
  margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.meta-card,
.artifact-card,
.service-card,
.link-card,
.discovery-card {
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-card strong,
.artifact-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-card span,
.artifact-card span {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button {
  background: var(--accent-strong);
  color: #0f1416;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-media {
  min-height: 340px;
  background: #111;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(89, 217, 232, 0.16), rgba(255, 226, 77, 0.12));
  color: var(--muted);
}

.section {
  padding: 18px 0;
}

.section-panel {
  padding: 24px;
}

.section-intro {
  max-width: 42rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.services-grid,
.gallery-grid,
.discovery-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-meta {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

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

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

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-alt);
  min-height: 180px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.links-grid,
.artifact-links {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.link-card ul,
.selection-list {
  margin: 0;
  padding-left: 1.1rem;
}

.link-card li + li,
.selection-list li + li {
  margin-top: 0.5rem;
}

.link-card a,
.artifact-card a,
.discovery-card a {
  color: var(--accent);
}

.location-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-note {
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 36px;
  color: var(--muted);
}

.site-footer .section-panel {
  background: rgba(12, 17, 19, 0.9);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: stretch;
  }

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

@media (max-width: 720px) {
  .site-header {
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

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