/* Lumen Grimoire — marketing site styles.
   Extracted verbatim from the approved hero (hero v33). The card system
   (particles / flip / glow / tilt) is LOCKED — see
   docs/superpowers/specs/2026-06-23-lumen-marketing-website-design.md §5. */

:root{ --gold:#d4a84b; --gold-lt:#f5de96; --parch:#f2ede3; --sage:#a8bca8; }
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}html,body{overflow-x:clip}
body{min-height:100vh;color:var(--parch);font-family:'Cormorant Garamond',Georgia,serif;
  background:#070C09;position:relative}
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:2;opacity:.06;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* viewport-fixed gradient as a REAL element (not background-attachment:fixed, which Safari renders
   grainy/low-res). Locked to the viewport so there's no scroll seam between sections, and sharp. */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 50% 36%, #17251C 0%, #0E1711 46%, #070C09 100%)}
#particles{position:fixed;inset:0;z-index:0;pointer-events:none}
/* eased multi-stop falloff (no slope discontinuity = no visible edge line as content scrolls past) */
.vig-top{position:fixed;top:0;left:0;right:0;height:160px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,rgba(0,0,0,.22) 40%,rgba(0,0,0,.06) 70%,transparent 100%)}
.vig-bot{position:fixed;bottom:0;left:0;right:0;height:160px;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.55) 0%,rgba(0,0,0,.24) 40%,rgba(0,0,0,.07) 70%,transparent 100%)}

