:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #fffaf1;
  --surface-strong: #ffffff;
  --text: #1f2528;
  --muted: #667075;
  --line: rgba(31, 37, 40, 0.14);
  --accent: #0d7f75;
  --accent-strong: #075e58;
  --warm: #d36b31;
  --shadow: 0 18px 45px rgba(31, 37, 40, 0.12);
}

:root.dark {
  color-scheme: dark;
  --bg: #151819;
  --surface: #202426;
  --surface-strong: #292f31;
  --text: #f5f0e8;
  --muted: #b8c0c1;
  --line: rgba(245, 240, 232, 0.16);
  --accent: #67d6c6;
  --accent-strong: #8de5d8;
  --warm: #f0a35c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(211, 107, 49, 0.2), transparent 32rem),
    linear-gradient(135deg, var(--bg), var(--surface));
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.logo {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-links a,
.theme-toggle,
.button,
.filter {
  min-height: 2.5rem;
  border-radius: 8px;
  font: inherit;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  width: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 7rem);
  padding: 4rem 0 3rem;
}

.hero-content,
.page-hero {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content > p:not(.eyebrow),
.page-hero > p {
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.ghost {
  background: var(--surface-strong);
}

.orbital-panel {
  position: relative;
  min-height: 23rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbital-panel::before,
.orbital-panel::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.orbital-panel::before {
  inset: 3.5rem;
}

.orbital-panel::after {
  inset: 6rem 2rem;
  animation-direction: reverse;
}

.orbital-panel strong {
  position: relative;
  display: block;
  margin-top: 12rem;
  font-size: 2rem;
}

.orbital-panel p {
  position: relative;
}

.pulse-dot {
  position: absolute;
  top: 4.75rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(211, 107, 49, 0.5);
  animation: pulse 1.8s infinite;
}

.stats-grid,
.feature-list,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid article,
.feature-list article,
.timeline article,
.note-panel,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.stats-grid article {
  padding: 1.25rem;
}

.stat-number {
  display: block;
  color: var(--warm);
  font-size: 3rem;
  font-weight: 900;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 5rem 0;
}

.feature-list {
  grid-template-columns: 1fr;
}

.feature-list article {
  padding: 1.25rem;
}

.page-shell {
  padding: 4rem 0 5rem;
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero.compact {
  max-width: 54rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.timeline span {
  color: var(--warm);
  font-size: 2rem;
  font-weight: 900;
}

.note-panel {
  margin-top: 1rem;
  padding: 1.5rem;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter {
  border: 1px solid var(--line);
  padding: 0 1rem;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gallery-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.gallery-card.hidden {
  display: none;
}

.card-visual {
  min-height: 11rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d7f75, #f0a35c);
}

.card-visual.sunrise {
  background: linear-gradient(135deg, #f0a35c, #fff0bf 55%, #4ba3a0);
}

.card-visual.mint {
  background: linear-gradient(135deg, #0d7f75, #9fe6d8);
}

.card-visual.violet {
  background: linear-gradient(135deg, #5a4fcf, #f0a35c);
}

.card-visual.ocean {
  background: linear-gradient(135deg, #164e63, #67d6c6);
}

.card-visual.amber {
  background: linear-gradient(135deg, #b45309, #fce7a3);
}

.card-visual.graphite {
  background: linear-gradient(135deg, #1f2528, #8fa3a6);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 1.2rem rgba(211, 107, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 107, 49, 0);
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: stretch;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    justify-content: center;
  }

  .hero,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
