:root {
  --paper: #f6f1e4;
  --paper-2: #fffaf0;
  --ink: #183b3a;
  --muted: #607572;
  --mint: #4d9f86;
  --mint-dark: #286b5f;
  --teal: #0d7774;
  --gold: #cf9b49;
  --coral: #e7795f;
  --sky: #bfe8e4;
  --line: rgba(24, 59, 58, 0.16);
  --shadow: 0 20px 50px rgba(20, 72, 66, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22; background-image: radial-gradient(rgba(24,59,58,.18) .55px, transparent .55px); background-size: 8px 8px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-pad { padding-left: clamp(20px, 5vw, 76px); padding-right: clamp(20px, 5vw, 76px); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 74px; padding: 0 clamp(20px, 4vw, 60px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.is-scrolled { background: rgba(246,241,228,.9); border-color: var(--line); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 700; font-size: 1.02rem; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #2b7675; }
.mark img { width: 76%; height: 76%; max-width: none; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: .84rem; font-weight: 600; }
.desktop-nav a, .site-footer nav a { position: relative; }
.desktop-nav a::after, .site-footer nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--ink); transition: right .2s; }
.desktop-nav a:hover::after, .site-footer nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,250,240,.45); transition: transform .2s ease, background .2s ease; }
.icon-link:hover { background: #fffaf0; transform: translateY(-2px); }
.social-icon { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.telegram-icon { width: 16px; height: 16px; }
.social-cta { display: inline-flex; align-items: center; gap: 9px; }
.menu-button { display: none; width: 40px; height: 40px; padding: 0 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 6px 0; background: var(--ink); transition: transform .2s; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: min(940px, 100svh); padding-top: 112px; padding-bottom: 30px; display: grid; grid-template-columns: minmax(460px, .95fr) minmax(520px, 1.25fr); gap: clamp(26px, 4vw, 64px); align-items: center; overflow: hidden; background: var(--sky); }
.hero-copy { position: relative; z-index: 2; padding-left: clamp(0px, 2vw, 34px); }
.kicker { margin: 0 0 14px; color: var(--teal); text-transform: uppercase; font-size: .72rem; line-height: 1; font-weight: 700; letter-spacing: .16em; }
h1, h2 { margin: 0; font-family: "Fraunces", serif; letter-spacing: 0; }
h1 { font-size: clamp(3.2rem, 6.15vw, 7.3rem); line-height: .88; white-space: nowrap; }
h2 { font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: .95; }
.hero-line { max-width: 520px; margin: 28px 0 30px; color: #355f5c; font-size: clamp(1rem, 1.35vw, 1.24rem); line-height: 1.7; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 3px; font-size: .84rem; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--paper-2); background: var(--ink); }
.hero-art { position: relative; align-self: stretch; min-height: 620px; margin-right: max(-76px, -5vw); overflow: hidden; }
.hero-art img, .hero-art video { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-art.hero-video { width: auto; min-height: 0; margin-left: 0; margin-right: max(-76px, -5vw); align-self: center; aspect-ratio: 16 / 9; box-shadow: none; background: #153c3a; }
.hero-art.hero-video video { object-fit: contain; object-position: center; }
.hero-video .video-play { background: rgba(10,48,46,.12); }
.hero-video .video-play span { width: 72px; height: 72px; }
.hero-stamp { position: absolute; left: 24px; bottom: 24px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.55); background: rgba(19,61,58,.8); color: white; backdrop-filter: blur(10px); transition: opacity .24s ease, transform .24s ease; }
.hero-stamp.is-transitioning { opacity: 0; transform: translateY(8px); }
.hero-stamp span, .hero-stamp strong, .hero-stamp small { display: block; }
.hero-stamp span { margin-bottom: 4px; color: #bfe8e4; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-stamp strong { font-size: .88rem; }
.hero-stamp small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .7rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(24,59,58,.35); border-radius: 50%; animation: bob 1.8s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.trailer { padding-top: 130px; padding-bottom: 140px; background: var(--paper-2); }
.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading > p:last-child { max-width: 620px; margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.section-heading.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.video-shell { position: relative; width: min(1240px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #123331; box-shadow: var(--shadow); }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-content: center; gap: 12px; color: white; background: rgba(10,48,46,.18); cursor: pointer; transition: opacity .25s; }
.video-play span { display: grid; place-items: center; width: 82px; height: 82px; margin: auto; padding-left: 5px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(19,59,56,.55); backdrop-filter: blur(10px); font-size: 1.35rem; }
.video-play small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.video-shell.is-playing .video-play { opacity: 0; pointer-events: none; }
.video-controls { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.icon-control { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.6); color: white; background: rgba(17,52,50,.72); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.icon-control:hover { background: rgba(24,82,77,.9); transform: translateY(-1px); }
.icon-control > span:first-child { font-size: 1.5rem; line-height: 1; }
.sound-icon { position: relative; display: block; width: 20px; height: 20px; }
.sound-icon::before { content: ""; position: absolute; left: 1px; top: 7px; width: 6px; height: 7px; background: currentColor; }
.sound-icon::after { content: ""; position: absolute; left: 6px; top: 4px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 8px solid currentColor; }
.sound-icon { border-right: 2px solid currentColor; border-radius: 0 12px 12px 0; }
.icon-control.is-muted .sound-icon { opacity: .5; }
.icon-control.is-muted .sound-icon::before { transform: rotate(-45deg); }

.world { padding-top: 130px; padding-bottom: 130px; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(38px, 7vw, 120px); background: #d9ebe1; }
.world-copy { align-self: center; }
.world-copy h2 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.world-copy > p:not(.kicker) { color: #4c6662; line-height: 1.75; }
.world-image { margin: 0; }
.world-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.world-image figcaption { margin-top: 10px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.world-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(24,59,58,.22); }
.world-notes article { padding: 28px clamp(14px, 3vw, 44px) 0 0; }
.world-notes article + article { padding-left: clamp(14px, 3vw, 44px); border-left: 1px solid rgba(24,59,58,.22); }
.world-notes span { color: var(--coral); font-weight: 700; }
.world-notes h3 { margin: 16px 0 8px; font-family: "Fraunces", serif; font-size: 1.65rem; }
.world-notes p { margin: 0; color: var(--muted); line-height: 1.6; }

.citizens { position: relative; padding-top: 130px; padding-bottom: 130px; overflow: hidden; background: #f4e9c8; }
.citizens::before { content: "CHARACTERS"; position: absolute; right: -15px; top: 48px; color: rgba(24,59,58,.06); font-family: "Fraunces", serif; font-size: clamp(5rem, 13vw, 13rem); font-weight: 700; }
.character-stage { position: relative; margin-top: 24px; background: var(--paper-2); box-shadow: var(--shadow); }
.character-stage img { width: 100%; aspect-ratio: 2.02 / 1; object-fit: cover; }
.character-labels { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.character-labels span { padding: 14px; text-align: center; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.character-labels span + span { border-left: 1px solid var(--line); }
.character-callout { width: min(460px, 90%); margin: 28px 0 0 auto; position: relative; padding: 24px 28px; color: white; background: var(--ink); }
.character-callout span { color: #9ddbd0; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.character-callout strong { float: right; color: #f3c876; }
.character-callout p { margin: 15px 0 0; line-height: 1.5; }

.token { min-height: 760px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 8vw, 130px); padding-top: 100px; padding-bottom: 100px; background: #163f3d; color: #fffaf0; }
.token-symbol { height: min(650px, 70vw); overflow: hidden; border-radius: 50% 50% 8px 8px; }
.token-symbol img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.token-copy .kicker { color: #9ad9ca; }
.token-copy h2 { color: #f4ce79; font-size: clamp(3.8rem, 8vw, 8rem); }
.token-copy > p { max-width: 570px; color: #c8d9d4; line-height: 1.7; }
.contract { margin-top: 32px; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; border: 1px solid rgba(255,255,255,.25); }
.contract span { grid-column: 1 / -1; color: #9ad9ca; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; }
.contract code { align-self: center; overflow: hidden; color: #fffaf0; text-overflow: ellipsis; font-family: monospace; }
.contract button { border: 0; padding: 8px 12px; color: #163f3d; background: #f4ce79; font-size: .72rem; font-weight: 700; }
.fine-print { font-size: .74rem; }

.shop { padding-top: 130px; padding-bottom: 140px; background: var(--paper-2); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { min-width: 0; }
.product-image { position: relative; overflow: hidden; background: #e5eadf; }
.product-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; background: var(--paper-2); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.product-card > p { margin: 15px 0 6px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.product-card > div:last-child { display: flex; justify-content: space-between; gap: 12px; }
.product-card h3 { margin: 0; font-size: 1.1rem; }
.product-card > div:last-child span { white-space: nowrap; }

.join { position: relative; min-height: 650px; display: grid; place-items: center; text-align: center; overflow: hidden; color: white; }
.join > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.58) saturate(.9); }
.join > div { position: relative; z-index: 1; max-width: 760px; }
.join .kicker { color: #b8eee2; }
.join p:not(.kicker) { max-width: 590px; margin: 22px auto; line-height: 1.7; }
.join-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.light { border-color: white; background: white; color: var(--ink); }
.ghost { border-color: rgba(255,255,255,.65); color: white; }

.site-footer { padding-top: 56px; padding-bottom: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; background: #102f2e; color: #f7f0df; }
.site-footer p { grid-column: 1; margin: 0; color: #9fbbb6; }
.site-footer nav { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 24px; font-size: .8rem; }
.site-footer small { grid-column: 1 / -1; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #789793; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Product detail */
.product-page { background: var(--paper-2); }
.product-detail { min-height: 100svh; padding-top: 112px; padding-bottom: 90px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e8eadf; }
.product-gallery img:first-child { grid-column: 1 / -1; }
.product-info { position: sticky; top: 110px; }
.product-info h1 { margin-top: 12px; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .9; }
.product-price { margin: 22px 0; font-size: 1.25rem; }
.product-description { color: var(--muted); line-height: 1.75; }
.product-status { margin: 28px 0 12px; padding: 16px; border: 1px solid var(--line); background: #edf2e9; }
.wide { width: 100%; }
.product-meta { margin-top: 28px; border-top: 1px solid var(--line); }
.product-meta details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.product-meta summary { cursor: pointer; font-weight: 700; }
.product-meta p { color: var(--muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 118px; }
  .hero-copy { padding: 0 0 10px; }
  .hero-art { min-height: 52svh; margin: 0 max(-76px, -5vw); }
  .hero-art.hero-video { margin-left: max(-76px, -5vw); margin-right: max(-76px, -5vw); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open .menu-button span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.menu-open .menu-button span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 74px; left: 0; right: 0; padding: 20px; display: none; flex-direction: column; gap: 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .mobile-menu { display: flex; }
  .scroll-cue { display: none; }
  .world { grid-template-columns: 1fr; }
  .world-notes { grid-template-columns: 1fr; }
  .world-notes article + article { padding-left: 0; border-left: 0; }
  .world-notes article { padding: 24px 0; border-bottom: 1px solid rgba(24,59,58,.22); }
  .token { grid-template-columns: 1fr; }
  .token-symbol { height: 560px; }
  .product-detail { grid-template-columns: 1fr; }
  .product-info { position: static; }
}

@media (max-width: 620px) {
  .icon-link { display: none; }
  .hero { min-height: auto; padding-bottom: 0; }
  h1 { font-size: clamp(2.4rem, 13vw, 4rem); white-space: nowrap; }
  .hero-art { min-height: 430px; }
  .trailer, .world, .citizens, .shop { padding-top: 88px; padding-bottom: 88px; }
  .video-play span { width: 64px; height: 64px; }
  .character-labels { display: none; }
  .character-callout { margin-top: 0; width: 100%; }
  .token { padding-top: 74px; padding-bottom: 74px; }
  .token-symbol { height: 460px; }
  .contract { grid-template-columns: 1fr; }
  .contract button { justify-self: start; }
  .section-heading.row { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .join { min-height: 560px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery img:first-child { grid-column: auto; }
}

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