/* ===== Section 1: Hero ===== */
.hero{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:46px 16px 70px;text-align:center}
.overline{font-family:'Cinzel',serif;letter-spacing:.36em;font-size:11px;text-transform:uppercase;color:var(--gold);opacity:.92;margin-bottom:12px;text-shadow:0 0 12px rgba(212,168,75,.55)}
.wordmark{font-family:'Cinzel',serif;font-weight:600;font-size:clamp(34px,7.5vw,58px);line-height:1;letter-spacing:.06em;margin-bottom:6px;
  background:linear-gradient(95deg,#c39a37 0%,#e7c25f 22%,#fff3cf 40%,#e7c25f 58%,#c39a37 82%);background-size:220% auto;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  filter:drop-shadow(0 0 13px rgba(212,168,75,.5));animation:shimmer 7s linear infinite}
@keyframes shimmer{from{background-position:0% center}to{background-position:220% center}}
.kicker{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:17px;color:var(--sage);margin-bottom:16px;text-shadow:0 0 14px rgba(212,168,75,.22)}

.deckband{position:relative;width:100vw;left:50%;transform:translateX(-50%);height:372px;overflow:hidden;margin:2px 0 6px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.track{display:flex;align-items:center;height:100%;width:max-content;will-change:transform}
.ccard{flex:none;width:178px;height:267px;margin-right:28px;border-radius:12px;object-fit:cover;cursor:pointer;
  filter:brightness(1.05) saturate(1.05);box-shadow:0 14px 32px rgba(0,0,0,.5);transition:filter .3s,box-shadow .3s}
.ccard:hover{filter:brightness(1.2) saturate(1.12);box-shadow:0 18px 42px rgba(0,0,0,.6),0 0 32px rgba(212,168,75,.45)}
.drawhint{font-family:'Cinzel',serif;font-size:14px;letter-spacing:.26em;text-transform:uppercase;color:#efce72;opacity:1;margin-top:10px;display:inline-flex;align-items:center;gap:.75em;text-shadow:0 0 10px rgba(212,168,75,.55),0 0 22px rgba(212,168,75,.3);animation:drawhintBreathe 2.6s ease-in-out infinite}
.drawhint::before,.drawhint::after{content:'\2726';font-size:.8em;color:#f6e08f;text-shadow:0 0 9px rgba(246,224,143,.9);animation:hintspark 1.7s ease-in-out infinite}
.drawhint::after{animation-delay:.85s}
@keyframes drawhintBreathe{0%,100%{text-shadow:0 0 8px rgba(212,168,75,.4),0 0 18px rgba(212,168,75,.2)}50%{text-shadow:0 0 15px rgba(212,168,75,.85),0 0 32px rgba(212,168,75,.45)}}
@keyframes hintspark{0%,100%{opacity:.4;transform:scale(.8) rotate(0deg)}50%{opacity:1;transform:scale(1.25) rotate(90deg)}}
@media (prefers-reduced-motion:reduce){.drawhint,.drawhint::before,.drawhint::after{animation:none}}
@keyframes hintpulse{0%,100%{opacity:.5}50%{opacity:.95}}

.tagline{max-width:440px;margin:18px auto 0;font-size:20px;line-height:1.45}
.tagline b{color:var(--parch);font-weight:500;display:block;text-shadow:0 0 16px rgba(212,168,75,.28)}
.tagline span{color:var(--sage);font-style:italic;text-shadow:0 0 12px rgba(0,0,0,.4)}
.cta{margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:9px}
/* official Apple "Download on the App Store" badge (white lockup, for dark backgrounds) */
.appbtn{display:inline-block;text-decoration:none;transition:transform .2s,filter .3s}
.appbtn img{height:52px;width:auto;display:block;filter:drop-shadow(0 6px 18px rgba(0,0,0,.5))}
.appbtn:hover{transform:translateY(-2px)}
.appbtn:hover img{filter:drop-shadow(0 10px 24px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(212,168,75,.35))}
.freenote{font-family:'Cinzel',serif;font-size:11px;letter-spacing:.18em;color:var(--gold);opacity:.85;text-shadow:0 0 10px rgba(212,168,75,.45)}
.scroll{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--sage);opacity:.7}
.scroll .t{font-family:'Cinzel',serif;font-size:10px;letter-spacing:.24em;text-transform:uppercase;text-shadow:0 0 10px rgba(212,168,75,.4)}
.scroll .c{width:18px;height:18px;border-right:1.5px solid var(--gold);border-bottom:1.5px solid var(--gold);transform:rotate(45deg);animation:bob 1.8s ease-in-out infinite}
/* back-to-studio link — fixed, clears the left vine, sits below the card overlay (z 30) */
.backstudio{position:fixed;top:18px;left:62px;z-index:20;display:inline-flex;align-items:center;gap:7px;font-family:'Cinzel',serif;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);text-decoration:none;opacity:.72;padding:7px 14px;border:1px solid rgba(212,168,75,.32);border-radius:30px;background:rgba(10,16,12,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:opacity .25s,border-color .25s,background .25s}
.backstudio:hover{opacity:1;border-color:rgba(212,168,75,.65);background:rgba(10,16,12,.7)}
@media (max-width:560px){.backstudio{left:52px;font-size:10px;padding:6px 11px;letter-spacing:.14em}}
@keyframes bob{0%,100%{transform:rotate(45deg) translate(0,0);opacity:.5}50%{transform:rotate(45deg) translate(3px,3px);opacity:1}}

/* ===== Shared card system: ADMIRE overlay =====
   CSS-transition flip (proven clean technique). Tilt/sway/float on .atilt; the
   flip is a pure CSS transition on .aflip; faces are backface-hidden so the
   BROWSER composites the 90deg handoff — no edge-on line, no opacity forcing.
   SAFARI: never put box-shadow on a backface-hidden face, nor filter:blur in
   preserve-3d (both silently drop). */
.admire{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;perspective:1600px;pointer-events:none}
.admire.open{pointer-events:auto}
.backdrop{position:absolute;inset:0;background:rgba(7,11,9,.82);opacity:0;transition:opacity .45s}
.admire.open .backdrop{opacity:1}
.astage{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;cursor:pointer;transform-style:preserve-3d;
  transform:translateY(46px) scale(.42) rotateY(-85deg);opacity:0;transition:transform .58s cubic-bezier(.2,.85,.3,1.06),opacity .42s}
.admire.open .astage{transform:none;opacity:1}
/* tilt/sway/float wrapper — JS sets --rx/--ry/--fy every frame, NEVER the flip */
.atilt{position:relative;width:304px;height:456px;transform-style:preserve-3d;
  transform:translateY(var(--fy,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
/* the flip itself — pure CSS transition; default shows BACK (rotateY 180), .revealed shows FRONT (0) */
.aflip{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.34,1.4,.4,1);transform:rotateY(180deg)}
.aflip.revealed{transform:rotateY(0deg)}
.aflip .face{position:absolute;inset:0;border-radius:6px;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;
  box-shadow:0 26px 54px rgba(0,0,0,.6);transition:box-shadow .8s ease}
.aflip .face img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.aflip .front{transform:translateZ(1px)}
.aflip .back{transform:rotateY(180deg) translateZ(1px)}
/* glow after flip — same value as the deck-card hover, placed INSIDE .atilt so it
   tilts WITH the card (a static glow drifts into a "frame"). Plain div (no
   backface/filter) so it paints in Safari. Fade-OUT instant (transition 0s) so no
   card-shaped black frame shows mid-flip; fade-IN delayed until the card lands. */
.aglow{position:absolute;inset:0;border-radius:6px;pointer-events:none;opacity:0;transition:opacity 0s;
  box-shadow:0 0 32px rgba(212,168,75,.45)}
.astage.revealed .aglow{opacity:1;transition:opacity .6s ease .85s}
/* breathing gold border lives ON the back face — auto-hides when the card turns to front */
.aflip .back::after{content:'';position:absolute;inset:0;border-radius:6px;border:1.5px solid rgba(212,168,75,.5);pointer-events:none;
  animation:breathe 3s ease-in-out infinite alternate}
@keyframes breathe{from{border-color:rgba(212,168,75,.3)}to{border-color:rgba(212,168,75,.85)}}
.aspk{position:absolute;left:50%;top:228px;width:0;height:0;z-index:5;pointer-events:none;opacity:0;transition:opacity 1.3s}
.astage.revealed .aspk{opacity:1}.aspk span{position:absolute;border-radius:50%}
.aname{font-family:'Cinzel',serif;font-weight:600;font-size:30px;letter-spacing:.08em;color:var(--gold-lt);margin-top:26px;min-height:36px;text-shadow:0 0 20px rgba(212,168,75,.6),0 0 4px rgba(212,168,75,.5);opacity:0;transition:opacity .6s}
.astage.revealed .aname{opacity:1}
.ahint{font-family:'Cormorant Garamond',serif;font-style:italic;color:#efce72;font-size:24px;margin-top:18px;opacity:1;text-shadow:0 0 10px rgba(212,168,75,.6),0 0 22px rgba(212,168,75,.3);animation:drawhintBreathe 2.6s ease-in-out infinite}
.ahint::before,.ahint::after{content:'\2726';display:inline-block;font-style:normal;font-size:.7em;color:#f6e08f;text-shadow:0 0 9px rgba(246,224,143,.9);animation:hintspark 1.7s ease-in-out infinite}
.ahint::before{margin-right:.6em}
.ahint::after{margin-left:.6em;animation-delay:.85s}
@media (prefers-reduced-motion:reduce){.ahint,.ahint::before,.ahint::after{animation:none}}

/* ===== Section 2: The Daily Ritual =====
   Click "Write your reflection" -> a reflection types itself -> the card flips.
   The inline card reuses the LOCKED flip/glow/tilt technique (see spec §5):
   CSS-transition flip on .rflip (faces backface-hidden), tilt on .rtilt, glow on a
   plain box-shadow div .rglow INSIDE .rtilt so it co-tilts and paints in Safari. */
.ritual{position:relative;z-index:3;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:80px 24px}
.ritual-inner{display:flex;align-items:center;gap:60px;max-width:1040px;width:100%;flex-wrap:wrap;justify-content:center}
.ritual-card{position:relative;perspective:1600px;display:flex;flex-direction:column;align-items:center;gap:16px;flex:0 0 auto}
.rtilt{position:relative;width:280px;height:420px;transform-style:preserve-3d;transform:translateY(var(--rfy,0px)) rotateX(var(--rrx,0deg)) rotateY(var(--rry,0deg))}
.rflip{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.34,1.4,.4,1);transform:rotateY(180deg);cursor:pointer}
.rflip.revealed{transform:rotateY(0deg)}
.rflip .face{position:absolute;inset:0;border-radius:6px;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 22px 48px rgba(0,0,0,.6)}
.rflip .face img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.rflip .front{transform:translateZ(1px)}
.rflip .back{transform:rotateY(180deg) translateZ(1px)}
.rflip .back::after{content:'';position:absolute;inset:0;border-radius:6px;border:1.5px solid rgba(212,168,75,.5);pointer-events:none;animation:breathe 3s ease-in-out infinite alternate}
.rglow{position:absolute;inset:0;border-radius:6px;pointer-events:none;opacity:0;transition:opacity 0s;box-shadow:0 0 32px rgba(212,168,75,.45)}
.ritual-card.revealed .rglow{opacity:1;transition:opacity .6s ease .85s}
.rname{font-family:'Cinzel',serif;font-weight:600;font-size:23px;letter-spacing:.06em;color:var(--gold-lt);min-height:30px;text-shadow:0 0 18px rgba(212,168,75,.55);opacity:0;transition:opacity .6s}
.ritual-card.revealed .rname{opacity:1}
/* the Companion's meaning (Pythia's voice) — printed serif, fades in after the flip lands */
/* #3 fix: the meaning EXPANDS (max-height) after the flip lands, so the card glides up smoothly
   (flex re-centres as the column grows) instead of snapping. opacity fades in alongside. */
.rmeaning{max-width:330px;text-align:center;max-height:0;overflow:hidden;opacity:0;transition:max-height .45s ease,opacity .3s ease}
.ritual-card.revealed .rmeaning{max-height:480px;opacity:1;transition:max-height 1s ease .65s,opacity 1s ease .8s}
.rrarity{font-family:'Cinzel',serif;font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);opacity:.8;margin-bottom:9px}
.rmeaning-text{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:15.5px;line-height:1.55;color:var(--sage)}

/* ===== Section 3: The Deck · 366 Companions — one per archetype, collectible, floating ===== */
.deck{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center}
.deck-head{max-width:620px;margin-bottom:24px}
.deck-head .overline{margin-bottom:10px}
.deck-sub{color:var(--sage);margin-top:6px}
.deck-grid{display:flex;flex-wrap:wrap;gap:14px 28px;justify-content:center;max-width:1060px}
.dcard{flex:0 0 auto;width:160px;display:flex;flex-direction:column;align-items:center}
/* .dcard-card carries the JS float+tilt transform (perspective is in the transform string) */
.dcard-card{width:160px;height:240px;border-radius:6px;overflow:hidden;cursor:pointer;will-change:transform;box-shadow:0 12px 30px rgba(0,0,0,.5);transition:box-shadow .3s,filter .3s}
.dcard-card img{width:100%;height:100%;object-fit:contain;display:block}
.dcard-card:hover{box-shadow:0 16px 40px rgba(0,0,0,.6),0 0 28px rgba(212,168,75,.45);filter:brightness(1.08) saturate(1.05)}
.dcard-meta{text-align:center;margin-top:8px}
.dcard-fam{font-family:'Cinzel',serif;font-size:9px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);opacity:.72}
.dcard-name{font-family:'Cormorant Garamond',serif;font-size:16px;color:var(--parch);margin:2px 0 6px;line-height:1.15}
.dcard-rarity{display:inline-block;font-family:'Cinzel',serif;font-size:8.5px;letter-spacing:.16em;text-transform:uppercase;padding:3px 10px;border-radius:20px;border:1px solid currentColor}
.r-legendary{color:#e7c25f}.r-rare{color:#b69cff}.r-uncommon{color:#79c39a}.r-common{color:#9aa3a0}
@media (max-width:560px){.dcard,.dcard-card{width:132px}.dcard-card{height:198px}}

/* ===== Section 4: Pythia · Your Storyteller ===== */
.pythia{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:90px 24px}
.pythia-head{max-width:640px;text-align:center;margin-bottom:42px}
.pythia-head .overline{margin-bottom:10px}
.pythia-inner{display:flex;align-items:center;gap:48px;max-width:1060px;width:100%;flex-wrap:wrap;justify-content:center}
.pcard-wrap{perspective:1200px;flex:0 0 auto}
.pcard{width:290px;height:435px;border-radius:8px;overflow:hidden;cursor:pointer;will-change:transform;box-shadow:0 24px 54px rgba(0,0,0,.6),0 0 44px rgba(212,168,75,.34)}
.pcard img{width:100%;height:100%;object-fit:contain;display:block}
/* engaging feature tiles (not a list): 2x3 grid, hover lifts + glows */
.feat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;flex:1 1 460px;max-width:540px}
.feat-tile{background:rgba(20,31,25,.5);border:1px solid rgba(212,168,75,.2);border-radius:12px;padding:15px 16px;box-shadow:0 8px 22px rgba(0,0,0,.32),0 0 18px rgba(212,168,75,.12);transition:border-color .3s,transform .25s,box-shadow .3s}
.feat-tile:hover{border-color:rgba(212,168,75,.55);transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.45),0 0 30px rgba(212,168,75,.32)}
.feat-t{font-family:'Cinzel',serif;font-size:15px;letter-spacing:.05em;color:var(--gold-lt);margin-bottom:5px}
.feat-d{font-family:'Cormorant Garamond',serif;font-size:15px;line-height:1.4;color:var(--sage)}
@media (max-width:560px){.feat-grid{grid-template-columns:1fr}}

/* ===== Section 5: Your Year, Written — the unique illustrated book ===== */
.codex{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:90px 24px;text-align:center}
.codex .overline{margin-bottom:14px}
.codex-h{max-width:680px;margin-bottom:30px}
/* book on the left, fanned pages on the right — the whole group is centered (justify-center)
   so the OUTER margins are equal: (left edge → book) == (cards → right edge). A wide gap keeps
   the fan from crowding the book while the group as a unit stays balanced on the page. */
.codex-hero{display:flex;align-items:center;justify-content:center;width:100%;gap:96px;margin:0 auto 56px;flex-wrap:wrap}
.book-wrap{position:relative;perspective:1100px}
.book{position:relative;z-index:2;width:260px;height:390px;border-radius:8px;overflow:hidden;will-change:transform;box-shadow:0 26px 60px rgba(0,0,0,.6),0 0 52px rgba(212,168,75,.4)}
.book img{width:100%;height:100%;object-fit:contain;display:block}
/* illuminated pages — evenly distributed fan (h-spacing + gentle rotation + arc, set in JS);
   each floats + glows; on hover the page under the cursor pops upright + forward, page by page.
   box width = page(210) + 4*spacing(96) = 594 so the content fills the box and centers true */
/* box width (744) = the rotated end-pages' bounding extent (±372) so the box bounds the VISIBLE
   fan; flex-centering the box then yields equal outer margins despite the rotation overhang */
.page-fan{position:relative;width:744px;height:470px;flex:0 0 auto;transform:translateY(-34px)}
.page-fan .pg{position:absolute;left:50%;top:50%;width:228px;height:342px;margin-left:-114px;margin-top:-171px;object-fit:contain;border-radius:6px;transform-origin:50% 50%;will-change:transform;box-shadow:0 18px 40px rgba(0,0,0,.55),0 0 30px rgba(212,168,75,.34)}
.page-fan-wrap{display:contents}  /* desktop: wrapper invisible to layout — fan stays a direct flex child (byte-identical desktop) */
@media (max-width:1180px){
  .codex-hero{flex-direction:column;gap:4px}
  /* wrapper becomes a real viewport-bounded box that clips + centers the scaled fan */
  .page-fan-wrap{display:block;position:relative;width:100%;height:300px;margin:-24px auto -16px;overflow:hidden}
  /* fan centered deterministically via translate (immune to flex "safe-align"), scaled to fit */
  .page-fan{position:absolute;left:50%;top:50%;width:744px;transform:translate(-50%,-50%) scale(.56);transform-origin:center;margin:0}
}
@media (max-width:400px){
  .page-fan-wrap{height:280px}
  .page-fan{transform:translate(-50%,-50%) scale(.5)}
}
.codex-p{max-width:620px;margin-bottom:26px}
.codex .codex-p{font-size:20px;line-height:1.55}  /* a little larger than the standard .sec-p (18px); higher specificity so it wins the cascade */
.codex-p b{color:var(--parch);font-weight:500}
.codex-parts{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;font-family:'Cinzel',serif;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.codex-part{text-shadow:0 0 12px rgba(212,168,75,.5)}
.codex-dot{font-size:7px;opacity:.55}

.ritual-copy{flex:1 1 380px;max-width:440px}
.ritual-copy .overline{margin-bottom:10px}
.sec-h{font-family:'Cinzel',serif;font-weight:500;font-size:clamp(26px,3.4vw,36px);line-height:1.16;color:var(--parch);margin-bottom:14px;text-shadow:0 0 16px rgba(212,168,75,.25)}
.sec-p{font-size:18px;line-height:1.5;color:var(--sage);margin-bottom:22px}
.journal{background:rgba(20,31,25,.5);border:1px solid rgba(212,168,75,.22);border-radius:12px;padding:16px 20px 18px;box-shadow:inset 0 0 36px rgba(0,0,0,.35)}
.journal-label{font-family:'Cinzel',serif;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);opacity:.7;margin-bottom:9px}
/* the user's reflection is in a handwriting script (contrasts with the printed grimoire type);
   each letter "inks in" via opacity (works on inline spans, so wrapping stays normal) */
.journal-text{font-family:'Dancing Script',cursive;font-weight:500;font-size:25px;line-height:1.5;color:var(--parch);min-height:150px;white-space:pre-wrap}
.ink{opacity:0;animation:inkIn .55s ease forwards}
@keyframes inkIn{to{opacity:1}}
.caret{display:inline-block;width:2px;height:1.05em;background:var(--gold-lt);vertical-align:-2px;margin-left:1px;opacity:0}
.caret.on{animation:caretblink 1s step-end infinite}
@keyframes caretblink{0%,49%{opacity:1}50%,100%{opacity:0}}
.rcta{margin-top:20px;font-family:'Cinzel',serif;font-size:13px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#0f1814;background:linear-gradient(180deg,#e7c25f,#caa23f);border:none;border-radius:24px;padding:13px 26px;cursor:pointer;box-shadow:0 6px 20px rgba(212,168,75,.35);transition:transform .2s,box-shadow .3s,opacity .3s}
.rcta:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(212,168,75,.5)}
.rcta:disabled{cursor:default;opacity:.5}
@media (max-width:760px){.ritual-copy{text-align:center;flex-basis:100%}.journal-text{min-height:150px;text-align:left}}

/* ===== Section 6: Crafted & Private ===== */
.craft{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:90px 24px;text-align:center}
.craft .overline{margin-bottom:14px}
.craft .sec-h{margin-bottom:18px}
.craft-sub{max-width:560px;margin-bottom:48px}
.craft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;width:100%;max-width:1000px}
.craft-tile{background:rgba(20,31,25,.5);border:1px solid rgba(212,168,75,.2);border-radius:14px;padding:32px 26px;box-shadow:0 8px 22px rgba(0,0,0,.32),0 0 18px rgba(212,168,75,.12);transition:border-color .3s,transform .25s,box-shadow .3s}
.craft-tile:hover{border-color:rgba(212,168,75,.55);transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.45),0 0 30px rgba(212,168,75,.32)}
.craft-icon{color:var(--gold);margin-bottom:16px;display:flex;justify-content:center}
.craft-icon svg{width:42px;height:42px;filter:drop-shadow(0 0 10px rgba(212,168,75,.45))}
.craft-t{font-family:'Cinzel',serif;font-size:17px;color:var(--gold-lt);letter-spacing:.04em;margin-bottom:12px;text-shadow:0 0 14px rgba(212,168,75,.4)}
.craft-d{font-size:15.5px;line-height:1.55;color:var(--sage)}
@media (max-width:820px){.craft-grid{grid-template-columns:minmax(0,1fr);max-width:440px}}
.craft-stats{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:50px}
.craft-stats .stat{padding:0 36px;text-align:center}
.stat-n{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:52px;line-height:1;color:var(--gold-lt);text-shadow:0 0 22px rgba(212,168,75,.5)}
.stat-l{font-family:'Cinzel',serif;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--sage);margin-top:8px}
.stat-sep{width:1px;height:48px;background:linear-gradient(180deg,transparent,rgba(212,168,75,.45),transparent)}
@media (max-width:680px){.craft-stats .stat{padding:0 16px;margin-bottom:10px}.stat-n{font-size:38px}.stat-sep{display:none}}

/* ===== Section 7: Begin · Download (epic constellation CTA) ===== */
.begin{position:relative;z-index:3;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:46px 24px;text-align:center}
.constellation{position:relative;width:740px;height:680px;max-width:100%;margin-bottom:34px}
/* candlelit aura + orbiting gold sparks — no radial beams (grimoire, not churchy) */
.con-sparks{position:absolute;left:50%;top:50%;width:1000px;height:900px;transform:translate(-50%,-50%);z-index:1;pointer-events:none}
.constellation .cglow{position:absolute;left:50%;top:50%;width:620px;height:620px;transform:translate(-50%,-50%);z-index:0;pointer-events:none;background:radial-gradient(circle, rgba(226,186,98,.32), rgba(212,168,75,.12) 40%, transparent 66%);filter:blur(12px);animation:auraBreathe 6.5s ease-in-out infinite}
@keyframes auraBreathe{0%,100%{opacity:.7}50%{opacity:1}}
.orbit{position:absolute;left:50%;top:50%;width:0;height:0;z-index:1}
.ocard{position:absolute;width:114px;height:171px;left:-57px;top:-85px;object-fit:contain;border-radius:6px;will-change:transform;box-shadow:0 12px 26px rgba(0,0,0,.5),0 0 18px rgba(212,168,75,.3);filter:brightness(.92)}
.book-center{position:absolute;left:50%;top:50%;width:186px;height:279px;margin-left:-93px;margin-top:-139.5px;z-index:3;will-change:transform}
.book-center img{width:100%;height:100%;object-fit:contain;display:block;border-radius:8px;box-shadow:0 26px 60px rgba(0,0,0,.6),0 0 60px rgba(212,168,75,.55)}
.begin .overline{margin-bottom:12px}
.begin-h{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:29px;line-height:1.3;letter-spacing:.005em;max-width:600px;margin:0 auto 24px}
.valueline{font-family:'Cormorant Garamond',serif;font-size:17px;color:var(--gold-lt);opacity:.9;max-width:600px;margin:0 auto 34px}
.bigcta{display:inline-flex;align-items:center;gap:9px;font-family:'Cinzel',serif;font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#10190f;background:linear-gradient(180deg,#f2d271,#c89f3c);border:none;border-radius:28px;padding:13px 30px;cursor:pointer;text-decoration:none;animation:ctapulse 2.6s ease-in-out infinite;transition:transform .2s;margin-bottom:20px}
.bigcta:hover{transform:translateY(-2px)}
@keyframes ctapulse{0%,100%{box-shadow:0 0 20px rgba(212,168,75,.45),0 12px 30px rgba(212,168,75,.35)}50%{box-shadow:0 0 46px rgba(212,168,75,.8),0 12px 38px rgba(212,168,75,.55)}}
.begin-badge{display:block;margin:0 auto 20px}
.begin-badge img{height:46px;display:block}
.microcopy{font-family:'Cinzel',serif;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--sage);margin-bottom:22px}
.lossline{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:23px;color:var(--sage);opacity:.9}
@media (max-width:820px){.constellation{transform:scale(.66);margin:-80px 0 -60px}.begin-h{font-size:30px}.con-sparks{max-width:100vw}}

/* ===== Section 8: Footer ===== */
.footer{position:relative;z-index:3;text-align:center;padding:64px 24px 74px;border-top:1px solid rgba(212,168,75,.14)}
.foot-mark{font-family:'Cinzel',serif;font-size:18px;letter-spacing:.28em;color:var(--gold-lt);text-shadow:0 0 16px rgba(212,168,75,.4);margin-bottom:8px}
.foot-tag{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:15px;color:var(--sage);margin-bottom:24px}
.foot-links{display:flex;gap:26px;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:22px}
.foot-links a{font-family:'Cinzel',serif;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);text-decoration:none;opacity:.85;transition:opacity .25s,text-shadow .25s}
.foot-links a:hover{opacity:1;text-shadow:0 0 12px rgba(212,168,75,.6)}
.foot-copy{font-family:'Cormorant Garamond',serif;font-size:13px;color:var(--sage);opacity:.7}
.foot-copy a{color:var(--gold);text-decoration:none}
.foot-copy a:hover{text-decoration:underline}

