@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  --cacao: oklch(28% 0.065 70);
  --cacao-deep: oklch(20% 0.045 67);
  --cacao-soft: oklch(38% 0.075 70);
  --honey: oklch(78% 0.15 83);
  --marigold: oklch(85% 0.17 88);
  --milk: oklch(97% 0.025 86);
  --peach: oklch(89% 0.095 78);
  --ink-on-dark: oklch(97% 0.02 86);
  --line-light: color-mix(in oklch, var(--milk) 22%, transparent);
  --line-dark: color-mix(in oklch, var(--cacao) 22%, transparent);
  --font-display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --page: min(1180px, calc(100vw - 48px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-header: 20;
  --z-toast: 40;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cacao);
  background: var(--milk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }

.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; color: var(--cacao); background: var(--marigold); border-radius: 999px; font-weight: 800; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; }

.site-header {
  position: absolute;
  z-index: var(--z-header);
  top: 0;
  left: 50%;
  width: var(--page);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-on-dark);
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: .93rem; font-weight: 700; }
.site-nav > a:not(.nav-buy) { opacity: .78; transition: opacity .2s ease; }
.site-nav > a:not(.nav-buy):hover { opacity: 1; }
.nav-buy { padding: 10px 17px; color: var(--cacao); background: var(--marigold); border-radius: 999px; }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; background: transparent; border: 0; }
.menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .25s var(--ease-out); }

.hero {
  min-height: 790px;
  padding: 148px max(24px, calc((100vw - 1180px) / 2)) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  overflow: hidden;
  color: var(--ink-on-dark);
  background: var(--cacao);
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--honey); font-size: .92rem; font-weight: 800; }
.hero-kicker span { width: 36px; height: 2px; background: currentColor; }
.hero h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(4rem, 8.4vw, 5.9rem); font-weight: 800; }
.hero h1 em { color: var(--marigold); font-style: normal; }
.hero-lede { max-width: 60ch; margin-bottom: 34px; color: color-mix(in oklch, var(--ink-on-dark) 82%, var(--cacao)); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.65; }
.hero-lede strong { color: var(--marigold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .22s var(--ease-out), background-color .22s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--cacao); background: var(--marigold); }
.button-primary:hover { background: var(--honey); }
.button-quiet { color: var(--ink-on-dark); border: 1px solid var(--line-light); }

.coin-stage { position: relative; min-height: 500px; display: grid; place-items: center; perspective: 1200px; }
.coin-orbit { position: absolute; width: min(47vw, 540px); aspect-ratio: 1; border: 1px solid color-mix(in oklch, var(--honey) 32%, transparent); border-radius: 50%; transform: rotateX(68deg) rotateZ(-9deg); }
.coin-orbit::before, .coin-orbit::after { content: ""; position: absolute; border: 1px solid color-mix(in oklch, var(--honey) 18%, transparent); border-radius: 50%; inset: 12%; }
.coin-orbit::after { inset: 26%; }
.coin { position: relative; z-index: 2; width: min(39vw, 420px); aspect-ratio: 1; filter: drop-shadow(0 24px 16px color-mix(in oklch, var(--cacao-deep) 65%, transparent)); transform-style: preserve-3d; animation: coin-flip 7s var(--ease-out) infinite; }
.coin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; backface-visibility: visible; }
.coin-note { position: absolute; right: 0; bottom: 13%; margin: 0; color: var(--honey); font-size: .78rem; font-weight: 800; line-height: 1.35; text-align: right; }
@keyframes coin-flip { 0%, 12% { transform: rotateX(5deg) rotateY(0deg); } 48%, 62% { transform: rotateX(-5deg) rotateY(180deg); } 100% { transform: rotateX(5deg) rotateY(360deg); } }

