/* ============================================================
   Cateshi Nakamoto — $cateshi
   Palette pulled straight off the relic: cream, bronze, gold.
   ============================================================ */

:root {
  --cream:      #f7ead3;
  --cream-hi:   #fdf6e8;
  --cream-deep: #efd9b4;
  --ink:        #2b1c0b;
  --ink-soft:   #6d573a;
  --gold:       #c08a1e;
  --gold-lite:  #e9be5a;
  --gold-deep:  #8a5c12;
  --dark:       #1a1108;
  --dark-2:     #241706;

  --shadow-sm: 0 2px 10px rgba(80, 52, 10, .10);
  --shadow-md: 0 18px 44px -18px rgba(80, 52, 10, .38);
  --radius: 18px;
  --wrap: 1120px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; }

/* fine paper grain over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 48px); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: .2em 0 .7em;
}
.h2 em { color: var(--gold-deep); }

.kicker {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; margin: -.4em 0 2.6em; }

.fineprint {
  margin-top: 2.6rem;
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.fineprint.warn {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold-lite), var(--gold) 55%, var(--gold-deep));
  color: #fffdf6;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(138, 92, 18, .8);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 32px -12px rgba(138, 92, 18, .85); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--gold-deep);
  border-color: rgba(192, 138, 30, .5);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(192, 138, 30, .09); box-shadow: none; }

.btn--sm { padding: 10px 20px; font-size: .85rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px max(24px, calc((100vw - var(--wrap)) / 2));
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.is-stuck {
  background: rgba(247, 234, 211, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(192, 138, 30, .22), 0 10px 30px -22px rgba(80, 52, 10, .6);
  padding-block: 10px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-right: auto;
}
.nav__brand img { border-radius: 50%; box-shadow: var(--shadow-sm); }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s ease;
}
.nav__links a:hover { color: var(--gold-deep); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid rgba(192, 138, 30, .38);
  border-radius: 12px;
  background: rgba(253, 246, 232, .7);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.6px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 112px 24px 76px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--cream-hi) 0%, var(--cream) 55%, var(--cream-deep) 100%);
}
.hero__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(233, 190, 90, .48) 0%, rgba(233, 190, 90, .16) 38%, transparent 66%);
  filter: blur(14px);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 22px;
}

.hero__statue {
  width: clamp(220px, 27vw, 300px);
  margin: 0 auto 20px;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
.hero__statue img {
  filter: drop-shadow(0 30px 50px rgba(120, 78, 14, .35));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
  background: linear-gradient(175deg, #6b4a11 0%, #b8871f 40%, #e6bd5c 62%, #8a5c12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__ticker { margin: 16px 0 22px; }
.hero__ticker span {
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid rgba(192, 138, 30, .45);
  border-radius: 999px;
  background: rgba(253, 246, 232, .6);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero__tag {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  margin: 0 auto 30px;
}

.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 26px; font-size: .86rem; color: var(--ink-soft); }

.scrollcue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(192, 138, 30, .5);
  border-radius: 12px;
}
.scrollcue span {
  display: block;
  width: 3px; height: 7px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 45%, var(--gold-lite) 70%, var(--gold-deep));
  border-block: 1px solid rgba(90, 60, 10, .25);
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  gap: 26px;
  align-items: center;
  width: max-content;
  animation: slide 34s linear infinite;
  color: #fffaf0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; opacity: .65; }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ---------- sections ---------- */
.section { padding: clamp(78px, 11vw, 140px) 0; position: relative; }

.section--gold {
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(233, 190, 90, .28), transparent 60%),
    linear-gradient(180deg, var(--cream-hi), var(--cream-deep));
  border-block: 1px solid rgba(192, 138, 30, .22);
}

