:root {
  --night: #140D0A;
  --night-2: #1C130F;
  --wood: #2A1B14;
  --wood-2: #36241B;
  --line: rgba(243, 230, 207, .12);
  --ink: #F3E6CF;
  --ink-soft: #CDBBA2;
  --muted: #9C876F;
  --brass: #E8B04E;
  --brass-hi: #F5CD82;
  --pink: #FF6B95;
  --pink-hi: #FF9DBA;
  --teal: #6FCFB9;
  --discord: #5865F2;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6;
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(255, 190, 110, .10), transparent 60%), radial-gradient(900px 500px at 0% 40%, rgba(255, 107, 149, .05), transparent 60%);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
a:hover { color: #fff3d9; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h1 em, h2 em { font-style: normal; color: var(--pink-hi); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass-hi); color: #2A1A08; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-hi); }
.ico { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0;
  font: 600 16px/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-play { background: linear-gradient(180deg, #F7D68E, #E3A94A); color: #2A1A08; box-shadow: 0 5px 0 #9A6A1E, 0 14px 30px rgba(232, 176, 78, .25); }
.btn-play:hover { color: #2A1A08; box-shadow: 0 5px 0 #9A6A1E, 0 18px 40px rgba(232, 176, 78, .38); }
.btn-play small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.btn-ghost { background: rgba(243, 230, 207, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(243, 230, 207, .12); color: var(--ink); }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 5px 0 #3A43B5; }
.btn-discord.sm { box-shadow: 0 3px 0 #3A43B5; }
.btn-discord:hover { color: #fff; background: #6874F5; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
  background: rgba(20, 13, 10, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 21px; margin-right: auto; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--brass-hi); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 120px; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon { position: absolute; top: 60px; right: 8%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #FFF6DA, #F2DDA4 60%, #D9BC79); box-shadow: 0 0 60px 20px rgba(255, 230, 170, .16), 0 0 140px 60px rgba(255, 230, 170, .08); }
.motes { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #F5CD82 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #FFE9C2 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 14%, #F5CD82 50%, transparent 51%), radial-gradient(1px 1px at 63% 80%, #FFE9C2 50%, transparent 51%), radial-gradient(1.5px 1.5px at 82% 40%, #F5CD82 50%, transparent 51%), radial-gradient(1px 1px at 92% 74%, #FFE9C2 50%, transparent 51%), radial-gradient(1px 1px at 6% 86%, #F5CD82 50%, transparent 51%); opacity: .7; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 20px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.hero-phones { position: relative; height: min(640px, 78vw); }
.hero-phones .phone { position: absolute; width: min(300px, 46%); }
.hero-phones .front { left: 30%; top: 0; transform: rotate(3deg); z-index: 2; animation: bob 7s ease-in-out infinite; }
.hero-phones .back { left: 4%; top: 70px; transform: rotate(-7deg); opacity: .9; filter: saturate(.9) brightness(.85); animation: bob 8s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.spines { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: repeating-linear-gradient(90deg, #8C1D18 0 26px, #1B5E20 26px 44px, #E8B04E 44px 66px, #311B92 66px 86px, #B0174F 86px 112px, #00695C 112px 128px, #F57F17 128px 152px, #4A148C 152px 170px, #263238 170px 196px, #C62828 196px 214px); mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); opacity: .55; }
.spines::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #4A2F1E; box-shadow: 0 -3px 0 #6B4428; }

/* Phone frames */
.phone { margin: 0; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #3A2A20, #1A110D); box-shadow: 0 0 0 1px rgba(255, 220, 170, .14), 0 30px 60px rgba(0, 0, 0, .55), 0 0 80px rgba(255, 190, 110, .06); }
.phone img, .phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #0E0907; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -40px; position: relative; z-index: 2; }
.stats div { background: linear-gradient(180deg, var(--wood-2), var(--wood)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; box-shadow: 0 6px 0 #120B08; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); color: var(--brass-hi); line-height: 1; }
.stats span { font-size: 14px; color: var(--ink-soft); }

/* Sections */
section { scroll-margin-top: 80px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head p:not(.eyebrow) { color: var(--ink-soft); margin: 14px 0 0; }
.features { padding: 110px 20px 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin: 0 auto 90px; max-width: 940px; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.feature.flip .phone { order: 2; }
.feature .phone { transform: rotate(-2deg); }
.feature.flip .phone { transform: rotate(2deg); }
.feature p { color: var(--ink-soft); margin: 14px 0 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 4px #3A0A18; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: linear-gradient(180deg, var(--wood-2), var(--wood)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 0 #120B08; transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(245, 205, 130, .12); color: var(--brass-hi); margin-bottom: 14px; }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 8px 0 0; }

/* Ticker */
.ticker { overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); background: rgba(0, 0, 0, .18); margin: 60px 0 0; }
.track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.book { display: flex; align-items: center; height: 54px; padding: 0 18px; border-radius: 6px 10px 10px 6px; font-family: var(--display); font-size: 18px; white-space: nowrap; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .25), 0 4px 0 rgba(0, 0, 0, .35); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Gallery */
.gallery { padding: 100px 0 40px; }
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; padding: 10px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 40px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: none; width: min(250px, 66vw); scroll-snap-align: center; }
.rail button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.rail button:focus-visible .phone { outline: 2px solid var(--brass-hi); outline-offset: 4px; }
.rail .cap { margin: 14px 4px 0; font-size: 15px; color: var(--ink-soft); text-align: center; }
.rail .cap b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); }
.rail-btn { position: absolute; top: 40%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(28, 19, 15, .9); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.rail-btn:hover { background: var(--wood-2); }
.rail-btn.prev { left: 14px; }
.rail-btn.next { right: 14px; }

/* Watch */
.watch { padding: 90px 20px 40px; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 320px); justify-content: center; gap: 28px; }
.watch-grid.has-clips { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clips figure { margin: 0; }
.clips .phone { padding: 6px; border-radius: 24px; }
.clips .phone video { border-radius: 19px; }
.clips figcaption { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* Join */
.join { padding: 90px 20px; }
.join-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 52px); border-radius: 28px; background: radial-gradient(500px 260px at 15% 0%, rgba(255, 107, 149, .18), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(88, 101, 242, .22), transparent 70%), linear-gradient(180deg, var(--wood-2), var(--wood)); border: 1px solid var(--line); box-shadow: 0 8px 0 #120B08; }
.join-card p { color: var(--ink-soft); max-width: 36em; margin: 12px 0 0; }
.join-card .btn { flex: none; }

/* FAQ */
.faq { padding: 30px 20px 100px; max-width: 780px; }
details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); margin-bottom: 12px; }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 24px; color: var(--brass-hi); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #0F0907; padding: 40px 0 50px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 10px; }
.foot-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.foot-brand span { font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.foot nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--brass-hi); }
.fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 6, 4, .88); }
.lightbox[open] { display: grid; place-items: center; align-content: center; gap: 12px; }
.lightbox img { max-height: 82dvh; width: auto; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 220, 170, .2); }
.lb-cap { color: var(--ink-soft); margin: 0; text-align: center; padding: 0 20px; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--wood); color: var(--ink); font-size: 28px; cursor: pointer; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Steam from a teacup by the phones */
.steam { position: absolute; right: 4%; bottom: 150px; width: 70px; height: 54px; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, #F3E6CF, #CDBBA2); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), 0 10px 20px rgba(0, 0, 0, .4); z-index: 3; }
.steam::before { content: ''; position: absolute; right: -16px; top: 10px; width: 20px; height: 24px; border: 6px solid #E2D2B8; border-left: 0; border-radius: 0 14px 14px 0; }
.steam::after { content: ''; position: absolute; left: 50%; top: -70px; width: 26px; height: 64px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 245, 225, .35), transparent); filter: blur(4px); animation: steam 3.5s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(16px) scaleX(.8); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px) scaleX(1.3); } }

/* Responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-phones { height: 520px; max-width: 420px; margin: 10px auto 0; width: 100%; }
  .hero-phones .phone { width: 58%; }
  .hero-phones .front { left: 34%; }
  .hero-phones .back { left: 4%; }
  .moon { width: 52px; height: 52px; top: 14px; right: 4%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 28px; }
  .feature .phone { max-width: 260px; margin: 0 auto; order: 0 !important; }
  .ticks { justify-items: center; }
  .ticks li { text-align: left; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-grid.has-clips { grid-template-columns: minmax(0, 1fr); }
  .watch-grid .phone.video { max-width: 320px; margin: 0 auto; width: 100%; }
  .join-card { flex-direction: column; text-align: center; }
  .rail-btn { display: none; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .foot-brand { justify-content: center; }
  .foot nav { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .moon { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-phones { height: 440px; }
  .steam { width: 54px; height: 42px; right: 2%; bottom: 20px; }
  .btn { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