.contract-band { padding: 24px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--cacao); background: var(--marigold); }
.contract-band p { margin-bottom: 2px; font-size: .8rem; font-weight: 800; }
.contract-band code { font-family: var(--font-body); font-size: clamp(.77rem, 1.6vw, 1rem); font-weight: 700; overflow-wrap: anywhere; }
.copy-button { min-width: 112px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink-on-dark); background: var(--cacao); border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; transition: transform .2s var(--ease-out); }
.copy-button:hover { transform: translateY(-2px); }
.copy-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.story-section { width: var(--page); margin: 0 auto; padding: clamp(90px, 12vw, 160px) 0; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: clamp(70px, 10vw, 150px); }
.story-intro { position: sticky; top: 64px; align-self: start; }
.story-date { margin-bottom: 18px; color: var(--cacao-soft); font-size: .82rem; font-weight: 800; }
.story-intro h2 { margin-bottom: 28px; font-size: clamp(3rem, 5.5vw, 5rem); }
.story-intro > p:not(.story-date) { max-width: 48ch; color: var(--cacao-soft); }
.text-link { display: inline-block; margin-top: 16px; font-weight: 800; text-underline-offset: 5px; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: moments; }
.timeline li { padding: 32px 0; display: grid; grid-template-columns: 100px 1fr; gap: 24px; border-top: 1px solid var(--line-dark); }
.timeline li:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline-age { padding-top: 4px; color: var(--cacao-soft); font-size: .84rem; font-weight: 800; }
.timeline h3 { margin-bottom: 8px; font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.timeline p { max-width: 53ch; margin-bottom: 0; color: var(--cacao-soft); }
.timeline-highlight { position: relative; }
.timeline-highlight::before { content: ""; position: absolute; inset: 12px -22px; z-index: -1; background: var(--peach); border-radius: 14px; transform: rotate(-.7deg); }

.name-reveal { padding: clamp(84px, 12vw, 150px) 24px; overflow: hidden; color: var(--ink-on-dark); background: var(--cacao-deep); text-align: center; }
.name-reveal > p:first-child { margin-bottom: 10px; color: var(--honey); font-weight: 800; }
.name-reveal h2 { margin-bottom: 4px; color: var(--ink-on-dark); font-size: clamp(4rem, 15vw, 12rem); line-height: .82; letter-spacing: -.04em; }
.name-split { width: min(900px, 100%); margin: 22px auto 26px; display: flex; align-items: center; justify-content: center; gap: 3px; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2.3rem); font-weight: 800; }
.name-split span { padding: 6px 18px; }
.name-split span:first-child { color: var(--cacao-deep); background: var(--marigold); border-radius: 999px; }
.name-split span:last-child { color: color-mix(in oklch, var(--ink-on-dark) 45%, var(--cacao-deep)); }
.name-foot { margin-bottom: 0; color: color-mix(in oklch, var(--ink-on-dark) 70%, var(--cacao-deep)); }

.gallery-section { padding: clamp(90px, 12vw, 160px) max(24px, calc((100vw - 1180px) / 2)); color: var(--cacao); background: var(--honey); }
.gallery-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.gallery-heading > div:first-child > p { margin-bottom: 4px; font-weight: 800; }
.gallery-heading h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.4rem); }
.gallery-nav { display: flex; align-items: center; gap: 13px; }
.gallery-nav p { min-width: 60px; margin: 0; text-align: center; font-weight: 800; }
.gallery-nav button { width: 48px; height: 48px; color: var(--ink-on-dark); background: var(--cacao); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: transform .2s var(--ease-out); }
.gallery-nav button:hover { transform: scale(1.06); }
.carousel { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform .7s var(--ease-out); will-change: transform; }
.slide { position: relative; min-width: 100%; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: var(--cacao-soft); border-radius: 14px; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 22px; bottom: 20px; max-width: calc(100% - 44px); padding: 11px 15px; color: var(--cacao); background: var(--marigold); border-radius: 10px; }
.slide figcaption strong, .slide figcaption span { display: block; }
.slide figcaption strong { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.1; }
.slide figcaption span { font-size: .78rem; font-weight: 700; }
.carousel-dots { margin-top: 20px; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; background: color-mix(in oklch, var(--cacao) 25%, transparent); border: 0; border-radius: 50%; cursor: pointer; transition: width .25s var(--ease-out), background .25s ease; }
.carousel-dots button[aria-current="true"] { width: 28px; background: var(--cacao); border-radius: 999px; }
.photo-credit { margin: 20px 0 0; color: var(--cacao-soft); font-size: .8rem; text-align: center; }
.photo-credit a { font-weight: 800; text-underline-offset: 3px; }