.section--dark {
  background:
    radial-gradient(70% 50% at 80% 10%, rgba(192, 138, 30, .26), transparent 60%),
    linear-gradient(180deg, var(--dark), var(--dark-2));
  color: #f3e6cd;
}
.section--dark .h2 { color: #f7ecd6; }
.section--dark .h2 em,
.section--dark .kicker { color: var(--gold-lite); }
.section--dark .kicker::before { background: var(--gold-lite); }
.section--dark .lede { color: rgba(243, 230, 205, .7); }

/* ---------- legend chapters ---------- */
.chapters {
  display: grid;
  gap: 4px;
  counter-reset: ch;
  border-top: 1px solid rgba(192, 138, 30, .28);
}
.chapter {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(192, 138, 30, .28);
}
.chapter__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 600;
  color: var(--gold);
  opacity: .8;
}
.chapter h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
.chapter p { margin: 0 0 1em; max-width: 62ch; color: #4a3720; }
.chapter p:last-child { margin-bottom: 0; }
.chapter .pull {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--gold-deep);
  margin-top: 1.1em;
}
.chapter .pull strong { color: var(--ink); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 32px 26px 30px;
  border: 1px solid rgba(192, 138, 30, .3);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 252, 244, .9), rgba(247, 234, 211, .55));
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 138, 30, .6);
  box-shadow: var(--shadow-md);
}
.card__n {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: .45em 0 .4em;
}
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(192, 138, 30, .3);
  border: 1px solid rgba(192, 138, 30, .3);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: linear-gradient(170deg, rgba(255, 252, 244, .95), rgba(247, 234, 211, .7));
  padding: 38px 26px;
  text-align: center;
  transition: background .3s ease;
}
.stat:hover { background: rgba(255, 252, 244, 1); }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-deep);
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- nine lives ---------- */
.lives {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lives li {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid rgba(233, 190, 90, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.lives li:hover {
  background: rgba(233, 190, 90, .09);
  border-color: rgba(233, 190, 90, .5);
  transform: translateY(-4px);
}
.lives li span {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-lite);
}
.lives li h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: .4em 0 .35em;
  color: #fbf1dd;
}
.lives li p { margin: 0; font-size: .93rem; color: rgba(243, 230, 205, .68); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid rgba(192, 138, 30, .3);
  border-radius: 14px;
  background: rgba(255, 252, 244, .68);
  padding: 4px 22px;
  transition: border-color .25s ease, background .25s ease;
}
.faq details[open] { border-color: rgba(192, 138, 30, .6); background: rgba(255, 252, 244, .95); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 34px 17px 0;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 20px; color: var(--ink-soft); font-size: .98rem; max-width: 62ch; }

/* ---------- closer ---------- */
.closer {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(233, 190, 90, .34), transparent 70%), var(--cream);
}
.closer__relic {
  width: 150px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 34px rgba(120, 78, 14, .32));
  animation: float 8s ease-in-out infinite;
}
.closer__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.24;
  margin: 0 0 .5em;
  color: var(--gold-deep);
}
.closer__attr { color: var(--ink-soft); font-size: .95rem; margin: 0 0 34px; }

/* ---------- footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(243, 230, 205, .62);
  padding: 58px 0 44px;
  font-size: .85rem;
}
.footer__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { border-radius: 50%; }
.footer__brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #f7ecd6;
  font-weight: 700;
}
.footer__brand span { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lite); }
.footer__disc { max-width: 78ch; margin: 0; line-height: 1.7; font-size: .8rem; opacity: .8; }
.footer__copy { margin: 0; font-size: .78rem; opacity: .6; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .68, 0, 1), transform .7s cubic-bezier(.22, .68, 0, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lives { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav {
    background: rgba(247, 234, 211, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    background: rgba(250, 240, 222, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(192, 138, 30, .3);
    max-height: 0;
    overflow: hidden;
    transition: max-height .34s ease, padding .34s ease;
  }
  .nav__links.is-open { max-height: 440px; padding: 8px 24px 18px; }
  .nav__links a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid rgba(192, 138, 30, .16); }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: min(100% - 34px, var(--wrap)); }
  .grid--4, .lives, .stats { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 6px; padding: 34px 0; }
  .chapter__num { font-size: 1.9rem; }
  .chapter .pull { font-size: 1.28rem; }
  .hero { padding-top: 104px; }
  .eyebrow { font-size: .66rem; letter-spacing: .2em; }
  .faq summary { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
