:root {
  --bg: #111214;
  --bg-soft: #1c1f22;
  --text: #f8f3e8;
  --muted: #c2b9aa;
  --accent: #f28f3b;
  --accent-2: #88c057;
  --card: rgba(35, 28, 22, 0.7);
  --stroke: rgba(242, 143, 59, 0.22);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 143, 59, 0.25) 0%, transparent 36%),
    radial-gradient(circle at 85% 82%, rgba(136, 192, 87, 0.22) 0%, transparent 34%),
    linear-gradient(125deg, #0e0f11 0%, #17191c 56%, #101214 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(16, 18, 20, 0.92), rgba(16, 18, 20, 0.65));
  border-bottom: 1px solid var(--stroke);
}

.nav-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-family: "Antonio", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: #fff3db;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  border-color: rgba(242, 143, 59, 0.58);
  color: #fff5e1;
  background: rgba(242, 143, 59, 0.12);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 4.5rem;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 243, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 224, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: -4;
}

.bg-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -3;
}

.bg-orb-a {
  top: -10rem;
  right: -9rem;
  background: #f28f3b;
  animation: drift 18s ease-in-out infinite;
}

.bg-orb-b {
  bottom: -12rem;
  left: -8rem;
  background: #88c057;
  animation: drift 22s ease-in-out infinite reverse;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: "Antonio", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  max-width: 12.5ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  padding: 2rem 0 2.5rem;
}

.lead {
  margin-top: 1.1rem;
  max-width: 64ch;
  font-size: 1.07rem;
}

.hero-meta {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-meta div {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.hero-meta span {
  display: block;
  font-size: 0.78rem;
  color: #8ab0bb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.08rem;
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.6rem;
}

.stat-card,
.climate-card,
.timeline-item,
.layers-card {
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.1rem;
}

.stat-card h2 {
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.split {
  margin-top: 3rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.split-text {
  display: grid;
  gap: 0.95rem;
}

.layers-card {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.layer-btn {
  border: 1px solid rgba(242, 143, 59, 0.44);
  background: rgba(24, 21, 17, 0.82);
  color: #fef4df;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.layer-btn:hover {
  transform: translateX(3px);
  border-color: rgba(242, 143, 59, 0.95);
}

.layer-btn.active {
  background: linear-gradient(90deg, rgba(242, 143, 59, 0.32), rgba(136, 192, 87, 0.12));
  border-color: rgba(242, 143, 59, 0.95);
}

#layer-description {
  margin-top: 0.3rem;
}

.timeline {
  margin-top: 3.2rem;
}

.timeline-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-item {
  padding: 1rem;
}

.timeline-item span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline-item h3 {
  margin-top: 0.32rem;
}

.climate {
  margin-top: 3.2rem;
}

.climate-columns {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.climate-card {
  padding: 1rem;
}

.quote {
  margin-top: 3.3rem;
  padding: 1.6rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(6, 16, 26, 0.7), rgba(12, 40, 43, 0.52));
}

blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  color: #fff5df;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.03em;
}

.quote p {
  margin-top: 0.55rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto 2rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(20, 17, 14, 0.72);
  padding: 1rem 1.1rem;
}

.site-footer p {
  color: #fff2d7;
  font-family: "Antonio", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.site-footer small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.footer-link {
  display: inline-block;
  margin-top: 0.55rem;
  text-decoration: none;
  color: #fff2d7;
  border-bottom: 1px solid rgba(242, 143, 59, 0.65);
  padding-bottom: 0.08rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-link:hover {
  color: #ffffff;
  border-color: rgba(242, 143, 59, 0.95);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger {
  opacity: 0;
  transform: translateY(14px);
}

.stagger.visible {
  animation: staggerIn 520ms ease forwards;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -30px, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .stats,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    width: min(1120px, 94vw);
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
  }

  .site-nav {
    justify-content: center;
  }

  main {
    width: min(1120px, 94vw);
    padding-top: 2.4rem;
  }

  .hero-meta,
  .stats,
  .timeline-grid,
  .climate-columns {
    grid-template-columns: 1fr;
  }

  .quote {
    padding: 1.2rem;
  }

  .site-footer {
    width: min(1120px, 94vw);
  }
}
