:root {
  --bg: #12110d;
  --bg-alt: #181610;
  --panel: #1c1a14;
  --line: #2e2a20;
  --line-strong: #4a4434;
  --text: #f2ead7;
  --text-2: #d6cbb1;
  --muted: #b9ae94;
  --gold: #e9b54c;
  --gold-ink: #1a1408;
  --moss: #9cc068;
  --serif: 'Gowun Batang', serif;
  --sans: 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #f6d38a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; }
h3 { font-size: 28px; line-height: 1.3; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sec { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.sec.alt { background: var(--bg-alt); }
.eyebrow { margin: 0 0 12px; color: var(--moss); font-size: 15px; font-weight: 500; }
.body { margin: 0; font-size: 17px; color: var(--text-2); }
.sub { margin: 12px 0 0; }
.note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #f2c566; color: var(--gold-ink); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 18px; }
.btn.is-soon { background: transparent; color: var(--gold); border: 1px solid var(--gold); cursor: default; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 17, 13, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 auto; font-size: 15px; }
.nav-links a { color: var(--text-2); text-decoration: none; padding: 8px 0; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 18px; }
  .nav-row { justify-content: space-between; }
}

/* hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: linear-gradient(to top, var(--bg) 8%, rgba(18, 17, 13, 0.78) 45%, rgba(18, 17, 13, 0) 100%); }
@media (max-width: 640px) { .hero-scrim { height: 100%; background: linear-gradient(to top, var(--bg) 10%, rgba(18, 17, 13, 0.82) 55%, rgba(18, 17, 13, 0.1) 100%); } }
.hero-body { position: relative; width: 100%; padding-bottom: 72px; }
.eyebrow-en { margin: 0 0 8px; color: var(--gold); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1.05; }
.tagline { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); }
.lead { margin: 8px 0 0; font-size: 17px; color: var(--text-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* story */
.story-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.story-text { flex: 1 1 380px; min-width: 0; }
.story-text h2 { margin-bottom: 24px; }
.story-art { flex: 1 1 480px; min-width: 0; position: sticky; top: 96px; }
.tree-box { position: relative; aspect-ratio: 10 / 7; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tree-box img { position: absolute; left: 4%; right: 4%; bottom: 2%; width: 92%; height: 94%; object-fit: contain; object-position: bottom; opacity: 0; transition: opacity .6s ease; }
.tree-box img.on { opacity: 1; }
.stage-steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stage-steps li { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 18px; transition: border-color .3s; }
.stage-steps li.on { border-left-color: var(--gold); }
.stage-steps button { all: unset; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 44px; }
.stage-steps button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.stage-steps b { font-family: var(--serif); font-size: 22px; color: var(--muted); transition: color .3s; }
.stage-steps span { font-size: 14px; color: var(--muted); }
.stage-steps p { margin: 0 0 8px; color: var(--text-2); font-size: 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.stage-steps li.on b { color: var(--text); }
.stage-steps li.on p { max-height: 80px; opacity: 1; }
@media (min-width: 901px) { .stage-steps { gap: 12vh; padding-bottom: 20vh; } }
@media (max-width: 900px) { .story-art { position: static; } }

/* features */
#features h2 { margin-bottom: 64px; }
.feature { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; margin-bottom: 88px; }
.feature:last-child { margin-bottom: 0; }
.feature > img { flex: 1 1 560px; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.feature > img.pos-left { object-position: left center; }
.feature > div { flex: 1 1 340px; min-width: 0; }
.feature.flip > img { order: 2; }
@media (max-width: 960px) { .feature.flip > img { order: 0; } }
.num { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 20px; }
.feature h3 { margin: 8px 0 12px; font-size: 30px; }
.pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--text-2); }

/* seeds */
.seed-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; margin-top: 40px; }
.seed-picks { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .seed-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seed-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; min-height: 140px; background: var(--panel); border: 2px solid var(--line); }
.seed-btn img { width: 72%; aspect-ratio: 1; object-fit: contain; }
.seed-btn[aria-pressed="true"] { background: #2a2517; border-color: var(--gold); }
.seed-btn:hover { border-color: var(--line-strong); }
.seed-btn[aria-pressed="true"]:hover { border-color: var(--gold); }
.seed-secret { border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; color: #8f866f; min-height: 140px; font-size: 13px; }
.seed-secret .q { font-family: var(--serif); font-size: 40px; line-height: 1; }
.seed-card { flex: 1 1 420px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.seed-card img { width: 160px; height: 160px; object-fit: contain; }
.seed-card > div { flex: 1 1 200px; min-width: 0; }
.seed-card h3 { font-size: 30px; margin-bottom: 8px; }

/* journey */
#journey h2 { margin-bottom: 40px; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.chapters figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chapters img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chapters figcaption { padding: 14px 16px 18px; display: flex; flex-direction: column; }
.chapters figcaption span { color: var(--gold); font-size: 13px; }
.chapters figcaption b { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 2px 0 4px; }
.chapters figcaption small { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 48px 0 0; border-top: 1px solid var(--line); padding-top: 40px; }
.stats dt { font-family: var(--serif); font-size: 48px; color: var(--gold); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--text-2); }

/* creatures */
.creatures { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.creatures li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.creatures img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.creatures b { margin-top: 8px; font-weight: 500; font-size: 15px; }
.creatures span { color: var(--muted); font-size: 13px; }

/* gallery */
#gallery h2 { margin-bottom: 40px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 360px) { .gallery { grid-template-columns: 1fr; } }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
#lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
#lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
#lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
#lightbox .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18, 17, 13, 0.85); color: var(--text); cursor: pointer; display: grid; place-items: center; }

/* follow + footer */
.follow { text-align: center; }
.follow .body { margin: 16px 0 32px; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; background: #0e0d0a; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.studio { font-family: var(--serif); font-size: 18px; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
