:root {
  --ink: #2c2118;
  --ink-soft: #5c4636;
  --gold: #a8752f;
  --gold-bright: #e4c27a;
  --cream: #fff8ef;
  --sky: #d7ecf8;
  --card: rgba(255, 252, 247, 0.72);
  --line: rgba(168, 117, 47, 0.28);
  --serif: "Cormorant Garamond", "Noto Serif SC", serif;
  --cn: "Noto Serif SC", serif;
  --sans: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: #f4f7fb;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 15% -10%, #fff 0%, transparent 60%),
    linear-gradient(180deg, #e7f4fb 0%, #f7fbfe 28%, #fff6ea 68%, #f3e4cc 100%);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; background: #f6d7a2; top: -80px; left: -60px; }
.orb-b { width: 520px; height: 520px; background: #b9ddf3; right: -120px; top: 10%; animation-delay: -6s; }
.orb-c { width: 360px; height: 360px; background: #f8e2c4; left: 30%; bottom: -80px; animation-delay: -12s; }
.rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 200deg, transparent 0 70%, rgba(255,255,255,0.45) 78%, transparent 86%);
  animation: spin 48s linear infinite;
  mix-blend-mode: soft-light;
}
.lattice {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(168,117,47,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,117,47,0.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
  animation: lattice 22s linear infinite;
}
.cloud {
  position: absolute;
  height: 90px;
  width: 280px;
  background: rgba(255,255,255,0.72);
  border-radius: 90px;
  filter: blur(1px);
  animation: float-x 36s linear infinite;
}
.cloud:before, .cloud:after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
}
.cloud:before { width: 120px; height: 120px; top: -55px; left: 40px; }
.cloud:after { width: 80px; height: 80px; top: -30px; left: 140px; }
.cloud-1 { top: 12%; left: -20%; }
.cloud-2 { top: 38%; left: -40%; animation-duration: 48s; opacity: 0.55; }
.cloud-3 { top: 68%; left: -30%; animation-duration: 42s; opacity: 0.4; }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 7vw;
  background: rgba(255, 248, 239, 0.62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--cn);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(168,117,47,0.28);
  animation: breathe 4.5s ease-in-out infinite;
}
.nav nav { display: flex; gap: 22px; }
.nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav nav a:hover { color: var(--gold); }
.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.55);
}
.nav-x img { width: 14px; height: 14px; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 6vh 7vw 8vh;
}
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}
h1 { margin: 0; }
.cn {
  display: block;
  font-family: var(--cn);
  font-weight: 900;
  font-size: clamp(84px, 11vw, 168px);
  line-height: 0.9;
  background: linear-gradient(110deg, #8a5a22 0%, #e8c98a 42%, #a8752f 58%, #f6e7c4 78%, #8a5a22 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
.en {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--ink-soft);
}
.lede {
  max-width: 540px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.hero-actions, .facts { display: flex; gap: 14px; flex-wrap: wrap; }
.facts { margin-top: 28px; }
.facts div {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(92, 70, 54, 0.06);
}
.facts dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 4px 0 0; font-family: var(--cn); font-size: 22px; }
.fact-ca { flex: 1 1 100%; }
.fact-ca dd {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 500;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.btn img { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(180deg, #f0d7a4, #c9954a);
  color: #3a2714;
  box-shadow: 0 12px 28px rgba(168,117,47,0.28);
}
.btn-ink {
  background: #2c2118;
  color: #f6efe4;
}
.btn-ink img { filter: brightness(0) invert(1); }

.moon { position: relative; display: grid; place-items: center; }
.gate {
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, #f6e7c8 55%, #d7b06a 100%);
  box-shadow:
    0 30px 80px rgba(168,117,47,0.25),
    inset 0 0 0 10px rgba(255,255,255,0.55);
  animation: float-y 6s ease-in-out infinite;
}
.gate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.seal {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #f4e4c8;
  background: #9c3b32;
  font-family: var(--cn);
  font-size: 34px;
  border-radius: 6px;
  transform: rotate(12deg);
  box-shadow: 0 10px 24px rgba(156, 59, 50, 0.35);
  animation: stamp 1.1s cubic-bezier(.2,1.4,.4,1) both;
}
.gate-caption {
  margin: 18px 0 0;
  letter-spacing: 0.5em;
  font-family: var(--cn);
  color: var(--gold);
}

.section-head { padding: 0 7vw; max-width: 820px; }
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}
.about, .buy, .chart, .join { padding: 8vh 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px 7vw 0;
}
.story, .virtue, .steps li, .social {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 16px 40px rgba(92, 70, 54, 0.06);
  backdrop-filter: blur(10px);
}
.story {
  border-radius: 28px;
  padding: 32px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.virtues { display: grid; gap: 14px; }
.virtue {
  border-radius: 22px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
}
.virtue span {
  grid-row: span 2;
  font-family: var(--cn);
  font-size: 36px;
  color: var(--gold);
}
.virtue h3, .steps h3 { margin: 0; font-family: var(--serif); font-size: 28px; }
.virtue p, .steps p { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.55; }

.steps {
  list-style: none;
  margin: 28px 7vw 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  border-radius: 24px;
  padding: 22px;
  min-height: 280px;
  transition: transform 0.4s ease;
}
.steps li:hover { transform: translateY(-8px); }
.steps li > span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #9c3b32;
  color: #f8ead8;
  font-family: var(--cn);
  margin-bottom: 14px;
}
.steps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 500;
}
.steps a img { width: 16px; height: 16px; }

.scroll-frame {
  margin: 28px 7vw 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(92, 70, 54, 0.1);
  height: 640px;
}
.scroll-frame iframe { width: 100%; height: 100%; border: 0; }
.chart-link { margin: 22px 7vw 0; }

.banner {
  margin: 28px 7vw 0;
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(92, 70, 54, 0.14);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}
.socials {
  margin: 18px 7vw 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.social {
  text-decoration: none;
  color: var(--ink);
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 6px;
  transition: transform 0.35s ease;
}
.social:hover { transform: translateY(-6px); }
.social img { width: 28px; height: 28px; color: var(--gold); }
.social strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.social span { color: var(--ink-soft); font-size: 14px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 7vw 40px;
  font-family: var(--cn);
  color: var(--ink-soft);
}
footer a { color: var(--gold); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.22s; }
.reveal:nth-child(4) { animation-delay: 0.32s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(30px, 24px, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lattice { to { background-position: 72px 72px; } }
@keyframes float-x { to { transform: translateX(160vw); } }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes stamp {
  0% { transform: rotate(12deg) scale(1.6); opacity: 0; }
  100% { transform: rotate(12deg) scale(1); opacity: 1; }
}
@keyframes ken {
  from { transform: scale(1.04) translateX(0); }
  to { transform: scale(1.1) translateX(-2%); }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav nav { display: none; }
  .hero, .about-grid, .steps, .socials { grid-template-columns: 1fr; }
  .hero { padding-top: 4vh; }
  .scroll-frame { height: 520px; }
  .steps li { min-height: 0; }
}
