/* RoasTarot landing — gold on deep plum. Motion lives in landing.js (GSAP). */
:root {
  --night: #0c0710;
  --wine: #190d1b;
  --plum: #251234;
  --violet: #6f3ba0;
  --gold: #e7bd50;
  --gold-soft: #f7dd89;
  --cream: #fff8eb;
  --muted: #c9bdcc;
  --dim: #9f92a3;
  --line: #6c50634f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --header-h: 84px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.has-smoother { scroll-behavior: auto; }
body { margin: 0; background: var(--night); color: var(--cream); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: #e7bd5055; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 4%, #4d1e7038, transparent 32rem),
    radial-gradient(circle at 0 32%, #7c4b1530, transparent 30rem),
    radial-gradient(circle at 100% 70%, #4d1e7026, transparent 34rem),
    var(--night);
}
main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.anchor-top { position: absolute; top: 0; }

/* ---------- Header: fixed, glass once scrolled, hides on scroll down ---------- */
.scroll-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 10px #e7bd50aa; transform: scaleX(0); transform-origin: left; }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; transition: transform .45s var(--ease-out), background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: #0c0710c4; border-bottom-color: #8c6d7b40; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { width: min(1180px, calc(100% - 48px)); height: var(--header-h); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 176px; display: block; }
.brand img { display: block; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; color: #d7cad7; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-links .nav-cta { padding: 11px 18px; border: 1px solid #9b7540; border-radius: 999px; color: var(--gold-soft); background: #1a0e20aa; transition: background .3s, box-shadow .3s, color .3s; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--night); box-shadow: 0 0 24px #e7bd5066; }

/* ---------- Type ---------- */
section { padding: 120px 0; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { margin-right: 8px; }
h1, h2, h3, blockquote { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; text-wrap: balance; }
h1 { max-width: 800px; font-size: clamp(3.4rem, 5.1vw, 5.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.6rem, 4.8vw, 5rem); letter-spacing: -.02em; }
h1 em, h2 em { color: var(--gold-soft); font-style: normal; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lede { max-width: 600px; margin: 26px 0; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.section-heading { max-width: 820px; }
.centered { margin-inline: auto; text-align: center; }
.centered > p:last-child { max-width: 640px; margin: 25px auto 0; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { min-height: min(900px, 100svh); display: grid; grid-template-columns: 1.07fr .93fr; gap: 40px; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; position: relative; isolation: isolate; }
.hero-glow { --mx: 70%; --my: 45%; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; opacity: 0; background: radial-gradient(620px circle at var(--mx) var(--my), #b07cff3d, #6f3ba01f 42%, transparent 70%); transition: opacity .7s var(--ease-out); }
.hero.is-lit .hero-glow { opacity: 1; }
.hero::before { position: absolute; top: 14%; left: -38%; width: 620px; aspect-ratio: 1; border: 1px solid #d3b2721f; border-radius: 50%; box-shadow: 0 0 0 90px #d3b2720a, 0 0 0 180px #d3b27208; content: ""; pointer-events: none; animation: heroPulse 7s ease-in-out infinite; }
.hero::after { position: absolute; z-index: -1; top: 6%; right: -12%; width: 760px; aspect-ratio: 1; border-radius: 50%; content: ""; pointer-events: none; background: radial-gradient(circle, #6f3ba040 0, #6f3ba01f 38%, transparent 72%); animation: glowFloat 9s ease-in-out infinite alternate; }
.hero-stars { position: absolute; z-index: -1; inset: 0 -10%; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff8eb 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #f7dd89 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 14%, #fff8eb 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, #f7dd89 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 34%, #fff8eb 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 58%, #f7dd89 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 86%, #fff8eb 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 48%, #fff8eb 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate; }
.hero-copy { position: relative; z-index: 2; }
.hero-charms { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.charm { position: absolute; color: #dcb85180; filter: drop-shadow(0 0 8px #7b4380); animation: charmFloat 6s ease-in-out infinite; }
.charm svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; }
.charm-crescent svg, .charm-star svg { fill: currentColor; stroke: none; }
.charm-eye { top: 16%; left: 50%; width: 44px; }
.charm-crescent { top: 14%; right: 0; width: 42px; animation-delay: -1.8s; }
.charm-ankh { right: 43%; bottom: 6%; width: 35px; height: 48px; animation-delay: -3.2s; }
.charm-star { right: -1%; bottom: 18%; width: 30px; animation-delay: -4.6s; }
.hero-note { margin: 17px 0 0; color: #8f8292; font-size: .78rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { position: relative; overflow: hidden; min-width: 166px; display: grid; grid-template: auto auto / 30px auto; padding: 9px 14px; border: 1px solid #b8873e; border-radius: 12px; background: #110b15e8; box-shadow: 0 12px 30px #0008; transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s; }
.store-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #f7dd8933 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease-out); pointer-events: none; }
.store-badge i { grid-row: 1 / 3; align-self: center; font-size: 1.75rem; font-style: normal; line-height: 1; }
.store-badge i:not(.play):not(.apkpure) { width: 22px; height: 26px; background: var(--cream); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.7 2.2-4 2.3-4.1-1.3-1.9-3.3-2.1-4-2.1-1.7-.2-3.3 1-4.2 1-.9 0-2.2-1-3.6-.9-1.9 0-3.6 1.1-4.5 2.7-1.9 3.4-.5 8.3 1.4 11 .9 1.3 2 2.8 3.4 2.7 1.4-.1 1.9-.9 3.5-.9s2.1.9 3.5.9c1.5 0 2.4-1.3 3.3-2.7 1-1.5 1.5-3 1.5-3.1-.1 0-2.9-1.1-2.9-4.4ZM13.7 4.6c.8-.9 1.3-2.2 1.1-3.5-1.1.1-2.4.7-3.2 1.6-.7.8-1.3 2.1-1.2 3.4 1.3.1 2.5-.6 3.3-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.7 2.2-4 2.3-4.1-1.3-1.9-3.3-2.1-4-2.1-1.7-.2-3.3 1-4.2 1-.9 0-2.2-1-3.6-.9-1.9 0-3.6 1.1-4.5 2.7-1.9 3.4-.5 8.3 1.4 11 .9 1.3 2 2.8 3.4 2.7 1.4-.1 1.9-.9 3.5-.9s2.1.9 3.5.9c1.5 0 2.4-1.3 3.3-2.7 1-1.5 1.5-3 1.5-3.1-.1 0-2.9-1.1-2.9-4.4ZM13.7 4.6c.8-.9 1.3-2.2 1.1-3.5-1.1.1-2.4.7-3.2 1.6-.7.8-1.3 2.1-1.2 3.4 1.3.1 2.5-.6 3.3-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.store-badge small { color: #c0b4c2; font-size: .75rem; letter-spacing: .02em; }
.store-badge strong { font-size: .98rem; line-height: 1.1; }
.store-badge .play { width: 0; height: 0; margin-left: 4px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 19px solid var(--gold); filter: drop-shadow(0 0 5px #7e3ba7); }
.store-badge .apkpure { display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #24cd77; border-radius: 6px; color: #24cd77; font: 700 14px/1 var(--sans); }

.oracle { --mx: 50%; --my: 40%; min-height: 610px; position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid #8c6839; border-radius: 260px 260px 20px 20px; background: #1c0d27 url("assets/email-ornament.webp") center top / 100% auto no-repeat; box-shadow: inset 0 0 100px #050207, 0 36px 80px #0009; isolation: isolate; }
.oracle::before, .oracle::after { position: absolute; border: 1px solid #d9b95a57; border-radius: 50%; content: ""; pointer-events: none; }
.oracle::before { width: 78%; aspect-ratio: 1; animation: orbit 20s linear infinite; }
.oracle::after { width: 57%; aspect-ratio: 1; border-style: dashed; animation: orbit 14s linear infinite reverse; }
.oracle-glow { position: absolute; z-index: 1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(320px circle at var(--mx) var(--my), #b07cff2e, transparent 60%); }
.oracle-label { position: absolute; z-index: 4; right: -1px; bottom: -1px; left: -1px; display: flex; justify-content: space-between; padding: 13px 20px; border: 1px solid #8c6839; border-radius: 0 0 20px 20px; background: #0a060d; color: #a89bab; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.oracle-label span:first-child { color: var(--gold); }
.card-fan { width: 94%; height: 450px; position: relative; z-index: 5; }
.tarot-card { width: 42%; position: absolute; bottom: 20px; outline: none; transform-origin: 50% 100%; transition: transform .48s var(--ease-out); cursor: pointer; }
.tarot-card picture { display: block; }
.tarot-card img { display: block; width: 100%; height: auto; border-radius: 5%; filter: drop-shadow(0 20px 22px #000c); transition: filter .35s; will-change: transform; }
.tarot-card:nth-child(1) { left: 6%; z-index: 1; transform: rotate(-20deg); }
.tarot-card:nth-child(2) { left: 29%; z-index: 3; transform: translateY(-28px); }
.tarot-card:nth-child(3) { right: -1%; z-index: 2; transform: rotate(20deg); }
.tarot-card:nth-child(1):hover, .tarot-card:nth-child(1):focus-visible { z-index: 5; transform: translate(-16px, -30px) rotate(-26deg); }
.tarot-card:nth-child(2):hover, .tarot-card:nth-child(2):focus-visible { z-index: 5; transform: translateY(-62px) scale(1.045); }
.tarot-card:nth-child(3):hover, .tarot-card:nth-child(3):focus-visible { z-index: 5; transform: translate(16px, -30px) rotate(26deg); }
.tarot-card:hover img, .tarot-card:focus-visible img { filter: drop-shadow(0 30px 30px #000e) drop-shadow(0 0 18px #8d4bc788) brightness(1.08); }
.tarot-card:focus-visible img { outline: 2px solid var(--gold-soft); outline-offset: 5px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; margin-inline: calc(50% - 50vw); padding: 22px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, #160c1a, #251234 50%, #160c1a); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 34px; animation: marquee 38s linear infinite; }
.motion .marquee-track { animation: none; }
.marquee span { color: var(--cream); font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: .9rem; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin-top: 70px; border-block: 1px solid var(--line); }
.fact { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 25px 30px; border-right: 1px solid var(--line); transition: background .4s; }
.fact:last-child { border-right: 0; }
.fact strong { color: var(--gold-soft); font: 400 clamp(2.6rem, 4.6vw, 4.5rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.fact span { margin-top: 8px; color: #aa9daf; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Barnaby ---------- */
.manifesto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.manifesto-art { min-height: 650px; position: relative; overflow: hidden; padding: 26px; border: 1px solid #91723d; border-radius: 250px 250px 10px 10px; background: #1d1120; }
.manifesto-art::before { position: absolute; inset: 12px; z-index: 1; border: 1px solid #f0d67d44; border-radius: inherit; content: ""; pointer-events: none; }
.manifesto-art img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; border-radius: inherit; object-fit: cover; filter: saturate(.85) contrast(1.08); }
.manifesto-art::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 50%, #0b060ed9); content: ""; }
.art-index { position: absolute; right: 28px; bottom: 18px; z-index: 2; color: var(--gold); font: 2rem var(--serif); }
.manifesto-copy > p:not(.eyebrow) { max-width: 590px; margin: 28px 0; color: var(--muted); font-size: 1.06rem; }
.manifesto-copy blockquote { max-width: 610px; padding: 24px 0 24px 28px; border-left: 1px solid var(--gold); color: var(--cream); font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
.signature { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.signature img { width: 52px; aspect-ratio: 1; border: 1px solid #b28c49; border-radius: 50%; }
.signature span { display: flex; flex-direction: column; }
.signature b { color: var(--gold-soft); font-family: var(--serif); font-size: 1.05rem; }
.signature small { color: #998c9b; }

/* ---------- Reading flow ---------- */
.journey { border-top: 1px solid var(--line); }
.journey-grid { position: relative; margin-top: 64px; border-top: 1px solid #6f5269; }
.journey-card { min-height: 175px; display: grid; grid-template-columns: 140px 1fr; gap: 38px; align-items: center; border-bottom: 1px solid #6f5269; transition: background .4s; }
.journey-card > div, .step-number, .journey-card h3 { transition: transform .4s var(--ease-out), color .3s, text-shadow .3s, opacity .45s; }
.step-number { color: var(--gold); font: 400 clamp(3.2rem, 5.4vw, 5.7rem)/1 var(--serif); letter-spacing: -.04em; }
.journey-card h3 { color: var(--cream); font-size: clamp(1.7rem, 3vw, 2.7rem); }
.journey-card p { max-width: 640px; margin: 10px 0 0; color: var(--muted); }
.journey-thread { position: absolute; top: -1px; bottom: -1px; left: -22px; width: 2px; background: linear-gradient(var(--gold-soft), var(--gold)); box-shadow: 0 0 14px #e7bd5088; transform-origin: top; pointer-events: none; }
.motion .step-number { opacity: .4; }
.journey-card.is-active .step-number { opacity: 1; color: var(--gold-soft); text-shadow: 0 0 24px #e7bd5066; }
.journey-card.is-active h3 { color: var(--gold-soft); }

/* ---------- Five worlds ---------- */
.worlds { padding-top: 90px; }
.worlds-stage { margin-top: 64px; }
.worlds-device { display: none; }
.worlds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.world { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px 20px 0; border: 1px solid #76527c; border-radius: 180px 180px 18px 18px; background: linear-gradient(180deg, #281439, #130b17 50%); text-align: center; }
.world-index { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.world h3 { margin-top: 12px; font-size: 1.6rem; }
.world p { margin: 12px 0 22px; color: #b8aabb; font-size: .9rem; line-height: 1.55; }
.world-shot { display: block; flex: none; width: 86%; margin: auto auto -40%; border: 3px solid #d1a943; border-radius: 26px; box-shadow: 0 25px 45px #000c; }
.world-dots { display: none; }
.worlds-list:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 6px; border-radius: 20px; }

/* Desktop story: JS adds .has-story and pins the stage. */
@media (min-width: 961px) {
  .worlds.has-story .worlds-stage { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; min-height: calc(100vh - var(--header-h) - 40px); }
  .worlds.has-story .worlds-device { display: grid; place-items: center; order: 2; }
  .worlds.has-story .worlds-list { display: block; position: relative; min-height: 360px; }
  /* Position and fades are driven by GSAP (yPercent/autoAlpha). */
  .worlds.has-story .world { position: absolute; inset: 50% 0 auto; padding: 0 0 0 34px; border: 0; border-left: 1px solid #6f5269; border-radius: 0; background: none; text-align: left; }
  .worlds.has-story .world-index { font-size: .78rem; }
  .worlds.has-story .world h3 { margin-top: 18px; font-size: clamp(2.4rem, 3.8vw, 3.8rem); letter-spacing: -.02em; }
  .worlds.has-story .world p { max-width: 470px; margin-top: 22px; color: var(--muted); font-size: 1.08rem; }
  .worlds.has-story .world-shot { display: none; }
  .device-frame { position: relative; width: min(330px, 26vw); aspect-ratio: 750 / 1624; padding: 10px; border: 1px solid #d1a943; border-radius: 46px; background: linear-gradient(160deg, #3a2148, #0f0913); box-shadow: 0 0 0 6px #120a16, 0 0 0 7px #8c6839, 0 50px 90px #000c, 0 0 80px #6f3ba040; }
  .device-screen { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 36px; object-fit: cover; object-position: top; opacity: 0; }
  .device-screen.is-active { opacity: 1; }
  .story-progress { position: absolute; left: 0; top: 50%; display: flex; flex-direction: column; gap: 10px; transform: translate(-34px, -50%); }
}

/* ---------- Rituals bento ---------- */
.rituals { border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 18px; margin-top: 64px; }
.tile { --mx: 50%; --my: 0%; position: relative; overflow: hidden; padding: 30px; border: 1px solid #6f5269; border-radius: 22px; background: radial-gradient(420px circle at var(--mx) var(--my), #e7bd501a, transparent 55%), linear-gradient(160deg, #22112c, #120a16); transition: border-color .35s, transform .45s var(--ease-out), box-shadow .45s; }
.tile-icon { display: block; width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 22px; font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.tile p { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.tile-wide { grid-row: span 2; padding-bottom: 0; display: flex; flex-direction: column; }
.tile-wide img { display: block; width: 72%; margin: 34px auto -30%; border: 3px solid #d1a943; border-radius: 26px; box-shadow: 0 25px 45px #000c; transition: transform .6s var(--ease-out); }
.tile-vip { background: radial-gradient(420px circle at var(--mx) var(--my), #e7bd5026, transparent 55%), linear-gradient(120deg, #3a1a4d, #170c1c 70%); border-color: #9b7540; }

/* ---------- Promise & closing ---------- */
.promise { position: relative; margin: 10px 0 130px; text-align: center; }
.promise-head { max-width: 760px; margin: 0 auto 56px; }
.promise-seal { position: relative; width: 168px; aspect-ratio: 1; margin: 0 auto 26px; display: grid; place-items: center; }
.promise-seal::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, #e7bd5040, transparent 70%); animation: heroPulse 4.5s ease-in-out infinite; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: orbit 28s linear infinite; }
.seal-ring text { fill: var(--gold); font: 700 10.5px/1 var(--sans); letter-spacing: .12em; }
.promise-seal img { position: relative; width: 88px; height: 88px; border: 1px solid #b8873e; border-radius: 50%; box-shadow: 0 0 0 6px #160c1a, 0 0 0 7px #9c774480, 0 16px 40px #000c; }
.promise h2 { font-size: clamp(2.3rem, 4.2vw, 4.2rem); }
.vows { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; text-align: left; }
.vows::before { content: ""; position: absolute; top: -28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(var(--draw, 1)); transform-origin: center; }
.vow { --mx: 50%; --my: 0%; position: relative; overflow: hidden; padding: 34px 30px 32px; border: 1px solid #6f5269; border-radius: 22px 22px 120px 22px; background: radial-gradient(380px circle at var(--mx) var(--my), #e7bd501c, transparent 60%), linear-gradient(170deg, #241230, #120a16 75%); transition: border-color .35s, transform .45s var(--ease-out), box-shadow .45s; }
.vow:nth-child(2) { border-radius: 22px 22px 22px 22px; }
.vow:nth-child(3) { border-radius: 22px 22px 22px 120px; }
.vow-num { position: absolute; top: 14px; right: 24px; color: #e7bd5024; font: 400 5.4rem/1 var(--serif); letter-spacing: -.04em; pointer-events: none; transition: color .45s; }
.vow-icon { display: block; width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vow h3 { margin-top: 22px; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.vow p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.closing { padding: 0; position: relative; overflow: hidden; border: 1px solid #95733e; border-radius: 300px 300px 20px 20px; background: #1a0c26 url("assets/email-ornament.webp") center top / 100% auto no-repeat; box-shadow: inset 0 0 100px #08040a; text-align: center; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: -30% -10% auto; height: 80%; background: radial-gradient(closest-side, #6f3ba055, transparent); pointer-events: none; animation: glowFloat 8s ease-in-out infinite alternate; }
.closing::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #e7bd5030, transparent); transform: translateX(-50%); pointer-events: none; }
.closing-inner { position: relative; z-index: 3; padding: 130px 32px 96px; }
.closing h2 { max-width: 850px; margin-inline: auto; }
.closing p:not(.eyebrow) { max-width: min(620px, 80%); margin: 24px auto 30px; color: var(--muted); }
.closing .store-badges { justify-content: center; }
.store-badge.is-live { text-decoration: none; border-color: var(--gold); box-shadow: 0 0 0 1px #e7bd5055, 0 0 26px #e7bd5059, 0 12px 30px #0008; }
.store-badge.is-live strong { color: var(--gold-soft); }
.store-badge.is-soon { opacity: .45; filter: grayscale(.7); cursor: default; }
.closing .eyebrow { text-wrap: balance; }
.closing-doors { display: none; position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.motion .closing-doors { display: block; }
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: repeating-linear-gradient(90deg, #ffffff05 0 2px, transparent 2px 46px), linear-gradient(180deg, #2c1540, #12091a); box-shadow: inset 0 0 80px #050207; }
.door::before { content: ""; position: absolute; inset: 9% 12%; border: 1px solid #9c774470; border-radius: 200px 200px 8px 8px; }
.door::after { content: ""; position: absolute; top: 52%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-soft), #8c6839); box-shadow: 0 0 18px #e7bd5088; }
.door-l { left: 0; border-right: 1px solid #b8873e; }
.door-l::after { right: 22px; }
.door-r { right: 0; border-left: 1px solid #b8873e; }
.door-r::after { left: 22px; }
.closing-cards { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.float-card { position: absolute; width: clamp(120px, 13vw, 170px); border-radius: 9px; filter: drop-shadow(0 24px 30px #000c) saturate(.9); opacity: .9; }
.fc-1 { left: 6%; bottom: 14%; transform: rotate(-14deg); }
.fc-2 { right: 6%; bottom: 18%; transform: rotate(12deg); }
.closing-motes { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.closing-motes i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 10px var(--gold); opacity: 0; animation: mote 9s linear infinite; }
.closing-motes i:nth-child(1) { left: 14%; animation-delay: 0s; }
.closing-motes i:nth-child(2) { left: 26%; animation-delay: 3.2s; animation-duration: 11s; }
.closing-motes i:nth-child(3) { left: 38%; animation-delay: 6s; }
.closing-motes i:nth-child(4) { left: 49%; animation-delay: 1.5s; animation-duration: 12s; }
.closing-motes i:nth-child(5) { left: 61%; animation-delay: 4.4s; }
.closing-motes i:nth-child(6) { left: 72%; animation-delay: 7.1s; animation-duration: 10s; }
.closing-motes i:nth-child(7) { left: 83%; animation-delay: 2.3s; }
.closing-motes i:nth-child(8) { left: 92%; animation-delay: 5.6s; animation-duration: 13s; }

/* ---------- Footer ---------- */
footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; margin-top: 90px; padding: 48px 0 35px; border-top: 1px solid #684f634f; color: #9f929f; }
.footer-brand > img { width: 160px; }
.footer-brand p { margin: 12px 0 0; font-size: .85rem; }
.social-links { display: flex; gap: 9px; margin-top: 19px; }
.social-links a, .social-links button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #70566c; border-radius: 50%; background: #130b17; color: #c3b5c4; cursor: pointer; transition: color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.social-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-links .fill { fill: currentColor; stroke: none; }
.social-toast { position: fixed; z-index: 70; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; padding: 10px 18px; border: 1px solid #b8873e; border-radius: 999px; background: #180d1ee8; box-shadow: 0 14px 36px #000b; color: var(--gold-soft); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .25s, transform .25s; }
.social-toast.show { opacity: 1; transform: translate(-50%, 0); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 12px 22px; }
.footer-links a { color: #c3b5c4; font-size: .83rem; text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; margin: 25px 0 0; padding-top: 22px; border-top: 1px solid #684f6338; font-size: .75rem; }

/* ---------- Reveal fallback (no GSAP / reduced motion handled in JS) ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.tile[data-reveal], .vow[data-reveal] { transition: opacity .75s var(--ease-out), transform .45s var(--ease-out), border-color .35s, box-shadow .45s; }
.journey-card[data-reveal] { transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), background .4s; }
.motion .hero-copy > * { animation: heroRise .8s var(--ease-out) backwards; }
.motion .hero-copy > :nth-child(1) { animation-delay: .1s; }
.motion .hero-copy > :nth-child(2) { animation-delay: .2s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .32s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .42s; }
.motion .hero-copy > :nth-child(5) { animation-delay: .52s; }
.motion .oracle { animation: heroScale 1.1s var(--ease-out) .05s backwards; }
.motion .tarot-card img { animation: cardDeal 1.1s cubic-bezier(.34, 1.4, .64, 1) backwards; }
.motion .tarot-card:nth-child(2) img { animation-delay: .45s; --deal-r: 0deg; }
.motion .tarot-card:nth-child(1) img { animation-delay: .6s; --deal-r: -20deg; }
.motion .tarot-card:nth-child(3) img { animation-delay: .75s; --deal-r: 20deg; }
.motion .oracle-label { animation: heroRise .6s var(--ease-out) 1.2s backwards; }

/* ---------- Hover motion: precise pointers only (taps would leave it stuck on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  .store-badge.is-live:hover { border-color: var(--gold-soft); }
  .store-badge.is-live:hover::after { transform: translateX(120%); }
  .fact:hover { background: linear-gradient(180deg, #2b12344d, transparent); }
  .journey-card:hover { background: linear-gradient(90deg, #2b12346e, transparent); }
  .journey-card:hover > div { transform: translateX(12px); }
  .journey-card:hover .step-number { color: var(--gold-soft); transform: translateX(10px) scale(1.12); text-shadow: 0 0 24px #e7bd5066; }
  .journey-card:hover h3 { color: var(--gold-soft); }
  .tile:hover { border-color: #b8873e; transform: translateY(-4px); box-shadow: 0 30px 60px #0009, 0 0 40px #6f3ba02a; }
  .tile-wide:hover img { transform: translateY(-14px); }
  .vow:hover { border-color: #b8873e; transform: translateY(-5px); box-shadow: 0 30px 60px #0009, 0 0 40px #6f3ba02a; }
  .vow:hover .vow-num { color: #e7bd5045; }
  .social-links a:hover, .social-links button:hover { color: var(--gold-soft); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 18px #0008; }
}

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } }
@keyframes heroScale { from { opacity: 0; transform: scale(.96); } }
@keyframes cardDeal { from { opacity: 0; transform: perspective(800px) translateY(240px) rotate(var(--deal-r, 0deg)) rotateY(70deg); } }
@keyframes heroPulse { 50% { opacity: .55; transform: scale(1.04); } }
@keyframes glowFloat { to { opacity: .72; transform: translate3d(-22px, 14px, 0) scale(1.05); } }
@keyframes charmFloat { 50% { opacity: .55; transform: translateY(-14px) rotate(5deg); } }
@keyframes twinkle { to { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes mote { 10% { opacity: .9; } 80% { opacity: .5; } to { opacity: 0; transform: translate3d(18px, -520px, 0); } }

/* ---------- Small laptops & tablets in landscape ---------- */
@media (min-width: 961px) and (max-width: 1180px) {
  .tarot-card { width: 34%; }
  .tarot-card:nth-child(1) { left: 8%; transform: rotate(-17deg); }
  .tarot-card:nth-child(2) { left: 33%; }
  .tarot-card:nth-child(3) { right: 8%; transform: rotate(17deg); }
  .store-badges { gap: 8px; }
  .store-badge { min-width: 0; flex: 1 1 0; padding-inline: 11px; }
}

/* ---------- Touch screens: roomier tap targets ---------- */
@media (pointer: coarse) {
  .footer-links a { display: inline-block; padding-block: 12px; }
  .nav-links a:not(.nav-cta) { padding-block: 12px; }
  .nav-links .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  main, footer, .nav { width: min(100% - 32px, 680px); }
  main { container-type: inline-size; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand { width: 140px; }
  section { padding: 84px 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding-top: calc(var(--header-h) + 14px); padding-bottom: 40px; text-align: center; }
  .hero::before, .hero::after, .hero-charms { display: none; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .oracle { order: -1; width: min(520px, 100%); min-height: 0; height: min(400px, 92cqi); margin-inline: auto; border-radius: 50% 50% 22px 22px / min(46cqi, 260px) min(46cqi, 260px) 22px 22px; }
  .oracle-label { display: none; }
  .card-fan { height: 82%; }
  .tarot-card { width: 37%; bottom: 8%; }
  .tarot-card:nth-child(1) { left: 6%; transform: rotate(-15deg); }
  .tarot-card:nth-child(2) { left: 31.5%; }
  .tarot-card:nth-child(3) { right: 6%; transform: rotate(15deg); }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .manifesto { grid-template-columns: 1fr; gap: 50px; }
  .manifesto-art { min-height: min(720px, 110vw); border-radius: 50% 50% 24px 24px / min(50cqi, 340px) min(50cqi, 340px) 24px 24px; }
  .journey-thread { left: -10px; }
  .worlds-list { display: flex; gap: 14px; margin-inline: -16px; padding: 0 9% 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .worlds-list::-webkit-scrollbar { display: none; }
  .world { flex: 0 0 80%; max-width: 380px; scroll-snap-align: center; }
  .world h3 { font-size: 1.9rem; }
  .world-shot { width: 78%; margin-bottom: -46%; }
  .world-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
  .world-dots span { width: 7px; height: 7px; border-radius: 50%; background: #6f5269; transition: width .3s, background .3s; }
  .world-dots span.is-active { width: 22px; border-radius: 4px; background: var(--gold); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; grid-row: auto; }
  .tile-wide img { width: 56%; margin-bottom: -38%; }
  .vows { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .vow, .vow:nth-child(2), .vow:nth-child(3) { border-radius: 22px; }
  .float-card { display: none; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 480px); justify-items: center; gap: 8px 24px; }
  .footer-links a:last-child { grid-column: 1 / -1; }
  .copyright { width: 100%; }
  .social-links { justify-content: center; }
}

@media (max-width: 560px) {
  .nav-links .nav-cta { padding: 9px 13px; font-size: .75rem; letter-spacing: .1em; }
  h1 { font-size: clamp(2.7rem, 12.6vw, 3.9rem); }
  h2 { font-size: clamp(2.3rem, 10.4vw, 3.2rem); }
  .hero { gap: 22px; }
  .oracle { height: min(330px, 84cqi); }
  .lede { margin: 18px 0 22px; font-size: 1rem; }
  .hero-note { max-width: 330px; }
  .store-badges { justify-content: center; }
  .store-badge { min-width: 151px; padding-inline: 11px; }
  .marquee { padding: 16px 0; }
  .facts { margin-inline: -16px; }
  .fact { min-height: 125px; padding: 20px; }
  .fact span { font-size: .75rem; letter-spacing: .05em; }
  .manifesto-art { min-height: 125vw; }
  .journey-card { grid-template-columns: 64px 1fr; gap: 14px; padding-block: 26px; }
  .step-number { font-size: 2.6rem; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-wide img { width: 70%; margin-bottom: -48%; }
  .tile { padding: 26px; }
  .promise { margin-bottom: 90px; }
  .promise-head { margin-bottom: 36px; }
  .promise-seal { width: 140px; }
  .promise-seal img { width: 74px; height: 74px; }
  .vow { padding: 28px 24px; }
  .vow-num { font-size: 4rem; }
  .closing { margin-inline: -8px; border-radius: 50% 50% 16px 16px / calc(50vw - 8px) calc(50vw - 8px) 16px 16px; }
  .closing-inner { padding: 100px 18px 65px; }
  footer { gap: 30px; margin-top: 64px; padding-top: 38px; padding-bottom: calc(35px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep fades and colour changes, drop movement and looping decoration. */
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; }
  [data-reveal] { transform: none; }
}