.community-section { padding: clamp(90px, 12vw, 160px) max(24px, calc((100vw - 1180px) / 2)); color: var(--ink-on-dark); background: var(--cacao); }
.community-copy { margin-bottom: 70px; display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(30px, 7vw, 100px); align-items: start; }
.community-copy p { color: var(--honey); font-weight: 800; }
.community-copy h2 { max-width: 920px; margin: 0; font-size: clamp(2.8rem, 6.5vw, 5.6rem); }
.community-note { max-width: 68ch; margin: 0 0 46px auto; color: color-mix(in oklch, var(--ink-on-dark) 75%, var(--cacao)); }
.link-list { border-top: 1px solid var(--line-light); }
.link-list a { min-height: 78px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); text-decoration: none; font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 700; transition: padding .25s var(--ease-out), color .25s ease; }
.link-list a:hover { padding-left: 22px; color: var(--marigold); }

.final-cta { padding: clamp(90px, 12vw, 150px) 24px; display: flex; flex-direction: column; align-items: center; color: var(--cacao); background: var(--marigold); text-align: center; }
.final-cta img { width: 128px; margin-bottom: 26px; border-radius: 50%; transform: rotate(-7deg); }
.final-cta p { margin-bottom: 4px; font-weight: 800; }
.final-cta h2 { margin-bottom: 30px; font-size: clamp(3.5rem, 9vw, 6rem); }
.button-dark { color: var(--ink-on-dark); background: var(--cacao); }

footer { min-height: 100px; padding: 24px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink-on-dark); background: var(--cacao-deep); }
footer p { margin: 0; color: color-mix(in oklch, var(--ink-on-dark) 65%, var(--cacao-deep)); font-size: .78rem; }
.brand-footer { color: var(--ink-on-dark); }

.toast { position: fixed; z-index: var(--z-toast); right: 20px; bottom: 20px; padding: 12px 18px; color: var(--cacao); background: var(--marigold); border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .3s var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --page: min(100% - 36px, 720px); }
  .site-header { height: 74px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: 64px; right: 0; width: min(320px, calc(100vw - 36px)); padding: 16px; display: none; align-items: stretch; flex-direction: column; gap: 3px; color: var(--cacao); background: var(--milk); border-radius: 14px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .nav-buy { margin-top: 6px; text-align: center; }
  .hero { min-height: 0; padding-top: 120px; grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(3.9rem, 16vw, 5.5rem); }
  .coin-stage { min-height: 420px; }
  .coin { width: min(78vw, 390px); }
  .coin-orbit { width: min(92vw, 510px); }
  .coin-note { right: 7%; }
  .story-section { grid-template-columns: 1fr; gap: 64px; }
  .story-intro { position: static; }
  .community-copy { grid-template-columns: 1fr; }
  .community-note { margin-left: 0; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 30px); }
  .hero { padding-inline: 15px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 4.3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contract-band { align-items: stretch; flex-direction: column; gap: 15px; }
  .copy-button { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .timeline-highlight::before { inset-inline: -8px; }
  .gallery-section, .community-section { padding-inline: 15px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery-nav { width: 100%; justify-content: space-between; }
  .slide { aspect-ratio: 4 / 5; }
  .slide figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .community-copy { margin-bottom: 42px; }
  .link-list a { min-height: 68px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .coin { transform: rotate(-4deg); }
}