/* ===== scroll choreography — text/UI rises in as each section enters view ===== */
@media (prefers-reduced-motion: no-preference){
  .ritual-copy,
  .deck-head>*,
  .pythia-head>*, .feat-tile,
  .codex>.overline, .codex-h, .codex-p, .codex-parts,
  .craft>.overline, .craft>.sec-h, .craft-sub, .craft-tile, .craft-stats,
  .begin>.overline, .begin-h, .valueline, .bigcta, .begin-badge, .microcopy, .lossline
  {opacity:0;transform:translateY(28px);transition:opacity .75s ease, transform .75s cubic-bezier(.22,.61,.36,1)}
  .ritual.in .ritual-copy,
  .deck.in .deck-head>*,
  .pythia.in .pythia-head>*, .pythia.in .feat-tile,
  .codex.in>.overline, .codex.in .codex-h, .codex.in .codex-p, .codex.in .codex-parts,
  .craft.in>.overline, .craft.in>.sec-h, .craft.in .craft-sub, .craft.in .craft-tile, .craft.in .craft-stats,
  .begin.in>.overline, .begin.in .begin-h, .begin.in .valueline, .begin.in .bigcta, .begin.in .begin-badge, .begin.in .microcopy, .begin.in .lossline
  {opacity:1;transform:none}
  .deck-head>*:nth-child(2){transition-delay:.09s}.deck-head>*:nth-child(3){transition-delay:.18s}
  .pythia-head>*:nth-child(2){transition-delay:.09s}.pythia-head>*:nth-child(3){transition-delay:.18s}
  .feat-tile:nth-child(2){transition-delay:.06s}.feat-tile:nth-child(3){transition-delay:.12s}.feat-tile:nth-child(4){transition-delay:.18s}.feat-tile:nth-child(5){transition-delay:.24s}.feat-tile:nth-child(6){transition-delay:.3s}
  .craft-tile:nth-child(2){transition-delay:.1s}.craft-tile:nth-child(3){transition-delay:.2s}
  .valueline{transition-delay:.06s}.bigcta{transition-delay:.12s}.begin-badge{transition-delay:.16s}.microcopy{transition-delay:.2s}.lossline{transition-delay:.24s}
}
/* ===== golden vine drawing down the left margin on scroll ===== */
.vine{position:fixed;left:16px;top:0;width:36px;height:100vh;z-index:6;pointer-events:none;filter:drop-shadow(0 0 6px rgba(212,168,75,.7));animation:vineGlow 3.4s ease-in-out infinite}
@keyframes vineGlow{0%,100%{filter:drop-shadow(0 0 5px rgba(212,168,75,.5))}50%{filter:drop-shadow(0 0 12px rgba(212,168,75,.95))}}
#vineTip{filter:drop-shadow(0 0 7px rgba(246,224,143,.95));transition:opacity .4s ease;animation:tipGlow 1.9s ease-in-out infinite}
@keyframes tipGlow{0%,100%{filter:drop-shadow(0 0 6px rgba(246,224,143,.75))}50%{filter:drop-shadow(0 0 15px rgba(246,224,143,1))}}
@media (prefers-reduced-motion:reduce){.vine,#vineTip{animation:none}}
@media (max-width:860px){.vine{left:6px;width:22px}}
