:root {
  --bg: #07110e;
  --bg-soft: #0d1d18;
  --panel: rgba(238, 247, 225, 0.08);
  --panel-strong: rgba(238, 247, 225, 0.13);
  --text: #f4f9ec;
  --muted: #b8c9b0;
  --accent: #a6f0a3;
  --accent-2: #f3d88c;
  --accent-3: #8cdce2;
  --line: rgba(244, 249, 236, 0.16);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(166, 240, 163, 0.25), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(140, 220, 226, 0.16), transparent 24rem),
    linear-gradient(180deg, #07110e 0%, #091611 45%, #102017 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  width: min(calc(100% - 32px), var(--max));
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 14, 0.72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.brand, .nav, .mobile-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav a, .mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease;
}

.nav a:hover, .mobile-nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.menu-button {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-nav {
  width: min(calc(100% - 32px), var(--max));
  z-index: 9;
  position: sticky;
  top: 84px;
  margin: 8px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 17, 14, 0.9);
  backdrop-filter: blur(18px);
  justify-content: center;
}

.section-pad {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 90px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  line-height: .9;
  letter-spacing: -0.085em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: .96;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.lead, .panel p, .rhythm-copy p, .time-step p, .creature-card p, .site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
}

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

.button, .detail-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, border .2s ease, background .2s ease;
}

.button:hover, .detail-button:hover { transform: translateY(-2px); }
.primary {
  color: #07110e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.ghost { background: var(--panel); color: var(--text); }

.hero-art {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 18px);
  background:
    radial-gradient(circle at 50% 20%, rgba(166, 240, 163, 0.25), transparent 18rem),
    linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-illustration {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 14, 0.55);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-weight: 800;
  font-size: .82rem;
  animation: float 5s ease-in-out infinite;
}
.note-one { top: 16%; left: 10%; }
.note-two { right: 10%; top: 34%; animation-delay: -1.5s; }
.note-three { bottom: 13%; left: 17%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr .75fr .75fr;
  gap: 18px;
}

.panel, .creature-card, .time-step, .quote-band {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(24px, 4vw, 42px);
}

.stat-card {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 240px;
}

.stat-number {
  display: block;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--accent-2);
}
.stat-label { color: var(--muted); }

.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.creature-card {
  padding: 24px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.creature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(166, 240, 163, 0.18), transparent 16rem);
  pointer-events: none;
}

.creature-card img {
  width: min(86%, 260px);
  margin: 0 auto 26px;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.35));
  position: relative;
}

.detail-button {
  color: #07110e;
  background: var(--accent);
  border: 0;
  margin-top: 14px;
}

.rhythm {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.rhythm-copy {
  position: sticky;
  top: 112px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.time-step {
  padding: 26px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
}

.time-step span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--accent-2);
  font-weight: 900;
}

.quote-band {
  text-align: center;
  padding: clamp(36px, 7vw, 76px);
  background:
    linear-gradient(135deg, rgba(166, 240, 163, 0.12), rgba(140, 220, 226, 0.08)),
    var(--panel);
}

.quote-band blockquote {
  margin: 0 auto 16px;
  max-width: 900px;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--accent); font-weight: 800; }

.note-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0b1712;
  color: var(--text);
  box-shadow: var(--shadow);
}

.note-dialog::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(5px); }
.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  font-size: 1.5rem;
  cursor: pointer;
}

[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero, .intro-grid, .rhythm { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero-art, .main-illustration { min-height: 420px; }
  .card-grid { grid-template-columns: 1fr; }
  .creature-card { min-height: 420px; }
  .rhythm-copy { position: static; }
}

@media (max-width: 560px) {
  .section-pad { width: min(calc(100% - 22px), var(--max)); padding: 50px 0; }
  .site-header { width: calc(100% - 22px); top: 10px; }
  .brand span { font-size: .98rem; }
  .hero-actions { flex-direction: column; }
  .button { text-align: center; }
  .time-step { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .floating-note { display: none; }
}
