:root {
  --paper: #fffdf8;
  --ink: #1a1712;
  --gold: #c99a2e;
  --gold-bright: #efc45a;
  --line: rgba(82, 59, 17, .16);
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

 .gateway {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}
.gateway::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0) 0 42%, rgba(218,174,74,.08) 100%);
  pointer-events: none;
}
.gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.36) 48%, transparent 62%);
  transform: translateX(-135%);
  animation: roomShine 7s 1.2s infinite;
  mix-blend-mode: screen;
}
.gateway-glow { display: none; }
.gateway-cat {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.015);
  transform-origin: 51% 44%;
  filter: drop-shadow(0 26px 42px rgba(91,58,10,.12));
  animation: catPresence 5.5s ease-in-out infinite;
  will-change: transform, filter;
  user-select: none;
  -webkit-user-drag: none;
}
.gateway-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,.3) 48%, transparent 61%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  animation: fullShine 6.8s ease-in-out infinite;
}
.meow-button {
  position: absolute;
  left: 50%;
  bottom: max(4.5vh, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%);
  z-index: 7;
  min-width: 210px;
  padding: 17px 46px;
  border-radius: 999px;
  border: 1px solid rgba(151,103,18,.64);
  background: rgba(255,253,247,.9);
  color: #876015;
  box-shadow: 0 16px 44px rgba(94,57,3,.2), inset 0 1px 0 white, 0 0 0 7px rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  font: 600 clamp(20px, 2vw, 28px)/1 Georgia, serif;
  letter-spacing: .28em;
  text-indent: .28em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s ease, background .3s ease;
  animation: buttonPulse 2.6s ease-in-out infinite;
}
.meow-button:hover { transform: translateX(-50%) translateY(-5px) scale(1.04); box-shadow: 0 22px 58px rgba(105,65,5,.28), 0 0 38px rgba(235,185,64,.3); background: #fff; }
.meow-button:active { transform: translateX(-50%) translateY(1px) scale(.96); }
.landing-sound {
  position: absolute;
  right: max(22px, env(safe-area-inset-right));
  top: max(22px, env(safe-area-inset-top));
  z-index: 8;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(154,104,15,.28);
  background: rgba(255,255,255,.68);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sound-wave { width: 3px; border-radius: 9px; background: var(--gold); animation: wave .9s ease-in-out infinite alternate; }
.sound-wave:nth-child(1) { height: 9px; }
.sound-wave:nth-child(2) { height: 19px; animation-delay: -.3s; }
.sound-wave:nth-child(3) { height: 13px; animation-delay: -.6s; }
.landing-sound[aria-pressed="false"] .sound-wave { animation-play-state: paused; height: 3px; }
.gateway-flash { position: absolute; inset: 0; pointer-events: none; background: white; opacity: 0; z-index: 12; }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, white 0 20%, #f5c85b 30% 58%, transparent 70%); animation: burst .9s var(--ease) forwards; }
.gateway.entering .gateway-cat { animation: hyperZoomFull 1.05s var(--ease) forwards; }
.gateway.entering .gateway-shine { opacity: 0; transition: opacity .2s; }
.gateway.entering .meow-button { animation: buttonExit .5s var(--ease) forwards; }
.gateway.entering .gateway-flash { animation: flashIn 1.05s var(--ease) forwards; }
.gateway.gone { display: none; }

.site { opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .8s ease, transform .8s var(--ease); }
.site.visible { opacity: 1; visibility: visible; transform: none; }
.nav { position: sticky; top: 0; z-index: 50; height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 5vw, 76px); background: rgba(255,253,248,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font-family: Georgia, serif; letter-spacing: .14em; color: #946813; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.music-toggle { justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: white; color: #9b701c; cursor: pointer; font-size: 17px; }
.hero { min-height: calc(100svh - 74px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; align-items: center; padding: 8vw clamp(24px, 7vw, 110px); overflow: hidden; }
.eyebrow, .section-number { color: #a27723; font-size: 12px; letter-spacing: .22em; font-weight: 700; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(58px, 8.8vw, 145px); line-height: .88; }
h2 { font-size: clamp(50px, 7.2vw, 112px); line-height: .92; }
.lede, .section-intro, .manifesto > p:last-child { max-width: 650px; font-size: clamp(18px, 2vw, 26px); line-height: 1.55; color: #5d5549; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions a { padding: 15px 23px; border-radius: 999px; text-decoration: none; font-weight: 650; transition: transform .25s, box-shadow .25s; }
.actions a:hover { transform: translateY(-3px); }
.primary { background: #1b1814; color: white; box-shadow: 0 14px 30px rgba(0,0,0,.13); }
.secondary { border: 1px solid var(--line); background: white; }
.coin-stage { position: relative; min-height: 60vh; display: grid; place-items: center; perspective: 900px; }
.coin { position: relative; z-index: 2; width: min(76vw, 650px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 40px 80px rgba(93,58,0,.24); animation: coinHover 6s ease-in-out infinite; transition: transform .6s var(--ease); }
.coin:hover { transform: rotateY(8deg) rotateX(-4deg) scale(1.03); }
.coin-halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(231,183,64,.34), transparent 68%); filter: blur(35px); animation: breathe 4s ease-in-out infinite; }
.exhibit, .manifesto, .trade { padding: clamp(90px, 12vw, 190px) clamp(24px, 8vw, 130px); }
.exhibit { border-top: 1px solid var(--line); }
.exhibit h2 { max-width: 900px; margin: 22px 0 32px; }
.timeline-frame { margin: 72px 0 0; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: white; box-shadow: 0 30px 80px rgba(65,48,19,.08); }
.timeline-frame img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.timeline-frame:hover img { transform: scale(1.018); }
.genesis { min-height: 92svh; display: grid; place-items: center; align-content: center; gap: 24px; padding: 100px 24px; background: #15120e; color: #f5ead0; }
.genesis-label { color: #d2a946; letter-spacing: .25em; font-size: 12px; }
.genesis-card { width: min(880px, 100%); padding: clamp(34px, 6vw, 80px); border: 1px solid rgba(235,192,91,.3); background: radial-gradient(circle at 50% 0, rgba(205,151,40,.11), transparent 45%); box-shadow: inset 0 0 70px rgba(0,0,0,.3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: #a89c87; }
blockquote { margin: 50px 0 0; font: 400 clamp(26px, 4vw, 56px)/1.35 Georgia, serif; }
blockquote span { color: #e6bd59; }
.manifesto { min-height: 85svh; display: flex; flex-direction: column; justify-content: center; }
.manifesto h2 { margin: 24px 0 36px; }
.trade { text-align: center; background: linear-gradient(#fffdf8, #f8ecd0); }
.trade h2 { margin: 24px 0 55px; }
.contract-card { width: min(920px, 100%); margin: 0 auto; padding: 28px; display: grid; gap: 16px; border: 1px solid rgba(139,97,21,.25); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 24px 70px rgba(94,60,8,.09); }
.contract-label { color: #9b7325; font-size: 11px; letter-spacing: .2em; }
.contract-card code { overflow-wrap: anywhere; font-size: clamp(14px, 2vw, 20px); }
.contract-card button { justify-self: center; border: 0; border-radius: 999px; padding: 13px 26px; background: #1b1814; color: white; cursor: pointer; font-weight: 700; }
.trade-links { display: flex; justify-content: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.trade-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
footer { display: flex; justify-content: space-between; padding: 30px clamp(24px, 7vw, 110px); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .16em; }
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes catPresence { 0%,100% { transform: scale(1.015); } 50% { transform: scale(1.025); } }
@keyframes fullShine { 0%,22% { transform: translateX(-120%); opacity: 0; } 38% { opacity: .75; } 62%,100% { transform: translateX(120%); opacity: 0; } }
@keyframes roomShine { 0%,60% { transform: translateX(-130%); } 90%,100% { transform: translateX(130%); } }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(.92); opacity: .62; } 50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; } }
@keyframes buttonPulse { 0%,100% { box-shadow: 0 13px 40px rgba(124,79,5,.16), 0 0 0 0 rgba(215,161,38,.1); } 50% { box-shadow: 0 18px 48px rgba(124,79,5,.22), 0 0 0 12px rgba(215,161,38,0); } }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1.1); } }
@keyframes burst { 0% { opacity: 0; transform: translate(0,0) scale(.2); } 22% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.8); } }
@keyframes hyperZoomFull { 0% { transform: scale(1.015); filter: drop-shadow(0 26px 42px rgba(91,58,10,.12)); } 48% { transform: scale(1.12); } 100% { transform: scale(4.8); filter: blur(2px) brightness(1.13); } }
@keyframes buttonExit { to { opacity: 0; transform: translateX(-50%) scale(.4); } }
@keyframes flashIn { 0%,42% { opacity: 0; } 68% { opacity: 1; } 100% { opacity: 1; } }
@keyframes coinHover { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

@media (max-width: 900px) {
  .gateway-cat { object-position: 50% 50%; }
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .coin-stage { min-height: 48vh; }
  .coin { width: min(82vw, 520px); }
}
@media (max-width: 560px) {
  .gateway-cat { object-position: 50% 50%; }
  .meow-button { min-width: 160px; padding: 14px 30px; bottom: max(3vh, calc(env(safe-area-inset-bottom) + 14px)); }
  .hero { min-height: auto; }
  h1 { font-size: clamp(52px, 16vw, 78px); }
  footer { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
