:root {
  --ink: #10201c;
  --muted: #5d746c;
  --paper: #f5fbf4;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --green: #2f7b5c;
  --green-deep: #164736;
  --mint: #bcebcf;
  --gold: #f5cf75;
  --pink: #ffc7d9;
  --blue: #bde7ff;
  --shadow: 0 22px 70px rgba(14, 54, 42, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(188, 235, 207, 0.75), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(189, 231, 255, 0.7), transparent 28rem),
    linear-gradient(180deg, #f9fff8 0%, #eff9ec 45%, #e4f4ef 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.orb-one { background: var(--mint); top: 10%; left: -8rem; }
.orb-two { background: var(--gold); top: 48%; right: -10rem; animation-delay: -4s; }
.orb-three { background: var(--pink); bottom: -8rem; left: 42%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2rem, -1.4rem, 0) scale(1.08); }
}

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 14px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 42px rgba(17, 58, 45, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.brand img { width: 44px; height: 44px; }
.brand span { font-size: 1.05rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: #24443b;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(47, 123, 92, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--green-deep);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  padding: 12px;
}
.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 3px 0;
  border-radius: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  min-height: calc(100vh - 90px);
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 7.8vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
  max-width: 10ch;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
p {
  line-height: 1.68;
  color: var(--muted);
}
.hero-text {
  max-width: 630px;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 15px 35px rgba(22, 71, 54, 0.28);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 123, 92, 0.16);
}
.hero-art {
  padding: clamp(0.8rem, 2vw, 1.3rem);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero-art img { border-radius: 34px; }

.notice {
  width: min(calc(100% - 32px), var(--max));
  margin: -36px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 250, 229, 0.86);
  border: 1px solid rgba(245, 207, 117, 0.5);
  box-shadow: 0 12px 45px rgba(112, 90, 35, 0.09);
}
.notice strong { white-space: nowrap; }
.notice span { color: #6a5d3a; line-height: 1.5; }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}
.section-kicker { position: sticky; top: 118px; }
.world-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.world-grid { grid-template-columns: 1fr; }
.glass-card,
.note,
.creature-panel,
.step {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 42px rgba(14, 54, 42, 0.1);
  backdrop-filter: blur(14px);
}
.glass-card {
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}
.glass-card p { margin-bottom: 0; }
.card-icon {
  width: 56px;
  grid-row: span 2;
  filter: drop-shadow(0 10px 18px rgba(47, 123, 92, 0.16));
}

.section-head {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 44px;
}
.section-head p:last-child { margin-bottom: 0; }

.creatures { padding-top: 72px; }
.creature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 30px;
}
.creature-stage {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 40% 22%, rgba(255, 255, 255, 0.95), transparent 11rem),
    linear-gradient(145deg, rgba(188, 235, 207, 0.6), rgba(189, 231, 255, 0.54));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.creature-stage img {
  max-height: 380px;
  transition: transform 0.38s ease, opacity 0.22s ease;
}
.creature-stage img.is-switching {
  opacity: 0;
  transform: scale(0.92) rotate(-3deg);
}
.creature-panel { padding: clamp(20px, 4vw, 34px); }
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 15px;
  color: var(--green-deep);
  font-weight: 800;
  background: rgba(47, 123, 92, 0.09);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tab:hover { transform: translateY(-1px); }
.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}
.creature-copy h3 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 14px;
}
.trait-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.trait-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: #37564d;
}

.ritual {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}
.ritual-copy { position: sticky; top: 118px; }
.timeline {
  display: grid;
  gap: 16px;
}
.step {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(245, 207, 117, 0.35), transparent 65%);
  border-radius: 50%;
}
.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-weight: 900;
  margin-bottom: 16px;
}
.step p { margin-bottom: 0; }

.notes { padding-top: 72px; }
.note-grid { align-items: stretch; }
.note {
  padding: 28px;
  min-height: 260px;
}
.note-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  font-weight: 950;
  margin-bottom: 36px;
  box-shadow: 0 12px 24px rgba(47, 123, 92, 0.14);
}
.note p { margin-bottom: 0; }

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 26px;
  background: rgba(16, 32, 28, 0.92);
  color: white;
}
.site-footer p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.to-top {
  width: 46px;
  height: 46px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.25rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header { border-radius: 26px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    display: grid;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-18px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-open .site-nav {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 14px 16px; }
  .hero,
  .split,
  .creature-layout,
  .ritual {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 56px; }
  h1 { max-width: 12ch; }
  .section-kicker,
  .ritual-copy { position: static; }
  .note-grid { grid-template-columns: 1fr; }
  .creature-stage { min-height: 350px; }
  .creature-stage img { max-height: 310px; }
}

@media (max-width: 560px) {
  .section-pad { padding: 68px 0; }
  .site-header { width: min(calc(100% - 20px), var(--max)); top: 10px; }
  .brand span { font-size: 0.96rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .notice { align-items: flex-start; flex-direction: column; margin-top: -18px; }
  .glass-card { grid-template-columns: 1fr; }
  .card-icon { grid-row: auto; margin-bottom: 16px; }
  .tabs { display: grid; }
  .tab { width: 100%; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
