:root {
  --bg: #f4efe4;
  --ink: #16212d;
  --ink-soft: #35516d;
  --card: #fffdf8;
  --line: #d8cdb9;
  --accent: #ff6f3c;
  --accent-2: #005b8f;
  --shadow: 0 10px 28px rgba(14, 25, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, #ffe4d8 0%, transparent 35%),
    radial-gradient(circle at 92% 16%, #d8eefc 0%, transparent 30%),
    var(--bg);
  line-height: 1.5;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

header,
main,
footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

h1,
h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin-top: 0.35rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.hero-copy {
  max-width: 720px;
  font-size: 1.08rem;
  margin: 0.8rem 0 1.2rem;
  color: var(--ink-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.86rem;
}

section {
  margin-top: 2.8rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.metric-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric-value {
  margin: 0.2rem 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 700;
}

.metric-note {
  margin: 0;
  font-size: 0.9rem;
}

.steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.explainer-copy {
  margin: 0.4rem 0 0.9rem;
  max-width: 860px;
  color: var(--ink-soft);
}

.explorer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.explorer-controls label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.explorer-controls select {
  min-width: 230px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: var(--ink);
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

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

.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

.shot:hover {
  transform: translateY(-2px);
}

.shot img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7e5e2;
}

.shot figcaption {
  font-size: 0.84rem;
  padding: 0.55rem 0.65rem;
}

.shot.hidden {
  display: none;
}

.source-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.source-list li {
  margin: 0.25rem 0;
}

.source-list a {
  color: var(--accent-2);
}

.source-list a:hover {
  color: var(--accent);
}

.footer {
  padding: 2rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: appear 600ms ease forwards;
}

.reveal:nth-of-type(2) { animation-delay: 90ms; }
.reveal:nth-of-type(3) { animation-delay: 150ms; }
.reveal:nth-of-type(4) { animation-delay: 210ms; }
.reveal:nth-of-type(5) { animation-delay: 270ms; }

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 3.2rem;
  }

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

  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
